[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 [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:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15: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:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:22]OFD Sender: No OFD packet to send [03:36:27]OFD Sender: No OFD packet to send [03:36:32]OFD Sender: No OFD packet to send [03:36:37]OFD Sender: No OFD packet to send [03:36:42]OFD Sender: No OFD packet to send [03:36:47]OFD Sender: No OFD packet to send [03:36:52]OFD Sender: No OFD packet to send [03:36:57]OFD Sender: No OFD packet to send [03:37:02]OFD Sender: No OFD packet to send [03:37:07]OFD Sender: No OFD packet to send [03:37:12]OFD Sender: No OFD packet to send [03:37:17]OFD Sender: No OFD packet to send [03:37:22]OFD Sender: No OFD packet to send [03:37:27]OFD Sender: No OFD packet to send [03:37:32]OFD Sender: No OFD packet to send [03:37:37]OFD Sender: No OFD packet to send [03:37:42]OFD Sender: No OFD packet to send [03:37:47]OFD Sender: No OFD packet to send [03:37:52]OFD Sender: No OFD packet to send [03:37:57]OFD Sender: No OFD packet to send [03:38:02]OFD Sender: No OFD packet to send [03:38:07]OFD Sender: No OFD packet to send [03:38:12]OFD Sender: No OFD packet to send [03:38:17]OFD Sender: No OFD packet to send [03:38:22]OFD Sender: No OFD packet to send [03:38:27]OFD Sender: No OFD packet to send [03:38:32]OFD Sender: No OFD packet to send [03:38:37]OFD Sender: No OFD packet to send [03:38:42]OFD Sender: No OFD packet to send [03:38:47]OFD Sender: No OFD packet to send [03:38:52]OFD Sender: No OFD packet to send [03:38:57]OFD Sender: No OFD packet to send [03:39:02]OFD Sender: No OFD packet to send [03:39:07]OFD Sender: No OFD packet to send [03:39:12]OFD Sender: No OFD packet to send [03:39:17]OFD Sender: No OFD packet to send [03:39:22]OFD Sender: No OFD packet to send [03:39:27]OFD Sender: No OFD packet to send [03:39:32]OFD Sender: No OFD packet to send [03:39:37]OFD Sender: No OFD packet to send [03:39:42]OFD Sender: No OFD packet to send [03:39:47]OFD Sender: No OFD packet to send [03:39:52]OFD Sender: No OFD packet to send [03:39:57]OFD Sender: No OFD packet to send [03:40:02]OFD Sender: No OFD packet to send [03:40:07]OFD Sender: No OFD packet to send [03:40:12]OFD Sender: No OFD packet to send [03:40:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]OFD Sender: No OFD packet to send [03:45:52]OFD Sender: No OFD packet to send [03:45:57]OFD Sender: No OFD packet to send [03:46:02]OFD Sender: No OFD packet to send [03:46:07]OFD Sender: No OFD packet to send [03:46:12]OFD Sender: No OFD packet to send [03:46:17]OFD Sender: No OFD packet to send [03:46:22]OFD Sender: No OFD packet to send [03:46:27]OFD Sender: No OFD packet to send [03:46:32]OFD Sender: No OFD packet to send [03:46:37]OFD Sender: No OFD packet to send [03:46:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49:37]OFD Sender: No OFD packet to send [03:49:42]OFD Sender: No OFD packet to send [03:49:47]OFD Sender: No OFD packet to send [03:49:52]OFD Sender: No OFD packet to send [03:49:57]OFD Sender: No OFD packet to send [03:50:02]OFD Sender: No OFD packet to send [03:50:07]OFD Sender: No OFD packet to send [03:50:12]OFD Sender: No OFD packet to send [03:50:17]OFD Sender: No OFD packet to send [03:50:22]OFD Sender: No OFD packet to send [03:50:27]OFD Sender: No OFD packet to send [03:50:32]OFD Sender: No OFD packet to send [03:50:37]OFD Sender: No OFD packet to send [03:50:42]OFD Sender: No OFD packet to send [03:50:47]OFD Sender: No OFD packet to send [03:50:52]OFD Sender: No OFD packet to send [03:50:57]OFD Sender: No OFD packet to send [03:51:02]OFD Sender: No OFD packet to send [03:51:07]OFD Sender: No OFD packet to send [03:51:12]OFD Sender: No OFD packet to send [03:51:17]OFD Sender: No OFD packet to send [03:51:22]OFD Sender: No OFD packet to send [03:51:27]OFD Sender: No OFD packet to send [03:51:32]OFD Sender: No OFD packet to send [03:51:37]OFD Sender: No OFD packet to send [03:51:42]OFD Sender: No OFD packet to send [03:51:47]OFD Sender: No OFD packet to send [03:51:52]OFD Sender: No OFD packet to send [03:51:57]OFD Sender: No OFD packet to send [03:52:02]OFD Sender: No OFD packet to send [03:52:07]OFD Sender: No OFD packet to send [03:52:12]OFD Sender: No OFD packet to send [03:52:17]OFD Sender: No OFD packet to send [03:52:22]OFD Sender: No OFD packet to send [03:52:27]OFD Sender: No OFD packet to send [03:52:32]OFD Sender: No OFD packet to send [03:52:37]OFD Sender: No OFD packet to send [03:52:42]OFD Sender: No OFD packet to send [03:52:47]OFD Sender: No OFD packet to send [03:52:52]OFD Sender: No OFD packet to send [03:52:57]OFD Sender: No OFD packet to send [03:53:02]OFD Sender: No OFD packet to send [03:53:07]OFD Sender: No OFD packet to send [03:53:12]OFD Sender: No OFD packet to send [03:53:17]OFD Sender: No OFD packet to send [03:53:22]OFD Sender: No OFD packet to send [03:53:27]OFD Sender: No OFD packet to send [03:53:32]OFD Sender: No OFD packet to send [03:53:37]OFD Sender: No OFD packet to send [03:53:42]OFD Sender: No OFD packet to send [03:53:47]OFD Sender: No OFD packet to send [03:53:52]OFD Sender: No OFD packet to send [03:53:57]OFD Sender: No OFD packet to send [03:54:02]OFD Sender: No OFD packet to send [03:54:07]OFD Sender: No OFD packet to send [03:54:12]OFD Sender: No OFD packet to send [03:54:17]OFD Sender: No OFD packet to send [03:54:22]OFD Sender: No OFD packet to send [03:54:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:38]OFD Sender: No OFD packet to send [03:56:43]OFD Sender: No OFD packet to send [03:56:48]OFD Sender: No OFD packet to send [03:56:53]OFD Sender: No OFD packet to send [03:56:58]OFD Sender: No OFD packet to send [03:57:03]OFD Sender: No OFD packet to send [03:57:08]OFD Sender: No OFD packet to send [03:57:13]OFD Sender: No OFD packet to send [03:57:18]OFD Sender: No OFD packet to send [03:57:23]OFD Sender: No OFD packet to send [03:57:28]OFD Sender: No OFD packet to send [03:57:33]OFD Sender: No OFD packet to send [03:57:38]OFD Sender: No OFD packet to send [03:57:43]OFD Sender: No OFD packet to send [03:57:48]OFD Sender: No OFD packet to send [03:57:53]OFD Sender: No OFD packet to send [03:57:58]OFD Sender: No OFD packet to send [03:58:03]OFD Sender: No OFD packet to send [03:58:08]OFD Sender: No OFD packet to send [03:58:13]OFD Sender: No OFD packet to send [03:58:18]OFD Sender: No OFD packet to send [03:58:23]OFD Sender: No OFD packet to send [03:58:28]OFD Sender: No OFD packet to send [03:58:33]OFD Sender: No OFD packet to send [03:58:38]OFD Sender: No OFD packet to send [03:58:43]OFD Sender: No OFD packet to send [03:58:48]OFD Sender: No OFD packet to send [03:58:53]OFD Sender: No OFD packet to send [03:58:58]OFD Sender: No OFD packet to send [03:59:03]OFD Sender: No OFD packet to send [03:59:08]OFD Sender: No OFD packet to send [03:59:13]OFD Sender: No OFD packet to send [03:59:18]OFD Sender: No OFD packet to send [03:59:23]OFD Sender: No OFD packet to send [03:59:28]OFD Sender: No OFD packet to send [03:59:33]OFD Sender: No OFD packet to send [03:59:38]OFD Sender: No OFD packet to send [03:59:43]OFD Sender: No OFD packet to send [03:59:48]OFD Sender: No OFD packet to send [03:59:53]OFD Sender: No OFD packet to send [03:59:58]OFD Sender: No OFD packet to send [04:00:03]OFD Sender: No OFD packet to send [04:00:08]OFD Sender: No OFD packet to send [04:00:13]OFD Sender: No OFD packet to send [04:00:18]OFD Sender: No OFD packet to send [04:00:23]OFD Sender: No OFD packet to send [04:00:28]OFD Sender: No OFD packet to send [04:00:33]OFD Sender: No OFD packet to send [04:00:38]OFD Sender: No OFD packet to send [04:00:43]OFD Sender: No OFD packet to send [04:00:48]OFD Sender: No OFD packet to send [04:00:53]OFD Sender: No OFD packet to send [04:00:58]OFD Sender: No OFD packet to send [04:01:03]OFD Sender: No OFD packet to send [04:01:08]OFD Sender: No OFD packet to send [04:01:13]OFD Sender: No OFD packet to send [04:01:18]OFD Sender: No OFD packet to send [04:01:23]OFD Sender: No OFD packet to send [04:01:28]OFD Sender: No OFD packet to send [04:01:33]OFD Sender: No OFD packet to send [04:01:38]OFD Sender: No OFD packet to send [04:01:43]OFD Sender: No OFD packet to send [04:01:48]OFD Sender: No OFD packet to send [04:01:53]OFD Sender: No OFD packet to send [04:01:58]OFD Sender: No OFD packet to send [04:02:03]OFD Sender: No OFD packet to send [04:02:08]OFD Sender: No OFD packet to send [04:02:13]OFD Sender: No OFD packet to send [04:02:18]OFD Sender: No OFD packet to send [04:02:23]OFD Sender: No OFD packet to send [04:02:28]OFD Sender: No OFD packet to send [04:02:33]OFD Sender: No OFD packet to send [04:02:38]OFD Sender: No OFD packet to send [04:02:43]OFD Sender: No OFD packet to send [04:02:48]OFD Sender: No OFD packet to send [04:02:53]OFD Sender: No OFD packet to send [04:02:58]OFD Sender: No OFD packet to send [04:03:03]OFD Sender: No OFD packet to send [04:03:08]OFD Sender: No OFD packet to send [04:03:13]OFD Sender: No OFD packet to send [04:03:18]OFD Sender: No OFD packet to send [04:03:23]OFD Sender: No OFD packet to send [04:03:28]OFD Sender: No OFD packet to send [04:03:33]OFD Sender: No OFD packet to send [04:03:38]OFD Sender: No OFD packet to send [04:03:43]OFD Sender: No OFD packet to send [04:03:48]OFD Sender: No OFD packet to send [04:03:53]OFD Sender: No OFD packet to send [04:03:58]OFD Sender: No OFD packet to send [04:04:03]OFD Sender: No OFD packet to send [04:04:08]OFD Sender: No OFD packet to send [04:04:13]OFD Sender: No OFD packet to send [04:04:18]OFD Sender: No OFD packet to send [04:04:23]OFD Sender: No OFD packet to send [04:04:28]OFD Sender: No OFD packet to send [04:04:33]OFD Sender: No OFD packet to send [04:04:38]OFD Sender: No OFD packet to send [04:04:43]OFD Sender: No OFD packet to send [04:04:48]OFD Sender: No OFD packet to send [04:04:53]OFD Sender: No OFD packet to send [04:04:58]OFD Sender: No OFD packet to send [04:05:03]OFD Sender: No OFD packet to send [04:05:08]OFD Sender: No OFD packet to send [04:05:13]OFD Sender: No OFD packet to send [04:05:18]OFD Sender: No OFD packet to send [04:05:23]OFD Sender: No OFD packet to send [04:05:28]OFD Sender: No OFD packet to send [04:05:33]OFD Sender: No OFD packet to send [04:05:38]OFD Sender: No OFD packet to send [04:05:43]OFD Sender: No OFD packet to send [04:05:48]OFD Sender: No OFD packet to send [04:05:53]OFD Sender: No OFD packet to send [04:05:58]OFD Sender: No OFD packet to send [04:06:03]OFD Sender: No OFD packet to send [04:06:08]OFD Sender: No OFD packet to send [04:06:13]OFD Sender: No OFD packet to send [04:06:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:38]OFD Sender: No OFD packet to send [04:11:43]OFD Sender: No OFD packet to send [04:11:48]OFD Sender: No OFD packet to send [04:11:53]OFD Sender: No OFD packet to send [04:11:58]OFD Sender: No OFD packet to send [04:12:03]OFD Sender: No OFD packet to send [04:12:08]OFD Sender: No OFD packet to send [04:12:13]OFD Sender: No OFD packet to send [04:12:18]OFD Sender: No OFD packet to send [04:12:23]OFD Sender: No OFD packet to send [04:12:28]OFD Sender: No OFD packet to send [04:12:33]OFD Sender: No OFD packet to send [04:12:38]OFD Sender: No OFD packet to send [04:12:43]OFD Sender: No OFD packet to send [04:12:48]OFD Sender: No OFD packet to send [04:12:53]OFD Sender: No OFD packet to send [04:12:58]OFD Sender: No OFD packet to send [04:13:03]OFD Sender: No OFD packet to send [04:13:08]OFD Sender: No OFD packet to send [04:13:13]OFD Sender: No OFD packet to send [04:13:18]OFD Sender: No OFD packet to send [04:13:23]OFD Sender: No OFD packet to send [04:13:28]OFD Sender: No OFD packet to send [04:13:33]OFD Sender: No OFD packet to send [04:13:38]OFD Sender: No OFD packet to send [04:13:43]OFD Sender: No OFD packet to send [04:13:48]OFD Sender: No OFD packet to send [04:13:53]OFD Sender: No OFD packet to send [04:13:58]OFD Sender: No OFD packet to send [04:14:03]OFD Sender: No OFD packet to send [04:14:08]OFD Sender: No OFD packet to send [04:14:13]OFD Sender: No OFD packet to send [04:14:18]OFD Sender: No OFD packet to send [04:14:23]OFD Sender: No OFD packet to send [04:14:28]OFD Sender: No OFD packet to send [04:14:33]OFD Sender: No OFD packet to send [04:14:38]OFD Sender: No OFD packet to send [04:14:43]OFD Sender: No OFD packet to send [04:14:48]OFD Sender: No OFD packet to send [04:14:53]OFD Sender: No OFD packet to send [04:14:58]OFD Sender: No OFD packet to send [04:15:03]OFD Sender: No OFD packet to send [04:15:08]OFD Sender: No OFD packet to send [04:15:13]OFD Sender: No OFD packet to send [04:15:18]OFD Sender: No OFD packet to send [04:15:23]OFD Sender: No OFD packet to send [04:15:28]OFD Sender: No OFD packet to send [04:15:33]OFD Sender: No OFD packet to send [04:15:38]OFD Sender: No OFD packet to send [04:15:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]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:44]accept exits with 7 [04:20:44]New connection [04:20:44]New thread 3066813796 created [04:20:44]Thread 3066670436 joined [04:20:44]Waiting for new connection... [04:20:44] Sock 7.Parse request [04:20:44]Sock 7.Check first char [04:20:44]Sock 7.First char is OK [04:20:44]request: POST /json_proto HTTP/1.0 [04:20:44]Method: POST [04:20:44]URL: /json_proto [04:20:44]Method is POST - this is cgi request [04:20:44]url: /json_proto [04:20:44]query_string will be loaded in cgi processing [04:20:44]execute_cgi json_proto POST (null) [04:20:44]execute_cgi path=json_proto method=POST [04:20:44]POST find Content-Length [04:20:44]Host: 172.17.56.67:8080 [04:20:44]Content-Length: 677 [04:20:44]Content-Type: application/json [04:20:44] [04:20:44]POST finish read [04:20:44]Found Content-Length = 677 [04:20:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:20:44]execute_script... [04: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)216382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:20:44]POST & json_proto [04:20:44]process_json_proto [04:20:44]json parsed OK: [04:20:44]protocol is kg_v1.0 [04:20:44]action value=close_receipt [04:20:44]process_action close_receipt [04:20:44]cmd_close_receipt [04:20:44]MH_GetDate [04:20:44]Write to MH i2c: F0 00 00 C8 8B 42 [04:20:44]Write i2c OK [04:20:44]MH_I2C_Read... [04:20:44]Read from MH i2c: F0 [04:20:44]MH_I2C_Read... [04:20:44]Read from MH i2c: F0 09 00 [04:20:44]MH_I2C_Read... [04:20:44]Read from MH i2c: F0 09 00 C8 8B 00 B2 CA B9 65 26 5D 9E 65 6B [04:20:44]GetLastDocTimeStamp 1706660486 [04:20:44]current date 1706674866 [04:20:44]FM_GetShiftState [04:20:44]SAM_PROTO_GetShiftState [04:20:44]wFMCommunicate request_size=4 [04:20:44]MH_SAM_APDU [04:20:44]CAPDU: 80 13 01 00 [04:20:44]Write to MH i2c: E2 08 00 C9 8B 80 13 01 00 00 00 00 00 D1 [04:20:44]Write i2c OK [04:20:44]MH_I2C_Read... [04:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:20:44]Read from MH i2c: E2 [04:20:44]MH_I2C_Read... [04:20:44]Read from MH i2c: E2 0E 00 [04:20:44]MH_I2C_Read... [04:20:44]Read from MH i2c: E2 0E 00 C9 8B 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 27 [04:20:44]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [04:20:44]wFMCommunicate OK [04:20:44]SAM_PROTO_GetShiftState done [04:20:44]FM_GetShiftState done [04:20:44]opened in 1706659486 [04:20:44]opened+sec_in_day 1706745886 [04:20:44]quantity*price = 50049 [04:20:44]sum+1 = 50050 [04:20:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 4 31.01.2024 04:21 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49279 ФПД: 254316089460712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T042106&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49279&fm=254316089460712&tin=02508201610067®Number=0000000000092723&sum=50000 [04:20:45]StoreToDocumentArchive [04:20:45]shift 247 fd 49279 [04:20:45]save to /storage/0247/doc_00049279 [04:20:45]save last doc name /storage/0247/doc_00049279 to /storage/kkm_last_doc_name [04:20:45]save OK [04:20:45]Clear old archive folders... [04:20:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:20:45]tlvbuf is 011E9C50 [04:20:45]SAM_PROTO_ClearQueue [04:20:45]wFMCommunicate request_size=4 [04:20:45]MH_SAM_APDU [04:20:45]CAPDU: 80 09 00 00 [04:20:45]Write to MH i2c: E2 08 00 D6 8B 80 09 00 00 00 00 00 00 D3 [04:20:45]Write i2c OK [04:20:45]MH_I2C_Read... [04:20:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:20:45]Read from MH i2c: E2 [04:20:45]MH_I2C_Read... [04:20:45]Read from MH i2c: E2 03 00 [04:20:45]MH_I2C_Read... [04:20:45]Read from MH i2c: E2 03 00 D6 8B 00 90 00 D5 [04:20:45]RAPDU: 90 00 [04:20:45]wFMCommunicate OK [04:20:45]SAM_PROTO_ClearQueue done [04:20:45]KKMCreateOFDPacket [04:20:45]OFDProtocolAddRootSTLVToBuf [04:20:45]FM_MakeSignedData [04:20:45]FM_MakeSignedData [04:20:45]SAM_PROTO_SignData [04:20:45]wFMCommunicate request_size=4 [04:20:45]MH_SAM_APDU [04:20:45]CAPDU: 80 0D 01 02 [04:20:45]Write to MH i2c: E2 08 00 D7 8B 80 0D 01 02 00 00 00 00 DB [04:20:45]Write i2c OK [04:20:45]MH_I2C_Read... [04:20:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:20:45]Read from MH i2c: E2 [04:20:45]MH_I2C_Read... [04:20:45]Read from MH i2c: E2 03 00 [04:20:45]MH_I2C_Read... [04:20:45]Read from MH i2c: E2 03 00 D7 8B 00 90 00 D6 [04:20:45]RAPDU: 90 00 [04:20:45]wFMCommunicate OK [04:20:45]wFMCommunicate request_size=255 [04:20:45]MH_SAM_APDU [04: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 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 B2 CA B9 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7F C0 00 00 35 04 06 00 E7 [04:20:45]Write to MH i2c: E2 02 01 D8 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 B2 CA B9 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7F C0 00 00 35 04 06 00 E7 00 00 C6 [04:20:45]Write i2c OK [04:20:45]MH_I2C_Read... [04:20:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:20:45]Read from MH i2c: E2 [04:20:45]MH_I2C_Read... [04:20:45]Read from MH i2c: E2 03 00 [04:20:45]MH_I2C_Read... [04:20:45]Read from MH i2c: E2 03 00 D8 8B 00 90 00 D7 [04:20:45]RAPDU: 90 00 [04:20:45]wFMCommunicate OK [04:20:45]wFMCommunicate request_size=10 [04:20:45]MH_SAM_APDU [04:20:45]CAPDU: 80 0D 02 02 05 4C 94 2C 47 E8 [04:20:45]Write to MH i2c: E2 0D 00 D9 8B 80 0D 02 02 05 00 4C 94 2C 47 E8 00 00 23 [04:20:45]Write i2c OK [04:20:45]MH_I2C_Read... [04:20:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:20:45]Read from MH i2c: E2 [04:20:45]MH_I2C_Read... [04:20:45]Read from MH i2c: E2 03 00 [04:20:45]MH_I2C_Read... [04:20:45]Read from MH i2c: E2 03 00 D9 8B 00 90 00 D8 [04:20:45]RAPDU: 90 00 [04:20:45]wFMCommunicate OK [04:20:45]wFMCommunicate request_size=4 [04:20:45]MH_SAM_APDU [04:20:45]CAPDU: 80 0D 03 02 [04:20:45]Write to MH i2c: E2 08 00 DA 8B 80 0D 03 02 00 00 00 00 E0 [04:20:45]Write i2c OK [04:20:45]MH_I2C_Read... [04:20:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:20:45]Read from MH i2c: E2 [04:20:45]MH_I2C_Read... [04:20:45]Read from MH i2c: E2 0B 00 [04:20:45]MH_I2C_Read... [04:20:45]Read from MH i2c: E2 0B 00 DA 8B 00 8C B2 0A 83 7E 21 02 A3 90 00 F0 [04:20:45]RAPDU: 8C B2 0A 83 7E 21 02 A3 90 00 [04:20:45]wFMCommunicate OK [04:20:45]SAM_PROTO_SignData done [04:20:45]FM_MakeSignedData done [04:20:45]CreateOFDProtocolMessage [04:20:45]wFMCommunicate request_size=4 [04:20:45]MH_SAM_APDU [04:20:45]CAPDU: 80 11 00 00 [04:20:45]Write to MH i2c: E2 08 00 DB 8B 80 11 00 00 00 00 00 00 E0 [04:20:45]Write i2c OK [04:20:45]MH_I2C_Read... [04:20:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:20:45]Read from MH i2c: E2 [04:20:45]MH_I2C_Read... [04:20:45]Read from MH i2c: E2 17 00 [04:20:45]MH_I2C_Read... [04:20:45]Read from MH i2c: E2 17 00 DB 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2D [04:20:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [04:20:45]wFMCommunicate OK [04:20:45]CreateOFDProtocolMessage done [04:20:45]OFDSenderStorePacket 49279 [04:20:45]StoreOFDPacket docnum=49279 [04:20:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E6 A7 07 01 FE 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 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 B2 CA B9 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7F C0 00 00 35 04 06 00 E7 4C 94 2C 47 E8 8C B2 0A 83 7E 21 02 A3 [04:20:45]CheckFolder [04:20:45]dirname=/storage/ofd_packets [04:20:45]CheckFolder done [04:20:45]ProducePacketName [04:20:45]name=ofd_packets/00049279 [04:20:45]NVStorageSaveData ofd_packets/00049279 [04:20:45]File name is /storage/ofd_packets/00049279 [04:20:45]Write 301 bytes [04:20:45]NVStorageSaveData done [04:20:45]OFDSenderStorePacket done [04:20:45]KKMCreateOFDPacket done [04:20:45]NVStorageSaveData kkm_last_timestamp [04:20:45]File name is /storage/kkm_last_timestamp [04:20:45]Write 4 bytes [04:20:45]NVStorageSaveData done [04:20:45]ExternCall_PrintAddStr [04:20:45]wPrintStart [04:20:45]Write to MH i2c: 01 00 00 DC 8B 67 [04:20:45]Write i2c OK [04:20:45]MH_I2C_Read... [04:20:45]Read from MH i2c: 01 [04:20:45]MH_I2C_Read... [04:20:45]Read from MH i2c: 01 07 00 [04:20:45]MH_I2C_Read... [04:20:45]Read from MH i2c: 01 07 00 DC 8B 00 00 00 00 00 FF 0F 7C [04:20:45]RasterBufferAndPrint [04:20:45]line Счет N : (1)216382 [04:20:45]line ИНН: 02508201610067 [04:20:45]line Контрольно-Кассовый Чек [04:20:45]line ПРОДАЖА [04:20:45]line ТРК (МРК, ГНК) : 22 [04:20:45]line Товар: 2710124130 [04:20:45]line Аи-92-К-5 [04:20:45]line 8.300 * 60.30 [04:20:45]line = 500.49 [04:20:45]line НДС 12% НСП 1% [04:20:45]line > о реализуемом товаре [04:20:45]line ОКРУГЛЕНИЕ: -0.49 [04:20:45]line ИТОГО: 500.00 [04:20:45]line Внесено: 500.00 [04:20:45]line СДАЧА: 0.00 [04:20:45]line НСП 1% : 4.43 [04:20:45]line НДС 12% : 53.15 [04:20:45]line Наличными: 500.00 [04:20:45]line Безнал.: 0.00 [04:20:45]line Место: АЗС № 102 "Партнер Нефть" [04:20:45]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [04:20:45]line СНО: Общий режим [04:20:45]line Чек 4 31.01.2024 04:21 [04:20:45]line Смена: 247 ФФД: 1.0 [04:20:45]line ЗНМ: 0300000040 [04:20:45]line РНМ: 0000000000092723 [04:20:45]line Версия ККМ: 001 [04:20:45]line ФМ: 0000000000875060 [04:20:45]line ФД: 49279 [04:20:45]line ФПД: 254316089460712 [04:20:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T042106&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49279&fm=254316089460712&tin=02508201610067®Number=0000000000092723&sum=50000 [04:20:46]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:20:46]ProducePacketName [04:20:46]name=ofd_packets/00049279 [04:20:46]OFD Sender: To server: pG, [04:20:46]CommunicateWithHost lk.salyk.kg:30040 [04:20:46]ConnectInit lk.salyk.kg [04:20:46]written 0, free lines is 4095 [04:20:46]ConnectInit Can't take IP for lk.salyk.kg [04:20:46]CommunicateWithHost connect error [04:20:46]CommunicateWithHost err = -1 [04:20:46]OFD Sender: Server communicate error [04:20:46]Write to MH i2c: 01 00 00 07 8C 93 [04:20:46]Write i2c OK [04:20:46]MH_I2C_Read... [04:20:46]Read from MH i2c: 01 [04:20:46]MH_I2C_Read... [04:20:46]Read from MH i2c: 01 07 00 [04:20:46]MH_I2C_Read... [04:20:46]Read from MH i2c: 01 07 00 07 8C 00 00 00 00 00 EC 0C 92 [04:20:46]RasterBufferAndPrint [04:20:46]line [04:20:46]line [04:20:46]line [04:20:46]line [04:20:46]line [04:20:46]written 0, free lines is 3314 [04:20:46]MH_Cut [04:20:46]Write to MH i2c: D1 01 00 0E 8C 01 6C [04:20:46]Write i2c OK [04:20:46]MH_I2C_Read... [04:20:46]Read from MH i2c: D1 [04:20:46]MH_I2C_Read... [04:20:46]Read from MH i2c: D1 01 00 [04:20:46]MH_I2C_Read... [04:20:46]Read from MH i2c: D1 01 00 0E 8C 00 6B [04:20:46]Write to MH i2c: 01 00 00 0F 8C 9B [04:20:46]Write i2c OK [04:20:46]MH_I2C_Read... [04:20:47]*** Cut start [04:20:47]*** Partial cut [04:20:47]*** CUTSNS_PIN = 1 [04:20:47]*** CUTSNS_PIN = 0 [04:20:47]*** Brake cut motor [04:20:47]Read from MH i2c: 01 [04:20:47]MH_I2C_Read... [04:20:47]*** Stop cut motor [04:20:47]*** Cut end [04:20:47]Read from MH i2c: 01 07 00 [04:20:47]MH_I2C_Read... [04:20:47]Read from MH i2c: 01 07 00 0F 8C 00 00 00 00 00 FF 0F B0 [04:20:47]process_action close_receipt done [04:20:47]requested_data is exist [04:20:47]produce_requested_data [04:20:47]requested_item fm.sn is exist - process it [04:20:47]wFMCommunicate request_size=4 [04:20:47]MH_SAM_APDU [04:20:47]CAPDU: 80 11 00 00 [04:20:47]Write to MH i2c: E2 08 00 10 8C 80 11 00 00 00 00 00 00 16 [04:20:47]Write i2c OK [04:20:47]MH_I2C_Read... [04:20:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:20:47]Read from MH i2c: E2 [04:20:47]MH_I2C_Read... [04:20:47]Read from MH i2c: E2 17 00 [04:20:47]MH_I2C_Read... [04:20:47]Read from MH i2c: E2 17 00 10 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 63 [04:20:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [04:20:47]wFMCommunicate OK [04:20:47]requested_item fd.num is exist - process it [04:20:47]SAM_PROTO_GetFieldsCounters [04:20:47]wFMCommunicate request_size=4 [04:20:47]MH_SAM_APDU [04:20:47]CAPDU: 80 13 00 00 [04:20:47]Write to MH i2c: E2 08 00 11 8C 80 13 00 00 00 00 00 00 19 [04:20:47]Write i2c OK [04:20:47]MH_I2C_Read... [04:20:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:20:48]Read from MH i2c: E2 [04:20:48]MH_I2C_Read... [04:20:48]Read from MH i2c: E2 62 00 [04:20:48]MH_I2C_Read... [04:20:48]Read from MH i2c: E2 62 00 11 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7F C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [04:20:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 7F C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:20:48]wFMCommunicate OK [04:20:48]SAM_PROTO_GetFieldsCounters done [04:20:48]requested_item shift.num is exist - process it [04:20:48]requested_item shift.opened is exist - process it [04:20:48]req_shift_opened [04:20:48]FM_GetShiftState [04:20:48]SAM_PROTO_GetShiftState [04:20:48]wFMCommunicate request_size=4 [04:20:48]MH_SAM_APDU [04:20:48]CAPDU: 80 13 01 00 [04:20:48]Write to MH i2c: E2 08 00 12 8C 80 13 01 00 00 00 00 00 1B [04:20:48]Write i2c OK [04:20:48]MH_I2C_Read... [04:20:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:20:48]Read from MH i2c: E2 [04:20:48]MH_I2C_Read... [04:20:48]Read from MH i2c: E2 0E 00 [04:20:48]MH_I2C_Read... [04:20:48]Read from MH i2c: E2 0E 00 12 8C 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 71 [04:20:48]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [04:20:48]wFMCommunicate OK [04:20:48]SAM_PROTO_GetShiftState done [04:20:48]FM_GetShiftState done [04:20:48]req_shift_opened done [04:20:48]requested_item shift.open_date is exist - process it [04:20:48]req_shift_open_date [04:20:48]req_shift_open_date done [04:20:48]produce_requested_data done [04:20:48]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49279,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [04:20:48]process_action_free close_receipt [04:20:48]json_value_free [04:20:48]json_value_free done [04:20:48]process_json_proto returns [04:20:48]Send response to host [04:20:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49279,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [04:20:48]free response buf [04:20:48]execute_script done [04:20:48]execute_script returns [04:20:48]free content buf [04:20:48]Sock 7.Close socket [04:20:48]Sock 7.Thread stoped [04:20:51]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:20:51]ProducePacketName [04:20:51]name=ofd_packets/00049279 [04:20:51]OFD Sender: To server: pG, [04:20:51]CommunicateWithHost lk.salyk.kg:30040 [04:20:51]ConnectInit lk.salyk.kg [04:20:51]ConnectInit Can't take IP for lk.salyk.kg [04:20:51]CommunicateWithHost connect error [04:20:51]CommunicateWithHost err = -1 [04:20:51]OFD Sender: Server communicate error [04:20:56]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:20:56]ProducePacketName [04:20:56]name=ofd_packets/00049279 [04:20:56]OFD Sender: To server: pG, [04:20:56]CommunicateWithHost lk.salyk.kg:30040 [04:20:56]ConnectInit lk.salyk.kg [04:20:56]ConnectInit Can't take IP for lk.salyk.kg [04:20:56]CommunicateWithHost connect error [04:20:56]CommunicateWithHost err = -1 [04:20:56]OFD Sender: Server communicate error [04:21:01]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:21:01]ProducePacketName [04:21:01]name=ofd_packets/00049279 [04:21:01]OFD Sender: To server: pG, [04:21:01]CommunicateWithHost lk.salyk.kg:30040 [04:21:01]ConnectInit lk.salyk.kg [04:21:01]ConnectInit Can't take IP for lk.salyk.kg [04:21:01]CommunicateWithHost connect error [04:21:01]CommunicateWithHost err = -1 [04:21:01]OFD Sender: Server communicate error [04:21:06]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:21:06]ProducePacketName [04:21:06]name=ofd_packets/00049279 [04:21:06]OFD Sender: To server: pG, [04:21:06]CommunicateWithHost lk.salyk.kg:30040 [04:21:06]ConnectInit lk.salyk.kg [04:21:06]ConnectInit Can't take IP for lk.salyk.kg [04:21:06]CommunicateWithHost connect error [04:21:06]CommunicateWithHost err = -1 [04:21:06]OFD Sender: Server communicate error [04:21:11]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:21:11]ProducePacketName [04:21:11]name=ofd_packets/00049279 [04:21:11]OFD Sender: To server: pG, [04:21:11]CommunicateWithHost lk.salyk.kg:30040 [04:21:11]ConnectInit lk.salyk.kg [04:21:11]ConnectInit Can't take IP for lk.salyk.kg [04:21:11]CommunicateWithHost connect error [04:21:11]CommunicateWithHost err = -1 [04:21:11]OFD Sender: Server communicate error [04:21:16]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:21:16]ProducePacketName [04:21:16]name=ofd_packets/00049279 [04:21:16]OFD Sender: To server: pG, [04:21:16]CommunicateWithHost lk.salyk.kg:30040 [04:21:16]ConnectInit lk.salyk.kg [04:21:16]ConnectInit Can't take IP for lk.salyk.kg [04:21:16]CommunicateWithHost connect error [04:21:16]CommunicateWithHost err = -1 [04:21:16]OFD Sender: Server communicate error [04:21:21]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:21:21]ProducePacketName [04:21:21]name=ofd_packets/00049279 [04:21:21]OFD Sender: To server: pG, [04:21:21]CommunicateWithHost lk.salyk.kg:30040 [04:21:21]ConnectInit lk.salyk.kg [04:21:21]ConnectInit Can't take IP for lk.salyk.kg [04:21:21]CommunicateWithHost connect error [04:21:21]CommunicateWithHost err = -1 [04:21:21]OFD Sender: Server communicate error [04:21:26]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:21:26]ProducePacketName [04:21:26]name=ofd_packets/00049279 [04:21:26]OFD Sender: To server: pG, [04:21:26]CommunicateWithHost lk.salyk.kg:30040 [04:21:26]ConnectInit lk.salyk.kg [04:21:26]ConnectInit Can't take IP for lk.salyk.kg [04:21:26]CommunicateWithHost connect error [04:21:26]CommunicateWithHost err = -1 [04:21:26]OFD Sender: Server communicate error [04:21:31]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:21:31]ProducePacketName [04:21:31]name=ofd_packets/00049279 [04:21:31]OFD Sender: To server: pG, [04:21:31]CommunicateWithHost lk.salyk.kg:30040 [04:21:31]ConnectInit lk.salyk.kg [04:21:31]ConnectInit Can't take IP for lk.salyk.kg [04:21:31]CommunicateWithHost connect error [04:21:31]CommunicateWithHost err = -1 [04:21:31]OFD Sender: Server communicate error [04:21:36]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:21:36]ProducePacketName [04:21:36]name=ofd_packets/00049279 [04:21:36]OFD Sender: To server: pG, [04:21:36]CommunicateWithHost lk.salyk.kg:30040 [04:21:36]ConnectInit lk.salyk.kg [04:21:37]ConnectInit Can't take IP for lk.salyk.kg [04:21:37]CommunicateWithHost connect error [04:21:37]CommunicateWithHost err = -1 [04:21:37]OFD Sender: Server communicate error [04:21:42]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:21:42]ProducePacketName [04:21:42]name=ofd_packets/00049279 [04:21:42]OFD Sender: To server: pG, [04:21:42]CommunicateWithHost lk.salyk.kg:30040 [04:21:42]ConnectInit lk.salyk.kg [04:21:42]ConnectInit Can't take IP for lk.salyk.kg [04:21:42]CommunicateWithHost connect error [04:21:42]CommunicateWithHost err = -1 [04:21:42]OFD Sender: Server communicate error [04:21:47]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:21:47]ProducePacketName [04:21:47]name=ofd_packets/00049279 [04:21:47]OFD Sender: To server: pG, [04:21:47]CommunicateWithHost lk.salyk.kg:30040 [04:21:47]ConnectInit lk.salyk.kg [04:21:47]ConnectInit Can't take IP for lk.salyk.kg [04:21:47]CommunicateWithHost connect error [04:21:47]CommunicateWithHost err = -1 [04:21:47]OFD Sender: Server communicate error [04:21:52]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:21:52]ProducePacketName [04:21:52]name=ofd_packets/00049279 [04:21:52]OFD Sender: To server: pG, [04:21:52]CommunicateWithHost lk.salyk.kg:30040 [04:21:52]ConnectInit lk.salyk.kg [04:21:52]ConnectInit Can't take IP for lk.salyk.kg [04:21:52]CommunicateWithHost connect error [04:21:52]CommunicateWithHost err = -1 [04:21:52]OFD Sender: Server communicate error [04:21:57]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:21:57]ProducePacketName [04:21:57]name=ofd_packets/00049279 [04:21:57]OFD Sender: To server: pG, [04:21:57]CommunicateWithHost lk.salyk.kg:30040 [04:21:57]ConnectInit lk.salyk.kg [04:21:57]ConnectInit Can't take IP for lk.salyk.kg [04:21:57]CommunicateWithHost connect error [04:21:57]CommunicateWithHost err = -1 [04:21:57]OFD Sender: Server communicate error [04:22:02]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:22:02]ProducePacketName [04:22:02]name=ofd_packets/00049279 [04:22:02]OFD Sender: To server: pG, [04:22:02]CommunicateWithHost lk.salyk.kg:30040 [04:22:02]ConnectInit lk.salyk.kg [04:22:02]ConnectInit Can't take IP for lk.salyk.kg [04:22:02]CommunicateWithHost connect error [04:22:02]CommunicateWithHost err = -1 [04:22:02]OFD Sender: Server communicate error [04:22:07]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:22:07]ProducePacketName [04:22:07]name=ofd_packets/00049279 [04:22:07]OFD Sender: To server: pG, [04:22:07]CommunicateWithHost lk.salyk.kg:30040 [04:22:07]ConnectInit lk.salyk.kg [04:22:07]ConnectInit Can't take IP for lk.salyk.kg [04:22:07]CommunicateWithHost connect error [04:22:07]CommunicateWithHost err = -1 [04:22:07]OFD Sender: Server communicate error [04:22:12]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:22:12]ProducePacketName [04:22:12]name=ofd_packets/00049279 [04:22:12]OFD Sender: To server: pG, [04:22:12]CommunicateWithHost lk.salyk.kg:30040 [04:22:12]ConnectInit lk.salyk.kg [04:22:12]ConnectInit Can't take IP for lk.salyk.kg [04:22:12]CommunicateWithHost connect error [04:22:12]CommunicateWithHost err = -1 [04:22:12]OFD Sender: Server communicate error [04:22:17]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:22:17]ProducePacketName [04:22:17]name=ofd_packets/00049279 [04:22:17]OFD Sender: To server: pG, [04:22:17]CommunicateWithHost lk.salyk.kg:30040 [04:22:17]ConnectInit lk.salyk.kg [04:22:17]ConnectInit Can't take IP for lk.salyk.kg [04:22:17]CommunicateWithHost connect error [04:22:17]CommunicateWithHost err = -1 [04:22:17]OFD Sender: Server communicate error [04:22:22]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:22:22]ProducePacketName [04:22:22]name=ofd_packets/00049279 [04:22:22]OFD Sender: To server: pG, [04:22:22]CommunicateWithHost lk.salyk.kg:30040 [04:22:22]ConnectInit lk.salyk.kg [04:22:22]ConnectInit Can't take IP for lk.salyk.kg [04:22:22]CommunicateWithHost connect error [04:22:22]CommunicateWithHost err = -1 [04:22:22]OFD Sender: Server communicate error [04:22:27]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:22:27]ProducePacketName [04:22:27]name=ofd_packets/00049279 [04:22:27]OFD Sender: To server: pG, [04:22:27]CommunicateWithHost lk.salyk.kg:30040 [04:22:27]ConnectInit lk.salyk.kg [04:22:27]ConnectInit Can't take IP for lk.salyk.kg [04:22:27]CommunicateWithHost connect error [04:22:27]CommunicateWithHost err = -1 [04:22:27]OFD Sender: Server communicate error [04:22:32]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:22:32]ProducePacketName [04:22:32]name=ofd_packets/00049279 [04:22:32]OFD Sender: To server: pG, [04:22:32]CommunicateWithHost lk.salyk.kg:30040 [04:22:32]ConnectInit lk.salyk.kg [04:22:32]ConnectInit Can't take IP for lk.salyk.kg [04:22:32]CommunicateWithHost connect error [04:22:32]CommunicateWithHost err = -1 [04:22:32]OFD Sender: Server communicate error [04:22:37]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:22:37]ProducePacketName [04:22:37]name=ofd_packets/00049279 [04:22:37]OFD Sender: To server: pG, [04:22:37]CommunicateWithHost lk.salyk.kg:30040 [04:22:37]ConnectInit lk.salyk.kg [04:22:37]ConnectInit Can't take IP for lk.salyk.kg [04:22:37]CommunicateWithHost connect error [04:22:37]CommunicateWithHost err = -1 [04:22:37]OFD Sender: Server communicate error [04:22:42]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:22:42]ProducePacketName [04:22:42]name=ofd_packets/00049279 [04:22:42]OFD Sender: To server: pG, [04:22:42]CommunicateWithHost lk.salyk.kg:30040 [04:22:42]ConnectInit lk.salyk.kg [04:22:42]ConnectInit Can't take IP for lk.salyk.kg [04:22:42]CommunicateWithHost connect error [04:22:42]CommunicateWithHost err = -1 [04:22:42]OFD Sender: Server communicate error [04:22:47]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:22:47]ProducePacketName [04:22:47]name=ofd_packets/00049279 [04:22:47]OFD Sender: To server: pG, [04:22:47]CommunicateWithHost lk.salyk.kg:30040 [04:22:47]ConnectInit lk.salyk.kg [04:22:48]ConnectInit Can't take IP for lk.salyk.kg [04:22:48]CommunicateWithHost connect error [04:22:48]CommunicateWithHost err = -1 [04:22:48]OFD Sender: Server communicate error [04:22:53]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:22:53]ProducePacketName [04:22:53]name=ofd_packets/00049279 [04:22:53]OFD Sender: To server: pG, [04:22:53]CommunicateWithHost lk.salyk.kg:30040 [04:22:53]ConnectInit lk.salyk.kg [04:22:53]ConnectInit Can't take IP for lk.salyk.kg [04:22:53]CommunicateWithHost connect error [04:22:53]CommunicateWithHost err = -1 [04:22:53]OFD Sender: Server communicate error [04:22:58]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:22:58]ProducePacketName [04:22:58]name=ofd_packets/00049279 [04:22:58]OFD Sender: To server: pG, [04:22:58]CommunicateWithHost lk.salyk.kg:30040 [04:22:58]ConnectInit lk.salyk.kg [04:22:58]ConnectInit Can't take IP for lk.salyk.kg [04:22:58]CommunicateWithHost connect error [04:22:58]CommunicateWithHost err = -1 [04:22:58]OFD Sender: Server communicate error [04:23:03]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:23:03]ProducePacketName [04:23:03]name=ofd_packets/00049279 [04:23:03]OFD Sender: To server: pG, [04:23:03]CommunicateWithHost lk.salyk.kg:30040 [04:23:03]ConnectInit lk.salyk.kg [04:23:03]ConnectInit Can't take IP for lk.salyk.kg [04:23:03]CommunicateWithHost connect error [04:23:03]CommunicateWithHost err = -1 [04:23:03]OFD Sender: Server communicate error [04:23:08]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:23:08]ProducePacketName [04:23:08]name=ofd_packets/00049279 [04:23:08]OFD Sender: To server: pG, [04:23:08]CommunicateWithHost lk.salyk.kg:30040 [04:23:08]ConnectInit lk.salyk.kg [04:23:08]ConnectInit Can't take IP for lk.salyk.kg [04:23:08]CommunicateWithHost connect error [04:23:08]CommunicateWithHost err = -1 [04:23:08]OFD Sender: Server communicate error [04:23:13]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:23:13]ProducePacketName [04:23:13]name=ofd_packets/00049279 [04:23:13]OFD Sender: To server: pG, [04:23:13]CommunicateWithHost lk.salyk.kg:30040 [04:23:13]ConnectInit lk.salyk.kg [04:23:13]ConnectInit Can't take IP for lk.salyk.kg [04:23:13]CommunicateWithHost connect error [04:23:13]CommunicateWithHost err = -1 [04:23:13]OFD Sender: Server communicate error [04:23:18]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:23:18]ProducePacketName [04:23:18]name=ofd_packets/00049279 [04:23:18]OFD Sender: To server: pG, [04:23:18]CommunicateWithHost lk.salyk.kg:30040 [04:23:18]ConnectInit lk.salyk.kg [04:23:18]ConnectInit Can't take IP for lk.salyk.kg [04:23:18]CommunicateWithHost connect error [04:23:18]CommunicateWithHost err = -1 [04:23:18]OFD Sender: Server communicate error [04:23:23]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:23:23]ProducePacketName [04:23:23]name=ofd_packets/00049279 [04:23:23]OFD Sender: To server: pG, [04:23:23]CommunicateWithHost lk.salyk.kg:30040 [04:23:23]ConnectInit lk.salyk.kg [04:23:23]ConnectInit Can't take IP for lk.salyk.kg [04:23:23]CommunicateWithHost connect error [04:23:23]CommunicateWithHost err = -1 [04:23:23]OFD Sender: Server communicate error [04:23:28]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:23:28]ProducePacketName [04:23:28]name=ofd_packets/00049279 [04:23:28]OFD Sender: To server: pG, [04:23:28]CommunicateWithHost lk.salyk.kg:30040 [04:23:28]ConnectInit lk.salyk.kg [04:23:28]ConnectInit Can't take IP for lk.salyk.kg [04:23:28]CommunicateWithHost connect error [04:23:28]CommunicateWithHost err = -1 [04:23:28]OFD Sender: Server communicate error [04:23:33]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:23:33]ProducePacketName [04:23:33]name=ofd_packets/00049279 [04:23:33]OFD Sender: To server: pG, [04:23:33]CommunicateWithHost lk.salyk.kg:30040 [04:23:33]ConnectInit lk.salyk.kg [04:23:33]ConnectInit Can't take IP for lk.salyk.kg [04:23:33]CommunicateWithHost connect error [04:23:33]CommunicateWithHost err = -1 [04:23:33]OFD Sender: Server communicate error [04:23:38]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:23:38]ProducePacketName [04:23:38]name=ofd_packets/00049279 [04:23:38]OFD Sender: To server: pG, [04:23:38]CommunicateWithHost lk.salyk.kg:30040 [04:23:38]ConnectInit lk.salyk.kg [04:23:38]ConnectInit Can't take IP for lk.salyk.kg [04:23:38]CommunicateWithHost connect error [04:23:38]CommunicateWithHost err = -1 [04:23:38]OFD Sender: Server communicate error [04:23:43]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:23:43]ProducePacketName [04:23:43]name=ofd_packets/00049279 [04:23:43]OFD Sender: To server: pG, [04:23:43]CommunicateWithHost lk.salyk.kg:30040 [04:23:43]ConnectInit lk.salyk.kg [04:23:43]ConnectInit Can't take IP for lk.salyk.kg [04:23:43]CommunicateWithHost connect error [04:23:43]CommunicateWithHost err = -1 [04:23:43]OFD Sender: Server communicate error [04:23:48]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:23:48]ProducePacketName [04:23:48]name=ofd_packets/00049279 [04:23:48]OFD Sender: To server: pG, [04:23:48]CommunicateWithHost lk.salyk.kg:30040 [04:23:48]ConnectInit lk.salyk.kg [04:23:48]ConnectInit Can't take IP for lk.salyk.kg [04:23:48]CommunicateWithHost connect error [04:23:48]CommunicateWithHost err = -1 [04:23:48]OFD Sender: Server communicate error [04:23:53]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:23:53]ProducePacketName [04:23:53]name=ofd_packets/00049279 [04:23:53]OFD Sender: To server: pG, [04:23:53]CommunicateWithHost lk.salyk.kg:30040 [04:23:53]ConnectInit lk.salyk.kg [04:23:53]ConnectInit Can't take IP for lk.salyk.kg [04:23:53]CommunicateWithHost connect error [04:23:53]CommunicateWithHost err = -1 [04:23:53]OFD Sender: Server communicate error [04:23:58]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:23:58]ProducePacketName [04:23:58]name=ofd_packets/00049279 [04:23:58]OFD Sender: To server: pG, [04:23:58]CommunicateWithHost lk.salyk.kg:30040 [04:23:58]ConnectInit lk.salyk.kg [04:23:59]ConnectInit Can't take IP for lk.salyk.kg [04:23:59]CommunicateWithHost connect error [04:23:59]CommunicateWithHost err = -1 [04:23:59]OFD Sender: Server communicate error [04:24:04]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:24:04]ProducePacketName [04:24:04]name=ofd_packets/00049279 [04:24:04]OFD Sender: To server: pG, [04:24:04]CommunicateWithHost lk.salyk.kg:30040 [04:24:04]ConnectInit lk.salyk.kg [04:24:04]ConnectInit Can't take IP for lk.salyk.kg [04:24:04]CommunicateWithHost connect error [04:24:04]CommunicateWithHost err = -1 [04:24:04]OFD Sender: Server communicate error [04:24:09]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:24:09]ProducePacketName [04:24:09]name=ofd_packets/00049279 [04:24:09]OFD Sender: To server: pG, [04:24:09]CommunicateWithHost lk.salyk.kg:30040 [04:24:09]ConnectInit lk.salyk.kg [04:24:09]ConnectInit Can't take IP for lk.salyk.kg [04:24:09]CommunicateWithHost connect error [04:24:09]CommunicateWithHost err = -1 [04:24:09]OFD Sender: Server communicate error [04:24:14]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:24:14]ProducePacketName [04:24:14]name=ofd_packets/00049279 [04:24:14]OFD Sender: To server: pG, [04:24:14]CommunicateWithHost lk.salyk.kg:30040 [04:24:14]ConnectInit lk.salyk.kg [04:24:14]ConnectInit Can't take IP for lk.salyk.kg [04:24:14]CommunicateWithHost connect error [04:24:14]CommunicateWithHost err = -1 [04:24:14]OFD Sender: Server communicate error [04:24:19]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:24:19]ProducePacketName [04:24:19]name=ofd_packets/00049279 [04:24:19]OFD Sender: To server: pG, [04:24:19]CommunicateWithHost lk.salyk.kg:30040 [04:24:19]ConnectInit lk.salyk.kg [04:24:19]ConnectInit Can't take IP for lk.salyk.kg [04:24:19]CommunicateWithHost connect error [04:24:19]CommunicateWithHost err = -1 [04:24:19]OFD Sender: Server communicate error [04:24:24]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:24:24]ProducePacketName [04:24:24]name=ofd_packets/00049279 [04:24:24]OFD Sender: To server: pG, [04:24:24]CommunicateWithHost lk.salyk.kg:30040 [04:24:24]ConnectInit lk.salyk.kg [04:24:24]ConnectInit Can't take IP for lk.salyk.kg [04:24:24]CommunicateWithHost connect error [04:24:24]CommunicateWithHost err = -1 [04:24:24]OFD Sender: Server communicate error [04:24:29]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:24:29]ProducePacketName [04:24:29]name=ofd_packets/00049279 [04:24:29]OFD Sender: To server: pG, [04:24:29]CommunicateWithHost lk.salyk.kg:30040 [04:24:29]ConnectInit lk.salyk.kg [04:24:29]ConnectInit Can't take IP for lk.salyk.kg [04:24:29]CommunicateWithHost connect error [04:24:29]CommunicateWithHost err = -1 [04:24:29]OFD Sender: Server communicate error [04:24:34]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:24:34]ProducePacketName [04:24:34]name=ofd_packets/00049279 [04:24:34]OFD Sender: To server: pG, [04:24:34]CommunicateWithHost lk.salyk.kg:30040 [04:24:34]ConnectInit lk.salyk.kg [04:24:34]ConnectInit Can't take IP for lk.salyk.kg [04:24:34]CommunicateWithHost connect error [04:24:34]CommunicateWithHost err = -1 [04:24:34]OFD Sender: Server communicate error [04:24:39]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:24:39]ProducePacketName [04:24:39]name=ofd_packets/00049279 [04:24:39]OFD Sender: To server: pG, [04:24:39]CommunicateWithHost lk.salyk.kg:30040 [04:24:39]ConnectInit lk.salyk.kg [04:24:39]ConnectInit Can't take IP for lk.salyk.kg [04:24:39]CommunicateWithHost connect error [04:24:39]CommunicateWithHost err = -1 [04:24:39]OFD Sender: Server communicate error [04:24:44]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:24:44]ProducePacketName [04:24:44]name=ofd_packets/00049279 [04:24:44]OFD Sender: To server: pG, [04:24:44]CommunicateWithHost lk.salyk.kg:30040 [04:24:44]ConnectInit lk.salyk.kg [04:24:44]ConnectInit Can't take IP for lk.salyk.kg [04:24:44]CommunicateWithHost connect error [04:24:44]CommunicateWithHost err = -1 [04:24:44]OFD Sender: Server communicate error [04:24:49]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:24:49]ProducePacketName [04:24:49]name=ofd_packets/00049279 [04:24:49]OFD Sender: To server: pG, [04:24:49]CommunicateWithHost lk.salyk.kg:30040 [04:24:49]ConnectInit lk.salyk.kg [04:24:49]ConnectInit Can't take IP for lk.salyk.kg [04:24:49]CommunicateWithHost connect error [04:24:49]CommunicateWithHost err = -1 [04:24:49]OFD Sender: Server communicate error [04:24:54]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:24:54]ProducePacketName [04:24:54]name=ofd_packets/00049279 [04:24:54]OFD Sender: To server: pG, [04:24:54]CommunicateWithHost lk.salyk.kg:30040 [04:24:54]ConnectInit lk.salyk.kg [04:24:54]ConnectInit Can't take IP for lk.salyk.kg [04:24:54]CommunicateWithHost connect error [04:24:54]CommunicateWithHost err = -1 [04:24:54]OFD Sender: Server communicate error [04:24:59]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:24:59]ProducePacketName [04:24:59]name=ofd_packets/00049279 [04:24:59]OFD Sender: To server: pG, [04:24:59]CommunicateWithHost lk.salyk.kg:30040 [04:24:59]ConnectInit lk.salyk.kg [04:24:59]ConnectInit Can't take IP for lk.salyk.kg [04:24:59]CommunicateWithHost connect error [04:24:59]CommunicateWithHost err = -1 [04:24:59]OFD Sender: Server communicate error [04:25:04]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:25:04]ProducePacketName [04:25:04]name=ofd_packets/00049279 [04:25:04]OFD Sender: To server: pG, [04:25:04]CommunicateWithHost lk.salyk.kg:30040 [04:25:04]ConnectInit lk.salyk.kg [04:25:05]ConnectInit Can't take IP for lk.salyk.kg [04:25:05]CommunicateWithHost connect error [04:25:05]CommunicateWithHost err = -1 [04:25:05]OFD Sender: Server communicate error [04:25:10]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:25:10]ProducePacketName [04:25:10]name=ofd_packets/00049279 [04:25:10]OFD Sender: To server: pG, [04:25:10]CommunicateWithHost lk.salyk.kg:30040 [04:25:10]ConnectInit lk.salyk.kg [04:25:10]ConnectInit Can't take IP for lk.salyk.kg [04:25:10]CommunicateWithHost connect error [04:25:10]CommunicateWithHost err = -1 [04:25:10]OFD Sender: Server communicate error [04:25:15]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:25:15]ProducePacketName [04:25:15]name=ofd_packets/00049279 [04:25:15]OFD Sender: To server: pG, [04:25:15]CommunicateWithHost lk.salyk.kg:30040 [04:25:15]ConnectInit lk.salyk.kg [04:25:15]ConnectInit Can't take IP for lk.salyk.kg [04:25:15]CommunicateWithHost connect error [04:25:15]CommunicateWithHost err = -1 [04:25:15]OFD Sender: Server communicate error [04:25:20]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:25:20]ProducePacketName [04:25:20]name=ofd_packets/00049279 [04:25:20]OFD Sender: To server: pG, [04:25:20]CommunicateWithHost lk.salyk.kg:30040 [04:25:20]ConnectInit lk.salyk.kg [04:25:20]ConnectInit Can't take IP for lk.salyk.kg [04:25:20]CommunicateWithHost connect error [04:25:20]CommunicateWithHost err = -1 [04:25:20]OFD Sender: Server communicate error [04:25:25]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:25:25]ProducePacketName [04:25:25]name=ofd_packets/00049279 [04:25:25]OFD Sender: To server: pG, [04:25:25]CommunicateWithHost lk.salyk.kg:30040 [04:25:25]ConnectInit lk.salyk.kg [04:25:25]ConnectInit Can't take IP for lk.salyk.kg [04:25:25]CommunicateWithHost connect error [04:25:25]CommunicateWithHost err = -1 [04:25:25]OFD Sender: Server communicate error [04:25:30]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:25:30]ProducePacketName [04:25:30]name=ofd_packets/00049279 [04:25:30]OFD Sender: To server: pG, [04:25:30]CommunicateWithHost lk.salyk.kg:30040 [04:25:30]ConnectInit lk.salyk.kg [04:25:30]ConnectInit Can't take IP for lk.salyk.kg [04:25:30]CommunicateWithHost connect error [04:25:30]CommunicateWithHost err = -1 [04:25:30]OFD Sender: Server communicate error [04:25:35]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:25:35]ProducePacketName [04:25:35]name=ofd_packets/00049279 [04:25:35]OFD Sender: To server: pG, [04:25:35]CommunicateWithHost lk.salyk.kg:30040 [04:25:35]ConnectInit lk.salyk.kg [04:25:35]ConnectInit Can't take IP for lk.salyk.kg [04:25:35]CommunicateWithHost connect error [04:25:35]CommunicateWithHost err = -1 [04:25:35]OFD Sender: Server communicate error [04:25:40]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:25:40]ProducePacketName [04:25:40]name=ofd_packets/00049279 [04:25:40]OFD Sender: To server: pG, [04:25:40]CommunicateWithHost lk.salyk.kg:30040 [04:25:40]ConnectInit lk.salyk.kg [04:25:40]ConnectInit Can't take IP for lk.salyk.kg [04:25:40]CommunicateWithHost connect error [04:25:40]CommunicateWithHost err = -1 [04:25:40]OFD Sender: Server communicate error [04:25:45]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:25:45]ProducePacketName [04:25:45]name=ofd_packets/00049279 [04:25:45]OFD Sender: To server: pG, [04:25:45]CommunicateWithHost lk.salyk.kg:30040 [04:25:45]ConnectInit lk.salyk.kg [04:25:45]ConnectInit Can't take IP for lk.salyk.kg [04:25:45]CommunicateWithHost connect error [04:25:45]CommunicateWithHost err = -1 [04:25:45]OFD Sender: Server communicate error [04:25:50]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:25:50]ProducePacketName [04:25:50]name=ofd_packets/00049279 [04:25:50]OFD Sender: To server: pG, [04:25:50]CommunicateWithHost lk.salyk.kg:30040 [04:25:50]ConnectInit lk.salyk.kg [04:25:50]ConnectInit Can't take IP for lk.salyk.kg [04:25:50]CommunicateWithHost connect error [04:25:50]CommunicateWithHost err = -1 [04:25:50]OFD Sender: Server communicate error [04:25:55]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:25:55]ProducePacketName [04:25:55]name=ofd_packets/00049279 [04:25:55]OFD Sender: To server: pG, [04:25:55]CommunicateWithHost lk.salyk.kg:30040 [04:25:55]ConnectInit lk.salyk.kg [04:25:55]ConnectInit Can't take IP for lk.salyk.kg [04:25:55]CommunicateWithHost connect error [04:25:55]CommunicateWithHost err = -1 [04:25:55]OFD Sender: Server communicate error [04:26:00]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:26:00]ProducePacketName [04:26:00]name=ofd_packets/00049279 [04:26:00]OFD Sender: To server: pG, [04:26:00]CommunicateWithHost lk.salyk.kg:30040 [04:26:00]ConnectInit lk.salyk.kg [04:26:00]ConnectInit Can't take IP for lk.salyk.kg [04:26:00]CommunicateWithHost connect error [04:26:00]CommunicateWithHost err = -1 [04:26:00]OFD Sender: Server communicate error [04:26:05]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:26:05]ProducePacketName [04:26:05]name=ofd_packets/00049279 [04:26:05]OFD Sender: To server: pG, [04:26:05]CommunicateWithHost lk.salyk.kg:30040 [04:26:05]ConnectInit lk.salyk.kg [04:26:05]ConnectInit Can't take IP for lk.salyk.kg [04:26:05]CommunicateWithHost connect error [04:26:05]CommunicateWithHost err = -1 [04:26:05]OFD Sender: Server communicate error [04:26:10]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:26:10]ProducePacketName [04:26:10]name=ofd_packets/00049279 [04:26:10]OFD Sender: To server: pG, [04:26:10]CommunicateWithHost lk.salyk.kg:30040 [04:26:10]ConnectInit lk.salyk.kg [04:26:11]ConnectInit Can't take IP for lk.salyk.kg [04:26:11]CommunicateWithHost connect error [04:26:11]CommunicateWithHost err = -1 [04:26:11]OFD Sender: Server communicate error [04:26:16]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:26:16]ProducePacketName [04:26:16]name=ofd_packets/00049279 [04:26:16]OFD Sender: To server: pG, [04:26:16]CommunicateWithHost lk.salyk.kg:30040 [04:26:16]ConnectInit lk.salyk.kg [04:26:16]ConnectInit Can't take IP for lk.salyk.kg [04:26:16]CommunicateWithHost connect error [04:26:16]CommunicateWithHost err = -1 [04:26:16]OFD Sender: Server communicate error [04:26:21]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:26:21]ProducePacketName [04:26:21]name=ofd_packets/00049279 [04:26:21]OFD Sender: To server: pG, [04:26:21]CommunicateWithHost lk.salyk.kg:30040 [04:26:21]ConnectInit lk.salyk.kg [04:26:21]ConnectInit Can't take IP for lk.salyk.kg [04:26:21]CommunicateWithHost connect error [04:26:21]CommunicateWithHost err = -1 [04:26:21]OFD Sender: Server communicate error [04:26:26]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:26:26]ProducePacketName [04:26:26]name=ofd_packets/00049279 [04:26:26]OFD Sender: To server: pG, [04:26:26]CommunicateWithHost lk.salyk.kg:30040 [04:26:26]ConnectInit lk.salyk.kg [04:26:26]ConnectInit Can't take IP for lk.salyk.kg [04:26:26]CommunicateWithHost connect error [04:26:26]CommunicateWithHost err = -1 [04:26:26]OFD Sender: Server communicate error [04:26:31]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:26:31]ProducePacketName [04:26:31]name=ofd_packets/00049279 [04:26:31]OFD Sender: To server: pG, [04:26:31]CommunicateWithHost lk.salyk.kg:30040 [04:26:31]ConnectInit lk.salyk.kg [04:26:31]ConnectInit Can't take IP for lk.salyk.kg [04:26:31]CommunicateWithHost connect error [04:26:31]CommunicateWithHost err = -1 [04:26:31]OFD Sender: Server communicate error [04:26:36]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:26:36]ProducePacketName [04:26:36]name=ofd_packets/00049279 [04:26:36]OFD Sender: To server: pG, [04:26:36]CommunicateWithHost lk.salyk.kg:30040 [04:26:36]ConnectInit lk.salyk.kg [04:26:36]ConnectInit Can't take IP for lk.salyk.kg [04:26:36]CommunicateWithHost connect error [04:26:36]CommunicateWithHost err = -1 [04:26:36]OFD Sender: Server communicate error [04:26:41]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:26:41]ProducePacketName [04:26:41]name=ofd_packets/00049279 [04:26:41]OFD Sender: To server: pG, [04:26:41]CommunicateWithHost lk.salyk.kg:30040 [04:26:41]ConnectInit lk.salyk.kg [04:26:41]ConnectInit Can't take IP for lk.salyk.kg [04:26:41]CommunicateWithHost connect error [04:26:41]CommunicateWithHost err = -1 [04:26:41]OFD Sender: Server communicate error [04:26:46]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:26:46]ProducePacketName [04:26:46]name=ofd_packets/00049279 [04:26:46]OFD Sender: To server: pG, [04:26:46]CommunicateWithHost lk.salyk.kg:30040 [04:26:46]ConnectInit lk.salyk.kg [04:26:46]ConnectInit Can't take IP for lk.salyk.kg [04:26:46]CommunicateWithHost connect error [04:26:46]CommunicateWithHost err = -1 [04:26:46]OFD Sender: Server communicate error [04:26:51]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:26:51]ProducePacketName [04:26:51]name=ofd_packets/00049279 [04:26:51]OFD Sender: To server: pG, [04:26:51]CommunicateWithHost lk.salyk.kg:30040 [04:26:51]ConnectInit lk.salyk.kg [04:26:51]ConnectInit Can't take IP for lk.salyk.kg [04:26:51]CommunicateWithHost connect error [04:26:51]CommunicateWithHost err = -1 [04:26:51]OFD Sender: Server communicate error [04:26:56]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:26:56]ProducePacketName [04:26:56]name=ofd_packets/00049279 [04:26:56]OFD Sender: To server: pG, [04:26:56]CommunicateWithHost lk.salyk.kg:30040 [04:26:56]ConnectInit lk.salyk.kg [04:26:56]ConnectInit Can't take IP for lk.salyk.kg [04:26:56]CommunicateWithHost connect error [04:26:56]CommunicateWithHost err = -1 [04:26:56]OFD Sender: Server communicate error [04:27:01]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:27:01]ProducePacketName [04:27:01]name=ofd_packets/00049279 [04:27:01]OFD Sender: To server: pG, [04:27:01]CommunicateWithHost lk.salyk.kg:30040 [04:27:01]ConnectInit lk.salyk.kg [04:27:01]ConnectInit Can't take IP for lk.salyk.kg [04:27:01]CommunicateWithHost connect error [04:27:01]CommunicateWithHost err = -1 [04:27:01]OFD Sender: Server communicate error [04:27:06]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:27:06]ProducePacketName [04:27:06]name=ofd_packets/00049279 [04:27:06]OFD Sender: To server: pG, [04:27:06]CommunicateWithHost lk.salyk.kg:30040 [04:27:06]ConnectInit lk.salyk.kg [04:27:06]ConnectInit Can't take IP for lk.salyk.kg [04:27:06]CommunicateWithHost connect error [04:27:06]CommunicateWithHost err = -1 [04:27:06]OFD Sender: Server communicate error [04:27:11]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:27:11]ProducePacketName [04:27:11]name=ofd_packets/00049279 [04:27:11]OFD Sender: To server: pG, [04:27:11]CommunicateWithHost lk.salyk.kg:30040 [04:27:11]ConnectInit lk.salyk.kg [04:27:11]ConnectInit Can't take IP for lk.salyk.kg [04:27:11]CommunicateWithHost connect error [04:27:11]CommunicateWithHost err = -1 [04:27:11]OFD Sender: Server communicate error [04:27:16]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:27:16]ProducePacketName [04:27:16]name=ofd_packets/00049279 [04:27:16]OFD Sender: To server: pG, [04:27:16]CommunicateWithHost lk.salyk.kg:30040 [04:27:16]ConnectInit lk.salyk.kg [04:27:16]ConnectInit Can't take IP for lk.salyk.kg [04:27:16]CommunicateWithHost connect error [04:27:16]CommunicateWithHost err = -1 [04:27:16]OFD Sender: Server communicate error [04:27:21]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:27:21]ProducePacketName [04:27:21]name=ofd_packets/00049279 [04:27:21]OFD Sender: To server: pG, [04:27:21]CommunicateWithHost lk.salyk.kg:30040 [04:27:21]ConnectInit lk.salyk.kg [04:27:22]ConnectInit Can't take IP for lk.salyk.kg [04:27:22]CommunicateWithHost connect error [04:27:22]CommunicateWithHost err = -1 [04:27:22]OFD Sender: Server communicate error [04:27:27]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:27:27]ProducePacketName [04:27:27]name=ofd_packets/00049279 [04:27:27]OFD Sender: To server: pG, [04:27:27]CommunicateWithHost lk.salyk.kg:30040 [04:27:27]ConnectInit lk.salyk.kg [04:27:27]ConnectInit Can't take IP for lk.salyk.kg [04:27:27]CommunicateWithHost connect error [04:27:27]CommunicateWithHost err = -1 [04:27:27]OFD Sender: Server communicate error [04:27:32]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:27:32]ProducePacketName [04:27:32]name=ofd_packets/00049279 [04:27:32]OFD Sender: To server: pG, [04:27:32]CommunicateWithHost lk.salyk.kg:30040 [04:27:32]ConnectInit lk.salyk.kg [04:27:32]ConnectInit Can't take IP for lk.salyk.kg [04:27:32]CommunicateWithHost connect error [04:27:32]CommunicateWithHost err = -1 [04:27:32]OFD Sender: Server communicate error [04:27:37]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:27:37]ProducePacketName [04:27:37]name=ofd_packets/00049279 [04:27:37]OFD Sender: To server: pG, [04:27:37]CommunicateWithHost lk.salyk.kg:30040 [04:27:37]ConnectInit lk.salyk.kg [04:27:37]ConnectInit Can't take IP for lk.salyk.kg [04:27:37]CommunicateWithHost connect error [04:27:37]CommunicateWithHost err = -1 [04:27:37]OFD Sender: Server communicate error [04:27:42]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:27:42]ProducePacketName [04:27:42]name=ofd_packets/00049279 [04:27:42]OFD Sender: To server: pG, [04:27:42]CommunicateWithHost lk.salyk.kg:30040 [04:27:42]ConnectInit lk.salyk.kg [04:27:42]ConnectInit Can't take IP for lk.salyk.kg [04:27:42]CommunicateWithHost connect error [04:27:42]CommunicateWithHost err = -1 [04:27:42]OFD Sender: Server communicate error [04:27:47]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:27:47]ProducePacketName [04:27:47]name=ofd_packets/00049279 [04:27:47]OFD Sender: To server: pG, [04:27:47]CommunicateWithHost lk.salyk.kg:30040 [04:27:47]ConnectInit lk.salyk.kg [04:27:47]ConnectInit Can't take IP for lk.salyk.kg [04:27:47]CommunicateWithHost connect error [04:27:47]CommunicateWithHost err = -1 [04:27:47]OFD Sender: Server communicate error [04:27:52]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:27:52]ProducePacketName [04:27:52]name=ofd_packets/00049279 [04:27:52]OFD Sender: To server: pG, [04:27:52]CommunicateWithHost lk.salyk.kg:30040 [04:27:52]ConnectInit lk.salyk.kg [04:27:52]ConnectInit Can't take IP for lk.salyk.kg [04:27:52]CommunicateWithHost connect error [04:27:52]CommunicateWithHost err = -1 [04:27:52]OFD Sender: Server communicate error [04:27:57]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:27:57]ProducePacketName [04:27:57]name=ofd_packets/00049279 [04:27:57]OFD Sender: To server: pG, [04:27:57]CommunicateWithHost lk.salyk.kg:30040 [04:27:57]ConnectInit lk.salyk.kg [04:27:57]ConnectInit Can't take IP for lk.salyk.kg [04:27:57]CommunicateWithHost connect error [04:27:57]CommunicateWithHost err = -1 [04:27:57]OFD Sender: Server communicate error [04:28:02]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:28:02]ProducePacketName [04:28:02]name=ofd_packets/00049279 [04:28:02]OFD Sender: To server: pG, [04:28:02]CommunicateWithHost lk.salyk.kg:30040 [04:28:02]ConnectInit lk.salyk.kg [04:28:02]ConnectInit Can't take IP for lk.salyk.kg [04:28:02]CommunicateWithHost connect error [04:28:02]CommunicateWithHost err = -1 [04:28:02]OFD Sender: Server communicate error [04:28:07]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:28:07]ProducePacketName [04:28:07]name=ofd_packets/00049279 [04:28:07]OFD Sender: To server: pG, [04:28:07]CommunicateWithHost lk.salyk.kg:30040 [04:28:07]ConnectInit lk.salyk.kg [04:28:07]ConnectInit Can't take IP for lk.salyk.kg [04:28:07]CommunicateWithHost connect error [04:28:07]CommunicateWithHost err = -1 [04:28:07]OFD Sender: Server communicate error [04:28:12]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:28:12]ProducePacketName [04:28:12]name=ofd_packets/00049279 [04:28:12]OFD Sender: To server: pG, [04:28:12]CommunicateWithHost lk.salyk.kg:30040 [04:28:12]ConnectInit lk.salyk.kg [04:28:12]ConnectInit Can't take IP for lk.salyk.kg [04:28:12]CommunicateWithHost connect error [04:28:12]CommunicateWithHost err = -1 [04:28:12]OFD Sender: Server communicate error [04:28:17]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:28:17]ProducePacketName [04:28:17]name=ofd_packets/00049279 [04:28:17]OFD Sender: To server: pG, [04:28:17]CommunicateWithHost lk.salyk.kg:30040 [04:28:17]ConnectInit lk.salyk.kg [04:28:17]ConnectInit Can't take IP for lk.salyk.kg [04:28:17]CommunicateWithHost connect error [04:28:17]CommunicateWithHost err = -1 [04:28:17]OFD Sender: Server communicate error [04:28:22]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:28:22]ProducePacketName [04:28:22]name=ofd_packets/00049279 [04:28:22]OFD Sender: To server: pG, [04:28:22]CommunicateWithHost lk.salyk.kg:30040 [04:28:22]ConnectInit lk.salyk.kg [04:28:22]ConnectInit Can't take IP for lk.salyk.kg [04:28:22]CommunicateWithHost connect error [04:28:22]CommunicateWithHost err = -1 [04:28:22]OFD Sender: Server communicate error [04:28:27]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:28:27]ProducePacketName [04:28:27]name=ofd_packets/00049279 [04:28:27]OFD Sender: To server: pG, [04:28:27]CommunicateWithHost lk.salyk.kg:30040 [04:28:27]ConnectInit lk.salyk.kg [04:28:27]ConnectInit Can't take IP for lk.salyk.kg [04:28:27]CommunicateWithHost connect error [04:28:27]CommunicateWithHost err = -1 [04:28:27]OFD Sender: Server communicate error [04:28:32]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:28:32]ProducePacketName [04:28:32]name=ofd_packets/00049279 [04:28:32]OFD Sender: To server: pG, [04:28:32]CommunicateWithHost lk.salyk.kg:30040 [04:28:32]ConnectInit lk.salyk.kg [04:28:33]ConnectInit Can't take IP for lk.salyk.kg [04:28:33]CommunicateWithHost connect error [04:28:33]CommunicateWithHost err = -1 [04:28:33]OFD Sender: Server communicate error [04:28:38]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:28:38]ProducePacketName [04:28:38]name=ofd_packets/00049279 [04:28:38]OFD Sender: To server: pG, [04:28:38]CommunicateWithHost lk.salyk.kg:30040 [04:28:38]ConnectInit lk.salyk.kg [04:28:38]ConnectInit Can't take IP for lk.salyk.kg [04:28:38]CommunicateWithHost connect error [04:28:38]CommunicateWithHost err = -1 [04:28:38]OFD Sender: Server communicate error [04:28:43]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:28:43]ProducePacketName [04:28:43]name=ofd_packets/00049279 [04:28:43]OFD Sender: To server: pG, [04:28:43]CommunicateWithHost lk.salyk.kg:30040 [04:28:43]ConnectInit lk.salyk.kg [04:28:43]ConnectInit Can't take IP for lk.salyk.kg [04:28:43]CommunicateWithHost connect error [04:28:43]CommunicateWithHost err = -1 [04:28:43]OFD Sender: Server communicate error [04:28:48]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:28:48]ProducePacketName [04:28:48]name=ofd_packets/00049279 [04:28:48]OFD Sender: To server: pG, [04:28:48]CommunicateWithHost lk.salyk.kg:30040 [04:28:48]ConnectInit lk.salyk.kg [04:28:48]ConnectInit Can't take IP for lk.salyk.kg [04:28:48]CommunicateWithHost connect error [04:28:48]CommunicateWithHost err = -1 [04:28:48]OFD Sender: Server communicate error [04:28:53]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:28:53]ProducePacketName [04:28:53]name=ofd_packets/00049279 [04:28:53]OFD Sender: To server: pG, [04:28:53]CommunicateWithHost lk.salyk.kg:30040 [04:28:53]ConnectInit lk.salyk.kg [04:28:53]ConnectInit Can't take IP for lk.salyk.kg [04:28:53]CommunicateWithHost connect error [04:28:53]CommunicateWithHost err = -1 [04:28:53]OFD Sender: Server communicate error [04:28:58]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:28:58]ProducePacketName [04:28:58]name=ofd_packets/00049279 [04:28:58]OFD Sender: To server: pG, [04:28:58]CommunicateWithHost lk.salyk.kg:30040 [04:28:58]ConnectInit lk.salyk.kg [04:28:58]ConnectInit Can't take IP for lk.salyk.kg [04:28:58]CommunicateWithHost connect error [04:28:58]CommunicateWithHost err = -1 [04:28:58]OFD Sender: Server communicate error [04:29:03]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:29:03]ProducePacketName [04:29:03]name=ofd_packets/00049279 [04:29:03]OFD Sender: To server: pG, [04:29:03]CommunicateWithHost lk.salyk.kg:30040 [04:29:03]ConnectInit lk.salyk.kg [04:29:03]ConnectInit Can't take IP for lk.salyk.kg [04:29:03]CommunicateWithHost connect error [04:29:03]CommunicateWithHost err = -1 [04:29:03]OFD Sender: Server communicate error [04:29:08]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:29:08]ProducePacketName [04:29:08]name=ofd_packets/00049279 [04:29:08]OFD Sender: To server: pG, [04:29:08]CommunicateWithHost lk.salyk.kg:30040 [04:29:08]ConnectInit lk.salyk.kg [04:29:08]ConnectInit Can't take IP for lk.salyk.kg [04:29:08]CommunicateWithHost connect error [04:29:08]CommunicateWithHost err = -1 [04:29:08]OFD Sender: Server communicate error [04:29:13]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:29:13]ProducePacketName [04:29:13]name=ofd_packets/00049279 [04:29:13]OFD Sender: To server: pG, [04:29:13]CommunicateWithHost lk.salyk.kg:30040 [04:29:13]ConnectInit lk.salyk.kg [04:29:13]ConnectInit Can't take IP for lk.salyk.kg [04:29:13]CommunicateWithHost connect error [04:29:13]CommunicateWithHost err = -1 [04:29:13]OFD Sender: Server communicate error [04:29:18]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:29:18]ProducePacketName [04:29:18]name=ofd_packets/00049279 [04:29:18]OFD Sender: To server: pG, [04:29:18]CommunicateWithHost lk.salyk.kg:30040 [04:29:18]ConnectInit lk.salyk.kg [04:29:18]ConnectInit Can't take IP for lk.salyk.kg [04:29:18]CommunicateWithHost connect error [04:29:18]CommunicateWithHost err = -1 [04:29:18]OFD Sender: Server communicate error [04:29:23]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:29:23]ProducePacketName [04:29:23]name=ofd_packets/00049279 [04:29:23]OFD Sender: To server: pG, [04:29:23]CommunicateWithHost lk.salyk.kg:30040 [04:29:23]ConnectInit lk.salyk.kg [04:29:23]ConnectInit Can't take IP for lk.salyk.kg [04:29:23]CommunicateWithHost connect error [04:29:23]CommunicateWithHost err = -1 [04:29:23]OFD Sender: Server communicate error [04:29:28]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:29:28]ProducePacketName [04:29:28]name=ofd_packets/00049279 [04:29:28]OFD Sender: To server: pG, [04:29:28]CommunicateWithHost lk.salyk.kg:30040 [04:29:28]ConnectInit lk.salyk.kg [04:29:28]ConnectInit Can't take IP for lk.salyk.kg [04:29:28]CommunicateWithHost connect error [04:29:28]CommunicateWithHost err = -1 [04:29:28]OFD Sender: Server communicate error [04:29:33]OFD Sender: Processing packet 49279 [packets to send 12, broken 11] [04:29:33]ProducePacketName [04:29:33]name=ofd_packets/00049279 [04:29:33]OFD Sender: To server: pG, [04:29:33]CommunicateWithHost lk.salyk.kg:30040 [04:29:33]ConnectInit lk.salyk.kg [04:29:33]Connected sock=7 [04:29:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E6 A7 07 01 FE 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 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 B2 CA B9 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7F C0 00 00 35 04 06 00 E7 4C 94 2C 47 E8 8C B2 0A 83 7E 21 02 A3 [04:29:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 ED 22 47 00 C2 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7F C0 00 00 F4 03 04 00 B5 78 B9 65 B6 04 01 00 00 B0 7D 45 CF EF 64 4D 17 [04:29:34]CommunicateWithHost err = 0 [04:29:34]CheckOFDResponse [04:29:34]1017 (14) - 77093643461234 [04:29:34]1041 (16) - 0000000000875060 [04:29:34]1040 (4) - 49279 [04:29:34]1012 (4) - 30.01.2024 22:31 [04:29:34]1206 (1) - 0 [04:29:34]OFD Sender: Remove packet 49279 [04:29:34]ProducePacketName [04:29:34]name=ofd_packets/00049279 [04:29:34]NVStorageDeleteData [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:55]OFD Sender: No OFD packet to send [04:56:00]OFD Sender: No OFD packet to send [04:56:05]OFD Sender: No OFD packet to send [04:56:10]OFD Sender: No OFD packet to send [04:56:15]OFD Sender: No OFD packet to send [04:56:20]OFD Sender: No OFD packet to send [04:56:25]OFD Sender: No OFD packet to send [04:56:30]OFD Sender: No OFD packet to send [04:56:35]OFD Sender: No OFD packet to send [04:56:40]OFD Sender: No OFD packet to send [04:56:45]OFD Sender: No OFD packet to send [04:56:50]OFD Sender: No OFD packet to send [04:56:55]OFD Sender: No OFD packet to send [04:57:00]OFD Sender: No OFD packet to send [04:57:05]OFD Sender: No OFD packet to send [04:57:10]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:01]OFD Sender: No OFD packet to send [05:18:06]OFD Sender: No OFD packet to send [05:18:11]OFD Sender: No OFD packet to send [05:18:16]OFD Sender: No OFD packet to send [05:18:21]OFD Sender: No OFD packet to send [05:18:26]OFD Sender: No OFD packet to send [05:18:31]OFD Sender: No OFD packet to send [05:18:36]OFD Sender: No OFD packet to send [05:18:41]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:33]OFD Sender: No OFD packet to send [05:56:38]OFD Sender: No OFD packet to send [05:56:43]OFD Sender: No OFD packet to send [05:56:48]OFD Sender: No OFD packet to send [05:56:53]OFD Sender: No OFD packet to send [05:56:58]OFD Sender: No OFD packet to send [05:57:03]OFD Sender: No OFD packet to send [05:57:08]OFD Sender: No OFD packet to send [05:57:13]OFD Sender: No OFD packet to send [05:57:18]OFD Sender: No OFD packet to send [05:57:23]OFD Sender: No OFD packet to send [05:57:28]OFD Sender: No OFD packet to send [05:57:33]OFD Sender: No OFD packet to send [05:57:38]OFD Sender: No OFD packet to send [05:57:43]OFD Sender: No OFD packet to send [05:57:48]OFD Sender: No OFD packet to send [05:57:53]OFD Sender: No OFD packet to send [05:57:58]OFD Sender: No OFD packet to send [05:58:03]OFD Sender: No OFD packet to send [05:58:08]OFD Sender: No OFD packet to send [05:58:13]OFD Sender: No OFD packet to send [05:58:18]OFD Sender: No OFD packet to send [05:58:23]OFD Sender: No OFD packet to send [05:58:28]OFD Sender: No OFD packet to send [05:58:33]OFD Sender: No OFD packet to send [05:58:38]OFD Sender: No OFD packet to send [05:58:43]OFD Sender: No OFD packet to send [05:58:48]OFD Sender: No OFD packet to send [05:58:53]OFD Sender: No OFD packet to send [05:58:58]OFD Sender: No OFD packet to send [05:59:03]OFD Sender: No OFD packet to send [05:59:08]OFD Sender: No OFD packet to send [05:59:13]OFD Sender: No OFD packet to send [05:59:18]OFD Sender: No OFD packet to send [05:59:23]OFD Sender: No OFD packet to send [05:59:28]OFD Sender: No OFD packet to send [05:59:33]OFD Sender: No OFD packet to send [05:59:38]OFD Sender: No OFD packet to send [05:59:43]OFD Sender: No OFD packet to send [05:59:48]OFD Sender: No OFD packet to send [05:59:53]OFD Sender: No OFD packet to send [05:59:58]OFD Sender: No OFD packet to send [06:00:03]OFD Sender: No OFD packet to send [06:00:08]OFD Sender: No OFD packet to send [06:00:13]OFD Sender: No OFD packet to send [06:00:18]OFD Sender: No OFD packet to send [06:00:23]OFD Sender: No OFD packet to send [06:00:28]OFD Sender: No OFD packet to send [06:00:33]OFD Sender: No OFD packet to send [06:00:38]OFD Sender: No OFD packet to send [06:00:44]OFD Sender: No OFD packet to send [06:00:49]OFD Sender: No OFD packet to send [06:00:54]OFD Sender: No OFD packet to send [06:00:59]OFD Sender: No OFD packet to send [06:01:04]OFD Sender: No OFD packet to send [06:01:09]OFD Sender: No OFD packet to send [06:01:14]OFD Sender: No OFD packet to send [06:01:19]OFD Sender: No OFD packet to send [06:01:24]OFD Sender: No OFD packet to send [06:01:29]OFD Sender: No OFD packet to send [06:01:34]OFD Sender: No OFD packet to send [06:01:39]OFD Sender: No OFD packet to send [06:01:44]OFD Sender: No OFD packet to send [06:01:49]OFD Sender: No OFD packet to send [06:01:54]OFD Sender: No OFD packet to send [06:01:59]OFD Sender: No OFD packet to send [06:02:04]OFD Sender: No OFD packet to send [06:02:09]OFD Sender: No OFD packet to send [06:02:14]OFD Sender: No OFD packet to send [06:02:19]OFD Sender: No OFD packet to send [06:02:24]OFD Sender: No OFD packet to send [06:02:29]OFD Sender: No OFD packet to send [06:02:34]OFD Sender: No OFD packet to send [06:02:39]OFD Sender: No OFD packet to send [06:02:44]OFD Sender: No OFD packet to send [06:02:49]OFD Sender: No OFD packet to send [06:02:54]OFD Sender: No OFD packet to send [06:02:59]OFD Sender: No OFD packet to send [06:03:04]OFD Sender: No OFD packet to send [06:03:09]OFD Sender: No OFD packet to send [06:03:14]OFD Sender: No OFD packet to send [06:03:19]OFD Sender: No OFD packet to send [06:03:24]OFD Sender: No OFD packet to send [06:03:29]OFD Sender: No OFD packet to send [06:03:34]OFD Sender: No OFD packet to send [06:03:39]OFD Sender: No OFD packet to send [06:03:44]OFD Sender: No OFD packet to send [06:03:49]OFD Sender: No OFD packet to send [06:03:54]OFD Sender: No OFD packet to send [06:03:59]OFD Sender: No OFD packet to send [06:04:04]OFD Sender: No OFD packet to send [06:04:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:54]OFD Sender: No OFD packet to send [06:07:59]OFD Sender: No OFD packet to send [06:08:04]OFD Sender: No OFD packet to send [06:08:09]OFD Sender: No OFD packet to send [06:08:14]OFD Sender: No OFD packet to send [06:08:19]OFD Sender: No OFD packet to send [06:08:24]OFD Sender: No OFD packet to send [06:08:29]OFD Sender: No OFD packet to send [06:08:34]OFD Sender: No OFD packet to send [06:08:39]OFD Sender: No OFD packet to send [06:08:44]OFD Sender: No OFD packet to send [06:08:49]OFD Sender: No OFD packet to send [06:08:54]OFD Sender: No OFD packet to send [06:08:59]OFD Sender: No OFD packet to send [06:09:04]OFD Sender: No OFD packet to send [06:09:09]OFD Sender: No OFD packet to send [06:09:14]OFD Sender: No OFD packet to send [06:09:19]OFD Sender: No OFD packet to send [06:09:24]OFD Sender: No OFD packet to send [06:09:29]OFD Sender: No OFD packet to send [06:09:34]OFD Sender: No OFD packet to send [06:09:39]OFD Sender: No OFD packet to send [06:09:44]OFD Sender: No OFD packet to send [06:09:49]OFD Sender: No OFD packet to send [06:09:54]OFD Sender: No OFD packet to send [06:09:59]OFD Sender: No OFD packet to send [06:10:04]OFD Sender: No OFD packet to send [06:10:09]OFD Sender: No OFD packet to send [06:10:14]OFD Sender: No OFD packet to send [06:10:19]OFD Sender: No OFD packet to send [06:10:24]OFD Sender: No OFD packet to send [06:10:29]OFD Sender: No OFD packet to send [06:10:34]OFD Sender: No OFD packet to send [06:10:39]OFD Sender: No OFD packet to send [06:10:44]OFD Sender: No OFD packet to send [06:10:49]OFD Sender: No OFD packet to send [06:10:54]OFD Sender: No OFD packet to send [06:10:59]OFD Sender: No OFD packet to send [06:11:04]OFD Sender: No OFD packet to send [06:11:09]OFD Sender: No OFD packet to send [06:11:14]OFD Sender: No OFD packet to send [06:11:19]OFD Sender: No OFD packet to send [06:11:24]OFD Sender: No OFD packet to send [06:11:29]OFD Sender: No OFD packet to send [06:11:34]OFD Sender: No OFD packet to send [06:11:39]OFD Sender: No OFD packet to send [06:11:44]OFD Sender: No OFD packet to send [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]OFD Sender: No OFD packet to send [06:13:49]OFD Sender: No OFD packet to send [06:13:54]OFD Sender: No OFD packet to send [06:13:59]OFD Sender: No OFD packet to send [06:14:04]OFD Sender: No OFD packet to send [06:14:09]OFD Sender: No OFD packet to send [06:14:14]OFD Sender: No OFD packet to send [06:14:19]OFD Sender: No OFD packet to send [06:14:24]OFD Sender: No OFD packet to send [06:14:29]OFD Sender: No OFD packet to send [06:14:34]OFD Sender: No OFD packet to send [06:14:39]OFD Sender: No OFD packet to send [06:14:44]OFD Sender: No OFD packet to send [06:14:49]OFD Sender: No OFD packet to send [06:14:54]OFD Sender: No OFD packet to send [06:14:59]OFD Sender: No OFD packet to send [06:15:04]OFD Sender: No OFD packet to send [06:15:09]OFD Sender: No OFD packet to send [06:15:14]OFD Sender: No OFD packet to send [06:15:19]OFD Sender: No OFD packet to send [06:15:24]OFD Sender: No OFD packet to send [06:15:29]OFD Sender: No OFD packet to send [06:15:34]OFD Sender: No OFD packet to send [06:15:39]OFD Sender: No OFD packet to send [06:15:44]OFD Sender: No OFD packet to send [06:15:49]OFD Sender: No OFD packet to send [06:15:54]OFD Sender: No OFD packet to send [06:15:59]OFD Sender: No OFD packet to send [06:16:04]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:44]OFD Sender: No OFD packet to send [06:17:49]OFD Sender: No OFD packet to send [06:17:54]OFD Sender: No OFD packet to send [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:25]OFD Sender: No OFD packet to send [06:26:30]OFD Sender: No OFD packet to send [06:26:35]OFD Sender: No OFD packet to send [06:26:40]OFD Sender: No OFD packet to send [06:26:45]OFD Sender: No OFD packet to send [06:26:50]OFD Sender: No OFD packet to send [06:26:55]OFD Sender: No OFD packet to send [06:27:00]OFD Sender: No OFD packet to send [06:27:05]OFD Sender: No OFD packet to send [06:27:10]OFD Sender: No OFD packet to send [06:27:15]OFD Sender: No OFD packet to send [06:27:20]OFD Sender: No OFD packet to send [06:27:25]OFD Sender: No OFD packet to send [06:27:30]OFD Sender: No OFD packet to send [06:27:35]OFD Sender: No OFD packet to send [06:27:40]OFD Sender: No OFD packet to send [06:27:45]OFD Sender: No OFD packet to send [06:27:50]OFD Sender: No OFD packet to send [06:27:55]OFD Sender: No OFD packet to send [06:28:00]OFD Sender: No OFD packet to send [06:28:05]OFD Sender: No OFD packet to send [06:28:10]OFD Sender: No OFD packet to send [06:28:15]OFD Sender: No OFD packet to send [06:28:20]OFD Sender: No OFD packet to send [06:28:25]OFD Sender: No OFD packet to send [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:21]OFD Sender: No OFD packet to send [06:47:26]OFD Sender: No OFD packet to send [06:47:31]OFD Sender: No OFD packet to send [06:47:36]OFD Sender: No OFD packet to send [06:47:41]OFD Sender: No OFD packet to send [06:47:46]OFD Sender: No OFD packet to send [06:47:51]OFD Sender: No OFD packet to send [06:47:56]OFD Sender: No OFD packet to send [06:48:01]OFD Sender: No OFD packet to send [06:48:06]OFD Sender: No OFD packet to send [06:48:11]OFD Sender: No OFD packet to send [06:48:16]OFD Sender: No OFD packet to send [06:48:21]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:47]OFD Sender: No OFD packet to send [07:06:52]OFD Sender: No OFD packet to send [07:06:57]OFD Sender: No OFD packet to send [07:07:02]OFD Sender: No OFD packet to send [07:07:07]OFD Sender: No OFD packet to send [07:07:12]OFD Sender: No OFD packet to send [07:07:17]OFD Sender: No OFD packet to send [07:07:22]OFD Sender: No OFD packet to send [07:07:27]OFD Sender: No OFD packet to send [07:07:32]OFD Sender: No OFD packet to send [07:07:37]OFD Sender: No OFD packet to send [07:07:42]OFD Sender: No OFD packet to send [07:07:47]OFD Sender: No OFD packet to send [07:07:52]OFD Sender: No OFD packet to send [07:07:57]OFD Sender: No OFD packet to send [07:08:02]OFD Sender: No OFD packet to send [07:08:07]OFD Sender: No OFD packet to send [07:08:12]OFD Sender: No OFD packet to send [07:08:17]OFD Sender: No OFD packet to send [07:08:22]OFD Sender: No OFD packet to send [07:08:27]OFD Sender: No OFD packet to send [07:08:32]OFD Sender: No OFD packet to send [07:08:37]OFD Sender: No OFD packet to send [07:08:42]OFD Sender: No OFD packet to send [07:08:47]OFD Sender: No OFD packet to send [07:08:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:13]OFD Sender: No OFD packet to send [07:24:18]OFD Sender: No OFD packet to send [07:24:23]OFD Sender: No OFD packet to send [07:24:28]OFD Sender: No OFD packet to send [07:24:33]OFD Sender: No OFD packet to send [07:24:38]OFD Sender: No OFD packet to send [07:24:43]OFD Sender: No OFD packet to send [07:24:48]OFD Sender: No OFD packet to send [07:24:53]OFD Sender: No OFD packet to send [07:24:58]OFD Sender: No OFD packet to send [07:25:03]OFD Sender: No OFD packet to send [07:25:08]OFD Sender: No OFD packet to send [07:25:13]OFD Sender: No OFD packet to send [07:25:18]OFD Sender: No OFD packet to send [07:25:23]OFD Sender: No OFD packet to send [07:25:28]OFD Sender: No OFD packet to send [07:25:33]OFD Sender: No OFD packet to send [07:25:38]OFD Sender: No OFD packet to send [07:25:43]OFD Sender: No OFD packet to send [07:25:48]OFD Sender: No OFD packet to send [07:25:53]OFD Sender: No OFD packet to send [07:25:58]OFD Sender: No OFD packet to send [07:26:03]OFD Sender: No OFD packet to send [07:26:08]OFD Sender: No OFD packet to send [07:26:13]OFD Sender: No OFD packet to send [07:26:18]OFD Sender: No OFD packet to send [07:26:23]OFD Sender: No OFD packet to send [07:26:28]OFD Sender: No OFD packet to send [07:26:33]OFD Sender: No OFD packet to send [07:26:38]OFD Sender: No OFD packet to send [07:26:43]OFD Sender: No OFD packet to send [07:26:48]OFD Sender: No OFD packet to send [07:26:53]OFD Sender: No OFD packet to send [07:26:58]OFD Sender: No OFD packet to send [07:27:03]OFD Sender: No OFD packet to send [07:27:08]OFD Sender: No OFD packet to send [07:27:13]OFD Sender: No OFD packet to send [07:27:18]OFD Sender: No OFD packet to send [07:27:23]OFD Sender: No OFD packet to send [07:27:28]OFD Sender: No OFD packet to send [07:27:33]OFD Sender: No OFD packet to send [07:27:38]OFD Sender: No OFD packet to send [07:27:43]OFD Sender: No OFD packet to send [07:27:48]OFD Sender: No OFD packet to send [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:18]OFD Sender: No OFD packet to send [07:31:23]OFD Sender: No OFD packet to send [07:31:28]OFD Sender: No OFD packet to send [07:31:33]OFD Sender: No OFD packet to send [07:31:38]OFD Sender: No OFD packet to send [07:31:43]OFD Sender: No OFD packet to send [07:31:48]OFD Sender: No OFD packet to send [07:31:53]OFD Sender: No OFD packet to send [07:31:58]OFD Sender: No OFD packet to send [07:32:03]OFD Sender: No OFD packet to send [07:32:08]OFD Sender: No OFD packet to send [07:32:13]OFD Sender: No OFD packet to send [07:32:18]OFD Sender: No OFD packet to send [07:32:23]OFD Sender: No OFD packet to send [07:32:28]OFD Sender: No OFD packet to send [07:32:33]OFD Sender: No OFD packet to send [07:32:38]OFD Sender: No OFD packet to send [07:32:43]OFD Sender: No OFD packet to send [07:32:48]OFD Sender: No OFD packet to send [07:32:53]OFD Sender: No OFD packet to send [07:32:58]OFD Sender: No OFD packet to send [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33: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:24]OFD Sender: No OFD packet to send [07:45:29]OFD Sender: No OFD packet to send [07:45:34]OFD Sender: No OFD packet to send [07:45:39]OFD Sender: No OFD packet to send [07:45:44]OFD Sender: No OFD packet to send [07:45:49]OFD Sender: No OFD packet to send [07:45:54]OFD Sender: No OFD packet to send [07:45:59]OFD Sender: No OFD packet to send [07:46:04]OFD Sender: No OFD packet to send [07:46:09]OFD Sender: No OFD packet to send [07:46:14]OFD Sender: No OFD packet to send [07:46:19]OFD Sender: No OFD packet to send [07:46:24]OFD Sender: No OFD packet to send [07:46:29]OFD Sender: No OFD packet to send [07:46:34]OFD Sender: No OFD packet to send [07:46:39]OFD Sender: No OFD packet to send [07:46:44]OFD Sender: No OFD packet to send [07:46:49]OFD Sender: No OFD packet to send [07:46:54]OFD Sender: No OFD packet to send [07:46:59]OFD Sender: No OFD packet to send [07:47:04]OFD Sender: No OFD packet to send [07:47:09]OFD Sender: No OFD packet to send [07:47:14]OFD Sender: No OFD packet to send [07:47:19]OFD Sender: No OFD packet to send [07:47:24]OFD Sender: No OFD packet to send [07:47:29]OFD Sender: No OFD packet to send [07:47:34]OFD Sender: No OFD packet to send [07:47:39]OFD Sender: No OFD packet to send [07:47:44]OFD Sender: No OFD packet to send [07:47:49]OFD Sender: No OFD packet to send [07:47:54]OFD Sender: No OFD packet to send [07:47:59]OFD Sender: No OFD packet to send [07:48:04]OFD Sender: No OFD packet to send [07:48:09]OFD Sender: No OFD packet to send [07:48:14]OFD Sender: No OFD packet to send [07:48:19]OFD Sender: No OFD packet to send [07:48:24]OFD Sender: No OFD packet to send [07:48:29]OFD Sender: No OFD packet to send [07:48:34]OFD Sender: No OFD packet to send [07:48:39]OFD Sender: No OFD packet to send [07:48:44]OFD Sender: No OFD packet to send [07:48:49]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:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:42]accept exits with 9 [08:12:42]New connection [08:12:42]New thread 3066670436 created [08:12:42]Thread 3066813796 joined [08:12:42]Waiting for new connection... [08:12:42] Sock 9.Parse request [08:12:42]Sock 9.Check first char [08:12:42]Sock 9.First char is OK [08:12:42]request: POST /json_proto HTTP/1.0 [08:12:42]Method: POST [08:12:42]URL: /json_proto [08:12:42]Method is POST - this is cgi request [08:12:42]url: /json_proto [08:12:42]query_string will be loaded in cgi processing [08:12:42]execute_cgi json_proto POST (null) [08:12:42]execute_cgi path=json_proto method=POST [08:12:42]POST find Content-Length [08:12:42]Host: 172.17.56.67:8080 [08:12:42]Content-Length: 677 [08:12:42]Content-Type: application/json [08:12:42] [08:12:42]POST finish read [08:12:42]Found Content-Length = 677 [08:12:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.650, "sum" : 220.10, "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" ] } } [08:12:42]execute_script... [08:12: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)216383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.650, "sum" : 220.10, "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" ] } } [08:12:42]POST & json_proto [08:12:42]process_json_proto [08:12:42]json parsed OK: [08:12:42]protocol is kg_v1.0 [08:12:42]action value=close_receipt [08:12:42]process_action close_receipt [08:12:42]cmd_close_receipt [08:12:42]MH_GetDate [08:12:42]Write to MH i2c: F0 00 00 13 8C 8E [08:12:42]Write i2c OK [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: F0 [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: F0 09 00 [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: F0 09 00 13 8C 00 11 01 BA 65 26 5D 9E 65 4E [08:12:42]GetLastDocTimeStamp 1706674866 [08:12:42]current date 1706688785 [08:12:42]FM_GetShiftState [08:12:42]SAM_PROTO_GetShiftState [08:12:42]wFMCommunicate request_size=4 [08:12:42]MH_SAM_APDU [08:12:42]CAPDU: 80 13 01 00 [08:12:42]Write to MH i2c: E2 08 00 14 8C 80 13 01 00 00 00 00 00 1D [08:12:42]Write i2c OK [08:12:42]MH_I2C_Read... [08:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:42]Read from MH i2c: E2 [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: E2 0E 00 [08:12:42]MH_I2C_Read... [08:12:42]Read from MH i2c: E2 0E 00 14 8C 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 73 [08:12:42]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [08:12:42]wFMCommunicate OK [08:12:42]SAM_PROTO_GetShiftState done [08:12:42]FM_GetShiftState done [08:12:42]opened in 1706659486 [08:12:42]opened+sec_in_day 1706745886 [08:12:42]quantity*price = 22009 [08:12:42]sum+1 = 22011 [08:12:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 5 31.01.2024 08:13 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49280 ФПД: 154111638969536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T081305&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49280&fm=154111638969536&tin=02508201610067®Number=0000000000092723&sum=22000 [08:12:43]StoreToDocumentArchive [08:12:43]shift 247 fd 49280 [08:12:43]save to /storage/0247/doc_00049280 [08:12:43]save last doc name /storage/0247/doc_00049280 to /storage/kkm_last_doc_name [08:12:43]save OK [08:12:43]Clear old archive folders... [08:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:12:43]tlvbuf is 014822D0 [08:12:43]SAM_PROTO_ClearQueue [08:12:43]wFMCommunicate request_size=4 [08:12:43]MH_SAM_APDU [08:12:43]CAPDU: 80 09 00 00 [08:12:43]Write to MH i2c: E2 08 00 21 8C 80 09 00 00 00 00 00 00 1F [08:12:43]Write i2c OK [08:12:43]MH_I2C_Read... [08:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:43]Read from MH i2c: E2 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 03 00 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 03 00 21 8C 00 90 00 21 [08:12:43]RAPDU: 90 00 [08:12:43]wFMCommunicate OK [08:12:43]SAM_PROTO_ClearQueue done [08:12:43]KKMCreateOFDPacket [08:12:43]OFDProtocolAddRootSTLVToBuf [08:12:43]FM_MakeSignedData [08:12:43]FM_MakeSignedData [08:12:43]SAM_PROTO_SignData [08:12:43]wFMCommunicate request_size=4 [08:12:43]MH_SAM_APDU [08:12:43]CAPDU: 80 0D 01 02 [08:12:43]Write to MH i2c: E2 08 00 22 8C 80 0D 01 02 00 00 00 00 27 [08:12:43]Write i2c OK [08:12:43]MH_I2C_Read... [08:12:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:43]Read from MH i2c: E2 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 03 00 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 03 00 22 8C 00 90 00 22 [08:12:43]RAPDU: 90 00 [08:12:43]wFMCommunicate OK [08:12:43]wFMCommunicate request_size=255 [08:12:43]MH_SAM_APDU [08:12:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 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 05 00 00 00 F4 03 04 00 11 01 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 80 C0 00 00 35 04 06 00 8C [08:12:43]Write to MH i2c: E2 02 01 23 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 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 05 00 00 00 F4 03 04 00 11 01 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 80 C0 00 00 35 04 06 00 8C 00 00 DD [08:12:43]Write i2c OK [08:12:43]MH_I2C_Read... [08:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:43]Read from MH i2c: E2 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 03 00 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 03 00 23 8C 00 90 00 23 [08:12:43]RAPDU: 90 00 [08:12:43]wFMCommunicate OK [08:12:43]wFMCommunicate request_size=10 [08:12:43]MH_SAM_APDU [08:12:43]CAPDU: 80 0D 02 02 05 29 E9 7F 1C C0 [08:12:43]Write to MH i2c: E2 0D 00 24 8C 80 0D 02 02 05 00 29 E9 7F 1C C0 00 00 A1 [08:12:43]Write i2c OK [08:12:43]MH_I2C_Read... [08:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:43]Read from MH i2c: E2 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 03 00 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 03 00 24 8C 00 90 00 24 [08:12:43]RAPDU: 90 00 [08:12:43]wFMCommunicate OK [08:12:43]wFMCommunicate request_size=4 [08:12:43]MH_SAM_APDU [08:12:43]CAPDU: 80 0D 03 02 [08:12:43]Write to MH i2c: E2 08 00 25 8C 80 0D 03 02 00 00 00 00 2C [08:12:43]Write i2c OK [08:12:43]MH_I2C_Read... [08:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:43]Read from MH i2c: E2 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 0B 00 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 0B 00 25 8C 00 B1 0F 28 F0 70 49 CE B6 90 00 42 [08:12:43]RAPDU: B1 0F 28 F0 70 49 CE B6 90 00 [08:12:43]wFMCommunicate OK [08:12:43]SAM_PROTO_SignData done [08:12:43]FM_MakeSignedData done [08:12:43]CreateOFDProtocolMessage [08:12:43]wFMCommunicate request_size=4 [08:12:43]MH_SAM_APDU [08:12:43]CAPDU: 80 11 00 00 [08:12:43]Write to MH i2c: E2 08 00 26 8C 80 11 00 00 00 00 00 00 2C [08:12:43]Write i2c OK [08:12:43]MH_I2C_Read... [08:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:43]Read from MH i2c: E2 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 17 00 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: E2 17 00 26 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 79 [08:12:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:12:43]wFMCommunicate OK [08:12:43]CreateOFDProtocolMessage done [08:12:43]OFDSenderStorePacket 49280 [08:12:43]StoreOFDPacket docnum=49280 [08:12:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 2B 4B 07 01 22 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 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 05 00 00 00 F4 03 04 00 11 01 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 80 C0 00 00 35 04 06 00 8C 29 E9 7F 1C C0 B1 0F 28 F0 70 49 CE B6 [08:12:43]CheckFolder [08:12:43]dirname=/storage/ofd_packets [08:12:43]CheckFolder done [08:12:43]ProducePacketName [08:12:43]name=ofd_packets/00049280 [08:12:43]NVStorageSaveData ofd_packets/00049280 [08:12:43]File name is /storage/ofd_packets/00049280 [08:12:43]Write 301 bytes [08:12:43]NVStorageSaveData done [08:12:43]OFDSenderStorePacket done [08:12:43]KKMCreateOFDPacket done [08:12:43]NVStorageSaveData kkm_last_timestamp [08:12:43]File name is /storage/kkm_last_timestamp [08:12:43]Write 4 bytes [08:12:43]NVStorageSaveData done [08:12:43]ExternCall_PrintAddStr [08:12:43]wPrintStart [08:12:43]Write to MH i2c: 01 00 00 27 8C B3 [08:12:43]Write i2c OK [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: 01 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: 01 07 00 [08:12:43]MH_I2C_Read... [08:12:43]Read from MH i2c: 01 07 00 27 8C 00 00 00 00 00 FF 0F C8 [08:12:43]RasterBufferAndPrint [08:12:43]line Счет N : (1)216383 [08:12:43]line ИНН: 02508201610067 [08:12:43]line Контрольно-Кассовый Чек [08:12:43]line ПРОДАЖА [08:12:43]line ТРК (МРК, ГНК) : 12 [08:12:43]line Товар: 2710124130 [08:12:43]line Аи-92-К-5 [08:12:43]line 3.650 * 60.30 [08:12:43]line = 220.10 [08:12:43]line НДС 12% НСП 1% [08:12:43]line > о реализуемом товаре [08:12:43]line ОКРУГЛЕНИЕ: -0.10 [08:12:43]line ИТОГО: 220.00 [08:12:43]line Внесено: 220.00 [08:12:43]line СДАЧА: 0.00 [08:12:43]line НСП 1% : 1.95 [08:12:43]line НДС 12% : 23.37 [08:12:43]line Наличными: 220.00 [08:12:43]line Безнал.: 0.00 [08:12:43]line Место: АЗС № 102 "Партнер Нефть" [08:12:43]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:12:43]line СНО: Общий режим [08:12:43]line Чек 5 31.01.2024 08:13 [08:12:43]line Смена: 247 ФФД: 1.0 [08:12:43]line ЗНМ: 0300000040 [08:12:43]line РНМ: 0000000000092723 [08:12:43]line Версия ККМ: 001 [08:12:43]line ФМ: 0000000000875060 [08:12:43]line ФД: 49280 [08:12:43]line ФПД: 154111638969536 [08:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T081305&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49280&fm=154111638969536&tin=02508201610067®Number=0000000000092723&sum=22000 [08:12:44]OFD Sender: Processing packet 49280 [packets to send 12, broken 11] [08:12:44]ProducePacketName [08:12:44]name=ofd_packets/00049280 [08:12:44]OFD Sender: To server: pG, [08:12:44]CommunicateWithHost lk.salyk.kg:30040 [08:12:44]ConnectInit lk.salyk.kg [08:12:44]written 0, free lines is 4095 [08:12:44]Connected sock=10 [08:12:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 2B 4B 07 01 22 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 42 0E 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 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 05 00 00 00 F4 03 04 00 11 01 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 80 C0 00 00 35 04 06 00 8C 29 E9 7F 1C C0 B1 0F 28 F0 70 49 CE B6 [08:12:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 69 81 47 00 BE 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 80 C0 00 00 F4 03 04 00 04 AD B9 65 B6 04 01 00 00 AF EF 56 E3 BC E6 F7 EC [08:12:44]CommunicateWithHost err = 0 [08:12:44]CheckOFDResponse [08:12:44]1017 (14) - 77093643461234 [08:12:44]1041 (16) - 0000000000875060 [08:12:44]1040 (4) - 49280 [08:12:44]1012 (4) - 31.01.2024 02:14 [08:12:44]1206 (1) - 0 [08:12:44]OFD Sender: Remove packet 49280 [08:12:44]ProducePacketName [08:12:44]name=ofd_packets/00049280 [08:12:44]NVStorageDeleteData [08:12:44]Write to MH i2c: 01 00 00 52 8C DE [08:12:44]Write i2c OK [08:12:44]MH_I2C_Read... [08:12:44]Read from MH i2c: 01 [08:12:44]MH_I2C_Read... [08:12:44]Read from MH i2c: 01 07 00 [08:12:44]MH_I2C_Read... [08:12:44]Read from MH i2c: 01 07 00 52 8C 00 00 00 00 00 ED 0C DE [08:12:44]RasterBufferAndPrint [08:12:44]line [08:12:44]line [08:12:44]line [08:12:44]line [08:12:44]line [08:12:44]written 0, free lines is 3315 [08:12:44]MH_Cut [08:12:44]Write to MH i2c: D1 01 00 59 8C 01 B7 [08:12:44]Write i2c OK [08:12:44]MH_I2C_Read... [08:12:44]Read from MH i2c: D1 [08:12:44]MH_I2C_Read... [08:12:44]Read from MH i2c: D1 01 00 [08:12:44]MH_I2C_Read... [08:12:44]Read from MH i2c: D1 01 00 59 8C 00 B6 [08:12:44]Write to MH i2c: 01 00 00 5A 8C E6 [08:12:44]Write i2c OK [08:12:44]MH_I2C_Read... [08:12:45]OFD Sender: No OFD packet to send [08:12:45]*** Cut start [08:12:45]*** Partial cut [08:12:45]*** CUTSNS_PIN = 1 [08:12:45]*** CUTSNS_PIN = 0 [08:12:45]*** Brake cut motor [08:12:46]Read from MH i2c: 01 [08:12:46]MH_I2C_Read... [08:12:46]*** Stop cut motor [08:12:46]*** Cut end [08:12:46]Read from MH i2c: 01 07 00 [08:12:46]MH_I2C_Read... [08:12:46]Read from MH i2c: 01 07 00 5A 8C 00 00 00 00 00 FF 0F FB [08:12:46]process_action close_receipt done [08:12:46]requested_data is exist [08:12:46]produce_requested_data [08:12:46]requested_item fm.sn is exist - process it [08:12:46]wFMCommunicate request_size=4 [08:12:46]MH_SAM_APDU [08:12:46]CAPDU: 80 11 00 00 [08:12:46]Write to MH i2c: E2 08 00 5B 8C 80 11 00 00 00 00 00 00 61 [08:12:46]Write i2c OK [08:12:46]MH_I2C_Read... [08:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:46]Read from MH i2c: E2 [08:12:46]MH_I2C_Read... [08:12:46]Read from MH i2c: E2 17 00 [08:12:46]MH_I2C_Read... [08:12:46]Read from MH i2c: E2 17 00 5B 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AE [08:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:12:46]wFMCommunicate OK [08:12:46]requested_item fd.num is exist - process it [08:12:46]SAM_PROTO_GetFieldsCounters [08:12:46]wFMCommunicate request_size=4 [08:12:46]MH_SAM_APDU [08:12:46]CAPDU: 80 13 00 00 [08:12:46]Write to MH i2c: E2 08 00 5C 8C 80 13 00 00 00 00 00 00 64 [08:12:46]Write i2c OK [08:12:46]MH_I2C_Read... [08:12:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:46]Read from MH i2c: E2 [08:12:46]MH_I2C_Read... [08:12:46]Read from MH i2c: E2 62 00 [08:12:46]MH_I2C_Read... [08:12:46]Read from MH i2c: E2 62 00 5C 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 80 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [08:12:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 80 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:12:46]wFMCommunicate OK [08:12:46]SAM_PROTO_GetFieldsCounters done [08:12:46]requested_item shift.num is exist - process it [08:12:46]requested_item shift.opened is exist - process it [08:12:46]req_shift_opened [08:12:46]FM_GetShiftState [08:12:46]SAM_PROTO_GetShiftState [08:12:46]wFMCommunicate request_size=4 [08:12:46]MH_SAM_APDU [08:12:46]CAPDU: 80 13 01 00 [08:12:46]Write to MH i2c: E2 08 00 5D 8C 80 13 01 00 00 00 00 00 66 [08:12:46]Write i2c OK [08:12:46]MH_I2C_Read... [08:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:46]Read from MH i2c: E2 [08:12:46]MH_I2C_Read... [08:12:46]Read from MH i2c: E2 0E 00 [08:12:46]MH_I2C_Read... [08:12:46]Read from MH i2c: E2 0E 00 5D 8C 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 BC [08:12:46]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [08:12:46]wFMCommunicate OK [08:12:46]SAM_PROTO_GetShiftState done [08:12:46]FM_GetShiftState done [08:12:46]req_shift_opened done [08:12:46]requested_item shift.open_date is exist - process it [08:12:46]req_shift_open_date [08:12:46]req_shift_open_date done [08:12:46]produce_requested_data done [08:12:46]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49280,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [08:12:46]process_action_free close_receipt [08:12:46]json_value_free [08:12:46]json_value_free done [08:12:46]process_json_proto returns [08:12:46]Send response to host [08:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49280,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [08:12:46]free response buf [08:12:46]execute_script done [08:12:46]execute_script returns [08:12:46]free content buf [08:12:46]Sock 9.Close socket [08:12:46]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:52]accept exits with 7 [08:37:52]New connection [08:37:52]New thread 3066813796 created [08:37:52]Thread 3066670436 joined [08:37:52]Waiting for new connection... [08:37:52] Sock 7.Parse request [08:37:52]Sock 7.Check first char [08:37:52]Sock 7.First char is OK [08:37:52]request: POST /json_proto HTTP/1.0 [08:37:52]Method: POST [08:37:52]URL: /json_proto [08:37:52]Method is POST - this is cgi request [08:37:52]url: /json_proto [08:37:52]query_string will be loaded in cgi processing [08:37:52]execute_cgi json_proto POST (null) [08:37:52]execute_cgi path=json_proto method=POST [08:37:52]POST find Content-Length [08:37:52]Host: 172.17.56.67:8080 [08:37:52]Content-Length: 678 [08:37:52]Content-Type: application/json [08:37:52] [08:37:52]POST finish read [08:37:52]Found Content-Length = 678 [08:37:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 10.290, "sum" : 620.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:52]execute_script... [08:37:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 10.290, "sum" : 620.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:52]POST & json_proto [08:37:52]process_json_proto [08:37:52]json parsed OK: [08:37:52]protocol is kg_v1.0 [08:37:52]action value=close_receipt [08:37:52]process_action close_receipt [08:37:52]cmd_close_receipt [08:37:52]MH_GetDate [08:37:52]Write to MH i2c: F0 00 00 5E 8C D9 [08:37:52]Write i2c OK [08:37:52]MH_I2C_Read... [08:37:52]Read from MH i2c: F0 [08:37:52]MH_I2C_Read... [08:37:52]Read from MH i2c: F0 09 00 [08:37:52]MH_I2C_Read... [08:37:52]Read from MH i2c: F0 09 00 5E 8C 00 F7 06 BA 65 26 5D 9E 65 84 [08:37:52]GetLastDocTimeStamp 1706688785 [08:37:52]current date 1706690295 [08:37:52]FM_GetShiftState [08:37:52]SAM_PROTO_GetShiftState [08:37:52]wFMCommunicate request_size=4 [08:37:52]MH_SAM_APDU [08:37:52]CAPDU: 80 13 01 00 [08:37:52]Write to MH i2c: E2 08 00 5F 8C 80 13 01 00 00 00 00 00 68 [08:37:52]Write i2c OK [08:37:52]MH_I2C_Read... [08:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:52]Read from MH i2c: E2 [08:37:52]MH_I2C_Read... [08:37:52]Read from MH i2c: E2 0E 00 [08:37:52]MH_I2C_Read... [08:37:52]Read from MH i2c: E2 0E 00 5F 8C 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 BE [08:37:52]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [08:37:52]wFMCommunicate OK [08:37:52]SAM_PROTO_GetShiftState done [08:37:52]FM_GetShiftState done [08:37:52]opened in 1706659486 [08:37:52]opened+sec_in_day 1706745886 [08:37:52]quantity*price = 62048 [08:37:52]sum+1 = 62050 [08:37:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.89 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 6 31.01.2024 08:38 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49281 ФПД: 91863875694640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T083815&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49281&fm=91863875694640&tin=02508201610067®Number=0000000000092723&sum=62000 [08:37:53]StoreToDocumentArchive [08:37:53]shift 247 fd 49281 [08:37:53]save to /storage/0247/doc_00049281 [08:37:53]save last doc name /storage/0247/doc_00049281 to /storage/kkm_last_doc_name [08:37:53]save OK [08:37:53]Clear old archive folders... [08:37:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:37:53]tlvbuf is 01482070 [08:37:53]SAM_PROTO_ClearQueue [08:37:53]wFMCommunicate request_size=4 [08:37:53]MH_SAM_APDU [08:37:53]CAPDU: 80 09 00 00 [08:37:53]Write to MH i2c: E2 08 00 6C 8C 80 09 00 00 00 00 00 00 6A [08:37:53]Write i2c OK [08:37:53]MH_I2C_Read... [08:37:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:53]Read from MH i2c: E2 [08:37:53]MH_I2C_Read... [08:37:53]Read from MH i2c: E2 03 00 [08:37:53]MH_I2C_Read... [08:37:53]Read from MH i2c: E2 03 00 6C 8C 00 90 00 6C [08:37:53]RAPDU: 90 00 [08:37:53]wFMCommunicate OK [08:37:53]SAM_PROTO_ClearQueue done [08:37:53]KKMCreateOFDPacket [08:37:53]OFDProtocolAddRootSTLVToBuf [08:37:53]FM_MakeSignedData [08:37:53]FM_MakeSignedData [08:37:53]SAM_PROTO_SignData [08:37:53]wFMCommunicate request_size=4 [08:37:53]MH_SAM_APDU [08:37:53]CAPDU: 80 0D 01 02 [08:37:53]Write to MH i2c: E2 08 00 6D 8C 80 0D 01 02 00 00 00 00 72 [08:37:53]Write i2c OK [08:37:53]MH_I2C_Read... [08:37:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:53]Read from MH i2c: E2 [08:37:53]MH_I2C_Read... [08:37:53]Read from MH i2c: E2 03 00 [08:37:53]MH_I2C_Read... [08:37:53]Read from MH i2c: E2 03 00 6D 8C 00 90 00 6D [08:37:53]RAPDU: 90 00 [08:37:53]wFMCommunicate OK [08:37:53]wFMCommunicate request_size=255 [08:37:53]MH_SAM_APDU [08:37:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F7 06 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 81 C0 00 00 35 04 06 00 53 [08:37:53]Write to MH i2c: E2 02 01 6E 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F7 06 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 81 C0 00 00 35 04 06 00 53 00 00 B4 [08:37:53]Write i2c OK [08:37:53]MH_I2C_Read... [08:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:53]Read from MH i2c: E2 [08:37:53]MH_I2C_Read... [08:37:53]Read from MH i2c: E2 03 00 [08:37:53]MH_I2C_Read... [08:37:53]Read from MH i2c: E2 03 00 6E 8C 00 90 00 6E [08:37:53]RAPDU: 90 00 [08:37:53]wFMCommunicate OK [08:37:53]wFMCommunicate request_size=10 [08:37:53]MH_SAM_APDU [08:37:53]CAPDU: 80 0D 02 02 05 8C B9 AD B0 30 [08:37:53]Write to MH i2c: E2 0D 00 6F 8C 80 0D 02 02 05 00 8C B9 AD B0 30 00 00 51 [08:37:53]Write i2c OK [08:37:53]MH_I2C_Read... [08:37:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:54]Read from MH i2c: E2 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 03 00 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 03 00 6F 8C 00 90 00 6F [08:37:54]RAPDU: 90 00 [08:37:54]wFMCommunicate OK [08:37:54]wFMCommunicate request_size=4 [08:37:54]MH_SAM_APDU [08:37:54]CAPDU: 80 0D 03 02 [08:37:54]Write to MH i2c: E2 08 00 70 8C 80 0D 03 02 00 00 00 00 77 [08:37:54]Write i2c OK [08:37:54]MH_I2C_Read... [08:37:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:54]Read from MH i2c: E2 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 0B 00 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 0B 00 70 8C 00 0E 6C D2 6D 41 FA 1E A5 90 00 2F [08:37:54]RAPDU: 0E 6C D2 6D 41 FA 1E A5 90 00 [08:37:54]wFMCommunicate OK [08:37:54]SAM_PROTO_SignData done [08:37:54]FM_MakeSignedData done [08:37:54]CreateOFDProtocolMessage [08:37:54]wFMCommunicate request_size=4 [08:37:54]MH_SAM_APDU [08:37:54]CAPDU: 80 11 00 00 [08:37:54]Write to MH i2c: E2 08 00 71 8C 80 11 00 00 00 00 00 00 77 [08:37:54]Write i2c OK [08:37:54]MH_I2C_Read... [08:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:54]Read from MH i2c: E2 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 17 00 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: E2 17 00 71 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C4 [08:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:37:54]wFMCommunicate OK [08:37:54]CreateOFDProtocolMessage done [08:37:54]OFDSenderStorePacket 49281 [08:37:54]StoreOFDPacket docnum=49281 [08:37:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 8A 54 07 01 70 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F7 06 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 81 C0 00 00 35 04 06 00 53 8C B9 AD B0 30 0E 6C D2 6D 41 FA 1E A5 [08:37:54]CheckFolder [08:37:54]dirname=/storage/ofd_packets [08:37:54]CheckFolder done [08:37:54]ProducePacketName [08:37:54]name=ofd_packets/00049281 [08:37:54]NVStorageSaveData ofd_packets/00049281 [08:37:54]File name is /storage/ofd_packets/00049281 [08:37:54]Write 301 bytes [08:37:54]NVStorageSaveData done [08:37:54]OFDSenderStorePacket done [08:37:54]KKMCreateOFDPacket done [08:37:54]NVStorageSaveData kkm_last_timestamp [08:37:54]File name is /storage/kkm_last_timestamp [08:37:54]Write 4 bytes [08:37:54]NVStorageSaveData done [08:37:54]ExternCall_PrintAddStr [08:37:54]wPrintStart [08:37:54]Write to MH i2c: 01 00 00 72 8C FE [08:37:54]Write i2c OK [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: 01 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: 01 07 00 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: 01 07 00 72 8C 00 00 00 00 00 FF 0F 13 [08:37:54]RasterBufferAndPrint [08:37:54]line Счет N : (1)216384 [08:37:54]line ИНН: 02508201610067 [08:37:54]line Контрольно-Кассовый Чек [08:37:54]line ПРОДАЖА [08:37:54]line ТРК (МРК, ГНК) : 22 [08:37:54]line Товар: 2710124130 [08:37:54]line Аи-92-К-5 [08:37:54]line 10.290 * 60.30 [08:37:54]line = 620.49 [08:37:54]line НДС 12% НСП 1% [08:37:54]line > о реализуемом товаре [08:37:54]line ОКРУГЛЕНИЕ: -0.49 [08:37:54]line ИТОГО: 620.00 [08:37:54]line Внесено: 620.00 [08:37:54]line СДАЧА: 0.00 [08:37:54]line НСП 1% : 5.49 [08:37:54]line НДС 12% : 65.89 [08:37:54]line Наличными: 620.00 [08:37:54]line Безнал.: 0.00 [08:37:54]line Место: АЗС № 102 "Партнер Нефть" [08:37:54]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:37:54]line СНО: Общий режим [08:37:54]line Чек 6 31.01.2024 08:38 [08:37:54]line Смена: 247 ФФД: 1.0 [08:37:54]line ЗНМ: 0300000040 [08:37:54]line РНМ: 0000000000092723 [08:37:54]line Версия ККМ: 001 [08:37:54]line ФМ: 0000000000875060 [08:37:54]line ФД: 49281 [08:37:54]line ФПД: 91863875694640 [08:37:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T083815&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49281&fm=91863875694640&tin=02508201610067®Number=0000000000092723&sum=62000 [08:37:54]OFD Sender: Processing packet 49281 [packets to send 12, broken 11] [08:37:54]ProducePacketName [08:37:54]name=ofd_packets/00049281 [08:37:54]OFD Sender: To server: pG, [08:37:54]CommunicateWithHost lk.salyk.kg:30040 [08:37:54]ConnectInit lk.salyk.kg [08:37:54]written 0, free lines is 4095 [08:37:54]Connected sock=10 [08:37:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 8A 54 07 01 70 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 28 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 61 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F7 06 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 81 C0 00 00 35 04 06 00 53 8C B9 AD B0 30 0E 6C D2 6D 41 FA 1E A5 [08:37:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 DA E9 47 00 C2 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 81 C0 00 00 F4 03 04 00 EA B2 B9 65 B6 04 01 00 00 58 51 67 43 26 64 49 AF [08:37:54]CommunicateWithHost err = 0 [08:37:54]CheckOFDResponse [08:37:54]1017 (14) - 77093643461234 [08:37:54]1041 (16) - 0000000000875060 [08:37:54]1040 (4) - 49281 [08:37:54]1012 (4) - 31.01.2024 02:39 [08:37:54]1206 (1) - 0 [08:37:54]OFD Sender: Remove packet 49281 [08:37:54]ProducePacketName [08:37:54]name=ofd_packets/00049281 [08:37:54]NVStorageDeleteData [08:37:54]Write to MH i2c: 01 00 00 9D 8C 29 [08:37:54]Write i2c OK [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: 01 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: 01 07 00 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: 01 07 00 9D 8C 00 00 00 00 00 EC 0C 28 [08:37:54]RasterBufferAndPrint [08:37:54]line [08:37:54]line [08:37:54]line [08:37:54]line [08:37:54]line [08:37:54]written 0, free lines is 3314 [08:37:54]MH_Cut [08:37:54]Write to MH i2c: D1 01 00 A4 8C 01 02 [08:37:54]Write i2c OK [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: D1 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: D1 01 00 [08:37:54]MH_I2C_Read... [08:37:54]Read from MH i2c: D1 01 00 A4 8C 00 01 [08:37:54]Write to MH i2c: 01 00 00 A5 8C 31 [08:37:54]Write i2c OK [08:37:54]MH_I2C_Read... [08:37:55]OFD Sender: No OFD packet to send [08:37:55]*** Cut start [08:37:55]*** Partial cut [08:37:55]*** CUTSNS_PIN = 1 [08:37:55]*** CUTSNS_PIN = 0 [08:37:55]*** Brake cut motor [08:37:56]Read from MH i2c: 01 [08:37:56]MH_I2C_Read... [08:37:56]*** Stop cut motor [08:37:56]*** Cut end [08:37:56]Read from MH i2c: 01 07 00 [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: 01 07 00 A5 8C 00 00 00 00 00 FF 0F 46 [08:37:56]process_action close_receipt done [08:37:56]requested_data is exist [08:37:56]produce_requested_data [08:37:56]requested_item fm.sn is exist - process it [08:37:56]wFMCommunicate request_size=4 [08:37:56]MH_SAM_APDU [08:37:56]CAPDU: 80 11 00 00 [08:37:56]Write to MH i2c: E2 08 00 A6 8C 80 11 00 00 00 00 00 00 AC [08:37:56]Write i2c OK [08:37:56]MH_I2C_Read... [08:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:56]Read from MH i2c: E2 [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: E2 17 00 [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: E2 17 00 A6 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F9 [08:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:37:56]wFMCommunicate OK [08:37:56]requested_item fd.num is exist - process it [08:37:56]SAM_PROTO_GetFieldsCounters [08:37:56]wFMCommunicate request_size=4 [08:37:56]MH_SAM_APDU [08:37:56]CAPDU: 80 13 00 00 [08:37:56]Write to MH i2c: E2 08 00 A7 8C 80 13 00 00 00 00 00 00 AF [08:37:56]Write i2c OK [08:37:56]MH_I2C_Read... [08:37:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:56]Read from MH i2c: E2 [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: E2 62 00 [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: E2 62 00 A7 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 81 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [08:37: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 81 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:37:56]wFMCommunicate OK [08:37:56]SAM_PROTO_GetFieldsCounters done [08:37:56]requested_item shift.num is exist - process it [08:37:56]requested_item shift.opened is exist - process it [08:37:56]req_shift_opened [08:37:56]FM_GetShiftState [08:37:56]SAM_PROTO_GetShiftState [08:37:56]wFMCommunicate request_size=4 [08:37:56]MH_SAM_APDU [08:37:56]CAPDU: 80 13 01 00 [08:37:56]Write to MH i2c: E2 08 00 A8 8C 80 13 01 00 00 00 00 00 B1 [08:37:56]Write i2c OK [08:37:56]MH_I2C_Read... [08:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:56]Read from MH i2c: E2 [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: E2 0E 00 [08:37:56]MH_I2C_Read... [08:37:56]Read from MH i2c: E2 0E 00 A8 8C 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 07 [08:37:56]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [08:37:56]wFMCommunicate OK [08:37:56]SAM_PROTO_GetShiftState done [08:37:56]FM_GetShiftState done [08:37:56]req_shift_opened done [08:37:56]requested_item shift.open_date is exist - process it [08:37:56]req_shift_open_date [08:37:56]req_shift_open_date done [08:37:56]produce_requested_data done [08:37:56]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49281,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [08:37:56]process_action_free close_receipt [08:37:56]json_value_free [08:37:56]json_value_free done [08:37:56]process_json_proto returns [08:37:56]Send response to host [08:37:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49281,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [08:37:56]free response buf [08:37:56]execute_script done [08:37:56]execute_script returns [08:37:56]free content buf [08:37:56]Sock 7.Close socket [08:37:56]Sock 7.Thread stoped [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43: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:43:57]accept exits with 9 [08:43:57]New connection [08:43:57]New thread 3066670436 created [08:43:57]Thread 3066813796 joined [08:43:57]Waiting for new connection... [08:43:57] Sock 9.Parse request [08:43:57]Sock 9.Check first char [08:43:57]Sock 9.First char is OK [08:43:57]request: POST /json_proto HTTP/1.0 [08:43:57]Method: POST [08:43:57]URL: /json_proto [08:43:57]Method is POST - this is cgi request [08:43:57]url: /json_proto [08:43:57]query_string will be loaded in cgi processing [08:43:57]execute_cgi json_proto POST (null) [08:43:57]execute_cgi path=json_proto method=POST [08:43:57]POST find Content-Length [08:43:57]Host: 172.17.56.67:8080 [08:43:57]Content-Length: 677 [08:43:57]Content-Type: application/json [08:43:57] [08:43:57]POST finish read [08:43:57]Found Content-Length = 677 [08:43:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:57]execute_script... [08:43: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)216385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:43:57]POST & json_proto [08:43:57]process_json_proto [08:43:57]json parsed OK: [08:43:57]protocol is kg_v1.0 [08:43:57]action value=close_receipt [08:43:57]process_action close_receipt [08:43:57]cmd_close_receipt [08:43:57]MH_GetDate [08:43:57]Write to MH i2c: F0 00 00 A9 8C 24 [08:43:57]Write i2c OK [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: F0 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: F0 09 00 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: F0 09 00 A9 8C 00 64 08 BA 65 26 5D 9E 65 3E [08:43:57]GetLastDocTimeStamp 1706690295 [08:43:57]current date 1706690660 [08:43:57]FM_GetShiftState [08:43:57]SAM_PROTO_GetShiftState [08:43:57]wFMCommunicate request_size=4 [08:43:57]MH_SAM_APDU [08:43:57]CAPDU: 80 13 01 00 [08:43:57]Write to MH i2c: E2 08 00 AA 8C 80 13 01 00 00 00 00 00 B3 [08:43:57]Write i2c OK [08:43:57]MH_I2C_Read... [08:43:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:57]Read from MH i2c: E2 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 0E 00 [08:43:57]MH_I2C_Read... [08:43:57]Read from MH i2c: E2 0E 00 AA 8C 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 09 [08:43:57]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [08:43:57]wFMCommunicate OK [08:43:57]SAM_PROTO_GetShiftState done [08:43:57]FM_GetShiftState done [08:43:57]opened in 1706659486 [08:43:57]opened+sec_in_day 1706745886 [08:43:57]quantity*price = 60058 [08:43:57]sum+1 = 60060 [08:43:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 7 31.01.2024 08:44 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49282 ФПД: 82221400785047 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T084420&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49282&fm=82221400785047&tin=02508201610067®Number=0000000000092723&sum=60000 [08:43:58]StoreToDocumentArchive [08:43:58]shift 247 fd 49282 [08:43:58]save to /storage/0247/doc_00049282 [08:43:58]save last doc name /storage/0247/doc_00049282 to /storage/kkm_last_doc_name [08:43:58]save OK [08:43:58]Clear old archive folders... [08:43:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:43:58]tlvbuf is 011AD3F0 [08:43:58]SAM_PROTO_ClearQueue [08:43:58]wFMCommunicate request_size=4 [08:43:58]MH_SAM_APDU [08:43:58]CAPDU: 80 09 00 00 [08:43:58]Write to MH i2c: E2 08 00 B7 8C 80 09 00 00 00 00 00 00 B5 [08:43:58]Write i2c OK [08:43:58]MH_I2C_Read... [08:43:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:58]Read from MH i2c: E2 [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: E2 03 00 [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: E2 03 00 B7 8C 00 90 00 B7 [08:43:58]RAPDU: 90 00 [08:43:58]wFMCommunicate OK [08:43:58]SAM_PROTO_ClearQueue done [08:43:58]KKMCreateOFDPacket [08:43:58]OFDProtocolAddRootSTLVToBuf [08:43:58]FM_MakeSignedData [08:43:58]FM_MakeSignedData [08:43:58]SAM_PROTO_SignData [08:43:58]wFMCommunicate request_size=4 [08:43:58]MH_SAM_APDU [08:43:58]CAPDU: 80 0D 01 02 [08:43:58]Write to MH i2c: E2 08 00 B8 8C 80 0D 01 02 00 00 00 00 BD [08:43:58]Write i2c OK [08:43:58]MH_I2C_Read... [08:43:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:58]Read from MH i2c: E2 [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: E2 03 00 [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: E2 03 00 B8 8C 00 90 00 B8 [08:43:58]RAPDU: 90 00 [08:43:58]wFMCommunicate OK [08:43:58]wFMCommunicate request_size=255 [08:43:58]MH_SAM_APDU [08:43:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 64 08 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 82 C0 00 00 35 04 06 00 4A [08:43:58]Write to MH i2c: E2 02 01 B9 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 64 08 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 82 C0 00 00 35 04 06 00 4A 00 00 B7 [08:43:58]Write i2c OK [08:43:58]MH_I2C_Read... [08:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:59]Read from MH i2c: E2 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 03 00 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 03 00 B9 8C 00 90 00 B9 [08:43:59]RAPDU: 90 00 [08:43:59]wFMCommunicate OK [08:43:59]wFMCommunicate request_size=10 [08:43:59]MH_SAM_APDU [08:43:59]CAPDU: 80 0D 02 02 05 C7 A9 63 00 97 [08:43:59]Write to MH i2c: E2 0D 00 BA 8C 80 0D 02 02 05 00 C7 A9 63 00 97 00 00 34 [08:43:59]Write i2c OK [08:43:59]MH_I2C_Read... [08:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:59]Read from MH i2c: E2 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 03 00 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 03 00 BA 8C 00 90 00 BA [08:43:59]RAPDU: 90 00 [08:43:59]wFMCommunicate OK [08:43:59]wFMCommunicate request_size=4 [08:43:59]MH_SAM_APDU [08:43:59]CAPDU: 80 0D 03 02 [08:43:59]Write to MH i2c: E2 08 00 BB 8C 80 0D 03 02 00 00 00 00 C2 [08:43:59]Write i2c OK [08:43:59]MH_I2C_Read... [08:43:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:59]Read from MH i2c: E2 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 0B 00 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 0B 00 BB 8C 00 5B 77 12 6E 2F 07 6D EE 90 00 A6 [08:43:59]RAPDU: 5B 77 12 6E 2F 07 6D EE 90 00 [08:43:59]wFMCommunicate OK [08:43:59]SAM_PROTO_SignData done [08:43:59]FM_MakeSignedData done [08:43:59]CreateOFDProtocolMessage [08:43:59]wFMCommunicate request_size=4 [08:43:59]MH_SAM_APDU [08:43:59]CAPDU: 80 11 00 00 [08:43:59]Write to MH i2c: E2 08 00 BC 8C 80 11 00 00 00 00 00 00 C2 [08:43:59]Write i2c OK [08:43:59]MH_I2C_Read... [08:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:59]Read from MH i2c: E2 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 17 00 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 17 00 BC 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0F [08:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:43:59]wFMCommunicate OK [08:43:59]CreateOFDProtocolMessage done [08:43:59]OFDSenderStorePacket 49282 [08:43:59]StoreOFDPacket docnum=49282 [08:43:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 20 2C 07 01 6D 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 64 08 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 82 C0 00 00 35 04 06 00 4A C7 A9 63 00 97 5B 77 12 6E 2F 07 6D EE [08:43:59]CheckFolder [08:43:59]dirname=/storage/ofd_packets [08:43:59]CheckFolder done [08:43:59]ProducePacketName [08:43:59]name=ofd_packets/00049282 [08:43:59]NVStorageSaveData ofd_packets/00049282 [08:43:59]File name is /storage/ofd_packets/00049282 [08:43:59]Write 301 bytes [08:43:59]NVStorageSaveData done [08:43:59]OFDSenderStorePacket done [08:43:59]KKMCreateOFDPacket done [08:43:59]NVStorageSaveData kkm_last_timestamp [08:43:59]File name is /storage/kkm_last_timestamp [08:43:59]Write 4 bytes [08:43:59]NVStorageSaveData done [08:43:59]ExternCall_PrintAddStr [08:43:59]wPrintStart [08:43:59]Write to MH i2c: 01 00 00 BD 8C 49 [08:43:59]Write i2c OK [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: 01 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: 01 07 00 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: 01 07 00 BD 8C 00 00 00 00 00 FF 0F 5E [08:43:59]RasterBufferAndPrint [08:43:59]line Счет N : (1)216385 [08:43:59]line ИНН: 02508201610067 [08:43:59]line Контрольно-Кассовый Чек [08:43:59]line ПРОДАЖА [08:43:59]line ТРК (МРК, ГНК) : 22 [08:43:59]line Товар: 2710124130 [08:43:59]line Аи-92-К-5 [08:43:59]line 9.960 * 60.30 [08:43:59]line = 600.59 [08:43:59]line НДС 12% НСП 1% [08:43:59]line > о реализуемом товаре [08:43:59]line ОКРУГЛЕНИЕ: -0.59 [08:43:59]line ИТОГО: 600.00 [08:43:59]line Внесено: 600.00 [08:43:59]line СДАЧА: 0.00 [08:43:59]line НСП 1% : 5.31 [08:43:59]line НДС 12% : 63.78 [08:43:59]line Наличными: 600.00 [08:43:59]line Безнал.: 0.00 [08:43:59]line Место: АЗС № 102 "Партнер Нефть" [08:43:59]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:43:59]line СНО: Общий режим [08:43:59]line Чек 7 31.01.2024 08:44 [08:43:59]line Смена: 247 ФФД: 1.0 [08:43:59]line ЗНМ: 0300000040 [08:43:59]line РНМ: 0000000000092723 [08:43:59]line Версия ККМ: 001 [08:43:59]line ФМ: 0000000000875060 [08:43:59]line ФД: 49282 [08:43:59]line ФПД: 82221400785047 [08:43:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T084420&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49282&fm=82221400785047&tin=02508201610067®Number=0000000000092723&sum=60000 [08:43:59]OFD Sender: Processing packet 49282 [packets to send 12, broken 11] [08:43:59]ProducePacketName [08:43:59]name=ofd_packets/00049282 [08:43:59]OFD Sender: To server: pG, [08:43:59]CommunicateWithHost lk.salyk.kg:30040 [08:43:59]ConnectInit lk.salyk.kg [08:43:59]written 0, free lines is 4095 [08:43:59]Connected sock=10 [08:43:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 20 2C 07 01 6D 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 64 08 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 82 C0 00 00 35 04 06 00 4A C7 A9 63 00 97 5B 77 12 6E 2F 07 6D EE [08:43:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 55 C6 47 00 79 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 82 C0 00 00 F4 03 04 00 57 B4 B9 65 B6 04 01 00 00 79 45 67 2D 84 4A 5D 37 [08:43:59]CommunicateWithHost err = 0 [08:43:59]CheckOFDResponse [08:43:59]1017 (14) - 77093643461234 [08:43:59]1041 (16) - 0000000000875060 [08:43:59]1040 (4) - 49282 [08:43:59]1012 (4) - 31.01.2024 02:45 [08:43:59]1206 (1) - 0 [08:43:59]OFD Sender: Remove packet 49282 [08:43:59]ProducePacketName [08:43:59]name=ofd_packets/00049282 [08:43:59]NVStorageDeleteData [08:44:00]Write to MH i2c: 01 00 00 E8 8C 74 [08:44:00]Write i2c OK [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: 01 [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: 01 07 00 [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: 01 07 00 E8 8C 00 00 00 00 00 00 0D 88 [08:44:00]RasterBufferAndPrint [08:44:00]line [08:44:00]line [08:44:00]line [08:44:00]line [08:44:00]line [08:44:00]written 0, free lines is 3334 [08:44:00]MH_Cut [08:44:00]Write to MH i2c: D1 01 00 EF 8C 01 4D [08:44:00]Write i2c OK [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: D1 [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: D1 01 00 [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: D1 01 00 EF 8C 00 4C [08:44:00]Write to MH i2c: 01 00 00 F0 8C 7C [08:44:00]Write i2c OK [08:44:00]MH_I2C_Read... [08:44:00]OFD Sender: No OFD packet to send [08:44:00]*** Cut start [08:44:00]*** Partial cut [08:44:00]*** CUTSNS_PIN = 1 [08:44:00]*** CUTSNS_PIN = 0 [08:44:00]*** Brake cut motor [08:44:01]Read from MH i2c: 01 [08:44:01]MH_I2C_Read... [08:44:01]*** Stop cut motor [08:44:01]*** Cut end [08:44:01]Read from MH i2c: 01 07 00 [08:44:01]MH_I2C_Read... [08:44:01]Read from MH i2c: 01 07 00 F0 8C 00 00 00 00 00 FF 0F 91 [08:44:01]process_action close_receipt done [08:44:01]requested_data is exist [08:44:01]produce_requested_data [08:44:01]requested_item fm.sn is exist - process it [08:44:01]wFMCommunicate request_size=4 [08:44:01]MH_SAM_APDU [08:44:01]CAPDU: 80 11 00 00 [08:44:01]Write to MH i2c: E2 08 00 F1 8C 80 11 00 00 00 00 00 00 F7 [08:44:01]Write i2c OK [08:44:01]MH_I2C_Read... [08:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:01]Read from MH i2c: E2 [08:44:01]MH_I2C_Read... [08:44:01]Read from MH i2c: E2 17 00 [08:44:01]MH_I2C_Read... [08:44:01]Read from MH i2c: E2 17 00 F1 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 44 [08:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:44:01]wFMCommunicate OK [08:44:01]requested_item fd.num is exist - process it [08:44:01]SAM_PROTO_GetFieldsCounters [08:44:01]wFMCommunicate request_size=4 [08:44:01]MH_SAM_APDU [08:44:01]CAPDU: 80 13 00 00 [08:44:01]Write to MH i2c: E2 08 00 F2 8C 80 13 00 00 00 00 00 00 FA [08:44:01]Write i2c OK [08:44:01]MH_I2C_Read... [08:44:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:01]Read from MH i2c: E2 [08:44:01]MH_I2C_Read... [08:44:01]Read from MH i2c: E2 62 00 [08:44:01]MH_I2C_Read... [08:44:01]Read from MH i2c: E2 62 00 F2 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 82 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [08:44: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 82 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:01]wFMCommunicate OK [08:44:01]SAM_PROTO_GetFieldsCounters done [08:44:01]requested_item shift.num is exist - process it [08:44:01]requested_item shift.opened is exist - process it [08:44:01]req_shift_opened [08:44:01]FM_GetShiftState [08:44:01]SAM_PROTO_GetShiftState [08:44:01]wFMCommunicate request_size=4 [08:44:01]MH_SAM_APDU [08:44:01]CAPDU: 80 13 01 00 [08:44:01]Write to MH i2c: E2 08 00 F3 8C 80 13 01 00 00 00 00 00 FC [08:44:01]Write i2c OK [08:44:01]MH_I2C_Read... [08:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:01]Read from MH i2c: E2 [08:44:01]MH_I2C_Read... [08:44:01]Read from MH i2c: E2 0E 00 [08:44:01]MH_I2C_Read... [08:44:01]Read from MH i2c: E2 0E 00 F3 8C 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 52 [08:44:01]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [08:44:01]wFMCommunicate OK [08:44:01]SAM_PROTO_GetShiftState done [08:44:01]FM_GetShiftState done [08:44:01]req_shift_opened done [08:44:01]requested_item shift.open_date is exist - process it [08:44:01]req_shift_open_date [08:44:01]req_shift_open_date done [08:44:01]produce_requested_data done [08:44:01]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49282,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [08:44:01]process_action_free close_receipt [08:44:01]json_value_free [08:44:01]json_value_free done [08:44:01]process_json_proto returns [08:44:01]Send response to host [08:44:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49282,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [08:44:01]free response buf [08:44:01]execute_script done [08:44:01]execute_script returns [08:44:01]free content buf [08:44:01]Sock 9.Close socket [08:44:01]Sock 9.Thread stoped [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:46:00]OFD Sender: No OFD packet to send [08:46:05]OFD Sender: No OFD packet to send [08:46:10]OFD Sender: No OFD packet to send [08:46:15]OFD Sender: No OFD packet to send [08:46:20]OFD Sender: No OFD packet to send [08:46:25]OFD Sender: No OFD packet to send [08:46:26]accept exits with 7 [08:46:26]New connection [08:46:26]New thread 3066813796 created [08:46:26]Thread 3066670436 joined [08:46:26]Waiting for new connection... [08:46:26] Sock 7.Parse request [08:46:26]Sock 7.Check first char [08:46:26]Sock 7.First char is OK [08:46:26]request: POST /json_proto HTTP/1.0 [08:46:26]Method: POST [08:46:26]URL: /json_proto [08:46:26]Method is POST - this is cgi request [08:46:26]url: /json_proto [08:46:26]query_string will be loaded in cgi processing [08:46:26]execute_cgi json_proto POST (null) [08:46:26]execute_cgi path=json_proto method=POST [08:46:26]POST find Content-Length [08:46:26]Host: 172.17.56.67:8080 [08:46:26]Content-Length: 677 [08:46:26]Content-Type: application/json [08:46:26] [08:46:26]POST finish read [08:46:26]Found Content-Length = 677 [08:46:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:26]execute_script... [08:46: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)216387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:26]POST & json_proto [08:46:26]process_json_proto [08:46:26]json parsed OK: [08:46:26]protocol is kg_v1.0 [08:46:26]action value=close_receipt [08:46:26]process_action close_receipt [08:46:26]cmd_close_receipt [08:46:26]MH_GetDate [08:46:26]Write to MH i2c: F0 00 00 F4 8C 6F [08:46:26]Write i2c OK [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: F0 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: F0 09 00 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: F0 09 00 F4 8C 00 F9 08 BA 65 26 5D 9E 65 1E [08:46:26]GetLastDocTimeStamp 1706690660 [08:46:26]current date 1706690809 [08:46:26]FM_GetShiftState [08:46:26]SAM_PROTO_GetShiftState [08:46:26]wFMCommunicate request_size=4 [08:46:26]MH_SAM_APDU [08:46:26]CAPDU: 80 13 01 00 [08:46:26]Write to MH i2c: E2 08 00 F5 8C 80 13 01 00 00 00 00 00 FE [08:46:26]Write i2c OK [08:46:26]MH_I2C_Read... [08:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:26]Read from MH i2c: E2 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: E2 0E 00 [08:46:26]MH_I2C_Read... [08:46:26]Read from MH i2c: E2 0E 00 F5 8C 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 54 [08:46:26]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [08:46:26]wFMCommunicate OK [08:46:26]SAM_PROTO_GetShiftState done [08:46:26]FM_GetShiftState done [08:46:26]opened in 1706659486 [08:46:26]opened+sec_in_day 1706745886 [08:46:26]quantity*price = 40039 [08:46:26]sum+1 = 40040 [08:46:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 8 31.01.2024 08:46 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49283 ФПД: 53442624519873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T084649&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49283&fm=53442624519873&tin=02508201610067®Number=0000000000092723&sum=40000 [08:46:27]StoreToDocumentArchive [08:46:27]shift 247 fd 49283 [08:46:27]save to /storage/0247/doc_00049283 [08:46:27]save last doc name /storage/0247/doc_00049283 to /storage/kkm_last_doc_name [08:46:27]save OK [08:46:27]Clear old archive folders... [08:46:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:27]tlvbuf is 011D81C0 [08:46:27]SAM_PROTO_ClearQueue [08:46:27]wFMCommunicate request_size=4 [08:46:27]MH_SAM_APDU [08:46:27]CAPDU: 80 09 00 00 [08:46:27]Write to MH i2c: E2 08 00 02 8D 80 09 00 00 00 00 00 00 01 [08:46:27]Write i2c OK [08:46:27]MH_I2C_Read... [08:46:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:27]Read from MH i2c: E2 [08:46:27]MH_I2C_Read... [08:46:27]Read from MH i2c: E2 03 00 [08:46:27]MH_I2C_Read... [08:46:27]Read from MH i2c: E2 03 00 02 8D 00 90 00 03 [08:46:27]RAPDU: 90 00 [08:46:27]wFMCommunicate OK [08:46:27]SAM_PROTO_ClearQueue done [08:46:27]KKMCreateOFDPacket [08:46:27]OFDProtocolAddRootSTLVToBuf [08:46:27]FM_MakeSignedData [08:46:27]FM_MakeSignedData [08:46:27]SAM_PROTO_SignData [08:46:27]wFMCommunicate request_size=4 [08:46:27]MH_SAM_APDU [08:46:27]CAPDU: 80 0D 01 02 [08:46:27]Write to MH i2c: E2 08 00 03 8D 80 0D 01 02 00 00 00 00 09 [08:46:27]Write i2c OK [08:46:27]MH_I2C_Read... [08:46:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:27]Read from MH i2c: E2 [08:46:27]MH_I2C_Read... [08:46:27]Read from MH i2c: E2 03 00 [08:46:27]MH_I2C_Read... [08:46:27]Read from MH i2c: E2 03 00 03 8D 00 90 00 04 [08:46:27]RAPDU: 90 00 [08:46:27]wFMCommunicate OK [08:46:27]wFMCommunicate request_size=255 [08:46:27]MH_SAM_APDU [08:46:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 08 00 00 00 F4 03 04 00 F9 08 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 83 C0 00 00 35 04 06 00 30 [08:46:27]Write to MH i2c: E2 02 01 04 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 08 00 00 00 F4 03 04 00 F9 08 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 83 C0 00 00 35 04 06 00 30 00 00 15 [08:46:27]Write i2c OK [08:46:27]MH_I2C_Read... [08:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:28]Read from MH i2c: E2 [08:46:28]MH_I2C_Read... [08:46:28]Read from MH i2c: E2 03 00 [08:46:28]MH_I2C_Read... [08:46:28]Read from MH i2c: E2 03 00 04 8D 00 90 00 05 [08:46:28]RAPDU: 90 00 [08:46:28]wFMCommunicate OK [08:46:28]wFMCommunicate request_size=10 [08:46:28]MH_SAM_APDU [08:46:28]CAPDU: 80 0D 02 02 05 9B 14 A6 7E C1 [08:46:28]Write to MH i2c: E2 0D 00 05 8D 80 0D 02 02 05 00 9B 14 A6 7E C1 00 00 AA [08:46:28]Write i2c OK [08:46:28]MH_I2C_Read... [08:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:28]Read from MH i2c: E2 [08:46:28]MH_I2C_Read... [08:46:28]Read from MH i2c: E2 03 00 [08:46:28]MH_I2C_Read... [08:46:28]Read from MH i2c: E2 03 00 05 8D 00 90 00 06 [08:46:28]RAPDU: 90 00 [08:46:28]wFMCommunicate OK [08:46:28]wFMCommunicate request_size=4 [08:46:28]MH_SAM_APDU [08:46:28]CAPDU: 80 0D 03 02 [08:46:28]Write to MH i2c: E2 08 00 06 8D 80 0D 03 02 00 00 00 00 0E [08:46:28]Write i2c OK [08:46:28]MH_I2C_Read... [08:46:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:28]Read from MH i2c: E2 [08:46:28]MH_I2C_Read... [08:46:28]Read from MH i2c: E2 0B 00 [08:46:28]MH_I2C_Read... [08:46:28]Read from MH i2c: E2 0B 00 06 8D 00 BC D8 9F DB FB 16 25 0F 90 00 62 [08:46:28]RAPDU: BC D8 9F DB FB 16 25 0F 90 00 [08:46:28]wFMCommunicate OK [08:46:28]SAM_PROTO_SignData done [08:46:28]FM_MakeSignedData done [08:46:28]CreateOFDProtocolMessage [08:46:28]wFMCommunicate request_size=4 [08:46:28]MH_SAM_APDU [08:46:28]CAPDU: 80 11 00 00 [08:46:28]Write to MH i2c: E2 08 00 07 8D 80 11 00 00 00 00 00 00 0E [08:46:28]Write i2c OK [08:46:28]MH_I2C_Read... [08:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:28]Read from MH i2c: E2 [08:46:28]MH_I2C_Read... [08:46:28]Read from MH i2c: E2 17 00 [08:46:28]MH_I2C_Read... [08:46:28]Read from MH i2c: E2 17 00 07 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5B [08:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:46:28]wFMCommunicate OK [08:46:28]CreateOFDProtocolMessage done [08:46:28]OFDSenderStorePacket 49283 [08:46:28]StoreOFDPacket docnum=49283 [08:46:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E3 31 07 01 4E BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 08 00 00 00 F4 03 04 00 F9 08 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 83 C0 00 00 35 04 06 00 30 9B 14 A6 7E C1 BC D8 9F DB FB 16 25 0F [08:46:28]CheckFolder [08:46:28]dirname=/storage/ofd_packets [08:46:28]CheckFolder done [08:46:28]ProducePacketName [08:46:28]name=ofd_packets/00049283 [08:46:28]NVStorageSaveData ofd_packets/00049283 [08:46:28]File name is /storage/ofd_packets/00049283 [08:46:28]Write 301 bytes [08:46:28]NVStorageSaveData done [08:46:28]OFDSenderStorePacket done [08:46:28]KKMCreateOFDPacket done [08:46:28]NVStorageSaveData kkm_last_timestamp [08:46:28]File name is /storage/kkm_last_timestamp [08:46:28]Write 4 bytes [08:46:28]NVStorageSaveData done [08:46:28]ExternCall_PrintAddStr [08:46:28]wPrintStart [08:46:28]Write to MH i2c: 01 00 00 08 8D 95 [08:46:28]Write i2c OK [08:46:28]MH_I2C_Read... [08:46:28]Read from MH i2c: 01 [08:46:28]MH_I2C_Read... [08:46:28]Read from MH i2c: 01 07 00 [08:46:28]MH_I2C_Read... [08:46:28]Read from MH i2c: 01 07 00 08 8D 00 00 00 00 00 FF 0F AA [08:46:28]RasterBufferAndPrint [08:46:28]line Счет N : (1)216387 [08:46:28]line ИНН: 02508201610067 [08:46:28]line Контрольно-Кассовый Чек [08:46:28]line ПРОДАЖА [08:46:28]line ТРК (МРК, ГНК) : 22 [08:46:28]line Товар: 2710124130 [08:46:28]line Аи-92-К-5 [08:46:28]line 6.640 * 60.30 [08:46:28]line = 400.39 [08:46:28]line НДС 12% НСП 1% [08:46:28]line > о реализуемом товаре [08:46:28]line ОКРУГЛЕНИЕ: -0.39 [08:46:28]line ИТОГО: 400.00 [08:46:28]line Внесено: 400.00 [08:46:28]line СДАЧА: 0.00 [08:46:28]line НСП 1% : 3.54 [08:46:28]line НДС 12% : 42.52 [08:46:28]line Наличными: 400.00 [08:46:28]line Безнал.: 0.00 [08:46:28]line Место: АЗС № 102 "Партнер Нефть" [08:46:28]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:46:28]line СНО: Общий режим [08:46:28]line Чек 8 31.01.2024 08:46 [08:46:28]line Смена: 247 ФФД: 1.0 [08:46:28]line ЗНМ: 0300000040 [08:46:28]line РНМ: 0000000000092723 [08:46:28]line Версия ККМ: 001 [08:46:28]line ФМ: 0000000000875060 [08:46:28]line ФД: 49283 [08:46:28]line ФПД: 53442624519873 [08:46:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T084649&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49283&fm=53442624519873&tin=02508201610067®Number=0000000000092723&sum=40000 [08:46:28]OFD Sender: Processing packet 49283 [packets to send 12, broken 11] [08:46:28]ProducePacketName [08:46:28]name=ofd_packets/00049283 [08:46:28]OFD Sender: To server: pG, [08:46:28]CommunicateWithHost lk.salyk.kg:30040 [08:46:28]ConnectInit lk.salyk.kg [08:46:28]written 0, free lines is 4095 [08:46:28]Connected sock=10 [08:46:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E3 31 07 01 4E BA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 08 00 00 00 F4 03 04 00 F9 08 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 83 C0 00 00 35 04 06 00 30 9B 14 A6 7E C1 BC D8 9F DB FB 16 25 0F [08:46:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 2C 1F 47 00 FE 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 35 30 36 30 10 04 04 00 83 C0 00 00 F4 03 04 00 EC B4 B9 65 B6 04 01 00 00 B5 56 EF 28 6B AE 2A C7 [08:46:28]CommunicateWithHost err = 0 [08:46:28]CheckOFDResponse [08:46:28]1017 (14) - 77093643461234 [08:46:28]1041 (16) - 0000000000875060 [08:46:28]1040 (4) - 49283 [08:46:28]1012 (4) - 31.01.2024 02:48 [08:46:28]1206 (1) - 0 [08:46:28]OFD Sender: Remove packet 49283 [08:46:28]ProducePacketName [08:46:28]name=ofd_packets/00049283 [08:46:28]NVStorageDeleteData [08:46:29]Write to MH i2c: 01 00 00 33 8D C0 [08:46:29]Write i2c OK [08:46:29]MH_I2C_Read... [08:46:29]Read from MH i2c: 01 [08:46:29]MH_I2C_Read... [08:46:29]Read from MH i2c: 01 07 00 [08:46:29]MH_I2C_Read... [08:46:29]Read from MH i2c: 01 07 00 33 8D 00 00 00 00 00 FA 0C CD [08:46:29]RasterBufferAndPrint [08:46:29]line [08:46:29]line [08:46:29]line [08:46:29]line [08:46:29]line [08:46:29]written 0, free lines is 3329 [08:46:29]MH_Cut [08:46:29]Write to MH i2c: D1 01 00 3A 8D 01 99 [08:46:29]Write i2c OK [08:46:29]MH_I2C_Read... [08:46:29]Read from MH i2c: D1 [08:46:29]MH_I2C_Read... [08:46:29]Read from MH i2c: D1 01 00 [08:46:29]MH_I2C_Read... [08:46:29]Read from MH i2c: D1 01 00 3A 8D 00 98 [08:46:29]Write to MH i2c: 01 00 00 3B 8D C8 [08:46:29]Write i2c OK [08:46:29]MH_I2C_Read... [08:46:29]OFD Sender: No OFD packet to send [08:46:29]*** Cut start [08:46:29]*** Partial cut [08:46:29]*** CUTSNS_PIN = 1 [08:46:29]*** CUTSNS_PIN = 0 [08:46:30]*** Brake cut motor [08:46:30]Read from MH i2c: 01 [08:46:30]MH_I2C_Read... [08:46:30]*** Stop cut motor [08:46:30]*** Cut end [08:46:30]Read from MH i2c: 01 07 00 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: 01 07 00 3B 8D 00 00 00 00 00 FF 0F DD [08:46:30]process_action close_receipt done [08:46:30]requested_data is exist [08:46:30]produce_requested_data [08:46:30]requested_item fm.sn is exist - process it [08:46:30]wFMCommunicate request_size=4 [08:46:30]MH_SAM_APDU [08:46:30]CAPDU: 80 11 00 00 [08:46:30]Write to MH i2c: E2 08 00 3C 8D 80 11 00 00 00 00 00 00 43 [08:46:30]Write i2c OK [08:46:30]MH_I2C_Read... [08:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:30]Read from MH i2c: E2 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 17 00 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 17 00 3C 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 90 [08:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:46:30]wFMCommunicate OK [08:46:30]requested_item fd.num is exist - process it [08:46:30]SAM_PROTO_GetFieldsCounters [08:46:30]wFMCommunicate request_size=4 [08:46:30]MH_SAM_APDU [08:46:30]CAPDU: 80 13 00 00 [08:46:30]Write to MH i2c: E2 08 00 3D 8D 80 13 00 00 00 00 00 00 46 [08:46:30]Write i2c OK [08:46:30]MH_I2C_Read... [08:46:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:30]Read from MH i2c: E2 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 62 00 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 62 00 3D 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 83 C0 00 00 0E 04 04 00 F7 00 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 B1 [08:46: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 83 C0 00 00 0E 04 04 00 F7 00 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 [08:46:30]wFMCommunicate OK [08:46:30]SAM_PROTO_GetFieldsCounters done [08:46:30]requested_item shift.num is exist - process it [08:46:30]requested_item shift.opened is exist - process it [08:46:30]req_shift_opened [08:46:30]FM_GetShiftState [08:46:30]SAM_PROTO_GetShiftState [08:46:30]wFMCommunicate request_size=4 [08:46:30]MH_SAM_APDU [08:46:30]CAPDU: 80 13 01 00 [08:46:30]Write to MH i2c: E2 08 00 3E 8D 80 13 01 00 00 00 00 00 48 [08:46:30]Write i2c OK [08:46:30]MH_I2C_Read... [08:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:30]Read from MH i2c: E2 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 0E 00 [08:46:30]MH_I2C_Read... [08:46:30]Read from MH i2c: E2 0E 00 3E 8D 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 9E [08:46:30]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [08:46:30]wFMCommunicate OK [08:46:30]SAM_PROTO_GetShiftState done [08:46:30]FM_GetShiftState done [08:46:30]req_shift_opened done [08:46:30]requested_item shift.open_date is exist - process it [08:46:30]req_shift_open_date [08:46:30]req_shift_open_date done [08:46:30]produce_requested_data done [08:46:30]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49283,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [08:46:30]process_action_free close_receipt [08:46:30]json_value_free [08:46:30]json_value_free done [08:46:30]process_json_proto returns [08:46:30]Send response to host [08:46:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49283,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [08:46:30]free response buf [08:46:30]execute_script done [08:46:30]execute_script returns [08:46:30]free content buf [08:46:30]Sock 7.Close socket [08:46:30]Sock 7.Thread stoped [08:46:34]OFD Sender: No OFD packet to send [08:46:36]accept exits with 9 [08:46:36]New connection [08:46:36]New thread 3066670436 created [08:46:36]Thread 3066813796 joined [08:46:36]Waiting for new connection... [08:46:36] Sock 9.Parse request [08:46:36]Sock 9.Check first char [08:46:36]Sock 9.First char is OK [08:46:36]request: POST /json_proto HTTP/1.0 [08:46:36]Method: POST [08:46:36]URL: /json_proto [08:46:36]Method is POST - this is cgi request [08:46:36]url: /json_proto [08:46:36]query_string will be loaded in cgi processing [08:46:36]execute_cgi json_proto POST (null) [08:46:36]execute_cgi path=json_proto method=POST [08:46:36]POST find Content-Length [08:46:36]Host: 172.17.56.67:8080 [08:46:36]Content-Length: 682 [08:46:36]Content-Type: application/json [08:46:36] [08:46:36]POST finish read [08:46:36]Found Content-Length = 682 [08:46:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:36]execute_script... [08:46: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)216386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:46:36]POST & json_proto [08:46:36]process_json_proto [08:46:36]json parsed OK: [08:46:36]protocol is kg_v1.0 [08:46:36]action value=close_receipt [08:46:36]process_action close_receipt [08:46:36]cmd_close_receipt [08:46:36]MH_GetDate [08:46:36]Write to MH i2c: F0 00 00 3F 8D BB [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: F0 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: F0 09 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: F0 09 00 3F 8D 00 03 09 BA 65 26 5D 9E 65 75 [08:46:36]GetLastDocTimeStamp 1706690809 [08:46:36]current date 1706690819 [08:46:36]FM_GetShiftState [08:46:36]SAM_PROTO_GetShiftState [08:46:36]wFMCommunicate request_size=4 [08:46:36]MH_SAM_APDU [08:46:36]CAPDU: 80 13 01 00 [08:46:36]Write to MH i2c: E2 08 00 40 8D 80 13 01 00 00 00 00 00 4A [08:46:36]Write i2c OK [08:46:36]MH_I2C_Read... [08:46:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:36]Read from MH i2c: E2 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 0E 00 [08:46:36]MH_I2C_Read... [08:46:36]Read from MH i2c: E2 0E 00 40 8D 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 A0 [08:46:36]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [08:46:36]wFMCommunicate OK [08:46:36]SAM_PROTO_GetShiftState done [08:46:36]FM_GetShiftState done [08:46:36]opened in 1706659486 [08:46:36]opened+sec_in_day 1706745886 [08:46:36]quantity*price = 100037 [08:46:36]sum+1 = 100039 [08:46:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 9 31.01.2024 08:46 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49284 ФПД: 91964571199361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T084659&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49284&fm=91964571199361&tin=02508201610067®Number=0000000000092723&sum=100000 [08:46:37]StoreToDocumentArchive [08:46:37]shift 247 fd 49284 [08:46:37]save to /storage/0247/doc_00049284 [08:46:37]save last doc name /storage/0247/doc_00049284 to /storage/kkm_last_doc_name [08:46:37]save OK [08:46:37]Clear old archive folders... [08:46:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:37]tlvbuf is 013ED6F0 [08:46:37]SAM_PROTO_ClearQueue [08:46:37]wFMCommunicate request_size=4 [08:46:37]MH_SAM_APDU [08:46:37]CAPDU: 80 09 00 00 [08:46:37]Write to MH i2c: E2 08 00 4D 8D 80 09 00 00 00 00 00 00 4C [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:37]Read from MH i2c: E2 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 03 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 03 00 4D 8D 00 90 00 4E [08:46:37]RAPDU: 90 00 [08:46:37]wFMCommunicate OK [08:46:37]SAM_PROTO_ClearQueue done [08:46:37]KKMCreateOFDPacket [08:46:37]OFDProtocolAddRootSTLVToBuf [08:46:37]FM_MakeSignedData [08:46:37]FM_MakeSignedData [08:46:37]SAM_PROTO_SignData [08:46:37]wFMCommunicate request_size=4 [08:46:37]MH_SAM_APDU [08:46:37]CAPDU: 80 0D 01 02 [08:46:37]Write to MH i2c: E2 08 00 4E 8D 80 0D 01 02 00 00 00 00 54 [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:37]Read from MH i2c: E2 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 03 00 [08:46:37]MH_I2C_Read... [08:46:37]Read from MH i2c: E2 03 00 4E 8D 00 90 00 4F [08:46:37]RAPDU: 90 00 [08:46:37]wFMCommunicate OK [08:46:37]wFMCommunicate request_size=255 [08:46:37]MH_SAM_APDU [08:46:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 03 09 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 84 C0 00 00 35 04 06 00 53 [08:46:37]Write to MH i2c: E2 02 01 4F 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 03 09 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 84 C0 00 00 35 04 06 00 53 00 00 86 [08:46:37]Write i2c OK [08:46:37]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 [08:46:38]MH_I2C_Read... [08:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:38]Read from MH i2c: E2 03 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 03 00 4F 8D 00 90 00 50 [08:46:38]RAPDU: 90 00 [08:46:38]wFMCommunicate OK [08:46:38]wFMCommunicate request_size=10 [08:46:38]MH_SAM_APDU [08:46:38]CAPDU: 80 0D 02 02 05 A4 2B 99 27 81 [08:46:38]Write to MH i2c: E2 0D 00 50 8D 80 0D 02 02 05 00 A4 2B 99 27 81 00 00 71 [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:38]Read from MH i2c: E2 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 03 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 03 00 50 8D 00 90 00 51 [08:46:38]RAPDU: 90 00 [08:46:38]wFMCommunicate OK [08:46:38]wFMCommunicate request_size=4 [08:46:38]MH_SAM_APDU [08:46:38]CAPDU: 80 0D 03 02 [08:46:38]Write to MH i2c: E2 08 00 51 8D 80 0D 03 02 00 00 00 00 59 [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:38]Read from MH i2c: E2 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 0B 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 0B 00 51 8D 00 DA DF 0E C6 EA 1D 85 9A 90 00 0D [08:46:38]RAPDU: DA DF 0E C6 EA 1D 85 9A 90 00 [08:46:38]wFMCommunicate OK [08:46:38]SAM_PROTO_SignData done [08:46:38]FM_MakeSignedData done [08:46:38]CreateOFDProtocolMessage [08:46:38]wFMCommunicate request_size=4 [08:46:38]MH_SAM_APDU [08:46:38]CAPDU: 80 11 00 00 [08:46:38]Write to MH i2c: E2 08 00 52 8D 80 11 00 00 00 00 00 00 59 [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:38]Read from MH i2c: E2 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 17 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: E2 17 00 52 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A6 [08:46:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:46:38]wFMCommunicate OK [08:46:38]CreateOFDProtocolMessage done [08:46:38]OFDSenderStorePacket 49284 [08:46:38]StoreOFDPacket docnum=49284 [08:46:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 59 AF 07 01 C3 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 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 03 09 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 84 C0 00 00 35 04 06 00 53 A4 2B 99 27 81 DA DF 0E C6 EA 1D 85 9A [08:46:38]CheckFolder [08:46:38]dirname=/storage/ofd_packets [08:46:38]CheckFolder done [08:46:38]ProducePacketName [08:46:38]name=ofd_packets/00049284 [08:46:38]NVStorageSaveData ofd_packets/00049284 [08:46:38]File name is /storage/ofd_packets/00049284 [08:46:38]Write 301 bytes [08:46:38]NVStorageSaveData done [08:46:38]OFDSenderStorePacket done [08:46:38]KKMCreateOFDPacket done [08:46:38]NVStorageSaveData kkm_last_timestamp [08:46:38]File name is /storage/kkm_last_timestamp [08:46:38]Write 4 bytes [08:46:38]NVStorageSaveData done [08:46:38]ExternCall_PrintAddStr [08:46:38]wPrintStart [08:46:38]Write to MH i2c: 01 00 00 53 8D E0 [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: 01 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: 01 07 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: 01 07 00 53 8D 00 00 00 00 00 FF 0F F5 [08:46:38]RasterBufferAndPrint [08:46:38]line Счет N : (1)216386 [08:46:38]line ИНН: 02508201610067 [08:46:38]line Контрольно-Кассовый Чек [08:46:38]line ПРОДАЖА [08:46:38]line ТРК (МРК, ГНК) : 12 [08:46:38]line Товар: 2710124130 [08:46:38]line Аи-92-К-5 [08:46:38]line 16.590 * 60.30 [08:46:38]line = 1000.38 [08:46:38]line НДС 12% НСП 1% [08:46:38]line > о реализуемом товаре [08:46:38]line ОКРУГЛЕНИЕ: -0.38 [08:46:38]line ИТОГО: 1000.00 [08:46:38]line Внесено: 1000.00 [08:46:38]line СДАЧА: 0.00 [08:46:38]line НСП 1% : 8.85 [08:46:38]line НДС 12% : 106.23 [08:46:38]line Наличными: 1000.00 [08:46:38]line Безнал.: 0.00 [08:46:38]line Место: АЗС № 102 "Партнер Нефть" [08:46:38]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:46:38]line СНО: Общий режим [08:46:38]line Чек 9 31.01.2024 08:46 [08:46:38]line Смена: 247 ФФД: 1.0 [08:46:38]line ЗНМ: 0300000040 [08:46:38]line РНМ: 0000000000092723 [08:46:38]line Версия ККМ: 001 [08:46:38]line ФМ: 0000000000875060 [08:46:38]line ФД: 49284 [08:46:38]line ФПД: 91964571199361 [08:46:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T084659&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49284&fm=91964571199361&tin=02508201610067®Number=0000000000092723&sum=100000 [08:46:38]written 0, free lines is 4095 [08:46:38]OFD Sender: Processing packet 49284 [packets to send 12, broken 11] [08:46:38]ProducePacketName [08:46:38]name=ofd_packets/00049284 [08:46:38]OFD Sender: To server: pG, [08:46:38]CommunicateWithHost lk.salyk.kg:30040 [08:46:38]ConnectInit lk.salyk.kg [08:46:38]Connected sock=10 [08:46:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 59 AF 07 01 C3 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 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 03 09 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 84 C0 00 00 35 04 06 00 53 A4 2B 99 27 81 DA DF 0E C6 EA 1D 85 9A [08:46:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 2B 99 47 00 5B FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 84 C0 00 00 F4 03 04 00 F6 B4 B9 65 B6 04 01 00 00 F1 EB 4D BE C0 82 39 3F [08:46:38]CommunicateWithHost err = 0 [08:46:38]CheckOFDResponse [08:46:38]1017 (14) - 77093643461234 [08:46:38]1041 (16) - 0000000000875060 [08:46:38]1040 (4) - 49284 [08:46:38]1012 (4) - 31.01.2024 02:48 [08:46:38]1206 (1) - 0 [08:46:38]OFD Sender: Remove packet 49284 [08:46:38]ProducePacketName [08:46:38]name=ofd_packets/00049284 [08:46:38]NVStorageDeleteData [08:46:38]Write to MH i2c: 01 00 00 7E 8D 0B [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: 01 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: 01 07 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: 01 07 00 7E 8D 00 00 00 00 00 F4 0C 12 [08:46:38]RasterBufferAndPrint [08:46:38]line [08:46:38]line [08:46:38]line [08:46:38]line [08:46:38]line [08:46:38]written 0, free lines is 3328 [08:46:38]MH_Cut [08:46:38]Write to MH i2c: D1 01 00 85 8D 01 E4 [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: D1 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: D1 01 00 [08:46:38]MH_I2C_Read... [08:46:38]Read from MH i2c: D1 01 00 85 8D 00 E3 [08:46:38]Write to MH i2c: 01 00 00 86 8D 13 [08:46:38]Write i2c OK [08:46:38]MH_I2C_Read... [08:46:39]OFD Sender: No OFD packet to send [08:46:39]*** Cut start [08:46:39]*** Partial cut [08:46:39]*** CUTSNS_PIN = 1 [08:46:39]*** CUTSNS_PIN = 0 [08:46:39]*** Brake cut motor [08:46:39]Read from MH i2c: 01 [08:46:39]MH_I2C_Read... [08:46:39]*** Stop cut motor [08:46:39]*** Cut end [08:46:39]Read from MH i2c: 01 07 00 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: 01 07 00 86 8D 00 00 00 00 00 FF 0F 28 [08:46:39]process_action close_receipt done [08:46:39]requested_data is exist [08:46:39]produce_requested_data [08:46:39]requested_item fm.sn is exist - process it [08:46:39]wFMCommunicate request_size=4 [08:46:39]MH_SAM_APDU [08:46:39]CAPDU: 80 11 00 00 [08:46:39]Write to MH i2c: E2 08 00 87 8D 80 11 00 00 00 00 00 00 8E [08:46:39]Write i2c OK [08:46:39]MH_I2C_Read... [08:46:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:39]Read from MH i2c: E2 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 17 00 [08:46:39]MH_I2C_Read... [08:46:39]Read from MH i2c: E2 17 00 87 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DB [08:46:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:46:39]wFMCommunicate OK [08:46:39]requested_item fd.num is exist - process it [08:46:39]SAM_PROTO_GetFieldsCounters [08:46:39]wFMCommunicate request_size=4 [08:46:39]MH_SAM_APDU [08:46:39]CAPDU: 80 13 00 00 [08:46:39]Write to MH i2c: E2 08 00 88 8D 80 13 00 00 00 00 00 00 91 [08:46:39]Write i2c OK [08:46:39]MH_I2C_Read... [08:46:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:40]Read from MH i2c: E2 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 62 00 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 62 00 88 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 84 C0 00 00 0E 04 04 00 F7 00 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 00 [08:46:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 84 C0 00 00 0E 04 04 00 F7 00 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 [08:46:40]wFMCommunicate OK [08:46:40]SAM_PROTO_GetFieldsCounters done [08:46:40]requested_item shift.num is exist - process it [08:46:40]requested_item shift.opened is exist - process it [08:46:40]req_shift_opened [08:46:40]FM_GetShiftState [08:46:40]SAM_PROTO_GetShiftState [08:46:40]wFMCommunicate request_size=4 [08:46:40]MH_SAM_APDU [08:46:40]CAPDU: 80 13 01 00 [08:46:40]Write to MH i2c: E2 08 00 89 8D 80 13 01 00 00 00 00 00 93 [08:46:40]Write i2c OK [08:46:40]MH_I2C_Read... [08:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:40]Read from MH i2c: E2 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 0E 00 [08:46:40]MH_I2C_Read... [08:46:40]Read from MH i2c: E2 0E 00 89 8D 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 E9 [08:46:40]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [08:46:40]wFMCommunicate OK [08:46:40]SAM_PROTO_GetShiftState done [08:46:40]FM_GetShiftState done [08:46:40]req_shift_opened done [08:46:40]requested_item shift.open_date is exist - process it [08:46:40]req_shift_open_date [08:46:40]req_shift_open_date done [08:46:40]produce_requested_data done [08:46:40]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49284,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [08:46:40]process_action_free close_receipt [08:46:40]json_value_free [08:46:40]json_value_free done [08:46:40]process_json_proto returns [08:46:40]Send response to host [08:46:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49284,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [08:46:40]free response buf [08:46:40]execute_script done [08:46:40]execute_script returns [08:46:40]free content buf [08:46:40]Sock 9.Close socket [08:46:40]Sock 9.Thread stoped [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:04]OFD Sender: No OFD packet to send [08:48:09]OFD Sender: No OFD packet to send [08:48:14]OFD Sender: No OFD packet to send [08:48:19]OFD Sender: No OFD packet to send [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:54]OFD Sender: No OFD packet to send [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:19]OFD Sender: No OFD packet to send [08:50:24]OFD Sender: No OFD packet to send [08:50:29]OFD Sender: No OFD packet to send [08:50:34]OFD Sender: No OFD packet to send [08:50:39]OFD Sender: No OFD packet to send [08:50:44]OFD Sender: No OFD packet to send [08:50:49]OFD Sender: No OFD packet to send [08:50:51]accept exits with 7 [08:50:51]New connection [08:50:51]New thread 3066813796 created [08:50:51]Thread 3066670436 joined [08:50:51]Waiting for new connection... [08:50:51] Sock 7.Parse request [08:50:51]Sock 7.Check first char [08:50:51]Sock 7.First char is OK [08:50:51]request: POST /json_proto HTTP/1.0 [08:50:51]Method: POST [08:50:51]URL: /json_proto [08:50:51]Method is POST - this is cgi request [08:50:51]url: /json_proto [08:50:51]query_string will be loaded in cgi processing [08:50:51]execute_cgi json_proto POST (null) [08:50:51]execute_cgi path=json_proto method=POST [08:50:51]POST find Content-Length [08:50:51]Host: 172.17.56.67:8080 [08:50:51]Content-Length: 677 [08:50:51]Content-Type: application/json [08:50:51] [08:50:51]POST finish read [08:50:51]Found Content-Length = 677 [08:50:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:51]execute_script... [08:50:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:51]POST & json_proto [08:50:51]process_json_proto [08:50:51]json parsed OK: [08:50:51]protocol is kg_v1.0 [08:50:51]action value=close_receipt [08:50:51]process_action close_receipt [08:50:51]cmd_close_receipt [08:50:51]MH_GetDate [08:50:51]Write to MH i2c: F0 00 00 8A 8D 06 [08:50:51]Write i2c OK [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: F0 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: F0 09 00 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: F0 09 00 8A 8D 00 02 0A BA 65 26 5D 9E 65 C0 [08:50:51]GetLastDocTimeStamp 1706690819 [08:50:51]current date 1706691074 [08:50:51]FM_GetShiftState [08:50:51]SAM_PROTO_GetShiftState [08:50:51]wFMCommunicate request_size=4 [08:50:51]MH_SAM_APDU [08:50:51]CAPDU: 80 13 01 00 [08:50:51]Write to MH i2c: E2 08 00 8B 8D 80 13 01 00 00 00 00 00 95 [08:50:51]Write i2c OK [08:50:51]MH_I2C_Read... [08:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:51]Read from MH i2c: E2 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: E2 0E 00 [08:50:51]MH_I2C_Read... [08:50:51]Read from MH i2c: E2 0E 00 8B 8D 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 EB [08:50:51]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [08:50:51]wFMCommunicate OK [08:50:51]SAM_PROTO_GetShiftState done [08:50:51]FM_GetShiftState done [08:50:51]opened in 1706659486 [08:50:51]opened+sec_in_day 1706745886 [08:50:51]quantity*price = 40039 [08:50:51]sum+1 = 40040 [08:50:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 10 31.01.2024 08:51 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49285 ФПД: 86279641917270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T085114&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49285&fm=86279641917270&tin=02508201610067®Number=0000000000092723&sum=40000 [08:50:53]StoreToDocumentArchive [08:50:53]shift 247 fd 49285 [08:50:53]save to /storage/0247/doc_00049285 [08:50:53]save last doc name /storage/0247/doc_00049285 to /storage/kkm_last_doc_name [08:50:53]save OK [08:50:53]Clear old archive folders... [08:50:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:53]tlvbuf is 0128CC50 [08:50:53]SAM_PROTO_ClearQueue [08:50:53]wFMCommunicate request_size=4 [08:50:53]MH_SAM_APDU [08:50:53]CAPDU: 80 09 00 00 [08:50:53]Write to MH i2c: E2 08 00 98 8D 80 09 00 00 00 00 00 00 97 [08:50:53]Write i2c OK [08:50:53]MH_I2C_Read... [08:50:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:53]Read from MH i2c: E2 [08:50:53]MH_I2C_Read... [08:50:53]Read from MH i2c: E2 03 00 [08:50:53]MH_I2C_Read... [08:50:53]Read from MH i2c: E2 03 00 98 8D 00 90 00 99 [08:50:53]RAPDU: 90 00 [08:50:53]wFMCommunicate OK [08:50:53]SAM_PROTO_ClearQueue done [08:50:53]KKMCreateOFDPacket [08:50:53]OFDProtocolAddRootSTLVToBuf [08:50:53]FM_MakeSignedData [08:50:53]FM_MakeSignedData [08:50:53]SAM_PROTO_SignData [08:50:53]wFMCommunicate request_size=4 [08:50:53]MH_SAM_APDU [08:50:53]CAPDU: 80 0D 01 02 [08:50:53]Write to MH i2c: E2 08 00 99 8D 80 0D 01 02 00 00 00 00 9F [08:50:53]Write i2c OK [08:50:53]MH_I2C_Read... [08:50:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:53]Read from MH i2c: E2 [08:50:53]MH_I2C_Read... [08:50:53]Read from MH i2c: E2 03 00 [08:50:53]MH_I2C_Read... [08:50:53]Read from MH i2c: E2 03 00 99 8D 00 90 00 9A [08:50:53]RAPDU: 90 00 [08:50:53]wFMCommunicate OK [08:50:53]wFMCommunicate request_size=255 [08:50:53]MH_SAM_APDU [08:50:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 0A 00 00 00 F4 03 04 00 02 0A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 85 C0 00 00 35 04 06 00 4E [08:50:53]Write to MH i2c: E2 02 01 9A 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 0A 00 00 00 F4 03 04 00 02 0A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 85 C0 00 00 35 04 06 00 4E 00 00 D8 [08:50:53]Write i2c OK [08:50:53]MH_I2C_Read... [08:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:53]Read from MH i2c: E2 [08:50:53]MH_I2C_Read... [08:50:53]Read from MH i2c: E2 03 00 [08:50:53]MH_I2C_Read... [08:50:53]Read from MH i2c: E2 03 00 9A 8D 00 90 00 9B [08:50:53]RAPDU: 90 00 [08:50:53]wFMCommunicate OK [08:50:53]wFMCommunicate request_size=10 [08:50:53]MH_SAM_APDU [08:50:53]CAPDU: 80 0D 02 02 05 78 8B 68 67 56 [08:50:53]Write to MH i2c: E2 0D 00 9B 8D 80 0D 02 02 05 00 78 8B 68 67 56 00 00 D4 [08:50:53]Write i2c OK [08:50:53]MH_I2C_Read... [08:50:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:53]Read from MH i2c: E2 [08:50:53]MH_I2C_Read... [08:50:53]Read from MH i2c: E2 03 00 [08:50:53]MH_I2C_Read... [08:50:53]Read from MH i2c: E2 03 00 9B 8D 00 90 00 9C [08:50:53]RAPDU: 90 00 [08:50:53]wFMCommunicate OK [08:50:53]wFMCommunicate request_size=4 [08:50:53]MH_SAM_APDU [08:50:53]CAPDU: 80 0D 03 02 [08:50:53]Write to MH i2c: E2 08 00 9C 8D 80 0D 03 02 00 00 00 00 A4 [08:50:53]Write i2c OK [08:50:53]MH_I2C_Read... [08:50:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:53]Read from MH i2c: E2 [08:50:53]MH_I2C_Read... [08:50:53]Read from MH i2c: E2 0B 00 [08:50:53]MH_I2C_Read... [08:50:53]Read from MH i2c: E2 0B 00 9C 8D 00 FA E5 00 78 F1 2D 8A E4 90 00 88 [08:50:53]RAPDU: FA E5 00 78 F1 2D 8A E4 90 00 [08:50:53]wFMCommunicate OK [08:50:53]SAM_PROTO_SignData done [08:50:53]FM_MakeSignedData done [08:50:53]CreateOFDProtocolMessage [08:50:53]wFMCommunicate request_size=4 [08:50:53]MH_SAM_APDU [08:50:53]CAPDU: 80 11 00 00 [08:50:53]Write to MH i2c: E2 08 00 9D 8D 80 11 00 00 00 00 00 00 A4 [08:50:53]Write i2c OK [08:50:53]MH_I2C_Read... [08:50:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:53]Read from MH i2c: E2 [08:50:53]MH_I2C_Read... [08:50:53]Read from MH i2c: E2 17 00 [08:50:53]MH_I2C_Read... [08:50:53]Read from MH i2c: E2 17 00 9D 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F1 [08:50:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:50:53]wFMCommunicate OK [08:50:53]CreateOFDProtocolMessage done [08:50:53]OFDSenderStorePacket 49285 [08:50:53]StoreOFDPacket docnum=49285 [08:50:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D3 EA 07 01 0B 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 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 0A 00 00 00 F4 03 04 00 02 0A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 85 C0 00 00 35 04 06 00 4E 78 8B 68 67 56 FA E5 00 78 F1 2D 8A E4 [08:50:53]CheckFolder [08:50:53]dirname=/storage/ofd_packets [08:50:53]CheckFolder done [08:50:53]ProducePacketName [08:50:53]name=ofd_packets/00049285 [08:50:53]NVStorageSaveData ofd_packets/00049285 [08:50:53]File name is /storage/ofd_packets/00049285 [08:50:53]Write 301 bytes [08:50:53]NVStorageSaveData done [08:50:53]OFDSenderStorePacket done [08:50:53]KKMCreateOFDPacket done [08:50:53]NVStorageSaveData kkm_last_timestamp [08:50:53]File name is /storage/kkm_last_timestamp [08:50:53]Write 4 bytes [08:50:53]NVStorageSaveData done [08:50:53]ExternCall_PrintAddStr [08:50:53]wPrintStart [08:50:53]Write to MH i2c: 01 00 00 9E 8D 2B [08:50:53]Write i2c OK [08:50:53]MH_I2C_Read... [08:50:53]Read from MH i2c: 01 [08:50:53]MH_I2C_Read... [08:50:53]Read from MH i2c: 01 07 00 [08:50:53]MH_I2C_Read... [08:50:53]Read from MH i2c: 01 07 00 9E 8D 00 00 00 00 00 FF 0F 40 [08:50:53]RasterBufferAndPrint [08:50:53]line Счет N : (1)216388 [08:50:53]line ИНН: 02508201610067 [08:50:53]line Контрольно-Кассовый Чек [08:50:53]line ПРОДАЖА [08:50:53]line ТРК (МРК, ГНК) : 22 [08:50:53]line Товар: 2710124130 [08:50:53]line Аи-92-К-5 [08:50:53]line 6.640 * 60.30 [08:50:53]line = 400.39 [08:50:53]line НДС 12% НСП 1% [08:50:53]line > о реализуемом товаре [08:50:53]line ОКРУГЛЕНИЕ: -0.39 [08:50:53]line ИТОГО: 400.00 [08:50:53]line Внесено: 400.00 [08:50:53]line СДАЧА: 0.00 [08:50:53]line НСП 1% : 3.54 [08:50:53]line НДС 12% : 42.52 [08:50:53]line Наличными: 400.00 [08:50:53]line Безнал.: 0.00 [08:50:53]line Место: АЗС № 102 "Партнер Нефть" [08:50:53]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:50:53]line СНО: Общий режим [08:50:53]line Чек 10 31.01.2024 08:51 [08:50:53]line Смена: 247 ФФД: 1.0 [08:50:53]line ЗНМ: 0300000040 [08:50:53]line РНМ: 0000000000092723 [08:50:53]line Версия ККМ: 001 [08:50:53]line ФМ: 0000000000875060 [08:50:53]line ФД: 49285 [08:50:53]line ФПД: 86279641917270 [08:50:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T085114&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49285&fm=86279641917270&tin=02508201610067®Number=0000000000092723&sum=40000 [08:50:53]OFD Sender: Processing packet 49285 [packets to send 12, broken 11] [08:50:53]ProducePacketName [08:50:53]name=ofd_packets/00049285 [08:50:53]OFD Sender: To server: pG, [08:50:53]CommunicateWithHost lk.salyk.kg:30040 [08:50:53]ConnectInit lk.salyk.kg [08:50:53]written 0, free lines is 4095 [08:50:53]Connected sock=10 [08:50:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D3 EA 07 01 0B 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 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 0A 00 00 00 F4 03 04 00 02 0A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 85 C0 00 00 35 04 06 00 4E 78 8B 68 67 56 FA E5 00 78 F1 2D 8A E4 [08:50:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 8E EE 47 00 36 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 85 C0 00 00 F4 03 04 00 F5 B5 B9 65 B6 04 01 00 00 B3 00 C4 24 49 54 BE A5 [08:50:54]CommunicateWithHost err = 0 [08:50:54]CheckOFDResponse [08:50:54]1017 (14) - 77093643461234 [08:50:54]1041 (16) - 0000000000875060 [08:50:54]1040 (4) - 49285 [08:50:54]1012 (4) - 31.01.2024 02:52 [08:50:54]1206 (1) - 0 [08:50:54]OFD Sender: Remove packet 49285 [08:50:54]ProducePacketName [08:50:54]name=ofd_packets/00049285 [08:50:54]NVStorageDeleteData [08:50:54]Write to MH i2c: 01 00 00 C9 8D 56 [08:50:54]Write i2c OK [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: 01 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: 01 07 00 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: 01 07 00 C9 8D 00 00 00 00 00 EC 0C 55 [08:50:54]RasterBufferAndPrint [08:50:54]line [08:50:54]line [08:50:54]line [08:50:54]line [08:50:54]line [08:50:54]written 0, free lines is 3314 [08:50:54]MH_Cut [08:50:54]Write to MH i2c: D1 01 00 D0 8D 01 2F [08:50:54]Write i2c OK [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: D1 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: D1 01 00 [08:50:54]MH_I2C_Read... [08:50:54]Read from MH i2c: D1 01 00 D0 8D 00 2E [08:50:54]Write to MH i2c: 01 00 00 D1 8D 5E [08:50:54]Write i2c OK [08:50:54]MH_I2C_Read... [08:50:54]OFD Sender: No OFD packet to send [08:50:55]*** Cut start [08:50:55]*** Partial cut [08:50:55]*** CUTSNS_PIN = 1 [08:50:55]*** CUTSNS_PIN = 0 [08:50:55]*** Brake cut motor [08:50:55]Read from MH i2c: 01 [08:50:55]MH_I2C_Read... [08:50:55]*** Stop cut motor [08:50:55]*** Cut end [08:50:55]Read from MH i2c: 01 07 00 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: 01 07 00 D1 8D 00 00 00 00 00 FF 0F 73 [08:50:55]process_action close_receipt done [08:50:55]requested_data is exist [08:50:55]produce_requested_data [08:50:55]requested_item fm.sn is exist - process it [08:50:55]wFMCommunicate request_size=4 [08:50:55]MH_SAM_APDU [08:50:55]CAPDU: 80 11 00 00 [08:50:55]Write to MH i2c: E2 08 00 D2 8D 80 11 00 00 00 00 00 00 D9 [08:50:55]Write i2c OK [08:50:55]MH_I2C_Read... [08:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:55]Read from MH i2c: E2 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 17 00 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 17 00 D2 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 26 [08:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:50:55]wFMCommunicate OK [08:50:55]requested_item fd.num is exist - process it [08:50:55]SAM_PROTO_GetFieldsCounters [08:50:55]wFMCommunicate request_size=4 [08:50:55]MH_SAM_APDU [08:50:55]CAPDU: 80 13 00 00 [08:50:55]Write to MH i2c: E2 08 00 D3 8D 80 13 00 00 00 00 00 00 DC [08:50:55]Write i2c OK [08:50:55]MH_I2C_Read... [08:50:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:55]Read from MH i2c: E2 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 62 00 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 62 00 D3 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 85 C0 00 00 0E 04 04 00 F7 00 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 4F [08:50: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 85 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:55]wFMCommunicate OK [08:50:55]SAM_PROTO_GetFieldsCounters done [08:50:55]requested_item shift.num is exist - process it [08:50:55]requested_item shift.opened is exist - process it [08:50:55]req_shift_opened [08:50:55]FM_GetShiftState [08:50:55]SAM_PROTO_GetShiftState [08:50:55]wFMCommunicate request_size=4 [08:50:55]MH_SAM_APDU [08:50:55]CAPDU: 80 13 01 00 [08:50:55]Write to MH i2c: E2 08 00 D4 8D 80 13 01 00 00 00 00 00 DE [08:50:55]Write i2c OK [08:50:55]MH_I2C_Read... [08:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:55]Read from MH i2c: E2 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 0E 00 [08:50:55]MH_I2C_Read... [08:50:55]Read from MH i2c: E2 0E 00 D4 8D 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 34 [08:50:55]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [08:50:55]wFMCommunicate OK [08:50:55]SAM_PROTO_GetShiftState done [08:50:55]FM_GetShiftState done [08:50:55]req_shift_opened done [08:50:55]requested_item shift.open_date is exist - process it [08:50:55]req_shift_open_date [08:50:55]req_shift_open_date done [08:50:55]produce_requested_data done [08:50:55]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49285,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [08:50:55]process_action_free close_receipt [08:50:55]json_value_free [08:50:55]json_value_free done [08:50:55]process_json_proto returns [08:50:55]Send response to host [08:50:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49285,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [08:50:55]free response buf [08:50:55]execute_script done [08:50:55]execute_script returns [08:50:55]free content buf [08:50:55]Sock 7.Close socket [08:50:55]Sock 7.Thread stoped [08:50:59]OFD Sender: No OFD packet to send [08:51:04]OFD Sender: No OFD packet to send [08:51:09]OFD Sender: No OFD packet to send [08:51:14]OFD Sender: No OFD packet to send [08:51:19]OFD Sender: No OFD packet to send [08:51:24]OFD Sender: No OFD packet to send [08:51:29]OFD Sender: No OFD packet to send [08:51:34]OFD Sender: No OFD packet to send [08:51:39]OFD Sender: No OFD packet to send [08:51:44]OFD Sender: No OFD packet to send [08:51:49]OFD Sender: No OFD packet to send [08:51:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:58]accept exits with 9 [08:53:58]New connection [08:53:58]New thread 3066670436 created [08:53:58]Thread 3066813796 joined [08:53:58]Waiting for new connection... [08:53:58] Sock 9.Parse request [08:53:58]Sock 9.Check first char [08:53:58]Sock 9.First char is OK [08:53:58]request: POST /json_proto HTTP/1.0 [08:53:58]Method: POST [08:53:58]URL: /json_proto [08:53:58]Method is POST - this is cgi request [08:53:58]url: /json_proto [08:53:58]query_string will be loaded in cgi processing [08:53:58]execute_cgi json_proto POST (null) [08:53:58]execute_cgi path=json_proto method=POST [08:53:58]POST find Content-Length [08:53:58]Host: 172.17.56.67:8080 [08:53:58]Content-Length: 677 [08:53:58]Content-Type: application/json [08:53:58] [08:53:58]POST finish read [08:53:58]Found Content-Length = 677 [08:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:58]execute_script... [08:53: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)216389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:58]POST & json_proto [08:53:58]process_json_proto [08:53:58]json parsed OK: [08:53:58]protocol is kg_v1.0 [08:53:58]action value=close_receipt [08:53:58]process_action close_receipt [08:53:58]cmd_close_receipt [08:53:58]MH_GetDate [08:53:58]Write to MH i2c: F0 00 00 D5 8D 51 [08:53:58]Write i2c OK [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: F0 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: F0 09 00 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: F0 09 00 D5 8D 00 BD 0A BA 65 26 5D 9E 65 C6 [08:53:58]GetLastDocTimeStamp 1706691074 [08:53:58]current date 1706691261 [08:53:58]FM_GetShiftState [08:53:58]SAM_PROTO_GetShiftState [08:53:58]wFMCommunicate request_size=4 [08:53:58]MH_SAM_APDU [08:53:58]CAPDU: 80 13 01 00 [08:53:58]Write to MH i2c: E2 08 00 D6 8D 80 13 01 00 00 00 00 00 E0 [08:53:58]Write i2c OK [08:53:58]MH_I2C_Read... [08:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:58]Read from MH i2c: E2 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: E2 0E 00 [08:53:58]MH_I2C_Read... [08:53:58]Read from MH i2c: E2 0E 00 D6 8D 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 36 [08:53:58]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [08:53:58]wFMCommunicate OK [08:53:58]SAM_PROTO_GetShiftState done [08:53:58]FM_GetShiftState done [08:53:58]opened in 1706659486 [08:53:58]opened+sec_in_day 1706745886 [08:53:58]quantity*price = 40039 [08:53:58]sum+1 = 40040 [08:53:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 11 31.01.2024 08:54 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49286 ФПД: 233219699250290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T085421&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49286&fm=233219699250290&tin=02508201610067®Number=0000000000092723&sum=40000 [08:53:59]StoreToDocumentArchive [08:53:59]shift 247 fd 49286 [08:53:59]save to /storage/0247/doc_00049286 [08:53:59]save last doc name /storage/0247/doc_00049286 to /storage/kkm_last_doc_name [08:53:59]save OK [08:53:59]Clear old archive folders... [08:53:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:53:59]tlvbuf is 01283CF0 [08:53:59]SAM_PROTO_ClearQueue [08:53:59]wFMCommunicate request_size=4 [08:53:59]MH_SAM_APDU [08:53:59]CAPDU: 80 09 00 00 [08:53:59]Write to MH i2c: E2 08 00 E3 8D 80 09 00 00 00 00 00 00 E2 [08:53:59]Write i2c OK [08:53:59]MH_I2C_Read... [08:53:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:59]Read from MH i2c: E2 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: E2 03 00 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: E2 03 00 E3 8D 00 90 00 E4 [08:53:59]RAPDU: 90 00 [08:53:59]wFMCommunicate OK [08:53:59]SAM_PROTO_ClearQueue done [08:53:59]KKMCreateOFDPacket [08:53:59]OFDProtocolAddRootSTLVToBuf [08:53:59]FM_MakeSignedData [08:53:59]FM_MakeSignedData [08:53:59]SAM_PROTO_SignData [08:53:59]wFMCommunicate request_size=4 [08:53:59]MH_SAM_APDU [08:53:59]CAPDU: 80 0D 01 02 [08:53:59]Write to MH i2c: E2 08 00 E4 8D 80 0D 01 02 00 00 00 00 EA [08:53:59]Write i2c OK [08:53:59]MH_I2C_Read... [08:53:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:59]Read from MH i2c: E2 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: E2 03 00 [08:53:59]MH_I2C_Read... [08:53:59]Read from MH i2c: E2 03 00 E4 8D 00 90 00 E5 [08:53:59]RAPDU: 90 00 [08:53:59]wFMCommunicate OK [08:53:59]wFMCommunicate request_size=255 [08:53:59]MH_SAM_APDU [08:53:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 0B 00 00 00 F4 03 04 00 BD 0A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 86 C0 00 00 35 04 06 00 D4 [08:53:59]Write to MH i2c: E2 02 01 E5 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 0B 00 00 00 F4 03 04 00 BD 0A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 86 C0 00 00 35 04 06 00 D4 00 00 66 [08:53:59]Write i2c OK [08:53:59]MH_I2C_Read... [08:53:59]OFD Sender: No OFD packet to send [08:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:00]Read from MH i2c: E2 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: E2 03 00 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: E2 03 00 E5 8D 00 90 00 E6 [08:54:00]RAPDU: 90 00 [08:54:00]wFMCommunicate OK [08:54:00]wFMCommunicate request_size=10 [08:54:00]MH_SAM_APDU [08:54:00]CAPDU: 80 0D 02 02 05 1C B1 54 14 72 [08:54:00]Write to MH i2c: E2 0D 00 E6 8D 80 0D 02 02 05 00 1C B1 54 14 72 00 00 9E [08:54:00]Write i2c OK [08:54:00]MH_I2C_Read... [08:54:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:00]Read from MH i2c: E2 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: E2 03 00 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: E2 03 00 E6 8D 00 90 00 E7 [08:54:00]RAPDU: 90 00 [08:54:00]wFMCommunicate OK [08:54:00]wFMCommunicate request_size=4 [08:54:00]MH_SAM_APDU [08:54:00]CAPDU: 80 0D 03 02 [08:54:00]Write to MH i2c: E2 08 00 E7 8D 80 0D 03 02 00 00 00 00 EF [08:54:00]Write i2c OK [08:54:00]MH_I2C_Read... [08:54:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:00]Read from MH i2c: E2 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: E2 0B 00 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: E2 0B 00 E7 8D 00 17 72 20 CE 3D 26 13 44 90 00 21 [08:54:00]RAPDU: 17 72 20 CE 3D 26 13 44 90 00 [08:54:00]wFMCommunicate OK [08:54:00]SAM_PROTO_SignData done [08:54:00]FM_MakeSignedData done [08:54:00]CreateOFDProtocolMessage [08:54:00]wFMCommunicate request_size=4 [08:54:00]MH_SAM_APDU [08:54:00]CAPDU: 80 11 00 00 [08:54:00]Write to MH i2c: E2 08 00 E8 8D 80 11 00 00 00 00 00 00 EF [08:54:00]Write i2c OK [08:54:00]MH_I2C_Read... [08:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:00]Read from MH i2c: E2 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: E2 17 00 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: E2 17 00 E8 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3C [08:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:54:00]wFMCommunicate OK [08:54:00]CreateOFDProtocolMessage done [08:54:00]OFDSenderStorePacket 49286 [08:54:00]StoreOFDPacket docnum=49286 [08:54:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 BF 3B 07 01 37 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 0B 00 00 00 F4 03 04 00 BD 0A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 86 C0 00 00 35 04 06 00 D4 1C B1 54 14 72 17 72 20 CE 3D 26 13 44 [08:54:00]CheckFolder [08:54:00]dirname=/storage/ofd_packets [08:54:00]CheckFolder done [08:54:00]ProducePacketName [08:54:00]name=ofd_packets/00049286 [08:54:00]NVStorageSaveData ofd_packets/00049286 [08:54:00]File name is /storage/ofd_packets/00049286 [08:54:00]Write 301 bytes [08:54:00]NVStorageSaveData done [08:54:00]OFDSenderStorePacket done [08:54:00]KKMCreateOFDPacket done [08:54:00]NVStorageSaveData kkm_last_timestamp [08:54:00]File name is /storage/kkm_last_timestamp [08:54:00]Write 4 bytes [08:54:00]NVStorageSaveData done [08:54:00]ExternCall_PrintAddStr [08:54:00]wPrintStart [08:54:00]Write to MH i2c: 01 00 00 E9 8D 76 [08:54:00]Write i2c OK [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: 01 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: 01 07 00 [08:54:00]MH_I2C_Read... [08:54:00]Read from MH i2c: 01 07 00 E9 8D 00 00 00 00 00 FF 0F 8B [08:54:00]RasterBufferAndPrint [08:54:00]line Счет N : (1)216389 [08:54:00]line ИНН: 02508201610067 [08:54:00]line Контрольно-Кассовый Чек [08:54:00]line ПРОДАЖА [08:54:00]line ТРК (МРК, ГНК) : 22 [08:54:00]line Товар: 2710124130 [08:54:00]line Аи-92-К-5 [08:54:00]line 6.640 * 60.30 [08:54:00]line = 400.39 [08:54:00]line НДС 12% НСП 1% [08:54:00]line > о реализуемом товаре [08:54:00]line ОКРУГЛЕНИЕ: -0.39 [08:54:00]line ИТОГО: 400.00 [08:54:00]line Внесено: 400.00 [08:54:00]line СДАЧА: 0.00 [08:54:00]line НСП 1% : 3.54 [08:54:00]line НДС 12% : 42.52 [08:54:00]line Наличными: 400.00 [08:54:00]line Безнал.: 0.00 [08:54:00]line Место: АЗС № 102 "Партнер Нефть" [08:54:00]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:54:00]line СНО: Общий режим [08:54:00]line Чек 11 31.01.2024 08:54 [08:54:00]line Смена: 247 ФФД: 1.0 [08:54:00]line ЗНМ: 0300000040 [08:54:00]line РНМ: 0000000000092723 [08:54:00]line Версия ККМ: 001 [08:54:00]line ФМ: 0000000000875060 [08:54:00]line ФД: 49286 [08:54:00]line ФПД: 233219699250290 [08:54:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T085421&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49286&fm=233219699250290&tin=02508201610067®Number=0000000000092723&sum=40000 [08:54:00]OFD Sender: Processing packet 49286 [packets to send 12, broken 11] [08:54:00]ProducePacketName [08:54:00]name=ofd_packets/00049286 [08:54:00]OFD Sender: To server: pG, [08:54:00]CommunicateWithHost lk.salyk.kg:30040 [08:54:00]ConnectInit lk.salyk.kg [08:54:00]written 0, free lines is 4095 [08:54:00]Connected sock=10 [08:54:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 BF 3B 07 01 37 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 0B 00 00 00 F4 03 04 00 BD 0A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 86 C0 00 00 35 04 06 00 D4 1C B1 54 14 72 17 72 20 CE 3D 26 13 44 [08:54:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 36 66 47 00 2B 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 35 30 36 30 10 04 04 00 86 C0 00 00 F4 03 04 00 B0 B6 B9 65 B6 04 01 00 00 50 BC 72 64 BD BC C0 89 [08:54:00]CommunicateWithHost err = 0 [08:54:00]CheckOFDResponse [08:54:00]1017 (14) - 77093643461234 [08:54:00]1041 (16) - 0000000000875060 [08:54:00]1040 (4) - 49286 [08:54:00]1012 (4) - 31.01.2024 02:55 [08:54:00]1206 (1) - 0 [08:54:00]OFD Sender: Remove packet 49286 [08:54:00]ProducePacketName [08:54:00]name=ofd_packets/00049286 [08:54:00]NVStorageDeleteData [08:54:01]Write to MH i2c: 01 00 00 14 8E A2 [08:54:01]Write i2c OK [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: 01 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: 01 07 00 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: 01 07 00 14 8E 00 00 00 00 00 03 0D B9 [08:54:01]RasterBufferAndPrint [08:54:01]line [08:54:01]line [08:54:01]line [08:54:01]line [08:54:01]line [08:54:01]written 0, free lines is 3337 [08:54:01]MH_Cut [08:54:01]Write to MH i2c: D1 01 00 1B 8E 01 7B [08:54:01]Write i2c OK [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: D1 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: D1 01 00 [08:54:01]MH_I2C_Read... [08:54:01]Read from MH i2c: D1 01 00 1B 8E 00 7A [08:54:01]Write to MH i2c: 01 00 00 1C 8E AA [08:54:01]Write i2c OK [08:54:01]MH_I2C_Read... [08:54:01]OFD Sender: No OFD packet to send [08:54:01]*** Cut start [08:54:01]*** Partial cut [08:54:01]*** CUTSNS_PIN = 1 [08:54:01]*** CUTSNS_PIN = 0 [08:54:01]*** Brake cut motor [08:54:02]Read from MH i2c: 01 [08:54:02]MH_I2C_Read... [08:54:02]*** Stop cut motor [08:54:02]*** Cut end [08:54:02]Read from MH i2c: 01 07 00 [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: 01 07 00 1C 8E 00 00 00 00 00 FF 0F BF [08:54:02]process_action close_receipt done [08:54:02]requested_data is exist [08:54:02]produce_requested_data [08:54:02]requested_item fm.sn is exist - process it [08:54:02]wFMCommunicate request_size=4 [08:54:02]MH_SAM_APDU [08:54:02]CAPDU: 80 11 00 00 [08:54:02]Write to MH i2c: E2 08 00 1D 8E 80 11 00 00 00 00 00 00 25 [08:54:02]Write i2c OK [08:54:02]MH_I2C_Read... [08:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:02]Read from MH i2c: E2 [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: E2 17 00 [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: E2 17 00 1D 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 72 [08:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:54:02]wFMCommunicate OK [08:54:02]requested_item fd.num is exist - process it [08:54:02]SAM_PROTO_GetFieldsCounters [08:54:02]wFMCommunicate request_size=4 [08:54:02]MH_SAM_APDU [08:54:02]CAPDU: 80 13 00 00 [08:54:02]Write to MH i2c: E2 08 00 1E 8E 80 13 00 00 00 00 00 00 28 [08:54:02]Write i2c OK [08:54:02]MH_I2C_Read... [08:54:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:02]Read from MH i2c: E2 [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: E2 62 00 [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: E2 62 00 1E 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 86 C0 00 00 0E 04 04 00 F7 00 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 9F [08:54: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 86 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:02]wFMCommunicate OK [08:54:02]SAM_PROTO_GetFieldsCounters done [08:54:02]requested_item shift.num is exist - process it [08:54:02]requested_item shift.opened is exist - process it [08:54:02]req_shift_opened [08:54:02]FM_GetShiftState [08:54:02]SAM_PROTO_GetShiftState [08:54:02]wFMCommunicate request_size=4 [08:54:02]MH_SAM_APDU [08:54:02]CAPDU: 80 13 01 00 [08:54:02]Write to MH i2c: E2 08 00 1F 8E 80 13 01 00 00 00 00 00 2A [08:54:02]Write i2c OK [08:54:02]MH_I2C_Read... [08:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:02]Read from MH i2c: E2 [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: E2 0E 00 [08:54:02]MH_I2C_Read... [08:54:02]Read from MH i2c: E2 0E 00 1F 8E 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 80 [08:54:02]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [08:54:02]wFMCommunicate OK [08:54:02]SAM_PROTO_GetShiftState done [08:54:02]FM_GetShiftState done [08:54:02]req_shift_opened done [08:54:02]requested_item shift.open_date is exist - process it [08:54:02]req_shift_open_date [08:54:02]req_shift_open_date done [08:54:02]produce_requested_data done [08:54:02]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49286,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [08:54:02]process_action_free close_receipt [08:54:02]json_value_free [08:54:02]json_value_free done [08:54:02]process_json_proto returns [08:54:02]Send response to host [08:54:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49286,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [08:54:02]free response buf [08:54:02]execute_script done [08:54:02]execute_script returns [08:54:02]free content buf [08:54:02]Sock 9.Close socket [08:54:02]Sock 9.Thread stoped [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:20]accept exits with 7 [08:58:20]New connection [08:58:20]New thread 3066813796 created [08:58:20]Thread 3066670436 joined [08:58:20]Waiting for new connection... [08:58:20] Sock 7.Parse request [08:58:20]Sock 7.Check first char [08:58:20]Sock 7.First char is OK [08:58:20]request: POST /json_proto HTTP/1.0 [08:58:20]Method: POST [08:58:20]URL: /json_proto [08:58:20]Method is POST - this is cgi request [08:58:20]url: /json_proto [08:58:20]query_string will be loaded in cgi processing [08:58:20]execute_cgi json_proto POST (null) [08:58:20]execute_cgi path=json_proto method=POST [08:58:20]POST find Content-Length [08:58:20]Host: 172.17.56.67:8080 [08:58:20]Content-Length: 677 [08:58:20]Content-Type: application/json [08:58:20] [08:58:20]POST finish read [08:58:20]Found Content-Length = 677 [08:58:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:20]execute_script... [08:58: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)216390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:20]POST & json_proto [08:58:20]process_json_proto [08:58:20]json parsed OK: [08:58:20]protocol is kg_v1.0 [08:58:20]action value=close_receipt [08:58:20]process_action close_receipt [08:58:20]cmd_close_receipt [08:58:20]MH_GetDate [08:58:20]Write to MH i2c: F0 00 00 20 8E 9D [08:58:20]Write i2c OK [08:58:20]MH_I2C_Read... [08:58:20]Read from MH i2c: F0 [08:58:20]MH_I2C_Read... [08:58:20]Read from MH i2c: F0 09 00 [08:58:20]MH_I2C_Read... [08:58:20]Read from MH i2c: F0 09 00 20 8E 00 C3 0B BA 65 26 5D 9E 65 19 [08:58:20]GetLastDocTimeStamp 1706691261 [08:58:20]current date 1706691523 [08:58:20]FM_GetShiftState [08:58:20]SAM_PROTO_GetShiftState [08:58:20]wFMCommunicate request_size=4 [08:58:20]MH_SAM_APDU [08:58:20]CAPDU: 80 13 01 00 [08:58:20]Write to MH i2c: E2 08 00 21 8E 80 13 01 00 00 00 00 00 2C [08:58:20]Write i2c OK [08:58:20]MH_I2C_Read... [08:58:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:20]Read from MH i2c: E2 [08:58:20]MH_I2C_Read... [08:58:20]Read from MH i2c: E2 0E 00 [08:58:20]MH_I2C_Read... [08:58:20]Read from MH i2c: E2 0E 00 21 8E 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 82 [08:58:20]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [08:58:20]wFMCommunicate OK [08:58:20]SAM_PROTO_GetShiftState done [08:58:20]FM_GetShiftState done [08:58:20]opened in 1706659486 [08:58:20]opened+sec_in_day 1706745886 [08:58:20]quantity*price = 30029 [08:58:20]sum+1 = 30030 [08:58:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 12 31.01.2024 08:58 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49287 ФПД: 119844298135984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T085843&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49287&fm=119844298135984&tin=02508201610067®Number=0000000000092723&sum=30000 [08:58:21]StoreToDocumentArchive [08:58:21]shift 247 fd 49287 [08:58:21]save to /storage/0247/doc_00049287 [08:58:21]save last doc name /storage/0247/doc_00049287 to /storage/kkm_last_doc_name [08:58:21]save OK [08:58:21]Clear old archive folders... [08:58:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:58:21]tlvbuf is 0139F6A0 [08:58:21]SAM_PROTO_ClearQueue [08:58:21]wFMCommunicate request_size=4 [08:58:21]MH_SAM_APDU [08:58:21]CAPDU: 80 09 00 00 [08:58:21]Write to MH i2c: E2 08 00 2E 8E 80 09 00 00 00 00 00 00 2E [08:58:21]Write i2c OK [08:58:21]MH_I2C_Read... [08:58:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:21]Read from MH i2c: E2 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: E2 03 00 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: E2 03 00 2E 8E 00 90 00 30 [08:58:21]RAPDU: 90 00 [08:58:21]wFMCommunicate OK [08:58:21]SAM_PROTO_ClearQueue done [08:58:21]KKMCreateOFDPacket [08:58:21]OFDProtocolAddRootSTLVToBuf [08:58:21]FM_MakeSignedData [08:58:21]FM_MakeSignedData [08:58:21]SAM_PROTO_SignData [08:58:21]wFMCommunicate request_size=4 [08:58:21]MH_SAM_APDU [08:58:21]CAPDU: 80 0D 01 02 [08:58:21]Write to MH i2c: E2 08 00 2F 8E 80 0D 01 02 00 00 00 00 36 [08:58:21]Write i2c OK [08:58:21]MH_I2C_Read... [08:58:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:21]Read from MH i2c: E2 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: E2 03 00 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: E2 03 00 2F 8E 00 90 00 31 [08:58:21]RAPDU: 90 00 [08:58:21]wFMCommunicate OK [08:58:21]wFMCommunicate request_size=255 [08:58:21]MH_SAM_APDU [08:58:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 C3 0B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 87 C0 00 00 35 04 06 00 6C [08:58:21]Write to MH i2c: E2 02 01 30 8E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 C3 0B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 87 C0 00 00 35 04 06 00 6C 00 00 9F [08:58:21]Write i2c OK [08:58:21]MH_I2C_Read... [08:58:21]OFD Sender: No OFD packet to send [08:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:21]Read from MH i2c: E2 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: E2 03 00 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: E2 03 00 30 8E 00 90 00 32 [08:58:21]RAPDU: 90 00 [08:58:21]wFMCommunicate OK [08:58:21]wFMCommunicate request_size=10 [08:58:21]MH_SAM_APDU [08:58:21]CAPDU: 80 0D 02 02 05 FF 6C D1 99 B0 [08:58:21]Write to MH i2c: E2 0D 00 31 8E 80 0D 02 02 05 00 FF 6C D1 99 B0 00 00 C8 [08:58:21]Write i2c OK [08:58:21]MH_I2C_Read... [08:58:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:21]Read from MH i2c: E2 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: E2 03 00 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: E2 03 00 31 8E 00 90 00 33 [08:58:21]RAPDU: 90 00 [08:58:21]wFMCommunicate OK [08:58:21]wFMCommunicate request_size=4 [08:58:21]MH_SAM_APDU [08:58:21]CAPDU: 80 0D 03 02 [08:58:21]Write to MH i2c: E2 08 00 32 8E 80 0D 03 02 00 00 00 00 3B [08:58:21]Write i2c OK [08:58:21]MH_I2C_Read... [08:58:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:21]Read from MH i2c: E2 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: E2 0B 00 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: E2 0B 00 32 8E 00 AF 00 14 9E A1 12 E9 C5 90 00 FE [08:58:21]RAPDU: AF 00 14 9E A1 12 E9 C5 90 00 [08:58:21]wFMCommunicate OK [08:58:21]SAM_PROTO_SignData done [08:58:21]FM_MakeSignedData done [08:58:21]CreateOFDProtocolMessage [08:58:21]wFMCommunicate request_size=4 [08:58:21]MH_SAM_APDU [08:58:21]CAPDU: 80 11 00 00 [08:58:21]Write to MH i2c: E2 08 00 33 8E 80 11 00 00 00 00 00 00 3B [08:58:21]Write i2c OK [08:58:21]MH_I2C_Read... [08:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:21]Read from MH i2c: E2 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: E2 17 00 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: E2 17 00 33 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 88 [08:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:58:21]wFMCommunicate OK [08:58:21]CreateOFDProtocolMessage done [08:58:21]OFDSenderStorePacket 49287 [08:58:21]StoreOFDPacket docnum=49287 [08:58:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 A2 DA 07 01 D8 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 C3 0B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 87 C0 00 00 35 04 06 00 6C FF 6C D1 99 B0 AF 00 14 9E A1 12 E9 C5 [08:58:21]CheckFolder [08:58:21]dirname=/storage/ofd_packets [08:58:21]CheckFolder done [08:58:21]ProducePacketName [08:58:21]name=ofd_packets/00049287 [08:58:21]NVStorageSaveData ofd_packets/00049287 [08:58:21]File name is /storage/ofd_packets/00049287 [08:58:21]Write 301 bytes [08:58:21]NVStorageSaveData done [08:58:21]OFDSenderStorePacket done [08:58:21]KKMCreateOFDPacket done [08:58:21]NVStorageSaveData kkm_last_timestamp [08:58:21]File name is /storage/kkm_last_timestamp [08:58:21]Write 4 bytes [08:58:21]NVStorageSaveData done [08:58:21]ExternCall_PrintAddStr [08:58:21]wPrintStart [08:58:21]Write to MH i2c: 01 00 00 34 8E C2 [08:58:21]OFD Sender: Processing packet 49287 [packets to send 12, broken 11] [08:58:21]ProducePacketName [08:58:21]name=ofd_packets/00049287 [08:58:21]OFD Sender: To server: pG, [08:58:21]CommunicateWithHost lk.salyk.kg:30040 [08:58:21]ConnectInit lk.salyk.kg [08:58:21]Write i2c OK [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: 01 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: 01 07 00 [08:58:21]MH_I2C_Read... [08:58:21]Read from MH i2c: 01 07 00 34 8E 00 00 00 00 00 FF 0F D7 [08:58:21]RasterBufferAndPrint [08:58:21]line Счет N : (1)216390 [08:58:21]line ИНН: 02508201610067 [08:58:21]line Контрольно-Кассовый Чек [08:58:21]line ПРОДАЖА [08:58:21]line ТРК (МРК, ГНК) : 22 [08:58:21]line Товар: 2710124130 [08:58:21]line Аи-92-К-5 [08:58:21]line 4.980 * 60.30 [08:58:21]line = 300.29 [08:58:21]line НДС 12% НСП 1% [08:58:21]line > о реализуемом товаре [08:58:21]line ОКРУГЛЕНИЕ: -0.29 [08:58:21]line ИТОГО: 300.00 [08:58:21]line Внесено: 300.00 [08:58:21]line СДАЧА: 0.00 [08:58:21]line НСП 1% : 2.66 [08:58:21]line НДС 12% : 31.89 [08:58:21]line Наличными: 300.00 [08:58:21]line Безнал.: 0.00 [08:58:21]line Место: АЗС № 102 "Партнер Нефть" [08:58:21]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:58:21]line СНО: Общий режим [08:58:21]line Чек 12 31.01.2024 08:58 [08:58:21]line Смена: 247 ФФД: 1.0 [08:58:22]line ЗНМ: 0300000040 [08:58:22]line РНМ: 0000000000092723 [08:58:22]line Версия ККМ: 001 [08:58:22]line ФМ: 0000000000875060 [08:58:22]line ФД: 49287 [08:58:22]line ФПД: 119844298135984 [08:58:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T085843&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49287&fm=119844298135984&tin=02508201610067®Number=0000000000092723&sum=30000 [08:58:22]Connected sock=10 [08:58:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 A2 DA 07 01 D8 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 C3 0B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 87 C0 00 00 35 04 06 00 6C FF 6C D1 99 B0 AF 00 14 9E A1 12 E9 C5 [08:58:22]written 0, free lines is 4095 [08:58:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 8B CF 47 00 87 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 87 C0 00 00 F4 03 04 00 B6 B7 B9 65 B6 04 01 00 00 88 77 54 D7 79 60 66 81 [08:58:22]CommunicateWithHost err = 0 [08:58:22]CheckOFDResponse [08:58:22]1017 (14) - 77093643461234 [08:58:22]1041 (16) - 0000000000875060 [08:58:22]1040 (4) - 49287 [08:58:22]1012 (4) - 31.01.2024 03:00 [08:58:22]1206 (1) - 0 [08:58:22]OFD Sender: Remove packet 49287 [08:58:22]ProducePacketName [08:58:22]name=ofd_packets/00049287 [08:58:22]NVStorageDeleteData [08:58:22]Write to MH i2c: 01 00 00 5F 8E ED [08:58:22]Write i2c OK [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: 01 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: 01 07 00 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: 01 07 00 5F 8E 00 00 00 00 00 FD 0C FD [08:58:22]RasterBufferAndPrint [08:58:22]line [08:58:22]line [08:58:22]line [08:58:22]line [08:58:22]line [08:58:22]written 0, free lines is 3334 [08:58:22]MH_Cut [08:58:22]Write to MH i2c: D1 01 00 66 8E 01 C6 [08:58:22]Write i2c OK [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: D1 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: D1 01 00 [08:58:22]MH_I2C_Read... [08:58:22]Read from MH i2c: D1 01 00 66 8E 00 C5 [08:58:22]Write to MH i2c: 01 00 00 67 8E F5 [08:58:22]Write i2c OK [08:58:22]MH_I2C_Read... [08:58:22]OFD Sender: No OFD packet to send [08:58:23]*** Cut start [08:58:23]*** Partial cut [08:58:23]*** CUTSNS_PIN = 1 [08:58:23]*** CUTSNS_PIN = 0 [08:58:23]*** Brake cut motor [08:58:23]Read from MH i2c: 01 [08:58:23]MH_I2C_Read... [08:58:23]*** Stop cut motor [08:58:23]*** Cut end [08:58:23]Read from MH i2c: 01 07 00 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: 01 07 00 67 8E 00 00 00 00 00 FF 0F 0A [08:58:23]process_action close_receipt done [08:58:23]requested_data is exist [08:58:23]produce_requested_data [08:58:23]requested_item fm.sn is exist - process it [08:58:23]wFMCommunicate request_size=4 [08:58:23]MH_SAM_APDU [08:58:23]CAPDU: 80 11 00 00 [08:58:23]Write to MH i2c: E2 08 00 68 8E 80 11 00 00 00 00 00 00 70 [08:58:23]Write i2c OK [08:58:23]MH_I2C_Read... [08:58:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:23]Read from MH i2c: E2 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: E2 17 00 [08:58:23]MH_I2C_Read... [08:58:23]Read from MH i2c: E2 17 00 68 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BD [08:58:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:58:23]wFMCommunicate OK [08:58:23]requested_item fd.num is exist - process it [08:58:23]SAM_PROTO_GetFieldsCounters [08:58:23]wFMCommunicate request_size=4 [08:58:23]MH_SAM_APDU [08:58:23]CAPDU: 80 13 00 00 [08:58:23]Write to MH i2c: E2 08 00 69 8E 80 13 00 00 00 00 00 00 73 [08:58:23]Write i2c OK [08:58:23]MH_I2C_Read... [08:58:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:24]Read from MH i2c: E2 [08:58:24]MH_I2C_Read... [08:58:24]Read from MH i2c: E2 62 00 [08:58:24]MH_I2C_Read... [08:58:24]Read from MH i2c: E2 62 00 69 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 87 C0 00 00 0E 04 04 00 F7 00 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 EE [08:58: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 87 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:24]wFMCommunicate OK [08:58:24]SAM_PROTO_GetFieldsCounters done [08:58:24]requested_item shift.num is exist - process it [08:58:24]requested_item shift.opened is exist - process it [08:58:24]req_shift_opened [08:58:24]FM_GetShiftState [08:58:24]SAM_PROTO_GetShiftState [08:58:24]wFMCommunicate request_size=4 [08:58:24]MH_SAM_APDU [08:58:24]CAPDU: 80 13 01 00 [08:58:24]Write to MH i2c: E2 08 00 6A 8E 80 13 01 00 00 00 00 00 75 [08:58:24]Write i2c OK [08:58:24]MH_I2C_Read... [08:58:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:24]Read from MH i2c: E2 [08:58:24]MH_I2C_Read... [08:58:24]Read from MH i2c: E2 0E 00 [08:58:24]MH_I2C_Read... [08:58:24]Read from MH i2c: E2 0E 00 6A 8E 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 CB [08:58:24]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [08:58:24]wFMCommunicate OK [08:58:24]SAM_PROTO_GetShiftState done [08:58:24]FM_GetShiftState done [08:58:24]req_shift_opened done [08:58:24]requested_item shift.open_date is exist - process it [08:58:24]req_shift_open_date [08:58:24]req_shift_open_date done [08:58:24]produce_requested_data done [08:58:24]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49287,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [08:58:24]process_action_free close_receipt [08:58:24]json_value_free [08:58:24]json_value_free done [08:58:24]process_json_proto returns [08:58:24]Send response to host [08:58:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49287,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [08:58:24]free response buf [08:58:24]execute_script done [08:58:24]execute_script returns [08:58:24]free content buf [08:58:24]Sock 7.Close socket [08:58:24]Sock 7.Thread stoped [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:23]OFD Sender: No OFD packet to send [09:00:28]OFD Sender: No OFD packet to send [09:00:33]OFD Sender: No OFD packet to send [09:00:38]OFD Sender: No OFD packet to send [09:00:43]OFD Sender: No OFD packet to send [09:00:48]OFD Sender: No OFD packet to send [09:00:53]OFD Sender: No OFD packet to send [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:11]accept exits with 9 [09:01:11]New connection [09:01:11]New thread 3066670436 created [09:01:11]Thread 3066813796 joined [09:01:11]Waiting for new connection... [09:01:11] Sock 9.Parse request [09:01:11]Sock 9.Check first char [09:01:11]Sock 9.First char is OK [09:01:11]request: POST /json_proto HTTP/1.0 [09:01:11]Method: POST [09:01:11]URL: /json_proto [09:01:11]Method is POST - this is cgi request [09:01:11]url: /json_proto [09:01:11]query_string will be loaded in cgi processing [09:01:11]execute_cgi json_proto POST (null) [09:01:11]execute_cgi path=json_proto method=POST [09:01:11]POST find Content-Length [09:01:11]Host: 172.17.56.67:8080 [09:01:11]Content-Length: 674 [09:01:11]Content-Type: application/json [09:01:11] [09:01:11]POST finish read [09:01:11]Found Content-Length = 674 [09:01:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:11]execute_script... [09:01:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:11]POST & json_proto [09:01:11]process_json_proto [09:01:11]json parsed OK: [09:01:11]protocol is kg_v1.0 [09:01:11]action value=close_receipt [09:01:11]process_action close_receipt [09:01:11]cmd_close_receipt [09:01:11]MH_GetDate [09:01:11]Write to MH i2c: F0 00 00 6B 8E E8 [09:01:11]Write i2c OK [09:01:11]MH_I2C_Read... [09:01:11]Read from MH i2c: F0 [09:01:11]MH_I2C_Read... [09:01:11]Read from MH i2c: F0 09 00 [09:01:11]MH_I2C_Read... [09:01:11]Read from MH i2c: F0 09 00 6B 8E 00 6E 0C BA 65 26 5D 9E 65 10 [09:01:11]GetLastDocTimeStamp 1706691523 [09:01:11]current date 1706691694 [09:01:11]FM_GetShiftState [09:01:11]SAM_PROTO_GetShiftState [09:01:11]wFMCommunicate request_size=4 [09:01:11]MH_SAM_APDU [09:01:11]CAPDU: 80 13 01 00 [09:01:11]Write to MH i2c: E2 08 00 6C 8E 80 13 01 00 00 00 00 00 77 [09:01:11]Write i2c OK [09:01:11]MH_I2C_Read... [09:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:11]Read from MH i2c: E2 [09:01:11]MH_I2C_Read... [09:01:11]Read from MH i2c: E2 0E 00 [09:01:11]MH_I2C_Read... [09:01:11]Read from MH i2c: E2 0E 00 6C 8E 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 CD [09:01:11]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:01:11]wFMCommunicate OK [09:01:11]SAM_PROTO_GetShiftState done [09:01:11]FM_GetShiftState done [09:01:11]opened in 1706659486 [09:01:11]opened+sec_in_day 1706745886 [09:01:11]quantity*price = 50048 [09:01:11]sum+1 = 50049 [09:01:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 13 31.01.2024 09:01 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49288 ФПД: 201392632918516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T090134&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49288&fm=201392632918516&tin=02508201610067®Number=0000000000092723&sum=50000 [09:01:12]StoreToDocumentArchive [09:01:12]shift 247 fd 49288 [09:01:12]save to /storage/0247/doc_00049288 [09:01:12]save last doc name /storage/0247/doc_00049288 to /storage/kkm_last_doc_name [09:01:12]save OK [09:01:12]Clear old archive folders... [09:01:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:01:12]tlvbuf is 0147AE70 [09:01:12]SAM_PROTO_ClearQueue [09:01:12]wFMCommunicate request_size=4 [09:01:12]MH_SAM_APDU [09:01:12]CAPDU: 80 09 00 00 [09:01:12]Write to MH i2c: E2 08 00 79 8E 80 09 00 00 00 00 00 00 79 [09:01:12]Write i2c OK [09:01:12]MH_I2C_Read... [09:01:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:12]Read from MH i2c: E2 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: E2 03 00 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: E2 03 00 79 8E 00 90 00 7B [09:01:12]RAPDU: 90 00 [09:01:12]wFMCommunicate OK [09:01:12]SAM_PROTO_ClearQueue done [09:01:12]KKMCreateOFDPacket [09:01:12]OFDProtocolAddRootSTLVToBuf [09:01:12]FM_MakeSignedData [09:01:12]FM_MakeSignedData [09:01:12]SAM_PROTO_SignData [09:01:12]wFMCommunicate request_size=4 [09:01:12]MH_SAM_APDU [09:01:12]CAPDU: 80 0D 01 02 [09:01:12]Write to MH i2c: E2 08 00 7A 8E 80 0D 01 02 00 00 00 00 81 [09:01:12]Write i2c OK [09:01:12]MH_I2C_Read... [09:01:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:12]Read from MH i2c: E2 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: E2 03 00 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: E2 03 00 7A 8E 00 90 00 7C [09:01:12]RAPDU: 90 00 [09:01:12]wFMCommunicate OK [09:01:12]wFMCommunicate request_size=255 [09:01:12]MH_SAM_APDU [09:01:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 6E 0C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 88 C0 00 00 35 04 06 00 B7 2A 60 58 [09:01:12]Write to MH i2c: E2 02 01 7B 8E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 6E 0C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 88 C0 00 00 35 04 06 00 B7 2A 60 58 00 00 CC [09:01:12]Write i2c OK [09:01:12]MH_I2C_Read... [09:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:12]Read from MH i2c: E2 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: E2 03 00 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: E2 03 00 7B 8E 00 90 00 7D [09:01:12]RAPDU: 90 00 [09:01:12]wFMCommunicate OK [09:01:12]wFMCommunicate request_size=7 [09:01:12]MH_SAM_APDU [09:01:12]CAPDU: 80 0D 02 02 02 71 F4 [09:01:12]Write to MH i2c: E2 0A 00 7C 8E 80 0D 02 02 02 00 71 F4 00 00 ED [09:01:12]Write i2c OK [09:01:12]MH_I2C_Read... [09:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:12]Read from MH i2c: E2 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: E2 03 00 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: E2 03 00 7C 8E 00 90 00 7E [09:01:12]RAPDU: 90 00 [09:01:12]wFMCommunicate OK [09:01:12]wFMCommunicate request_size=4 [09:01:12]MH_SAM_APDU [09:01:12]CAPDU: 80 0D 03 02 [09:01:12]Write to MH i2c: E2 08 00 7D 8E 80 0D 03 02 00 00 00 00 86 [09:01:12]Write i2c OK [09:01:12]MH_I2C_Read... [09:01:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:12]Read from MH i2c: E2 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: E2 0B 00 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: E2 0B 00 7D 8E 00 FF 6B CA B3 E1 52 DA F7 90 00 72 [09:01:12]RAPDU: FF 6B CA B3 E1 52 DA F7 90 00 [09:01:12]wFMCommunicate OK [09:01:12]SAM_PROTO_SignData done [09:01:12]FM_MakeSignedData done [09:01:12]CreateOFDProtocolMessage [09:01:12]wFMCommunicate request_size=4 [09:01:12]MH_SAM_APDU [09:01:12]CAPDU: 80 11 00 00 [09:01:12]Write to MH i2c: E2 08 00 7E 8E 80 11 00 00 00 00 00 00 86 [09:01:12]Write i2c OK [09:01:12]MH_I2C_Read... [09:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:12]Read from MH i2c: E2 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: E2 17 00 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: E2 17 00 7E 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D3 [09:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:01:12]wFMCommunicate OK [09:01:12]CreateOFDProtocolMessage done [09:01:12]OFDSenderStorePacket 49288 [09:01:12]StoreOFDPacket docnum=49288 [09:01:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 D3 8F 04 01 F0 BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 6E 0C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 88 C0 00 00 35 04 06 00 B7 2A 60 58 71 F4 FF 6B CA B3 E1 52 DA F7 [09:01:12]CheckFolder [09:01:12]dirname=/storage/ofd_packets [09:01:12]CheckFolder done [09:01:12]ProducePacketName [09:01:12]name=ofd_packets/00049288 [09:01:12]NVStorageSaveData ofd_packets/00049288 [09:01:12]File name is /storage/ofd_packets/00049288 [09:01:12]Write 298 bytes [09:01:12]NVStorageSaveData done [09:01:12]OFDSenderStorePacket done [09:01:12]KKMCreateOFDPacket done [09:01:12]NVStorageSaveData kkm_last_timestamp [09:01:12]File name is /storage/kkm_last_timestamp [09:01:12]Write 4 bytes [09:01:12]NVStorageSaveData done [09:01:12]ExternCall_PrintAddStr [09:01:12]wPrintStart [09:01:12]Write to MH i2c: 01 00 00 7F 8E 0D [09:01:12]Write i2c OK [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: 01 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: 01 07 00 [09:01:12]MH_I2C_Read... [09:01:12]Read from MH i2c: 01 07 00 7F 8E 00 00 00 00 00 FF 0F 22 [09:01:12]RasterBufferAndPrint [09:01:12]line Счет N : (1)216391 [09:01:12]line ИНН: 02508201610067 [09:01:12]line Контрольно-Кассовый Чек [09:01:12]line ПРОДАЖА [09:01:12]line ТРК (МРК, ГНК) : 11 [09:01:12]line Товар: 2710194210 [09:01:12]line ДТ-К-5 [09:01:12]line 7.160 * 69.90 [09:01:12]line = 500.48 [09:01:12]line НДС 12% НСП 1% [09:01:12]line > о реализуемом товаре [09:01:12]line ОКРУГЛЕНИЕ: -0.48 [09:01:12]line ИТОГО: 500.00 [09:01:12]line Внесено: 500.00 [09:01:12]line СДАЧА: 0.00 [09:01:12]line НСП 1% : 4.43 [09:01:12]line НДС 12% : 53.15 [09:01:12]line Наличными: 500.00 [09:01:12]line Безнал.: 0.00 [09:01:12]line Место: АЗС № 102 "Партнер Нефть" [09:01:12]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:01:12]line СНО: Общий режим [09:01:12]line Чек 13 31.01.2024 09:01 [09:01:12]line Смена: 247 ФФД: 1.0 [09:01:12]line ЗНМ: 0300000040 [09:01:12]line РНМ: 0000000000092723 [09:01:12]line Версия ККМ: 001 [09:01:12]line ФМ: 0000000000875060 [09:01:12]line ФД: 49288 [09:01:12]line ФПД: 201392632918516 [09:01:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T090134&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49288&fm=201392632918516&tin=02508201610067®Number=0000000000092723&sum=50000 [09:01:13]OFD Sender: Processing packet 49288 [packets to send 12, broken 11] [09:01:13]ProducePacketName [09:01:13]name=ofd_packets/00049288 [09:01:13]OFD Sender: To server: pG, [09:01:13]CommunicateWithHost lk.salyk.kg:30040 [09:01:13]ConnectInit lk.salyk.kg [09:01:13]written 0, free lines is 4095 [09:01:13]Connected sock=11 [09:01:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 D3 8F 04 01 F0 BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 6E 0C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 88 C0 00 00 35 04 06 00 B7 2A 60 58 71 F4 FF 6B CA B3 E1 52 DA F7 [09:01:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 1A 4C 47 00 EE 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 88 C0 00 00 F4 03 04 00 61 B8 B9 65 B6 04 01 00 00 1B 24 59 12 1D F8 00 7F [09:01:13]CommunicateWithHost err = 0 [09:01:13]CheckOFDResponse [09:01:13]1017 (14) - 77093643461234 [09:01:13]1041 (16) - 0000000000875060 [09:01:13]1040 (4) - 49288 [09:01:13]1012 (4) - 31.01.2024 03:02 [09:01:13]1206 (1) - 0 [09:01:13]OFD Sender: Remove packet 49288 [09:01:13]ProducePacketName [09:01:13]name=ofd_packets/00049288 [09:01:13]NVStorageDeleteData [09:01:13]Write to MH i2c: 01 00 00 AA 8E 38 [09:01:13]Write i2c OK [09:01:13]MH_I2C_Read... [09:01:13]Read from MH i2c: 01 [09:01:13]MH_I2C_Read... [09:01:13]Read from MH i2c: 01 07 00 [09:01:13]MH_I2C_Read... [09:01:13]Read from MH i2c: 01 07 00 AA 8E 00 00 00 00 00 EC 0C 37 [09:01:13]RasterBufferAndPrint [09:01:13]line [09:01:13]line [09:01:13]line [09:01:13]line [09:01:13]line [09:01:13]written 0, free lines is 3314 [09:01:13]MH_Cut [09:01:13]Write to MH i2c: D1 01 00 B1 8E 01 11 [09:01:13]Write i2c OK [09:01:13]MH_I2C_Read... [09:01:13]Read from MH i2c: D1 [09:01:13]MH_I2C_Read... [09:01:13]Read from MH i2c: D1 01 00 [09:01:13]MH_I2C_Read... [09:01:13]Read from MH i2c: D1 01 00 B1 8E 00 10 [09:01:13]Write to MH i2c: 01 00 00 B2 8E 40 [09:01:13]Write i2c OK [09:01:13]MH_I2C_Read... [09:01:14]OFD Sender: No OFD packet to send [09:01:14]*** Cut start [09:01:14]*** Partial cut [09:01:14]*** CUTSNS_PIN = 1 [09:01:14]*** CUTSNS_PIN = 0 [09:01:14]*** Brake cut motor [09:01:14]Read from MH i2c: 01 [09:01:14]MH_I2C_Read... [09:01:14]*** Stop cut motor [09:01:14]*** Cut end [09:01:14]Read from MH i2c: 01 07 00 [09:01:14]MH_I2C_Read... [09:01:14]Read from MH i2c: 01 07 00 B2 8E 00 00 00 00 00 FF 0F 55 [09:01:14]process_action close_receipt done [09:01:14]requested_data is exist [09:01:14]produce_requested_data [09:01:14]requested_item fm.sn is exist - process it [09:01:14]wFMCommunicate request_size=4 [09:01:14]MH_SAM_APDU [09:01:14]CAPDU: 80 11 00 00 [09:01:14]Write to MH i2c: E2 08 00 B3 8E 80 11 00 00 00 00 00 00 BB [09:01:14]Write i2c OK [09:01:14]MH_I2C_Read... [09:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:15]Read from MH i2c: E2 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: E2 17 00 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: E2 17 00 B3 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 08 [09:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:01:15]wFMCommunicate OK [09:01:15]requested_item fd.num is exist - process it [09:01:15]SAM_PROTO_GetFieldsCounters [09:01:15]wFMCommunicate request_size=4 [09:01:15]MH_SAM_APDU [09:01:15]CAPDU: 80 13 00 00 [09:01:15]Write to MH i2c: E2 08 00 B4 8E 80 13 00 00 00 00 00 00 BE [09:01:15]Write i2c OK [09:01:15]MH_I2C_Read... [09:01:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:15]Read from MH i2c: E2 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: E2 62 00 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: E2 62 00 B4 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 88 C0 00 00 0E 04 04 00 F7 00 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 3D [09:01: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 88 C0 00 00 0E 04 04 00 F7 00 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 [09:01:15]wFMCommunicate OK [09:01:15]SAM_PROTO_GetFieldsCounters done [09:01:15]requested_item shift.num is exist - process it [09:01:15]requested_item shift.opened is exist - process it [09:01:15]req_shift_opened [09:01:15]FM_GetShiftState [09:01:15]SAM_PROTO_GetShiftState [09:01:15]wFMCommunicate request_size=4 [09:01:15]MH_SAM_APDU [09:01:15]CAPDU: 80 13 01 00 [09:01:15]Write to MH i2c: E2 08 00 B5 8E 80 13 01 00 00 00 00 00 C0 [09:01:15]Write i2c OK [09:01:15]MH_I2C_Read... [09:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:15]Read from MH i2c: E2 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: E2 0E 00 [09:01:15]MH_I2C_Read... [09:01:15]Read from MH i2c: E2 0E 00 B5 8E 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 16 [09:01:15]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:01:15]wFMCommunicate OK [09:01:15]SAM_PROTO_GetShiftState done [09:01:15]FM_GetShiftState done [09:01:15]req_shift_opened done [09:01:15]requested_item shift.open_date is exist - process it [09:01:15]req_shift_open_date [09:01:15]req_shift_open_date done [09:01:15]produce_requested_data done [09:01:15]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49288,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [09:01:15]process_action_free close_receipt [09:01:15]json_value_free [09:01:15]json_value_free done [09:01:15]process_json_proto returns [09:01:15]Send response to host [09:01:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49288,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [09:01:15]free response buf [09:01:15]execute_script done [09:01:15]execute_script returns [09:01:15]free content buf [09:01:15]Sock 9.Close socket [09:01:15]Sock 9.Thread stoped [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:43]accept exits with 7 [09:01:43]New connection [09:01:43]New thread 3066813796 created [09:01:43]Thread 3066670436 joined [09:01:43]Waiting for new connection... [09:01:43] Sock 7.Parse request [09:01:43]Sock 7.Check first char [09:01:43]Sock 7.First char is OK [09:01:43]request: POST /json_proto HTTP/1.0 [09:01:43]Method: POST [09:01:43]URL: /json_proto [09:01:43]Method is POST - this is cgi request [09:01:43]url: /json_proto [09:01:43]query_string will be loaded in cgi processing [09:01:43]execute_cgi json_proto POST (null) [09:01:43]execute_cgi path=json_proto method=POST [09:01:43]POST find Content-Length [09:01:43]Host: 172.17.56.67:8080 [09:01:43]Content-Length: 674 [09:01:43]Content-Type: application/json [09:01:43] [09:01:43]POST finish read [09:01:43]Found Content-Length = 674 [09:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:43]execute_script... [09:01: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)216392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:43]POST & json_proto [09:01:43]process_json_proto [09:01:43]json parsed OK: [09:01:43]protocol is kg_v1.0 [09:01:43]action value=close_receipt [09:01:43]process_action close_receipt [09:01:43]cmd_close_receipt [09:01:43]MH_GetDate [09:01:43]Write to MH i2c: F0 00 00 B6 8E 33 [09:01:43]Write i2c OK [09:01:43]MH_I2C_Read... [09:01:43]Read from MH i2c: F0 [09:01:43]MH_I2C_Read... [09:01:43]Read from MH i2c: F0 09 00 [09:01:43]MH_I2C_Read... [09:01:43]Read from MH i2c: F0 09 00 B6 8E 00 8E 0C BA 65 26 5D 9E 65 7B [09:01:43]GetLastDocTimeStamp 1706691694 [09:01:43]current date 1706691726 [09:01:43]FM_GetShiftState [09:01:43]SAM_PROTO_GetShiftState [09:01:43]wFMCommunicate request_size=4 [09:01:43]MH_SAM_APDU [09:01:43]CAPDU: 80 13 01 00 [09:01:43]Write to MH i2c: E2 08 00 B7 8E 80 13 01 00 00 00 00 00 C2 [09:01:43]Write i2c OK [09:01:43]MH_I2C_Read... [09:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:43]Read from MH i2c: E2 [09:01:43]MH_I2C_Read... [09:01:43]Read from MH i2c: E2 0E 00 [09:01:43]MH_I2C_Read... [09:01:43]Read from MH i2c: E2 0E 00 B7 8E 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 18 [09:01:43]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:01:43]wFMCommunicate OK [09:01:43]SAM_PROTO_GetShiftState done [09:01:43]FM_GetShiftState done [09:01:43]opened in 1706659486 [09:01:43]opened+sec_in_day 1706745886 [09:01:43]quantity*price = 50048 [09:01:43]sum+1 = 50049 [09:01:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 14 31.01.2024 09:02 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49289 ФПД: 267471192915180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T090206&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49289&fm=267471192915180&tin=02508201610067®Number=0000000000092723&sum=50000 [09:01:44]StoreToDocumentArchive [09:01:44]shift 247 fd 49289 [09:01:44]save to /storage/0247/doc_00049289 [09:01:44]save last doc name /storage/0247/doc_00049289 to /storage/kkm_last_doc_name [09:01:44]save OK [09:01:44]Clear old archive folders... [09:01:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:01:44]tlvbuf is B6F36670 [09:01:44]SAM_PROTO_ClearQueue [09:01:44]wFMCommunicate request_size=4 [09:01:44]MH_SAM_APDU [09:01:44]CAPDU: 80 09 00 00 [09:01:44]Write to MH i2c: E2 08 00 C4 8E 80 09 00 00 00 00 00 00 C4 [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:44]Read from MH i2c: E2 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 03 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 03 00 C4 8E 00 90 00 C6 [09:01:44]RAPDU: 90 00 [09:01:44]wFMCommunicate OK [09:01:44]SAM_PROTO_ClearQueue done [09:01:44]KKMCreateOFDPacket [09:01:44]OFDProtocolAddRootSTLVToBuf [09:01:44]FM_MakeSignedData [09:01:44]FM_MakeSignedData [09:01:44]SAM_PROTO_SignData [09:01:44]wFMCommunicate request_size=4 [09:01:44]MH_SAM_APDU [09:01:44]CAPDU: 80 0D 01 02 [09:01:44]Write to MH i2c: E2 08 00 C5 8E 80 0D 01 02 00 00 00 00 CC [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:44]Read from MH i2c: E2 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 03 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 03 00 C5 8E 00 90 00 C7 [09:01:44]RAPDU: 90 00 [09:01:44]wFMCommunicate OK [09:01:44]wFMCommunicate request_size=255 [09:01:44]MH_SAM_APDU [09:01:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 8E 0C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 89 C0 00 00 35 04 06 00 F3 43 7D 70 [09:01:44]Write to MH i2c: E2 02 01 C6 8E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 8E 0C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 89 C0 00 00 35 04 06 00 F3 43 7D 70 00 00 C3 [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:44]Read from MH i2c: E2 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 03 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 03 00 C6 8E 00 90 00 C8 [09:01:44]RAPDU: 90 00 [09:01:44]wFMCommunicate OK [09:01:44]wFMCommunicate request_size=7 [09:01:44]MH_SAM_APDU [09:01:44]CAPDU: 80 0D 02 02 02 FC EC [09:01:44]Write to MH i2c: E2 0A 00 C7 8E 80 0D 02 02 02 00 FC EC 00 00 BB [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:44]Read from MH i2c: E2 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 03 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 03 00 C7 8E 00 90 00 C9 [09:01:44]RAPDU: 90 00 [09:01:44]wFMCommunicate OK [09:01:44]wFMCommunicate request_size=4 [09:01:44]MH_SAM_APDU [09:01:44]CAPDU: 80 0D 03 02 [09:01:44]Write to MH i2c: E2 08 00 C8 8E 80 0D 03 02 00 00 00 00 D1 [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:44]Read from MH i2c: E2 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 0B 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 0B 00 C8 8E 00 00 C0 55 06 00 36 1F B2 90 00 F4 [09:01:44]RAPDU: 00 C0 55 06 00 36 1F B2 90 00 [09:01:44]wFMCommunicate OK [09:01:44]SAM_PROTO_SignData done [09:01:44]FM_MakeSignedData done [09:01:44]CreateOFDProtocolMessage [09:01:44]wFMCommunicate request_size=4 [09:01:44]MH_SAM_APDU [09:01:44]CAPDU: 80 11 00 00 [09:01:44]Write to MH i2c: E2 08 00 C9 8E 80 11 00 00 00 00 00 00 D1 [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:44]Read from MH i2c: E2 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 17 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: E2 17 00 C9 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1E [09:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:01:44]wFMCommunicate OK [09:01:44]CreateOFDProtocolMessage done [09:01:44]OFDSenderStorePacket 49289 [09:01:44]StoreOFDPacket docnum=49289 [09:01:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 4F B6 04 01 FE 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 8E 0C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 89 C0 00 00 35 04 06 00 F3 43 7D 70 FC EC 00 C0 55 06 00 36 1F B2 [09:01:44]CheckFolder [09:01:44]dirname=/storage/ofd_packets [09:01:44]CheckFolder done [09:01:44]ProducePacketName [09:01:44]name=ofd_packets/00049289 [09:01:44]NVStorageSaveData ofd_packets/00049289 [09:01:44]File name is /storage/ofd_packets/00049289 [09:01:44]Write 298 bytes [09:01:44]NVStorageSaveData done [09:01:44]OFDSenderStorePacket done [09:01:44]KKMCreateOFDPacket done [09:01:44]NVStorageSaveData kkm_last_timestamp [09:01:44]File name is /storage/kkm_last_timestamp [09:01:44]Write 4 bytes [09:01:44]NVStorageSaveData done [09:01:44]ExternCall_PrintAddStr [09:01:44]wPrintStart [09:01:44]Write to MH i2c: 01 00 00 CA 8E 58 [09:01:44]Write i2c OK [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: 01 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: 01 07 00 [09:01:44]MH_I2C_Read... [09:01:44]Read from MH i2c: 01 07 00 CA 8E 00 00 00 00 00 FF 0F 6D [09:01:44]RasterBufferAndPrint [09:01:44]line Счет N : (1)216392 [09:01:44]line ИНН: 02508201610067 [09:01:44]line Контрольно-Кассовый Чек [09:01:44]line ПРОДАЖА [09:01:44]line ТРК (МРК, ГНК) : 21 [09:01:44]line Товар: 2710194210 [09:01:44]line ДТ-К-5 [09:01:44]line 7.160 * 69.90 [09:01:44]line = 500.48 [09:01:44]line НДС 12% НСП 1% [09:01:44]line > о реализуемом товаре [09:01:44]line ОКРУГЛЕНИЕ: -0.48 [09:01:44]line ИТОГО: 500.00 [09:01:44]line Внесено: 500.00 [09:01:44]line СДАЧА: 0.00 [09:01:44]line НСП 1% : 4.43 [09:01:44]line НДС 12% : 53.15 [09:01:44]line Наличными: 500.00 [09:01:44]line Безнал.: 0.00 [09:01:44]line Место: АЗС № 102 "Партнер Нефть" [09:01:44]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:01:44]line СНО: Общий режим [09:01:44]line Чек 14 31.01.2024 09:02 [09:01:44]line Смена: 247 ФФД: 1.0 [09:01:44]line ЗНМ: 0300000040 [09:01:44]line РНМ: 0000000000092723 [09:01:44]line Версия ККМ: 001 [09:01:44]line ФМ: 0000000000875060 [09:01:44]line ФД: 49289 [09:01:44]line ФПД: 267471192915180 [09:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T090206&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49289&fm=267471192915180&tin=02508201610067®Number=0000000000092723&sum=50000 [09:01:45]OFD Sender: Processing packet 49289 [packets to send 12, broken 11] [09:01:45]ProducePacketName [09:01:45]name=ofd_packets/00049289 [09:01:45]OFD Sender: To server: pG, [09:01:45]CommunicateWithHost lk.salyk.kg:30040 [09:01:45]ConnectInit lk.salyk.kg [09:01:45]written 0, free lines is 4095 [09:01:45]Connected sock=10 [09:01:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 4F B6 04 01 FE 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 8E 0C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 89 C0 00 00 35 04 06 00 F3 43 7D 70 FC EC 00 C0 55 06 00 36 1F B2 [09:01:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 4B 59 47 00 75 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 89 C0 00 00 F4 03 04 00 81 B8 B9 65 B6 04 01 00 00 D4 3F F4 A8 5E 84 DF FA [09:01:45]CommunicateWithHost err = 0 [09:01:45]CheckOFDResponse [09:01:45]1017 (14) - 77093643461234 [09:01:45]1041 (16) - 0000000000875060 [09:01:45]1040 (4) - 49289 [09:01:45]1012 (4) - 31.01.2024 03:03 [09:01:45]1206 (1) - 0 [09:01:45]OFD Sender: Remove packet 49289 [09:01:45]ProducePacketName [09:01:45]name=ofd_packets/00049289 [09:01:45]NVStorageDeleteData [09:01:45]Write to MH i2c: 01 00 00 F5 8E 83 [09:01:45]Write i2c OK [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: 01 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: 01 07 00 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: 01 07 00 F5 8E 00 00 00 00 00 F7 0C 8D [09:01:45]RasterBufferAndPrint [09:01:45]line [09:01:45]line [09:01:45]line [09:01:45]line [09:01:45]line [09:01:45]written 0, free lines is 3326 [09:01:45]MH_Cut [09:01:45]Write to MH i2c: D1 01 00 FC 8E 01 5C [09:01:45]Write i2c OK [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: D1 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: D1 01 00 [09:01:45]MH_I2C_Read... [09:01:45]Read from MH i2c: D1 01 00 FC 8E 00 5B [09:01:45]Write to MH i2c: 01 00 00 FD 8E 8B [09:01:45]Write i2c OK [09:01:45]MH_I2C_Read... [09:01:45]OFD Sender: No OFD packet to send [09:01:46]*** Cut start [09:01:46]*** Partial cut [09:01:46]*** CUTSNS_PIN = 1 [09:01:46]*** CUTSNS_PIN = 0 [09:01:46]*** Brake cut motor [09:01:46]Read from MH i2c: 01 [09:01:46]MH_I2C_Read... [09:01:46]*** Stop cut motor [09:01:46]*** Cut end [09:01:46]Read from MH i2c: 01 07 00 [09:01:46]MH_I2C_Read... [09:01:46]Read from MH i2c: 01 07 00 FD 8E 00 00 00 00 00 FF 0F A0 [09:01:46]process_action close_receipt done [09:01:46]requested_data is exist [09:01:46]produce_requested_data [09:01:46]requested_item fm.sn is exist - process it [09:01:46]wFMCommunicate request_size=4 [09:01:46]MH_SAM_APDU [09:01:46]CAPDU: 80 11 00 00 [09:01:46]Write to MH i2c: E2 08 00 FE 8E 80 11 00 00 00 00 00 00 06 [09:01:46]Write i2c OK [09:01:46]MH_I2C_Read... [09:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:46]Read from MH i2c: E2 [09:01:46]MH_I2C_Read... [09:01:46]Read from MH i2c: E2 17 00 [09:01:46]MH_I2C_Read... [09:01:46]Read from MH i2c: E2 17 00 FE 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 53 [09:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:01:46]wFMCommunicate OK [09:01:46]requested_item fd.num is exist - process it [09:01:46]SAM_PROTO_GetFieldsCounters [09:01:46]wFMCommunicate request_size=4 [09:01:46]MH_SAM_APDU [09:01:46]CAPDU: 80 13 00 00 [09:01:46]Write to MH i2c: E2 08 00 FF 8E 80 13 00 00 00 00 00 00 09 [09:01:46]Write i2c OK [09:01:46]MH_I2C_Read... [09:01:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:47]Read from MH i2c: E2 [09:01:47]MH_I2C_Read... [09:01:47]Read from MH i2c: E2 62 00 [09:01:47]MH_I2C_Read... [09:01:47]Read from MH i2c: E2 62 00 FF 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 89 C0 00 00 0E 04 04 00 F7 00 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 8C [09:01: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 89 C0 00 00 0E 04 04 00 F7 00 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 [09:01:47]wFMCommunicate OK [09:01:47]SAM_PROTO_GetFieldsCounters done [09:01:47]requested_item shift.num is exist - process it [09:01:47]requested_item shift.opened is exist - process it [09:01:47]req_shift_opened [09:01:47]FM_GetShiftState [09:01:47]SAM_PROTO_GetShiftState [09:01:47]wFMCommunicate request_size=4 [09:01:47]MH_SAM_APDU [09:01:47]CAPDU: 80 13 01 00 [09:01:47]Write to MH i2c: E2 08 00 00 8F 80 13 01 00 00 00 00 00 0C [09:01:47]Write i2c OK [09:01:47]MH_I2C_Read... [09:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:47]Read from MH i2c: E2 [09:01:47]MH_I2C_Read... [09:01:47]Read from MH i2c: E2 0E 00 [09:01:47]MH_I2C_Read... [09:01:47]Read from MH i2c: E2 0E 00 00 8F 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 62 [09:01:47]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:01:47]wFMCommunicate OK [09:01:47]SAM_PROTO_GetShiftState done [09:01:47]FM_GetShiftState done [09:01:47]req_shift_opened done [09:01:47]requested_item shift.open_date is exist - process it [09:01:47]req_shift_open_date [09:01:47]req_shift_open_date done [09:01:47]produce_requested_data done [09:01:47]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49289,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [09:01:47]process_action_free close_receipt [09:01:47]json_value_free [09:01:47]json_value_free done [09:01:47]process_json_proto returns [09:01:47]Send response to host [09:01:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49289,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [09:01:47]free response buf [09:01:47]execute_script done [09:01:47]execute_script returns [09:01:47]free content buf [09:01:47]Sock 7.Close socket [09:01:47]Sock 7.Thread stoped [09:01:51]OFD Sender: No OFD packet to send [09:01:56]OFD Sender: No OFD packet to send [09:02:01]OFD Sender: No OFD packet to send [09:02:06]OFD Sender: No OFD packet to send [09:02:11]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:26]OFD Sender: No OFD packet to send [09:02:31]OFD Sender: No OFD packet to send [09:02:36]OFD Sender: No OFD packet to send [09:02:41]OFD Sender: No OFD packet to send [09:02:46]OFD Sender: No OFD packet to send [09:02:51]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:26]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]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:05]int [09:09:05]Write to MH i2c: 01 00 00 01 8F 90 [09:09:05]*** FLAG_PRN_KEY set [09:09:05]Write i2c OK [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: 01 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: 01 07 00 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: 01 07 00 01 8F 00 08 00 00 00 FF 0F AD [09:09:05]state=0 [09:09:05]Key pressed [09:09:05]Feed [09:09:05]Write to MH i2c: D8 00 00 02 8F 68 [09:09:05]Write i2c OK [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: D8 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: D8 01 00 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: D8 01 00 02 8F 00 69 [09:09:05]int [09:09:05]Write to MH i2c: 01 00 00 03 8F 92 [09:09:05]Write i2c OK [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: 01 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: 01 07 00 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: 01 07 00 03 8F 00 48 00 00 00 3C 00 1D [09:09:05]state=2 [09:09:05]Key pressed [09:09:05]int [09:09:05]Write to MH i2c: 01 00 00 04 8F 93 [09:09:05]*** FLAG_PRN_KEY reset [09:09:05]Write i2c OK [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: 01 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: 01 07 00 [09:09:05]MH_I2C_Read... [09:09:05]Read from MH i2c: 01 07 00 04 8F 00 00 00 00 00 F6 0F 9F [09:09:05]state=2 [09:09:05]Stop feed [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:26]accept exits with 9 [09:11:26]New connection [09:11:26]New thread 3066670436 created [09:11:26]Thread 3066813796 joined [09:11:26]Waiting for new connection... [09:11:26] Sock 9.Parse request [09:11:26]Sock 9.Check first char [09:11:26]Sock 9.First char is OK [09:11:26]request: POST /json_proto HTTP/1.0 [09:11:26]Method: POST [09:11:26]URL: /json_proto [09:11:26]Method is POST - this is cgi request [09:11:26]url: /json_proto [09:11:26]query_string will be loaded in cgi processing [09:11:26]execute_cgi json_proto POST (null) [09:11:26]execute_cgi path=json_proto method=POST [09:11:26]POST find Content-Length [09:11:26]Host: 172.17.56.67:8080 [09:11:26]Content-Length: 677 [09:11:26]Content-Type: application/json [09:11:26] [09:11:26]POST finish read [09:11:26]Found Content-Length = 677 [09:11:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:11:26]execute_script... [09:11: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)216393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:11:26]POST & json_proto [09:11:26]process_json_proto [09:11:26]json parsed OK: [09:11:26]protocol is kg_v1.0 [09:11:26]action value=close_receipt [09:11:26]process_action close_receipt [09:11:26]cmd_close_receipt [09:11:26]MH_GetDate [09:11:26]Write to MH i2c: F0 00 00 05 8F 83 [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: F0 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: F0 09 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: F0 09 00 05 8F 00 D5 0E BA 65 26 5D 9E 65 14 [09:11:26]GetLastDocTimeStamp 1706691726 [09:11:26]current date 1706692309 [09:11:26]FM_GetShiftState [09:11:26]SAM_PROTO_GetShiftState [09:11:26]wFMCommunicate request_size=4 [09:11:26]MH_SAM_APDU [09:11:26]CAPDU: 80 13 01 00 [09:11:26]Write to MH i2c: E2 08 00 06 8F 80 13 01 00 00 00 00 00 12 [09:11:26]Write i2c OK [09:11:26]MH_I2C_Read... [09:11:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:26]Read from MH i2c: E2 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 0E 00 [09:11:26]MH_I2C_Read... [09:11:26]Read from MH i2c: E2 0E 00 06 8F 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 68 [09:11:26]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:11:26]wFMCommunicate OK [09:11:26]SAM_PROTO_GetShiftState done [09:11:26]FM_GetShiftState done [09:11:26]opened in 1706659486 [09:11:26]opened+sec_in_day 1706745886 [09:11:26]quantity*price = 30029 [09:11:26]sum+1 = 30030 [09:11:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 15 31.01.2024 09:11 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49290 ФПД: 218123684454005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T091149&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49290&fm=218123684454005&tin=02508201610067®Number=0000000000092723&sum=30000 [09:11:27]StoreToDocumentArchive [09:11:27]shift 247 fd 49290 [09:11:27]save to /storage/0247/doc_00049290 [09:11:27]save last doc name /storage/0247/doc_00049290 to /storage/kkm_last_doc_name [09:11:27]save OK [09:11:27]Clear old archive folders... [09:11:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:27]tlvbuf is 014B3C70 [09:11:27]SAM_PROTO_ClearQueue [09:11:27]wFMCommunicate request_size=4 [09:11:27]MH_SAM_APDU [09:11:27]CAPDU: 80 09 00 00 [09:11:27]Write to MH i2c: E2 08 00 13 8F 80 09 00 00 00 00 00 00 14 [09:11:27]Write i2c OK [09:11:27]MH_I2C_Read... [09:11:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:27]Read from MH i2c: E2 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 03 00 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 03 00 13 8F 00 90 00 16 [09:11:27]RAPDU: 90 00 [09:11:27]wFMCommunicate OK [09:11:27]SAM_PROTO_ClearQueue done [09:11:27]KKMCreateOFDPacket [09:11:27]OFDProtocolAddRootSTLVToBuf [09:11:27]FM_MakeSignedData [09:11:27]FM_MakeSignedData [09:11:27]SAM_PROTO_SignData [09:11:27]wFMCommunicate request_size=4 [09:11:27]MH_SAM_APDU [09:11:27]CAPDU: 80 0D 01 02 [09:11:27]Write to MH i2c: E2 08 00 14 8F 80 0D 01 02 00 00 00 00 1C [09:11:27]Write i2c OK [09:11:27]MH_I2C_Read... [09:11:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:27]Read from MH i2c: E2 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 03 00 [09:11:27]MH_I2C_Read... [09:11:27]Read from MH i2c: E2 03 00 14 8F 00 90 00 17 [09:11:27]RAPDU: 90 00 [09:11:27]wFMCommunicate OK [09:11:27]wFMCommunicate request_size=255 [09:11:27]MH_SAM_APDU [09:11:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 D5 0E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8A C0 00 00 35 04 06 00 C6 [09:11:27]Write to MH i2c: E2 02 01 15 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 D5 0E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8A C0 00 00 35 04 06 00 C6 00 00 FA [09:11:27]Write i2c OK [09:11:27]MH_I2C_Read... [09:11:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:28]Read from MH i2c: E2 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 03 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 03 00 15 8F 00 90 00 18 [09:11:28]RAPDU: 90 00 [09:11:28]wFMCommunicate OK [09:11:28]wFMCommunicate request_size=10 [09:11:28]MH_SAM_APDU [09:11:28]CAPDU: 80 0D 02 02 05 61 E0 BA 9E 75 [09:11:28]Write to MH i2c: E2 0D 00 16 8F 80 0D 02 02 05 00 61 E0 BA 9E 75 00 00 37 [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:28]Read from MH i2c: E2 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 03 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 03 00 16 8F 00 90 00 19 [09:11:28]RAPDU: 90 00 [09:11:28]wFMCommunicate OK [09:11:28]wFMCommunicate request_size=4 [09:11:28]MH_SAM_APDU [09:11:28]CAPDU: 80 0D 03 02 [09:11:28]Write to MH i2c: E2 08 00 17 8F 80 0D 03 02 00 00 00 00 21 [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:28]Read from MH i2c: E2 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 0B 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 0B 00 17 8F 00 90 E2 27 16 E0 95 14 23 90 00 7D [09:11:28]RAPDU: 90 E2 27 16 E0 95 14 23 90 00 [09:11:28]wFMCommunicate OK [09:11:28]SAM_PROTO_SignData done [09:11:28]FM_MakeSignedData done [09:11:28]CreateOFDProtocolMessage [09:11:28]wFMCommunicate request_size=4 [09:11:28]MH_SAM_APDU [09:11:28]CAPDU: 80 11 00 00 [09:11:28]Write to MH i2c: E2 08 00 18 8F 80 11 00 00 00 00 00 00 21 [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:28]Read from MH i2c: E2 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 17 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: E2 17 00 18 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6E [09:11:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:11:28]wFMCommunicate OK [09:11:28]CreateOFDProtocolMessage done [09:11:28]OFDSenderStorePacket 49290 [09:11:28]StoreOFDPacket docnum=49290 [09:11:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 72 14 07 01 C0 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 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 D5 0E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8A C0 00 00 35 04 06 00 C6 61 E0 BA 9E 75 90 E2 27 16 E0 95 14 23 [09:11:28]CheckFolder [09:11:28]dirname=/storage/ofd_packets [09:11:28]CheckFolder done [09:11:28]ProducePacketName [09:11:28]name=ofd_packets/00049290 [09:11:28]NVStorageSaveData ofd_packets/00049290 [09:11:28]File name is /storage/ofd_packets/00049290 [09:11:28]Write 301 bytes [09:11:28]NVStorageSaveData done [09:11:28]OFDSenderStorePacket done [09:11:28]KKMCreateOFDPacket done [09:11:28]NVStorageSaveData kkm_last_timestamp [09:11:28]File name is /storage/kkm_last_timestamp [09:11:28]Write 4 bytes [09:11:28]NVStorageSaveData done [09:11:28]ExternCall_PrintAddStr [09:11:28]wPrintStart [09:11:28]Write to MH i2c: 01 00 00 19 8F A8 [09:11:28]Write i2c OK [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: 01 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: 01 07 00 [09:11:28]MH_I2C_Read... [09:11:28]Read from MH i2c: 01 07 00 19 8F 00 00 00 00 00 FF 0F BD [09:11:28]RasterBufferAndPrint [09:11:28]line Счет N : (1)216393 [09:11:28]line ИНН: 02508201610067 [09:11:28]line Контрольно-Кассовый Чек [09:11:28]line ПРОДАЖА [09:11:28]line ТРК (МРК, ГНК) : 22 [09:11:28]line Товар: 2710124130 [09:11:28]line Аи-92-К-5 [09:11:28]line 4.980 * 60.30 [09:11:28]line = 300.29 [09:11:28]line НДС 12% НСП 1% [09:11:28]line > о реализуемом товаре [09:11:28]line ОКРУГЛЕНИЕ: -0.29 [09:11:28]line ИТОГО: 300.00 [09:11:28]line Внесено: 300.00 [09:11:28]line СДАЧА: 0.00 [09:11:28]line НСП 1% : 2.66 [09:11:28]line НДС 12% : 31.89 [09:11:28]line Наличными: 300.00 [09:11:28]line Безнал.: 0.00 [09:11:28]line Место: АЗС № 102 "Партнер Нефть" [09:11:28]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:11:28]line СНО: Общий режим [09:11:28]line Чек 15 31.01.2024 09:11 [09:11:28]line Смена: 247 ФФД: 1.0 [09:11:28]line ЗНМ: 0300000040 [09:11:28]line РНМ: 0000000000092723 [09:11:28]line Версия ККМ: 001 [09:11:28]line ФМ: 0000000000875060 [09:11:28]line ФД: 49290 [09:11:28]line ФПД: 218123684454005 [09:11:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T091149&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49290&fm=218123684454005&tin=02508201610067®Number=0000000000092723&sum=30000 [09:11:28]OFD Sender: Processing packet 49290 [packets to send 12, broken 11] [09:11:28]ProducePacketName [09:11:28]name=ofd_packets/00049290 [09:11:28]OFD Sender: To server: pG, [09:11:28]CommunicateWithHost lk.salyk.kg:30040 [09:11:28]ConnectInit lk.salyk.kg [09:11:28]written 0, free lines is 4095 [09:11:28]Connected sock=10 [09:11:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 72 14 07 01 C0 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 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 D5 0E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8A C0 00 00 35 04 06 00 C6 61 E0 BA 9E 75 90 E2 27 16 E0 95 14 23 [09:11:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 21 8D 47 00 AF CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8A C0 00 00 F4 03 04 00 C8 BA B9 65 B6 04 01 00 00 70 BF B7 03 1F ED 4A DB [09:11:29]CommunicateWithHost err = 0 [09:11:29]CheckOFDResponse [09:11:29]1017 (14) - 77093643461234 [09:11:29]1041 (16) - 0000000000875060 [09:11:29]1040 (4) - 49290 [09:11:29]1012 (4) - 31.01.2024 03:13 [09:11:29]1206 (1) - 0 [09:11:29]OFD Sender: Remove packet 49290 [09:11:29]ProducePacketName [09:11:29]name=ofd_packets/00049290 [09:11:29]NVStorageDeleteData [09:11:29]Write to MH i2c: 01 00 00 44 8F D3 [09:11:29]Write i2c OK [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: 01 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: 01 07 00 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: 01 07 00 44 8F 00 00 00 00 00 F7 0C DD [09:11:29]RasterBufferAndPrint [09:11:29]line [09:11:29]line [09:11:29]line [09:11:29]line [09:11:29]line [09:11:29]written 0, free lines is 3329 [09:11:29]MH_Cut [09:11:29]Write to MH i2c: D1 01 00 4B 8F 01 AC [09:11:29]Write i2c OK [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: D1 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: D1 01 00 [09:11:29]MH_I2C_Read... [09:11:29]Read from MH i2c: D1 01 00 4B 8F 00 AB [09:11:29]Write to MH i2c: 01 00 00 4C 8F DB [09:11:29]Write i2c OK [09:11:29]MH_I2C_Read... [09:11:29]OFD Sender: No OFD packet to send [09:11:29]*** Cut start [09:11:29]*** Partial cut [09:11:29]*** CUTSNS_PIN = 1 [09:11:29]*** CUTSNS_PIN = 0 [09:11:30]*** Brake cut motor [09:11:30]Read from MH i2c: 01 [09:11:30]MH_I2C_Read... [09:11:30]*** Stop cut motor [09:11:30]*** Cut end [09:11:30]Read from MH i2c: 01 07 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: 01 07 00 4C 8F 00 00 00 00 00 FF 0F F0 [09:11:30]process_action close_receipt done [09:11:30]requested_data is exist [09:11:30]produce_requested_data [09:11:30]requested_item fm.sn is exist - process it [09:11:30]wFMCommunicate request_size=4 [09:11:30]MH_SAM_APDU [09:11:30]CAPDU: 80 11 00 00 [09:11:30]Write to MH i2c: E2 08 00 4D 8F 80 11 00 00 00 00 00 00 56 [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:30]Read from MH i2c: E2 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 17 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 17 00 4D 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A3 [09:11:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:11:30]wFMCommunicate OK [09:11:30]requested_item fd.num is exist - process it [09:11:30]SAM_PROTO_GetFieldsCounters [09:11:30]wFMCommunicate request_size=4 [09:11:30]MH_SAM_APDU [09:11:30]CAPDU: 80 13 00 00 [09:11:30]Write to MH i2c: E2 08 00 4E 8F 80 13 00 00 00 00 00 00 59 [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:30]Read from MH i2c: E2 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 62 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 62 00 4E 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 8A C0 00 00 0E 04 04 00 F7 00 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 E0 [09:11: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 8A C0 00 00 0E 04 04 00 F7 00 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 [09:11:30]wFMCommunicate OK [09:11:30]SAM_PROTO_GetFieldsCounters done [09:11:30]requested_item shift.num is exist - process it [09:11:30]requested_item shift.opened is exist - process it [09:11:30]req_shift_opened [09:11:30]FM_GetShiftState [09:11:30]SAM_PROTO_GetShiftState [09:11:30]wFMCommunicate request_size=4 [09:11:30]MH_SAM_APDU [09:11:30]CAPDU: 80 13 01 00 [09:11:30]Write to MH i2c: E2 08 00 4F 8F 80 13 01 00 00 00 00 00 5B [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:30]Read from MH i2c: E2 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 0E 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 0E 00 4F 8F 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 B1 [09:11:30]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:11:30]wFMCommunicate OK [09:11:30]SAM_PROTO_GetShiftState done [09:11:30]FM_GetShiftState done [09:11:30]req_shift_opened done [09:11:30]requested_item shift.open_date is exist - process it [09:11:30]req_shift_open_date [09:11:30]req_shift_open_date done [09:11:30]produce_requested_data done [09:11:30]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49290,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [09:11:30]process_action_free close_receipt [09:11:30]json_value_free [09:11:30]json_value_free done [09:11:30]process_json_proto returns [09:11:30]Send response to host [09:11:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49290,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [09:11:30]free response buf [09:11:30]execute_script done [09:11:30]execute_script returns [09:11:30]free content buf [09:11:30]Sock 9.Close socket [09:11:30]Sock 9.Thread stoped [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:44]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:15]accept exits with 7 [09:20:15]New connection [09:20:15]New thread 3066813796 created [09:20:15]Thread 3066670436 joined [09:20:15]Waiting for new connection... [09:20:15] Sock 7.Parse request [09:20:15]Sock 7.Check first char [09:20:15]Sock 7.First char is OK [09:20:15]request: POST /json_proto HTTP/1.0 [09:20:15]Method: POST [09:20:15]URL: /json_proto [09:20:15]Method is POST - this is cgi request [09:20:15]url: /json_proto [09:20:15]query_string will be loaded in cgi processing [09:20:15]execute_cgi json_proto POST (null) [09:20:15]execute_cgi path=json_proto method=POST [09:20:15]POST find Content-Length [09:20:15]Host: 172.17.56.67:8080 [09:20:15]Content-Length: 677 [09:20:15]Content-Type: application/json [09:20:15] [09:20:15]POST finish read [09:20:15]Found Content-Length = 677 [09:20:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "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:20:15]execute_script... [09:20: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)216394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "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:20:15]POST & json_proto [09:20:15]process_json_proto [09:20:15]json parsed OK: [09:20:15]protocol is kg_v1.0 [09:20:15]action value=close_receipt [09:20:15]process_action close_receipt [09:20:15]cmd_close_receipt [09:20:15]MH_GetDate [09:20:15]Write to MH i2c: F0 00 00 50 8F CE [09:20:15]Write i2c OK [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: F0 [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: F0 09 00 [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: F0 09 00 50 8F 00 E6 10 BA 65 26 5D 9E 65 72 [09:20:15]GetLastDocTimeStamp 1706692309 [09:20:15]current date 1706692838 [09:20:15]FM_GetShiftState [09:20:15]SAM_PROTO_GetShiftState [09:20:15]wFMCommunicate request_size=4 [09:20:15]MH_SAM_APDU [09:20:15]CAPDU: 80 13 01 00 [09:20:15]Write to MH i2c: E2 08 00 51 8F 80 13 01 00 00 00 00 00 5D [09:20:15]Write i2c OK [09:20:15]MH_I2C_Read... [09:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:15]Read from MH i2c: E2 [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: E2 0E 00 [09:20:15]MH_I2C_Read... [09:20:15]Read from MH i2c: E2 0E 00 51 8F 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 B3 [09:20:15]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:20:15]wFMCommunicate OK [09:20:15]SAM_PROTO_GetShiftState done [09:20:15]FM_GetShiftState done [09:20:15]opened in 1706659486 [09:20:15]opened+sec_in_day 1706745886 [09:20:15]quantity*price = 40039 [09:20:15]sum+1 = 40040 [09:20:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 16 31.01.2024 09:20 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49291 ФПД: 129672984364280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T092038&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49291&fm=129672984364280&tin=02508201610067®Number=0000000000092723&sum=40000 [09:20:16]StoreToDocumentArchive [09:20:16]shift 247 fd 49291 [09:20:16]save to /storage/0247/doc_00049291 [09:20:16]save last doc name /storage/0247/doc_00049291 to /storage/kkm_last_doc_name [09:20:16]save OK [09:20:16]Clear old archive folders... [09:20:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:20:16]tlvbuf is 012805E0 [09:20:16]SAM_PROTO_ClearQueue [09:20:16]wFMCommunicate request_size=4 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 09 00 00 [09:20:16]Write to MH i2c: E2 08 00 5E 8F 80 09 00 00 00 00 00 00 5F [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 03 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 03 00 5E 8F 00 90 00 61 [09:20:16]RAPDU: 90 00 [09:20:16]wFMCommunicate OK [09:20:16]SAM_PROTO_ClearQueue done [09:20:16]KKMCreateOFDPacket [09:20:16]OFDProtocolAddRootSTLVToBuf [09:20:16]FM_MakeSignedData [09:20:16]FM_MakeSignedData [09:20:16]SAM_PROTO_SignData [09:20:16]wFMCommunicate request_size=4 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 0D 01 02 [09:20:16]Write to MH i2c: E2 08 00 5F 8F 80 0D 01 02 00 00 00 00 67 [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 03 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 03 00 5F 8F 00 90 00 62 [09:20:16]RAPDU: 90 00 [09:20:16]wFMCommunicate OK [09:20:16]wFMCommunicate request_size=255 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 10 00 00 00 F4 03 04 00 E6 10 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8B C0 00 00 35 04 06 00 75 [09:20:16]Write to MH i2c: E2 02 01 60 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 10 00 00 00 F4 03 04 00 E6 10 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8B C0 00 00 35 04 06 00 75 00 00 BD [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 03 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 03 00 60 8F 00 90 00 63 [09:20:16]RAPDU: 90 00 [09:20:16]wFMCommunicate OK [09:20:16]wFMCommunicate request_size=10 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 0D 02 02 05 EF D8 2B 84 F8 [09:20:16]Write to MH i2c: E2 0D 00 61 8F 80 0D 02 02 05 00 EF D8 2B 84 F8 00 00 E2 [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 03 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 03 00 61 8F 00 90 00 64 [09:20:16]RAPDU: 90 00 [09:20:16]wFMCommunicate OK [09:20:16]wFMCommunicate request_size=4 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 0D 03 02 [09:20:16]Write to MH i2c: E2 08 00 62 8F 80 0D 03 02 00 00 00 00 6C [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 0B 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 0B 00 62 8F 00 09 55 3E 1A C2 F2 48 08 90 00 27 [09:20:16]RAPDU: 09 55 3E 1A C2 F2 48 08 90 00 [09:20:16]wFMCommunicate OK [09:20:16]SAM_PROTO_SignData done [09:20:16]FM_MakeSignedData done [09:20:16]CreateOFDProtocolMessage [09:20:16]wFMCommunicate request_size=4 [09:20:16]MH_SAM_APDU [09:20:16]CAPDU: 80 11 00 00 [09:20:16]Write to MH i2c: E2 08 00 63 8F 80 11 00 00 00 00 00 00 6C [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:16]Read from MH i2c: E2 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 17 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: E2 17 00 63 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B9 [09:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:20:16]wFMCommunicate OK [09:20:16]CreateOFDProtocolMessage done [09:20:16]OFDSenderStorePacket 49291 [09:20:16]StoreOFDPacket docnum=49291 [09:20:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 47 BD 07 01 09 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 10 00 00 00 F4 03 04 00 E6 10 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8B C0 00 00 35 04 06 00 75 EF D8 2B 84 F8 09 55 3E 1A C2 F2 48 08 [09:20:16]CheckFolder [09:20:16]dirname=/storage/ofd_packets [09:20:16]CheckFolder done [09:20:16]ProducePacketName [09:20:16]name=ofd_packets/00049291 [09:20:16]NVStorageSaveData ofd_packets/00049291 [09:20:16]File name is /storage/ofd_packets/00049291 [09:20:16]Write 301 bytes [09:20:16]NVStorageSaveData done [09:20:16]OFDSenderStorePacket done [09:20:16]KKMCreateOFDPacket done [09:20:16]NVStorageSaveData kkm_last_timestamp [09:20:16]File name is /storage/kkm_last_timestamp [09:20:16]Write 4 bytes [09:20:16]NVStorageSaveData done [09:20:16]ExternCall_PrintAddStr [09:20:16]wPrintStart [09:20:16]Write to MH i2c: 01 00 00 64 8F F3 [09:20:16]Write i2c OK [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: 01 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: 01 07 00 [09:20:16]MH_I2C_Read... [09:20:16]Read from MH i2c: 01 07 00 64 8F 00 00 00 00 00 FF 0F 08 [09:20:16]RasterBufferAndPrint [09:20:16]line Счет N : (1)216394 [09:20:16]line ИНН: 02508201610067 [09:20:16]line Контрольно-Кассовый Чек [09:20:16]line ПРОДАЖА [09:20:16]line ТРК (МРК, ГНК) : 12 [09:20:16]line Товар: 2710124130 [09:20:16]line Аи-92-К-5 [09:20:16]line 6.640 * 60.30 [09:20:16]line = 400.39 [09:20:16]line НДС 12% НСП 1% [09:20:16]line > о реализуемом товаре [09:20:16]line ОКРУГЛЕНИЕ: -0.39 [09:20:16]line ИТОГО: 400.00 [09:20:16]line Внесено: 400.00 [09:20:16]line СДАЧА: 0.00 [09:20:16]line НСП 1% : 3.54 [09:20:16]line НДС 12% : 42.52 [09:20:16]line Наличными: 400.00 [09:20:16]line Безнал.: 0.00 [09:20:16]line Место: АЗС № 102 "Партнер Нефть" [09:20:16]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:20:16]line СНО: Общий режим [09:20:16]line Чек 16 31.01.2024 09:20 [09:20:16]line Смена: 247 ФФД: 1.0 [09:20:16]line ЗНМ: 0300000040 [09:20:16]line РНМ: 0000000000092723 [09:20:16]line Версия ККМ: 001 [09:20:16]line ФМ: 0000000000875060 [09:20:16]line ФД: 49291 [09:20:17]line ФПД: 129672984364280 [09:20:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T092038&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49291&fm=129672984364280&tin=02508201610067®Number=0000000000092723&sum=40000 [09:20:17]OFD Sender: Processing packet 49291 [packets to send 12, broken 11] [09:20:17]ProducePacketName [09:20:17]name=ofd_packets/00049291 [09:20:17]OFD Sender: To server: pG, [09:20:17]CommunicateWithHost lk.salyk.kg:30040 [09:20:17]ConnectInit lk.salyk.kg [09:20:17]written 0, free lines is 4095 [09:20:17]Connected sock=10 [09:20:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 47 BD 07 01 09 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 10 00 00 00 F4 03 04 00 E6 10 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8B C0 00 00 35 04 06 00 75 EF D8 2B 84 F8 09 55 3E 1A C2 F2 48 08 [09:20:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 AE 85 47 00 E7 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8B C0 00 00 F4 03 04 00 D9 BC B9 65 B6 04 01 00 00 44 F2 94 A5 F2 60 B6 CB [09:20:17]CommunicateWithHost err = 0 [09:20:17]CheckOFDResponse [09:20:17]1017 (14) - 77093643461234 [09:20:17]1041 (16) - 0000000000875060 [09:20:17]1040 (4) - 49291 [09:20:17]1012 (4) - 31.01.2024 03:22 [09:20:17]1206 (1) - 0 [09:20:17]OFD Sender: Remove packet 49291 [09:20:17]ProducePacketName [09:20:17]name=ofd_packets/00049291 [09:20:17]NVStorageDeleteData [09:20:17]Write to MH i2c: 01 00 00 8F 8F 1E [09:20:17]Write i2c OK [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: 01 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: 01 07 00 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: 01 07 00 8F 8F 00 00 00 00 00 EB 0C 1C [09:20:17]RasterBufferAndPrint [09:20:17]line [09:20:17]line [09:20:17]line [09:20:17]line [09:20:17]line [09:20:17]written 0, free lines is 3314 [09:20:17]MH_Cut [09:20:17]Write to MH i2c: D1 01 00 96 8F 01 F7 [09:20:17]Write i2c OK [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: D1 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: D1 01 00 [09:20:17]MH_I2C_Read... [09:20:17]Read from MH i2c: D1 01 00 96 8F 00 F6 [09:20:17]Write to MH i2c: 01 00 00 97 8F 26 [09:20:17]Write i2c OK [09:20:17]MH_I2C_Read... [09:20:17]OFD Sender: No OFD packet to send [09:20:18]*** Cut start [09:20:18]*** Partial cut [09:20:18]*** CUTSNS_PIN = 1 [09:20:18]*** CUTSNS_PIN = 0 [09:20:18]*** Brake cut motor [09:20:18]Read from MH i2c: 01 [09:20:18]MH_I2C_Read... [09:20:18]*** Stop cut motor [09:20:18]*** Cut end [09:20:18]Read from MH i2c: 01 07 00 [09:20:18]MH_I2C_Read... [09:20:18]Read from MH i2c: 01 07 00 97 8F 00 00 00 00 00 FF 0F 3B [09:20:18]process_action close_receipt done [09:20:18]requested_data is exist [09:20:18]produce_requested_data [09:20:18]requested_item fm.sn is exist - process it [09:20:18]wFMCommunicate request_size=4 [09:20:18]MH_SAM_APDU [09:20:18]CAPDU: 80 11 00 00 [09:20:18]Write to MH i2c: E2 08 00 98 8F 80 11 00 00 00 00 00 00 A1 [09:20:18]Write i2c OK [09:20:18]MH_I2C_Read... [09:20:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:18]Read from MH i2c: E2 [09:20:18]MH_I2C_Read... [09:20:18]Read from MH i2c: E2 17 00 [09:20:18]MH_I2C_Read... [09:20:18]Read from MH i2c: E2 17 00 98 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EE [09:20:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:20:18]wFMCommunicate OK [09:20:18]requested_item fd.num is exist - process it [09:20:18]SAM_PROTO_GetFieldsCounters [09:20:18]wFMCommunicate request_size=4 [09:20:18]MH_SAM_APDU [09:20:18]CAPDU: 80 13 00 00 [09:20:18]Write to MH i2c: E2 08 00 99 8F 80 13 00 00 00 00 00 00 A4 [09:20:18]Write i2c OK [09:20:18]MH_I2C_Read... [09:20:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:19]Read from MH i2c: E2 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: E2 62 00 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: E2 62 00 99 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 8B C0 00 00 0E 04 04 00 F7 00 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 2F [09:20: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 8B C0 00 00 0E 04 04 00 F7 00 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 [09:20:19]wFMCommunicate OK [09:20:19]SAM_PROTO_GetFieldsCounters done [09:20:19]requested_item shift.num is exist - process it [09:20:19]requested_item shift.opened is exist - process it [09:20:19]req_shift_opened [09:20:19]FM_GetShiftState [09:20:19]SAM_PROTO_GetShiftState [09:20:19]wFMCommunicate request_size=4 [09:20:19]MH_SAM_APDU [09:20:19]CAPDU: 80 13 01 00 [09:20:19]Write to MH i2c: E2 08 00 9A 8F 80 13 01 00 00 00 00 00 A6 [09:20:19]Write i2c OK [09:20:19]MH_I2C_Read... [09:20:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:19]Read from MH i2c: E2 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: E2 0E 00 [09:20:19]MH_I2C_Read... [09:20:19]Read from MH i2c: E2 0E 00 9A 8F 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 FC [09:20:19]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:20:19]wFMCommunicate OK [09:20:19]SAM_PROTO_GetShiftState done [09:20:19]FM_GetShiftState done [09:20:19]req_shift_opened done [09:20:19]requested_item shift.open_date is exist - process it [09:20:19]req_shift_open_date [09:20:19]req_shift_open_date done [09:20:19]produce_requested_data done [09:20:19]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49291,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [09:20:19]process_action_free close_receipt [09:20:19]json_value_free [09:20:19]json_value_free done [09:20:19]process_json_proto returns [09:20:19]Send response to host [09:20:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49291,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [09:20:19]free response buf [09:20:19]execute_script done [09:20:19]execute_script returns [09:20:19]free content buf [09:20:19]Sock 7.Close socket [09:20:19]Sock 7.Thread stoped [09:20:22]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:43]OFD Sender: No OFD packet to send [09:21:48]OFD Sender: No OFD packet to send [09:21:53]OFD Sender: No OFD packet to send [09:21:58]OFD Sender: No OFD packet to send [09:22:03]OFD Sender: No OFD packet to send [09:22:08]OFD Sender: No OFD packet to send [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:27]accept exits with 9 [09:25:27]New connection [09:25:27]New thread 3066670436 created [09:25:27]Thread 3066813796 joined [09:25:27]Waiting for new connection... [09:25:27] Sock 9.Parse request [09:25:27]Sock 9.Check first char [09:25:27]Sock 9.First char is OK [09:25:27]request: POST /json_proto HTTP/1.0 [09:25:27]Method: POST [09:25:27]URL: /json_proto [09:25:27]Method is POST - this is cgi request [09:25:27]url: /json_proto [09:25:27]query_string will be loaded in cgi processing [09:25:27]execute_cgi json_proto POST (null) [09:25:27]execute_cgi path=json_proto method=POST [09:25:27]POST find Content-Length [09:25:27]Host: 172.17.56.67:8080 [09:25:27]Content-Length: 678 [09:25:27]Content-Type: application/json [09:25:27] [09:25:27]POST finish read [09:25:27]Found Content-Length = 678 [09:25:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 10.120, "sum" : 610.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:27]execute_script... [09:25: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)216395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 10.120, "sum" : 610.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 610.00, "total" : 610.00, "payments": [ { "type": 0, "sum" : 610.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:27]POST & json_proto [09:25:27]process_json_proto [09:25:27]json parsed OK: [09:25:27]protocol is kg_v1.0 [09:25:27]action value=close_receipt [09:25:27]process_action close_receipt [09:25:27]cmd_close_receipt [09:25:27]MH_GetDate [09:25:27]Write to MH i2c: F0 00 00 9B 8F 19 [09:25:27]Write i2c OK [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: F0 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: F0 09 00 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: F0 09 00 9B 8F 00 1E 12 BA 65 26 5D 9E 65 F7 [09:25:27]GetLastDocTimeStamp 1706692838 [09:25:27]current date 1706693150 [09:25:27]FM_GetShiftState [09:25:27]SAM_PROTO_GetShiftState [09:25:27]wFMCommunicate request_size=4 [09:25:27]MH_SAM_APDU [09:25:27]CAPDU: 80 13 01 00 [09:25:27]Write to MH i2c: E2 08 00 9C 8F 80 13 01 00 00 00 00 00 A8 [09:25:27]Write i2c OK [09:25:27]MH_I2C_Read... [09:25:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:27]Read from MH i2c: E2 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: E2 0E 00 [09:25:27]MH_I2C_Read... [09:25:27]Read from MH i2c: E2 0E 00 9C 8F 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 FE [09:25:27]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:25:27]wFMCommunicate OK [09:25:27]SAM_PROTO_GetShiftState done [09:25:27]FM_GetShiftState done [09:25:27]opened in 1706659486 [09:25:27]opened+sec_in_day 1706745886 [09:25:27]quantity*price = 61023 [09:25:27]sum+1 = 61025 [09:25:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 610.00 Внесено: 610.00 СДАЧА: 0.00 НСП 1% : 5.40 НДС 12% : 64.80 Наличными: 610.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 17 31.01.2024 09:25 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49292 ФПД: 263497824269104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T092550&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49292&fm=263497824269104&tin=02508201610067®Number=0000000000092723&sum=61000 [09:25:28]StoreToDocumentArchive [09:25:28]shift 247 fd 49292 [09:25:28]save to /storage/0247/doc_00049292 [09:25:28]save last doc name /storage/0247/doc_00049292 to /storage/kkm_last_doc_name [09:25:28]save OK [09:25:28]Clear old archive folders... [09:25:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:28]tlvbuf is 01343130 [09:25:28]SAM_PROTO_ClearQueue [09:25:28]wFMCommunicate request_size=4 [09:25:28]MH_SAM_APDU [09:25:28]CAPDU: 80 09 00 00 [09:25:28]Write to MH i2c: E2 08 00 A9 8F 80 09 00 00 00 00 00 00 AA [09:25:28]Write i2c OK [09:25:28]MH_I2C_Read... [09:25:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:28]Read from MH i2c: E2 [09:25:28]MH_I2C_Read... [09:25:28]Read from MH i2c: E2 03 00 [09:25:28]MH_I2C_Read... [09:25:28]Read from MH i2c: E2 03 00 A9 8F 00 90 00 AC [09:25:28]RAPDU: 90 00 [09:25:28]wFMCommunicate OK [09:25:28]SAM_PROTO_ClearQueue done [09:25:28]KKMCreateOFDPacket [09:25:28]OFDProtocolAddRootSTLVToBuf [09:25:28]FM_MakeSignedData [09:25:28]FM_MakeSignedData [09:25:28]SAM_PROTO_SignData [09:25:28]wFMCommunicate request_size=4 [09:25:28]MH_SAM_APDU [09:25:28]CAPDU: 80 0D 01 02 [09:25:28]Write to MH i2c: E2 08 00 AA 8F 80 0D 01 02 00 00 00 00 B2 [09:25:28]Write i2c OK [09:25:28]MH_I2C_Read... [09:25:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:28]Read from MH i2c: E2 [09:25:28]MH_I2C_Read... [09:25:28]Read from MH i2c: E2 03 00 [09:25:28]MH_I2C_Read... [09:25:28]Read from MH i2c: E2 03 00 AA 8F 00 90 00 AD [09:25:28]RAPDU: 90 00 [09:25:28]wFMCommunicate OK [09:25:28]wFMCommunicate request_size=255 [09:25:28]MH_SAM_APDU [09:25: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 35 FF 03 08 00 03 88 27 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 60 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 1E 12 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8C C0 00 00 35 04 06 00 EF [09:25:28]Write to MH i2c: E2 02 01 AB 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 27 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 60 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 1E 12 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8C C0 00 00 35 04 06 00 EF 00 00 DB [09:25:28]Write i2c OK [09:25:28]MH_I2C_Read... [09:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:29]Read from MH i2c: E2 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 03 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 03 00 AB 8F 00 90 00 AE [09:25:29]RAPDU: 90 00 [09:25:29]wFMCommunicate OK [09:25:29]wFMCommunicate request_size=10 [09:25:29]MH_SAM_APDU [09:25:29]CAPDU: 80 0D 02 02 05 A6 5E 36 F3 30 [09:25:29]Write to MH i2c: E2 0D 00 AC 8F 80 0D 02 02 05 00 A6 5E 36 F3 30 00 00 1C [09:25:29]Write i2c OK [09:25:29]MH_I2C_Read... [09:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:29]Read from MH i2c: E2 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 03 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 03 00 AC 8F 00 90 00 AF [09:25:29]RAPDU: 90 00 [09:25:29]wFMCommunicate OK [09:25:29]wFMCommunicate request_size=4 [09:25:29]MH_SAM_APDU [09:25:29]CAPDU: 80 0D 03 02 [09:25:29]Write to MH i2c: E2 08 00 AD 8F 80 0D 03 02 00 00 00 00 B7 [09:25:29]Write i2c OK [09:25:29]MH_I2C_Read... [09:25:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:29]Read from MH i2c: E2 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 0B 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 0B 00 AD 8F 00 D5 83 93 52 13 99 00 45 90 00 E6 [09:25:29]RAPDU: D5 83 93 52 13 99 00 45 90 00 [09:25:29]wFMCommunicate OK [09:25:29]SAM_PROTO_SignData done [09:25:29]FM_MakeSignedData done [09:25:29]CreateOFDProtocolMessage [09:25:29]wFMCommunicate request_size=4 [09:25:29]MH_SAM_APDU [09:25:29]CAPDU: 80 11 00 00 [09:25:29]Write to MH i2c: E2 08 00 AE 8F 80 11 00 00 00 00 00 00 B7 [09:25:29]Write i2c OK [09:25:29]MH_I2C_Read... [09:25:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:29]Read from MH i2c: E2 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 17 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 17 00 AE 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 04 [09:25:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:25:29]wFMCommunicate OK [09:25:29]CreateOFDProtocolMessage done [09:25:29]OFDSenderStorePacket 49292 [09:25:29]StoreOFDPacket docnum=49292 [09:25:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 C4 45 07 01 4B E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 27 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 60 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 1E 12 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8C C0 00 00 35 04 06 00 EF A6 5E 36 F3 30 D5 83 93 52 13 99 00 45 [09:25:29]CheckFolder [09:25:29]dirname=/storage/ofd_packets [09:25:29]CheckFolder done [09:25:29]ProducePacketName [09:25:29]name=ofd_packets/00049292 [09:25:29]NVStorageSaveData ofd_packets/00049292 [09:25:29]File name is /storage/ofd_packets/00049292 [09:25:29]Write 301 bytes [09:25:29]NVStorageSaveData done [09:25:29]OFDSenderStorePacket done [09:25:29]KKMCreateOFDPacket done [09:25:29]NVStorageSaveData kkm_last_timestamp [09:25:29]File name is /storage/kkm_last_timestamp [09:25:29]Write 4 bytes [09:25:29]NVStorageSaveData done [09:25:29]ExternCall_PrintAddStr [09:25:29]wPrintStart [09:25:29]Write to MH i2c: 01 00 00 AF 8F 3E [09:25:29]Write i2c OK [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: 01 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: 01 07 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: 01 07 00 AF 8F 00 00 00 00 00 FF 0F 53 [09:25:29]RasterBufferAndPrint [09:25:29]line Счет N : (1)216395 [09:25:29]line ИНН: 02508201610067 [09:25:29]line Контрольно-Кассовый Чек [09:25:29]line ПРОДАЖА [09:25:29]line ТРК (МРК, ГНК) : 12 [09:25:29]line Товар: 2710124130 [09:25:29]line Аи-92-К-5 [09:25:29]line 10.120 * 60.30 [09:25:29]line = 610.24 [09:25:29]line НДС 12% НСП 1% [09:25:29]line > о реализуемом товаре [09:25:29]line ОКРУГЛЕНИЕ: -0.24 [09:25:29]line ИТОГО: 610.00 [09:25:29]line Внесено: 610.00 [09:25:29]line СДАЧА: 0.00 [09:25:29]line НСП 1% : 5.40 [09:25:29]line НДС 12% : 64.80 [09:25:29]line Наличными: 610.00 [09:25:29]line Безнал.: 0.00 [09:25:29]line Место: АЗС № 102 "Партнер Нефть" [09:25:29]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:25:29]line СНО: Общий режим [09:25:29]line Чек 17 31.01.2024 09:25 [09:25:29]line Смена: 247 ФФД: 1.0 [09:25:29]line ЗНМ: 0300000040 [09:25:29]line РНМ: 0000000000092723 [09:25:29]line Версия ККМ: 001 [09:25:29]line ФМ: 0000000000875060 [09:25:29]line ФД: 49292 [09:25:29]line ФПД: 263497824269104 [09:25:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T092550&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49292&fm=263497824269104&tin=02508201610067®Number=0000000000092723&sum=61000 [09:25:29]OFD Sender: Processing packet 49292 [packets to send 12, broken 11] [09:25:29]ProducePacketName [09:25:29]name=ofd_packets/00049292 [09:25:29]OFD Sender: To server: pG, [09:25:29]CommunicateWithHost lk.salyk.kg:30040 [09:25:29]ConnectInit lk.salyk.kg [09:25:29]written 0, free lines is 4095 [09:25:29]Connected sock=10 [09:25:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 C4 45 07 01 4B E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 27 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 60 EE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 EE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 19 00 00 00 00 07 04 06 00 48 EE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 1E 12 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8C C0 00 00 35 04 06 00 EF A6 5E 36 F3 30 D5 83 93 52 13 99 00 45 [09:25:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 A5 21 47 00 7A CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8C C0 00 00 F4 03 04 00 11 BE B9 65 B6 04 01 00 00 DC 13 41 01 48 1A CE 7C [09:25:29]CommunicateWithHost err = 0 [09:25:29]CheckOFDResponse [09:25:29]1017 (14) - 77093643461234 [09:25:29]1041 (16) - 0000000000875060 [09:25:29]1040 (4) - 49292 [09:25:29]1012 (4) - 31.01.2024 03:27 [09:25:29]1206 (1) - 0 [09:25:29]OFD Sender: Remove packet 49292 [09:25:29]ProducePacketName [09:25:29]name=ofd_packets/00049292 [09:25:29]NVStorageDeleteData [09:25:30]Write to MH i2c: 01 00 00 DA 8F 69 [09:25:30]Write i2c OK [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: 01 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: 01 07 00 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: 01 07 00 DA 8F 00 00 00 00 00 EC 0C 68 [09:25:30]RasterBufferAndPrint [09:25:30]line [09:25:30]line [09:25:30]line [09:25:30]line [09:25:30]line [09:25:30]written 0, free lines is 3315 [09:25:30]MH_Cut [09:25:30]Write to MH i2c: D1 01 00 E1 8F 01 42 [09:25:30]Write i2c OK [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: D1 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: D1 01 00 [09:25:30]MH_I2C_Read... [09:25:30]Read from MH i2c: D1 01 00 E1 8F 00 41 [09:25:30]Write to MH i2c: 01 00 00 E2 8F 71 [09:25:30]Write i2c OK [09:25:30]MH_I2C_Read... [09:25:30]OFD Sender: No OFD packet to send [09:25:30]*** Cut start [09:25:30]*** Partial cut [09:25:30]*** CUTSNS_PIN = 1 [09:25:30]*** CUTSNS_PIN = 0 [09:25:30]*** Brake cut motor [09:25:31]Read from MH i2c: 01 [09:25:31]MH_I2C_Read... [09:25:31]*** Stop cut motor [09:25:31]*** Cut end [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 E2 8F 00 00 00 00 00 FF 0F 86 [09:25:31]process_action close_receipt done [09:25:31]requested_data is exist [09:25:31]produce_requested_data [09:25:31]requested_item fm.sn is exist - process it [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 E3 8F 80 11 00 00 00 00 00 00 EC [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 E3 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 39 [09:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:25:31]wFMCommunicate OK [09:25:31]requested_item fd.num is exist - process it [09:25:31]SAM_PROTO_GetFieldsCounters [09:25:31]wFMCommunicate request_size=4 [09:25:31]MH_SAM_APDU [09:25:31]CAPDU: 80 13 00 00 [09:25:31]Write to MH i2c: E2 08 00 E4 8F 80 13 00 00 00 00 00 00 EF [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 62 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 62 00 E4 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 8C C0 00 00 0E 04 04 00 F7 00 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 7E [09:25: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 8C C0 00 00 0E 04 04 00 F7 00 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 [09:25:31]wFMCommunicate OK [09:25:31]SAM_PROTO_GetFieldsCounters done [09:25:31]requested_item shift.num is exist - process it [09:25:31]requested_item shift.opened is exist - process it [09:25:31]req_shift_opened [09:25:31]FM_GetShiftState [09:25:31]SAM_PROTO_GetShiftState [09:25:31]wFMCommunicate request_size=4 [09:25:31]MH_SAM_APDU [09:25:31]CAPDU: 80 13 01 00 [09:25:31]Write to MH i2c: E2 08 00 E5 8F 80 13 01 00 00 00 00 00 F1 [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 0E 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 0E 00 E5 8F 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 47 [09:25:31]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:25:31]wFMCommunicate OK [09:25:31]SAM_PROTO_GetShiftState done [09:25:31]FM_GetShiftState done [09:25:31]req_shift_opened done [09:25:31]requested_item shift.open_date is exist - process it [09:25:31]req_shift_open_date [09:25:31]req_shift_open_date done [09:25:31]produce_requested_data done [09:25:31]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49292,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [09:25:31]process_action_free close_receipt [09:25:31]json_value_free [09:25:31]json_value_free done [09:25:31]process_json_proto returns [09:25:31]Send response to host [09:25:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49292,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [09:25:31]free response buf [09:25:31]execute_script done [09:25:31]execute_script returns [09:25:31]free content buf [09:25:31]Sock 9.Close socket [09:25:31]Sock 9.Thread stoped [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:06]accept exits with 7 [09:27:06]New connection [09:27:06]New thread 3066813796 created [09:27:06]Thread 3066670436 joined [09:27:06]Waiting for new connection... [09:27:06] Sock 7.Parse request [09:27:06]Sock 7.Check first char [09:27:06]Sock 7.First char is OK [09:27:06]request: POST /json_proto HTTP/1.0 [09:27:06]Method: POST [09:27:06]URL: /json_proto [09:27:06]Method is POST - this is cgi request [09:27:06]url: /json_proto [09:27:06]query_string will be loaded in cgi processing [09:27:06]execute_cgi json_proto POST (null) [09:27:06]execute_cgi path=json_proto method=POST [09:27:06]POST find Content-Length [09:27:06]Host: 172.17.56.67:8080 [09:27:06]Content-Length: 682 [09:27:06]Content-Type: application/json [09:27:06] [09:27:06]POST finish read [09:27:06]Found Content-Length = 682 [09:27:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:06]execute_script... [09:27: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)216396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:06]POST & json_proto [09:27:06]process_json_proto [09:27:06]json parsed OK: [09:27:06]protocol is kg_v1.0 [09:27:06]action value=close_receipt [09:27:06]process_action close_receipt [09:27:06]cmd_close_receipt [09:27:06]MH_GetDate [09:27:06]Write to MH i2c: F0 00 00 E6 8F 64 [09:27:06]Write i2c OK [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: F0 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: F0 09 00 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: F0 09 00 E6 8F 00 81 12 BA 65 26 5D 9E 65 A5 [09:27:06]GetLastDocTimeStamp 1706693150 [09:27:06]current date 1706693249 [09:27:06]FM_GetShiftState [09:27:06]SAM_PROTO_GetShiftState [09:27:06]wFMCommunicate request_size=4 [09:27:06]MH_SAM_APDU [09:27:06]CAPDU: 80 13 01 00 [09:27:06]Write to MH i2c: E2 08 00 E7 8F 80 13 01 00 00 00 00 00 F3 [09:27:06]Write i2c OK [09:27:06]MH_I2C_Read... [09:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:06]Read from MH i2c: E2 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: E2 0E 00 [09:27:06]MH_I2C_Read... [09:27:06]Read from MH i2c: E2 0E 00 E7 8F 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 49 [09:27:06]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:27:06]wFMCommunicate OK [09:27:06]SAM_PROTO_GetShiftState done [09:27:06]FM_GetShiftState done [09:27:06]opened in 1706659486 [09:27:06]opened+sec_in_day 1706745886 [09:27:06]quantity*price = 100037 [09:27:06]sum+1 = 100039 [09:27:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 18 31.01.2024 09:27 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49293 ФПД: 257395851491961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T092729&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49293&fm=257395851491961&tin=02508201610067®Number=0000000000092723&sum=100000 [09:27:07]StoreToDocumentArchive [09:27:07]shift 247 fd 49293 [09:27:07]save to /storage/0247/doc_00049293 [09:27:07]save last doc name /storage/0247/doc_00049293 to /storage/kkm_last_doc_name [09:27:07]save OK [09:27:07]Clear old archive folders... [09:27:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:27:07]tlvbuf is 0121DC20 [09:27:07]SAM_PROTO_ClearQueue [09:27:07]wFMCommunicate request_size=4 [09:27:07]MH_SAM_APDU [09:27:07]CAPDU: 80 09 00 00 [09:27:07]Write to MH i2c: E2 08 00 F4 8F 80 09 00 00 00 00 00 00 F5 [09:27:07]Write i2c OK [09:27:07]MH_I2C_Read... [09:27:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:07]Read from MH i2c: E2 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 03 00 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 03 00 F4 8F 00 90 00 F7 [09:27:07]RAPDU: 90 00 [09:27:07]wFMCommunicate OK [09:27:07]SAM_PROTO_ClearQueue done [09:27:07]KKMCreateOFDPacket [09:27:07]OFDProtocolAddRootSTLVToBuf [09:27:07]FM_MakeSignedData [09:27:07]FM_MakeSignedData [09:27:07]SAM_PROTO_SignData [09:27:07]wFMCommunicate request_size=4 [09:27:07]MH_SAM_APDU [09:27:07]CAPDU: 80 0D 01 02 [09:27:07]Write to MH i2c: E2 08 00 F5 8F 80 0D 01 02 00 00 00 00 FD [09:27:07]Write i2c OK [09:27:07]MH_I2C_Read... [09:27:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:07]Read from MH i2c: E2 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 03 00 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 03 00 F5 8F 00 90 00 F8 [09:27:07]RAPDU: 90 00 [09:27:07]wFMCommunicate OK [09:27:07]wFMCommunicate request_size=255 [09:27:07]MH_SAM_APDU [09:27:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 81 12 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8D C0 00 00 35 04 06 00 EA [09:27:07]Write to MH i2c: E2 02 01 F6 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 81 12 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8D C0 00 00 35 04 06 00 EA 00 00 5F [09:27:07]Write i2c OK [09:27:07]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 F6 8F 00 90 00 F9 [09:27:08]RAPDU: 90 00 [09:27:08]wFMCommunicate OK [09:27:08]wFMCommunicate request_size=10 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 0D 02 02 05 19 A4 4B 7A 79 [09:27:08]Write to MH i2c: E2 0D 00 F7 8F 80 0D 02 02 05 00 19 A4 4B 7A 79 00 00 05 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 F7 8F 00 90 00 FA [09:27:08]RAPDU: 90 00 [09:27:08]wFMCommunicate OK [09:27:08]wFMCommunicate request_size=4 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 0D 03 02 [09:27:08]Write to MH i2c: E2 08 00 F8 8F 80 0D 03 02 00 00 00 00 02 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 0B 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 0B 00 F8 8F 00 10 1A C1 02 A1 E4 3F E7 90 00 9B [09:27:08]RAPDU: 10 1A C1 02 A1 E4 3F E7 90 00 [09:27:08]wFMCommunicate OK [09:27:08]SAM_PROTO_SignData done [09:27:08]FM_MakeSignedData done [09:27:08]CreateOFDProtocolMessage [09:27:08]wFMCommunicate request_size=4 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 11 00 00 [09:27:08]Write to MH i2c: E2 08 00 F9 8F 80 11 00 00 00 00 00 00 02 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 17 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 17 00 F9 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4F [09:27:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:27:08]wFMCommunicate OK [09:27:08]CreateOFDProtocolMessage done [09:27:08]OFDSenderStorePacket 49293 [09:27:08]StoreOFDPacket docnum=49293 [09:27:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 12 39 07 01 96 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 81 12 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8D C0 00 00 35 04 06 00 EA 19 A4 4B 7A 79 10 1A C1 02 A1 E4 3F E7 [09:27:08]CheckFolder [09:27:08]dirname=/storage/ofd_packets [09:27:08]CheckFolder done [09:27:08]ProducePacketName [09:27:08]name=ofd_packets/00049293 [09:27:08]NVStorageSaveData ofd_packets/00049293 [09:27:08]File name is /storage/ofd_packets/00049293 [09:27:08]Write 301 bytes [09:27:08]NVStorageSaveData done [09:27:08]OFDSenderStorePacket done [09:27:08]KKMCreateOFDPacket done [09:27:08]NVStorageSaveData kkm_last_timestamp [09:27:08]File name is /storage/kkm_last_timestamp [09:27:08]Write 4 bytes [09:27:08]NVStorageSaveData done [09:27:08]ExternCall_PrintAddStr [09:27:08]wPrintStart [09:27:08]Write to MH i2c: 01 00 00 FA 8F 89 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: 01 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: 01 07 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: 01 07 00 FA 8F 00 00 00 00 00 FF 0F 9E [09:27:08]RasterBufferAndPrint [09:27:08]line Счет N : (1)216396 [09:27:08]line ИНН: 02508201610067 [09:27:08]line Контрольно-Кассовый Чек [09:27:08]line ПРОДАЖА [09:27:08]line ТРК (МРК, ГНК) : 22 [09:27:08]line Товар: 2710124130 [09:27:08]line Аи-92-К-5 [09:27:08]line 16.590 * 60.30 [09:27:08]line = 1000.38 [09:27:08]line НДС 12% НСП 1% [09:27:08]line > о реализуемом товаре [09:27:08]line ОКРУГЛЕНИЕ: -0.38 [09:27:08]line ИТОГО: 1000.00 [09:27:08]line Внесено: 1000.00 [09:27:08]line СДАЧА: 0.00 [09:27:08]line НСП 1% : 8.85 [09:27:08]line НДС 12% : 106.23 [09:27:08]line Наличными: 1000.00 [09:27:08]line Безнал.: 0.00 [09:27:08]line Место: АЗС № 102 "Партнер Нефть" [09:27:08]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:27:08]line СНО: Общий режим [09:27:08]line Чек 18 31.01.2024 09:27 [09:27:08]line Смена: 247 ФФД: 1.0 [09:27:08]line ЗНМ: 0300000040 [09:27:08]line РНМ: 0000000000092723 [09:27:08]line Версия ККМ: 001 [09:27:08]line ФМ: 0000000000875060 [09:27:08]line ФД: 49293 [09:27:08]line ФПД: 257395851491961 [09:27:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T092729&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49293&fm=257395851491961&tin=02508201610067®Number=0000000000092723&sum=100000 [09:27:08]OFD Sender: Processing packet 49293 [packets to send 12, broken 11] [09:27:08]ProducePacketName [09:27:08]name=ofd_packets/00049293 [09:27:08]OFD Sender: To server: pG, [09:27:08]CommunicateWithHost lk.salyk.kg:30040 [09:27:08]ConnectInit lk.salyk.kg [09:27:08]written 0, free lines is 4095 [09:27:08]Connected sock=10 [09:27:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 12 39 07 01 96 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 81 12 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8D C0 00 00 35 04 06 00 EA 19 A4 4B 7A 79 10 1A C1 02 A1 E4 3F E7 [09:27:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 F6 66 47 00 50 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8D C0 00 00 F4 03 04 00 74 BE B9 65 B6 04 01 00 00 90 87 4B E3 5E 70 5E 3B [09:27:08]CommunicateWithHost err = 0 [09:27:08]CheckOFDResponse [09:27:08]1017 (14) - 77093643461234 [09:27:08]1041 (16) - 0000000000875060 [09:27:08]1040 (4) - 49293 [09:27:08]1012 (4) - 31.01.2024 03:28 [09:27:08]1206 (1) - 0 [09:27:08]OFD Sender: Remove packet 49293 [09:27:08]ProducePacketName [09:27:08]name=ofd_packets/00049293 [09:27:08]NVStorageDeleteData [09:27:09]Write to MH i2c: 01 00 00 25 90 B5 [09:27:09]Write i2c OK [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: 01 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: 01 07 00 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: 01 07 00 25 90 00 00 00 00 00 FA 0C C2 [09:27:09]RasterBufferAndPrint [09:27:09]line [09:27:09]line [09:27:09]line [09:27:09]line [09:27:09]line [09:27:09]written 0, free lines is 3329 [09:27:09]MH_Cut [09:27:09]Write to MH i2c: D1 01 00 2C 90 01 8E [09:27:09]Write i2c OK [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: D1 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: D1 01 00 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: D1 01 00 2C 90 00 8D [09:27:09]Write to MH i2c: 01 00 00 2D 90 BD [09:27:09]Write i2c OK [09:27:09]MH_I2C_Read... [09:27:09]OFD Sender: No OFD packet to send [09:27:09]*** Cut start [09:27:09]*** Partial cut [09:27:09]*** CUTSNS_PIN = 1 [09:27:09]*** CUTSNS_PIN = 0 [09:27:09]*** Brake cut motor [09:27:10]Read from MH i2c: 01 [09:27:10]MH_I2C_Read... [09:27:10]*** Stop cut motor [09:27:10]*** Cut end [09:27:10]Read from MH i2c: 01 07 00 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: 01 07 00 2D 90 00 00 00 00 00 FF 0F D2 [09:27:10]process_action close_receipt done [09:27:10]requested_data is exist [09:27:10]produce_requested_data [09:27:10]requested_item fm.sn is exist - process it [09:27:10]wFMCommunicate request_size=4 [09:27:10]MH_SAM_APDU [09:27:10]CAPDU: 80 11 00 00 [09:27:10]Write to MH i2c: E2 08 00 2E 90 80 11 00 00 00 00 00 00 38 [09:27:10]Write i2c OK [09:27:10]MH_I2C_Read... [09:27:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:10]Read from MH i2c: E2 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: E2 17 00 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: E2 17 00 2E 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 85 [09:27:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:27:10]wFMCommunicate OK [09:27:10]requested_item fd.num is exist - process it [09:27:10]SAM_PROTO_GetFieldsCounters [09:27:10]wFMCommunicate request_size=4 [09:27:10]MH_SAM_APDU [09:27:10]CAPDU: 80 13 00 00 [09:27:10]Write to MH i2c: E2 08 00 2F 90 80 13 00 00 00 00 00 00 3B [09:27:10]Write i2c OK [09:27:10]MH_I2C_Read... [09:27:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:10]Read from MH i2c: E2 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: E2 62 00 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: E2 62 00 2F 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 8D C0 00 00 0E 04 04 00 F7 00 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 CE [09:27: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 8D C0 00 00 0E 04 04 00 F7 00 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 [09:27:10]wFMCommunicate OK [09:27:10]SAM_PROTO_GetFieldsCounters done [09:27:10]requested_item shift.num is exist - process it [09:27:10]requested_item shift.opened is exist - process it [09:27:10]req_shift_opened [09:27:10]FM_GetShiftState [09:27:10]SAM_PROTO_GetShiftState [09:27:10]wFMCommunicate request_size=4 [09:27:10]MH_SAM_APDU [09:27:10]CAPDU: 80 13 01 00 [09:27:10]Write to MH i2c: E2 08 00 30 90 80 13 01 00 00 00 00 00 3D [09:27:10]Write i2c OK [09:27:10]MH_I2C_Read... [09:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:10]Read from MH i2c: E2 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: E2 0E 00 [09:27:10]MH_I2C_Read... [09:27:10]Read from MH i2c: E2 0E 00 30 90 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 93 [09:27:10]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:27:10]wFMCommunicate OK [09:27:10]SAM_PROTO_GetShiftState done [09:27:10]FM_GetShiftState done [09:27:10]req_shift_opened done [09:27:10]requested_item shift.open_date is exist - process it [09:27:10]req_shift_open_date [09:27:10]req_shift_open_date done [09:27:10]produce_requested_data done [09:27:10]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49293,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [09:27:10]process_action_free close_receipt [09:27:10]json_value_free [09:27:10]json_value_free done [09:27:10]process_json_proto returns [09:27:10]Send response to host [09:27:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49293,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [09:27:10]free response buf [09:27:10]execute_script done [09:27:10]execute_script returns [09:27:10]free content buf [09:27:10]Sock 7.Close socket [09:27:10]Sock 7.Thread stoped [09:27:14]OFD Sender: No OFD packet to send [09:27:19]OFD Sender: No OFD packet to send [09:27:24]OFD Sender: No OFD packet to send [09:27:29]OFD Sender: No OFD packet to send [09:27:34]OFD Sender: No OFD packet to send [09:27:39]OFD Sender: No OFD packet to send [09:27:44]OFD Sender: No OFD packet to send [09:27:49]OFD Sender: No OFD packet to send [09:27:54]OFD Sender: No OFD packet to send [09:27:59]accept exits with 9 [09:27:59]New connection [09:27:59]New thread 3066670436 created [09:27:59]Thread 3066813796 joined [09:27:59]Waiting for new connection... [09:27:59] Sock 9.Parse request [09:27:59]Sock 9.Check first char [09:27:59]Sock 9.First char is OK [09:27:59]request: POST /json_proto HTTP/1.0 [09:27:59]Method: POST [09:27:59]URL: /json_proto [09:27:59]Method is POST - this is cgi request [09:27:59]url: /json_proto [09:27:59]query_string will be loaded in cgi processing [09:27:59]execute_cgi json_proto POST (null) [09:27:59]execute_cgi path=json_proto method=POST [09:27:59]POST find Content-Length [09:27:59]Host: 172.17.56.67:8080 [09:27:59]Content-Length: 677 [09:27:59]Content-Type: application/json [09:27:59] [09:27:59]POST finish read [09:27:59]Found Content-Length = 677 [09:27:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "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:27:59]execute_script... [09:27: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)216397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "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:27:59]POST & json_proto [09:27:59]process_json_proto [09:27:59]json parsed OK: [09:27:59]protocol is kg_v1.0 [09:27:59]action value=close_receipt [09:27:59]process_action close_receipt [09:27:59]cmd_close_receipt [09:27:59]MH_GetDate [09:27:59]Write to MH i2c: F0 00 00 31 90 B0 [09:27:59]Write i2c OK [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: F0 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: F0 09 00 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: F0 09 00 31 90 00 B6 12 BA 65 26 5D 9E 65 26 [09:27:59]GetLastDocTimeStamp 1706693249 [09:27:59]current date 1706693302 [09:27:59]FM_GetShiftState [09:27:59]SAM_PROTO_GetShiftState [09:27:59]wFMCommunicate request_size=4 [09:27:59]MH_SAM_APDU [09:27:59]CAPDU: 80 13 01 00 [09:27:59]Write to MH i2c: E2 08 00 32 90 80 13 01 00 00 00 00 00 3F [09:27:59]Write i2c OK [09:27:59]MH_I2C_Read... [09:27:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:59]Read from MH i2c: E2 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: E2 0E 00 [09:27:59]MH_I2C_Read... [09:27:59]Read from MH i2c: E2 0E 00 32 90 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 95 [09:27:59]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:27:59]wFMCommunicate OK [09:27:59]SAM_PROTO_GetShiftState done [09:27:59]FM_GetShiftState done [09:27:59]opened in 1706659486 [09:27:59]opened+sec_in_day 1706745886 [09:27:59]quantity*price = 20019 [09:27:59]sum+1 = 20021 [09:27:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 19 31.01.2024 09:28 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49294 ФПД: 111925912154536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T092822&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49294&fm=111925912154536&tin=02508201610067®Number=0000000000092723&sum=20000 [09:28:00]StoreToDocumentArchive [09:28:00]shift 247 fd 49294 [09:28:00]save to /storage/0247/doc_00049294 [09:28:00]save last doc name /storage/0247/doc_00049294 to /storage/kkm_last_doc_name [09:28:00]save OK [09:28:00]Clear old archive folders... [09:28:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:00]tlvbuf is 01492280 [09:28:00]SAM_PROTO_ClearQueue [09:28:00]wFMCommunicate request_size=4 [09:28:00]MH_SAM_APDU [09:28:00]CAPDU: 80 09 00 00 [09:28:00]Write to MH i2c: E2 08 00 3F 90 80 09 00 00 00 00 00 00 41 [09:28:00]Write i2c OK [09:28:00]MH_I2C_Read... [09:28:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:00]Read from MH i2c: E2 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 03 00 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 03 00 3F 90 00 90 00 43 [09:28:00]RAPDU: 90 00 [09:28:00]wFMCommunicate OK [09:28:00]SAM_PROTO_ClearQueue done [09:28:00]KKMCreateOFDPacket [09:28:00]OFDProtocolAddRootSTLVToBuf [09:28:00]FM_MakeSignedData [09:28:00]FM_MakeSignedData [09:28:00]SAM_PROTO_SignData [09:28:00]wFMCommunicate request_size=4 [09:28:00]MH_SAM_APDU [09:28:00]CAPDU: 80 0D 01 02 [09:28:00]Write to MH i2c: E2 08 00 40 90 80 0D 01 02 00 00 00 00 49 [09:28:00]Write i2c OK [09:28:00]MH_I2C_Read... [09:28:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:00]Read from MH i2c: E2 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 03 00 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 03 00 40 90 00 90 00 44 [09:28:00]RAPDU: 90 00 [09:28:00]wFMCommunicate OK [09:28:00]wFMCommunicate request_size=255 [09:28:00]MH_SAM_APDU [09:28:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 13 00 00 00 F4 03 04 00 B6 12 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8E C0 00 00 35 04 06 00 65 [09:28:00]Write to MH i2c: E2 02 01 41 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 13 00 00 00 F4 03 04 00 B6 12 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8E C0 00 00 35 04 06 00 65 00 00 FD [09:28:00]Write i2c OK [09:28:00]MH_I2C_Read... [09:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:00]Read from MH i2c: E2 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 03 00 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 03 00 41 90 00 90 00 45 [09:28:00]RAPDU: 90 00 [09:28:00]wFMCommunicate OK [09:28:00]wFMCommunicate request_size=10 [09:28:00]MH_SAM_APDU [09:28:00]CAPDU: 80 0D 02 02 05 CB C8 3C 31 A8 [09:28:00]Write to MH i2c: E2 0D 00 42 90 80 0D 02 02 05 00 CB C8 3C 31 A8 00 00 FE [09:28:00]Write i2c OK [09:28:00]MH_I2C_Read... [09:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:00]Read from MH i2c: E2 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 03 00 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 03 00 42 90 00 90 00 46 [09:28:00]RAPDU: 90 00 [09:28:00]wFMCommunicate OK [09:28:00]wFMCommunicate request_size=4 [09:28:00]MH_SAM_APDU [09:28:00]CAPDU: 80 0D 03 02 [09:28:00]Write to MH i2c: E2 08 00 43 90 80 0D 03 02 00 00 00 00 4E [09:28:00]Write i2c OK [09:28:00]MH_I2C_Read... [09:28:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:00]Read from MH i2c: E2 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 0B 00 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 0B 00 43 90 00 63 EF 23 01 21 E4 29 4B 90 00 3E [09:28:00]RAPDU: 63 EF 23 01 21 E4 29 4B 90 00 [09:28:00]wFMCommunicate OK [09:28:00]SAM_PROTO_SignData done [09:28:00]FM_MakeSignedData done [09:28:00]CreateOFDProtocolMessage [09:28:00]wFMCommunicate request_size=4 [09:28:00]MH_SAM_APDU [09:28:00]CAPDU: 80 11 00 00 [09:28:00]Write to MH i2c: E2 08 00 44 90 80 11 00 00 00 00 00 00 4E [09:28:00]Write i2c OK [09:28:00]MH_I2C_Read... [09:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:00]Read from MH i2c: E2 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 17 00 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: E2 17 00 44 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9B [09:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:28:00]wFMCommunicate OK [09:28:00]CreateOFDProtocolMessage done [09:28:00]OFDSenderStorePacket 49294 [09:28:00]StoreOFDPacket docnum=49294 [09:28:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 9E 0E 07 01 29 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 13 00 00 00 F4 03 04 00 B6 12 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8E C0 00 00 35 04 06 00 65 CB C8 3C 31 A8 63 EF 23 01 21 E4 29 4B [09:28:00]CheckFolder [09:28:00]dirname=/storage/ofd_packets [09:28:00]CheckFolder done [09:28:00]ProducePacketName [09:28:00]name=ofd_packets/00049294 [09:28:00]NVStorageSaveData ofd_packets/00049294 [09:28:00]File name is /storage/ofd_packets/00049294 [09:28:00]Write 301 bytes [09:28:00]NVStorageSaveData done [09:28:00]OFDSenderStorePacket done [09:28:00]KKMCreateOFDPacket done [09:28:00]NVStorageSaveData kkm_last_timestamp [09:28:00]File name is /storage/kkm_last_timestamp [09:28:00]Write 4 bytes [09:28:00]NVStorageSaveData done [09:28:00]ExternCall_PrintAddStr [09:28:00]wPrintStart [09:28:00]Write to MH i2c: 01 00 00 45 90 D5 [09:28:00]Write i2c OK [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: 01 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: 01 07 00 [09:28:00]MH_I2C_Read... [09:28:00]Read from MH i2c: 01 07 00 45 90 00 00 00 00 00 FF 0F EA [09:28:00]RasterBufferAndPrint [09:28:00]line Счет N : (1)216397 [09:28:00]line ИНН: 02508201610067 [09:28:00]line Контрольно-Кассовый Чек [09:28:00]line ПРОДАЖА [09:28:00]line ТРК (МРК, ГНК) : 12 [09:28:00]line Товар: 2710124130 [09:28:00]line Аи-92-К-5 [09:28:00]line 3.320 * 60.30 [09:28:00]line = 200.20 [09:28:00]line НДС 12% НСП 1% [09:28:00]line > о реализуемом товаре [09:28:00]line ОКРУГЛЕНИЕ: -0.20 [09:28:00]line ИТОГО: 200.00 [09:28:00]line Внесено: 200.00 [09:28:00]line СДАЧА: 0.00 [09:28:00]line НСП 1% : 1.77 [09:28:00]line НДС 12% : 21.26 [09:28:00]line Наличными: 200.00 [09:28:00]line Безнал.: 0.00 [09:28:00]line Место: АЗС № 102 "Партнер Нефть" [09:28:00]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:28:00]line СНО: Общий режим [09:28:00]line Чек 19 31.01.2024 09:28 [09:28:00]line Смена: 247 ФФД: 1.0 [09:28:00]line ЗНМ: 0300000040 [09:28:00]line РНМ: 0000000000092723 [09:28:00]line Версия ККМ: 001 [09:28:00]line ФМ: 0000000000875060 [09:28:00]line ФД: 49294 [09:28:00]line ФПД: 111925912154536 [09:28:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T092822&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49294&fm=111925912154536&tin=02508201610067®Number=0000000000092723&sum=20000 [09:28:01]OFD Sender: Processing packet 49294 [packets to send 12, broken 11] [09:28:01]ProducePacketName [09:28:01]name=ofd_packets/00049294 [09:28:01]OFD Sender: To server: pG, [09:28:01]CommunicateWithHost lk.salyk.kg:30040 [09:28:01]ConnectInit lk.salyk.kg [09:28:01]written 0, free lines is 4095 [09:28:01]Connected sock=10 [09:28:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 9E 0E 07 01 29 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 13 00 00 00 F4 03 04 00 B6 12 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8E C0 00 00 35 04 06 00 65 CB C8 3C 31 A8 63 EF 23 01 21 E4 29 4B [09:28:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 50 66 47 00 FD E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8E C0 00 00 F4 03 04 00 A9 BE B9 65 B6 04 01 00 00 16 90 E0 D4 85 E2 5F 69 [09:28:01]CommunicateWithHost err = 0 [09:28:01]CheckOFDResponse [09:28:01]1017 (14) - 77093643461234 [09:28:01]1041 (16) - 0000000000875060 [09:28:01]1040 (4) - 49294 [09:28:01]1012 (4) - 31.01.2024 03:29 [09:28:01]1206 (1) - 0 [09:28:01]OFD Sender: Remove packet 49294 [09:28:01]ProducePacketName [09:28:01]name=ofd_packets/00049294 [09:28:01]NVStorageDeleteData [09:28:01]Write to MH i2c: 01 00 00 70 90 00 [09:28:01]Write i2c OK [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: 01 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: 01 07 00 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: 01 07 00 70 90 00 00 00 00 00 F9 0C 0C [09:28:01]RasterBufferAndPrint [09:28:01]line [09:28:01]line [09:28:01]line [09:28:01]line [09:28:01]line [09:28:01]written 0, free lines is 3328 [09:28:01]MH_Cut [09:28:01]Write to MH i2c: D1 01 00 77 90 01 D9 [09:28:01]Write i2c OK [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: D1 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: D1 01 00 [09:28:01]MH_I2C_Read... [09:28:01]Read from MH i2c: D1 01 00 77 90 00 D8 [09:28:01]Write to MH i2c: 01 00 00 78 90 08 [09:28:01]Write i2c OK [09:28:01]MH_I2C_Read... [09:28:02]OFD Sender: No OFD packet to send [09:28:02]*** Cut start [09:28:02]*** Partial cut [09:28:02]*** CUTSNS_PIN = 1 [09:28:02]*** CUTSNS_PIN = 0 [09:28:02]*** Brake cut motor [09:28:02]Read from MH i2c: 01 [09:28:02]MH_I2C_Read... [09:28:02]*** Stop cut motor [09:28:02]*** Cut end [09:28:02]Read from MH i2c: 01 07 00 [09:28:02]MH_I2C_Read... [09:28:02]Read from MH i2c: 01 07 00 78 90 00 00 00 00 00 FF 0F 1D [09:28:02]process_action close_receipt done [09:28:02]requested_data is exist [09:28:02]produce_requested_data [09:28:02]requested_item fm.sn is exist - process it [09:28:02]wFMCommunicate request_size=4 [09:28:02]MH_SAM_APDU [09:28:02]CAPDU: 80 11 00 00 [09:28:02]Write to MH i2c: E2 08 00 79 90 80 11 00 00 00 00 00 00 83 [09:28:02]Write i2c OK [09:28:02]MH_I2C_Read... [09:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:03]Read from MH i2c: E2 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 17 00 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 17 00 79 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D0 [09:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:28:03]wFMCommunicate OK [09:28:03]requested_item fd.num is exist - process it [09:28:03]SAM_PROTO_GetFieldsCounters [09:28:03]wFMCommunicate request_size=4 [09:28:03]MH_SAM_APDU [09:28:03]CAPDU: 80 13 00 00 [09:28:03]Write to MH i2c: E2 08 00 7A 90 80 13 00 00 00 00 00 00 86 [09:28:03]Write i2c OK [09:28:03]MH_I2C_Read... [09:28:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:03]Read from MH i2c: E2 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 62 00 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 62 00 7A 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 8E C0 00 00 0E 04 04 00 F7 00 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 1D [09:28: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 8E C0 00 00 0E 04 04 00 F7 00 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 [09:28:03]wFMCommunicate OK [09:28:03]SAM_PROTO_GetFieldsCounters done [09:28:03]requested_item shift.num is exist - process it [09:28:03]requested_item shift.opened is exist - process it [09:28:03]req_shift_opened [09:28:03]FM_GetShiftState [09:28:03]SAM_PROTO_GetShiftState [09:28:03]wFMCommunicate request_size=4 [09:28:03]MH_SAM_APDU [09:28:03]CAPDU: 80 13 01 00 [09:28:03]Write to MH i2c: E2 08 00 7B 90 80 13 01 00 00 00 00 00 88 [09:28:03]Write i2c OK [09:28:03]MH_I2C_Read... [09:28:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:03]Read from MH i2c: E2 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 0E 00 [09:28:03]MH_I2C_Read... [09:28:03]Read from MH i2c: E2 0E 00 7B 90 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 DE [09:28:03]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:28:03]wFMCommunicate OK [09:28:03]SAM_PROTO_GetShiftState done [09:28:03]FM_GetShiftState done [09:28:03]req_shift_opened done [09:28:03]requested_item shift.open_date is exist - process it [09:28:03]req_shift_open_date [09:28:03]req_shift_open_date done [09:28:03]produce_requested_data done [09:28:03]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49294,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [09:28:03]process_action_free close_receipt [09:28:03]json_value_free [09:28:03]json_value_free done [09:28:03]process_json_proto returns [09:28:03]Send response to host [09:28:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49294,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [09:28:03]free response buf [09:28:03]execute_script done [09:28:03]execute_script returns [09:28:03]free content buf [09:28:03]Sock 9.Close socket [09:28:03]Sock 9.Thread stoped [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:34]accept exits with 7 [09:31:34]New connection [09:31:34]New thread 3066813796 created [09:31:34]Thread 3066670436 joined [09:31:34]Waiting for new connection... [09:31:34] Sock 7.Parse request [09:31:34]Sock 7.Check first char [09:31:34]Sock 7.First char is OK [09:31:34]request: POST /json_proto HTTP/1.0 [09:31:34]Method: POST [09:31:34]URL: /json_proto [09:31:34]Method is POST - this is cgi request [09:31:34]url: /json_proto [09:31:34]query_string will be loaded in cgi processing [09:31:34]execute_cgi json_proto POST (null) [09:31:34]execute_cgi path=json_proto method=POST [09:31:34]POST find Content-Length [09:31:34]Host: 172.17.56.67:8080 [09:31:34]Content-Length: 677 [09:31:34]Content-Type: application/json [09:31:34] [09:31:34]POST finish read [09:31:34]Found Content-Length = 677 [09:31:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.320, "sum" : 260.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:34]execute_script... [09:31: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)216398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.320, "sum" : 260.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:34]POST & json_proto [09:31:34]process_json_proto [09:31:34]json parsed OK: [09:31:34]protocol is kg_v1.0 [09:31:34]action value=close_receipt [09:31:34]process_action close_receipt [09:31:34]cmd_close_receipt [09:31:34]MH_GetDate [09:31:34]Write to MH i2c: F0 00 00 7C 90 FB [09:31:34]Write i2c OK [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: F0 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: F0 09 00 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: F0 09 00 7C 90 00 8E 13 BA 65 26 5D 9E 65 4A [09:31:34]GetLastDocTimeStamp 1706693302 [09:31:34]current date 1706693518 [09:31:34]FM_GetShiftState [09:31:34]SAM_PROTO_GetShiftState [09:31:34]wFMCommunicate request_size=4 [09:31:34]MH_SAM_APDU [09:31:34]CAPDU: 80 13 01 00 [09:31:34]Write to MH i2c: E2 08 00 7D 90 80 13 01 00 00 00 00 00 8A [09:31:34]Write i2c OK [09:31:34]MH_I2C_Read... [09:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:34]Read from MH i2c: E2 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: E2 0E 00 [09:31:34]MH_I2C_Read... [09:31:34]Read from MH i2c: E2 0E 00 7D 90 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 E0 [09:31:34]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:31:34]wFMCommunicate OK [09:31:34]SAM_PROTO_GetShiftState done [09:31:34]FM_GetShiftState done [09:31:34]opened in 1706659486 [09:31:34]opened+sec_in_day 1706745886 [09:31:34]quantity*price = 26049 [09:31:34]sum+1 = 26051 [09:31:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.66 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 20 31.01.2024 09:31 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49295 ФПД: 121877711772929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T093158&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49295&fm=121877711772929&tin=02508201610067®Number=0000000000092723&sum=26000 [09:31:36]StoreToDocumentArchive [09:31:36]shift 247 fd 49295 [09:31:36]save to /storage/0247/doc_00049295 [09:31:36]save last doc name /storage/0247/doc_00049295 to /storage/kkm_last_doc_name [09:31:36]save OK [09:31:36]Clear old archive folders... [09:31:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:36]tlvbuf is 01210970 [09:31:36]SAM_PROTO_ClearQueue [09:31:36]wFMCommunicate request_size=4 [09:31:36]MH_SAM_APDU [09:31:36]CAPDU: 80 09 00 00 [09:31:36]Write to MH i2c: E2 08 00 8A 90 80 09 00 00 00 00 00 00 8C [09:31:36]Write i2c OK [09:31:36]MH_I2C_Read... [09:31:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:36]Read from MH i2c: E2 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 03 00 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 03 00 8A 90 00 90 00 8E [09:31:36]RAPDU: 90 00 [09:31:36]wFMCommunicate OK [09:31:36]SAM_PROTO_ClearQueue done [09:31:36]KKMCreateOFDPacket [09:31:36]OFDProtocolAddRootSTLVToBuf [09:31:36]FM_MakeSignedData [09:31:36]FM_MakeSignedData [09:31:36]SAM_PROTO_SignData [09:31:36]wFMCommunicate request_size=4 [09:31:36]MH_SAM_APDU [09:31:36]CAPDU: 80 0D 01 02 [09:31:36]Write to MH i2c: E2 08 00 8B 90 80 0D 01 02 00 00 00 00 94 [09:31:36]Write i2c OK [09:31:36]MH_I2C_Read... [09:31:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:36]Read from MH i2c: E2 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 03 00 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 03 00 8B 90 00 90 00 8F [09:31:36]RAPDU: 90 00 [09:31:36]wFMCommunicate OK [09:31:36]wFMCommunicate request_size=255 [09:31:36]MH_SAM_APDU [09:31:36]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C2 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 8E 13 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8F C0 00 00 35 04 06 00 6E [09:31:36]Write to MH i2c: E2 02 01 8C 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C2 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 8E 13 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8F C0 00 00 35 04 06 00 6E 00 00 82 [09:31:36]Write i2c OK [09:31:36]MH_I2C_Read... [09:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:36]Read from MH i2c: E2 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 03 00 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 03 00 8C 90 00 90 00 90 [09:31:36]RAPDU: 90 00 [09:31:36]wFMCommunicate OK [09:31:36]wFMCommunicate request_size=10 [09:31:36]MH_SAM_APDU [09:31:36]CAPDU: 80 0D 02 02 05 D8 DD B7 5D 01 [09:31:36]Write to MH i2c: E2 0D 00 8D 90 80 0D 02 02 05 00 D8 DD B7 5D 01 00 00 6B [09:31:36]Write i2c OK [09:31:36]MH_I2C_Read... [09:31:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:36]Read from MH i2c: E2 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 03 00 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 03 00 8D 90 00 90 00 91 [09:31:36]RAPDU: 90 00 [09:31:36]wFMCommunicate OK [09:31:36]wFMCommunicate request_size=4 [09:31:36]MH_SAM_APDU [09:31:36]CAPDU: 80 0D 03 02 [09:31:36]Write to MH i2c: E2 08 00 8E 90 80 0D 03 02 00 00 00 00 99 [09:31:36]Write i2c OK [09:31:36]MH_I2C_Read... [09:31:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:36]Read from MH i2c: E2 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 0B 00 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 0B 00 8E 90 00 45 46 5D C9 03 B9 79 30 90 00 B0 [09:31:36]RAPDU: 45 46 5D C9 03 B9 79 30 90 00 [09:31:36]wFMCommunicate OK [09:31:36]SAM_PROTO_SignData done [09:31:36]FM_MakeSignedData done [09:31:36]CreateOFDProtocolMessage [09:31:36]wFMCommunicate request_size=4 [09:31:36]MH_SAM_APDU [09:31:36]CAPDU: 80 11 00 00 [09:31:36]Write to MH i2c: E2 08 00 8F 90 80 11 00 00 00 00 00 00 99 [09:31:36]Write i2c OK [09:31:36]MH_I2C_Read... [09:31:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:36]Read from MH i2c: E2 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 17 00 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: E2 17 00 8F 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E6 [09:31:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:31:36]wFMCommunicate OK [09:31:36]CreateOFDProtocolMessage done [09:31:36]OFDSenderStorePacket 49295 [09:31:36]StoreOFDPacket docnum=49295 [09:31:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6D E5 07 01 B7 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C2 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 8E 13 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8F C0 00 00 35 04 06 00 6E D8 DD B7 5D 01 45 46 5D C9 03 B9 79 30 [09:31:36]CheckFolder [09:31:36]dirname=/storage/ofd_packets [09:31:36]CheckFolder done [09:31:36]ProducePacketName [09:31:36]name=ofd_packets/00049295 [09:31:36]NVStorageSaveData ofd_packets/00049295 [09:31:36]File name is /storage/ofd_packets/00049295 [09:31:36]Write 301 bytes [09:31:36]NVStorageSaveData done [09:31:36]OFDSenderStorePacket done [09:31:36]KKMCreateOFDPacket done [09:31:36]NVStorageSaveData kkm_last_timestamp [09:31:36]File name is /storage/kkm_last_timestamp [09:31:36]Write 4 bytes [09:31:36]NVStorageSaveData done [09:31:36]ExternCall_PrintAddStr [09:31:36]wPrintStart [09:31:36]Write to MH i2c: 01 00 00 90 90 20 [09:31:36]Write i2c OK [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: 01 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: 01 07 00 [09:31:36]MH_I2C_Read... [09:31:36]Read from MH i2c: 01 07 00 90 90 00 00 00 00 00 FF 0F 35 [09:31:36]RasterBufferAndPrint [09:31:36]line Счет N : (1)216398 [09:31:36]line ИНН: 02508201610067 [09:31:36]line Контрольно-Кассовый Чек [09:31:36]line ПРОДАЖА [09:31:36]line ТРК (МРК, ГНК) : 22 [09:31:36]line Товар: 2710124130 [09:31:36]line Аи-92-К-5 [09:31:36]line 4.320 * 60.30 [09:31:36]line = 260.50 [09:31:36]line НДС 12% НСП 1% [09:31:36]line > о реализуемом товаре [09:31:36]line ОКРУГЛЕНИЕ: -0.50 [09:31:36]line ИТОГО: 260.00 [09:31:36]line Внесено: 260.00 [09:31:36]line СДАЧА: 0.00 [09:31:36]line НСП 1% : 2.30 [09:31:36]line НДС 12% : 27.66 [09:31:36]line Наличными: 260.00 [09:31:36]line Безнал.: 0.00 [09:31:36]line Место: АЗС № 102 "Партнер Нефть" [09:31:36]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:31:36]line СНО: Общий режим [09:31:36]line Чек 20 31.01.2024 09:31 [09:31:36]line Смена: 247 ФФД: 1.0 [09:31:36]line ЗНМ: 0300000040 [09:31:36]line РНМ: 0000000000092723 [09:31:36]line Версия ККМ: 001 [09:31:36]line ФМ: 0000000000875060 [09:31:36]line ФД: 49295 [09:31:36]line ФПД: 121877711772929 [09:31:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T093158&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49295&fm=121877711772929&tin=02508201610067®Number=0000000000092723&sum=26000 [09:31:36]OFD Sender: Processing packet 49295 [packets to send 12, broken 11] [09:31:36]ProducePacketName [09:31:36]name=ofd_packets/00049295 [09:31:36]OFD Sender: To server: pG, [09:31:36]CommunicateWithHost lk.salyk.kg:30040 [09:31:36]ConnectInit lk.salyk.kg [09:31:36]written 0, free lines is 4095 [09:31:37]Connected sock=11 [09:31:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6D E5 07 01 B7 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C2 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 8E 13 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8F C0 00 00 35 04 06 00 6E D8 DD B7 5D 01 45 46 5D C9 03 B9 79 30 [09:31:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 59 1D 47 00 B9 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 35 30 36 30 10 04 04 00 8F C0 00 00 F4 03 04 00 81 BF B9 65 B6 04 01 00 00 79 DC D6 88 8C 2E AE FE [09:31:37]CommunicateWithHost err = 0 [09:31:37]CheckOFDResponse [09:31:37]1017 (14) - 77093643461234 [09:31:37]1041 (16) - 0000000000875060 [09:31:37]1040 (4) - 49295 [09:31:37]1012 (4) - 31.01.2024 03:33 [09:31:37]1206 (1) - 0 [09:31:37]OFD Sender: Remove packet 49295 [09:31:37]ProducePacketName [09:31:37]name=ofd_packets/00049295 [09:31:37]NVStorageDeleteData [09:31:37]Write to MH i2c: 01 00 00 BB 90 4B [09:31:37]Write i2c OK [09:31:37]MH_I2C_Read... [09:31:37]Read from MH i2c: 01 [09:31:37]MH_I2C_Read... [09:31:37]Read from MH i2c: 01 07 00 [09:31:37]MH_I2C_Read... [09:31:37]Read from MH i2c: 01 07 00 BB 90 00 00 00 00 00 FB 0C 59 [09:31:37]RasterBufferAndPrint [09:31:37]line [09:31:37]line [09:31:37]line [09:31:37]line [09:31:37]line [09:31:37]written 0, free lines is 3329 [09:31:37]MH_Cut [09:31:37]Write to MH i2c: D1 01 00 C2 90 01 24 [09:31:37]Write i2c OK [09:31:37]MH_I2C_Read... [09:31:37]Read from MH i2c: D1 [09:31:37]MH_I2C_Read... [09:31:37]Read from MH i2c: D1 01 00 [09:31:37]MH_I2C_Read... [09:31:37]Read from MH i2c: D1 01 00 C2 90 00 23 [09:31:37]Write to MH i2c: 01 00 00 C3 90 53 [09:31:37]Write i2c OK [09:31:37]MH_I2C_Read... [09:31:37]OFD Sender: No OFD packet to send [09:31:38]*** Cut start [09:31:38]*** Partial cut [09:31:38]*** CUTSNS_PIN = 1 [09:31:38]*** CUTSNS_PIN = 0 [09:31:38]*** Brake cut motor [09:31:38]Read from MH i2c: 01 [09:31:38]MH_I2C_Read... [09:31:38]*** Stop cut motor [09:31:38]*** Cut end [09:31:38]Read from MH i2c: 01 07 00 [09:31:38]MH_I2C_Read... [09:31:38]Read from MH i2c: 01 07 00 C3 90 00 00 00 00 00 FF 0F 68 [09:31:38]process_action close_receipt done [09:31:38]requested_data is exist [09:31:38]produce_requested_data [09:31:38]requested_item fm.sn is exist - process it [09:31:38]wFMCommunicate request_size=4 [09:31:38]MH_SAM_APDU [09:31:38]CAPDU: 80 11 00 00 [09:31:38]Write to MH i2c: E2 08 00 C4 90 80 11 00 00 00 00 00 00 CE [09:31:38]Write i2c OK [09:31:38]MH_I2C_Read... [09:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:38]Read from MH i2c: E2 [09:31:38]MH_I2C_Read... [09:31:38]Read from MH i2c: E2 17 00 [09:31:38]MH_I2C_Read... [09:31:38]Read from MH i2c: E2 17 00 C4 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1B [09:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:31:38]wFMCommunicate OK [09:31:38]requested_item fd.num is exist - process it [09:31:38]SAM_PROTO_GetFieldsCounters [09:31:38]wFMCommunicate request_size=4 [09:31:38]MH_SAM_APDU [09:31:38]CAPDU: 80 13 00 00 [09:31:38]Write to MH i2c: E2 08 00 C5 90 80 13 00 00 00 00 00 00 D1 [09:31:38]Write i2c OK [09:31:38]MH_I2C_Read... [09:31:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:38]Read from MH i2c: E2 [09:31:38]MH_I2C_Read... [09:31:38]Read from MH i2c: E2 62 00 [09:31:38]MH_I2C_Read... [09:31:38]Read from MH i2c: E2 62 00 C5 90 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 8F C0 00 00 0E 04 04 00 F7 00 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 6C [09: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 8F C0 00 00 0E 04 04 00 F7 00 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 [09:31:38]wFMCommunicate OK [09:31:38]SAM_PROTO_GetFieldsCounters done [09:31:38]requested_item shift.num is exist - process it [09:31:38]requested_item shift.opened is exist - process it [09:31:38]req_shift_opened [09:31:38]FM_GetShiftState [09:31:38]SAM_PROTO_GetShiftState [09:31:38]wFMCommunicate request_size=4 [09:31:38]MH_SAM_APDU [09:31:38]CAPDU: 80 13 01 00 [09:31:38]Write to MH i2c: E2 08 00 C6 90 80 13 01 00 00 00 00 00 D3 [09:31:38]Write i2c OK [09:31:38]MH_I2C_Read... [09:31:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:38]Read from MH i2c: E2 [09:31:38]MH_I2C_Read... [09:31:38]Read from MH i2c: E2 0E 00 [09:31:38]MH_I2C_Read... [09:31:38]Read from MH i2c: E2 0E 00 C6 90 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 29 [09:31:38]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:31:38]wFMCommunicate OK [09:31:38]SAM_PROTO_GetShiftState done [09:31:38]FM_GetShiftState done [09:31:38]req_shift_opened done [09:31:38]requested_item shift.open_date is exist - process it [09:31:38]req_shift_open_date [09:31:38]req_shift_open_date done [09:31:38]produce_requested_data done [09:31:38]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49295,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [09:31:38]process_action_free close_receipt [09:31:38]json_value_free [09:31:38]json_value_free done [09:31:38]process_json_proto returns [09:31:38]Send response to host [09:31:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49295,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [09:31:38]free response buf [09:31:38]execute_script done [09:31:38]execute_script returns [09:31:38]free content buf [09:31:38]Sock 7.Close socket [09:31:38]Sock 7.Thread stoped [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:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38: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:29]accept exits with 9 [09:41:29]New connection [09:41:29]New thread 3066670436 created [09:41:29]Thread 3066813796 joined [09:41:29]Waiting for new connection... [09:41:29] Sock 9.Parse request [09:41:29]Sock 9.Check first char [09:41:29]Sock 9.First char is OK [09:41:29]request: POST /json_proto HTTP/1.0 [09:41:29]Method: POST [09:41:29]URL: /json_proto [09:41:29]Method is POST - this is cgi request [09:41:29]url: /json_proto [09:41:29]query_string will be loaded in cgi processing [09:41:29]execute_cgi json_proto POST (null) [09:41:29]execute_cgi path=json_proto method=POST [09:41:29]POST find Content-Length [09:41:29]Host: 172.17.56.67:8080 [09:41:29]Content-Length: 677 [09:41:29]Content-Type: application/json [09:41:29] [09:41:29]POST finish read [09:41:29]Found Content-Length = 677 [09:41:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 7.800, "sum" : 470.34, "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" ] } } [09:41:29]execute_script... [09:41: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)216399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 7.800, "sum" : 470.34, "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" ] } } [09:41:29]POST & json_proto [09:41:29]process_json_proto [09:41:29]json parsed OK: [09:41:29]protocol is kg_v1.0 [09:41:29]action value=close_receipt [09:41:29]process_action close_receipt [09:41:29]cmd_close_receipt [09:41:29]MH_GetDate [09:41:29]Write to MH i2c: F0 00 00 C7 90 46 [09:41:29]Write i2c OK [09:41:29]MH_I2C_Read... [09:41:29]Read from MH i2c: F0 [09:41:29]MH_I2C_Read... [09:41:29]Read from MH i2c: F0 09 00 [09:41:29]MH_I2C_Read... [09:41:29]Read from MH i2c: F0 09 00 C7 90 00 E1 15 BA 65 26 5D 9E 65 EA [09:41:29]GetLastDocTimeStamp 1706693518 [09:41:29]current date 1706694113 [09:41:29]FM_GetShiftState [09:41:29]SAM_PROTO_GetShiftState [09:41:29]wFMCommunicate request_size=4 [09:41:29]MH_SAM_APDU [09:41:29]CAPDU: 80 13 01 00 [09:41:29]Write to MH i2c: E2 08 00 C8 90 80 13 01 00 00 00 00 00 D5 [09:41:29]Write i2c OK [09:41:29]MH_I2C_Read... [09:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:29]Read from MH i2c: E2 [09:41:29]MH_I2C_Read... [09:41:29]Read from MH i2c: E2 0E 00 [09:41:29]MH_I2C_Read... [09:41:29]Read from MH i2c: E2 0E 00 C8 90 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 2B [09:41:29]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:41:29]wFMCommunicate OK [09:41:29]SAM_PROTO_GetShiftState done [09:41:29]FM_GetShiftState done [09:41:29]opened in 1706659486 [09:41:29]opened+sec_in_day 1706745886 [09:41:29]quantity*price = 47034 [09:41:29]sum+1 = 47035 [09:41:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.95 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 21 31.01.2024 09:41 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49296 ФПД: 240413610684811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T094153&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49296&fm=240413610684811&tin=02508201610067®Number=0000000000092723&sum=47000 [09:41:31]StoreToDocumentArchive [09:41:31]shift 247 fd 49296 [09:41:31]save to /storage/0247/doc_00049296 [09:41:31]save last doc name /storage/0247/doc_00049296 to /storage/kkm_last_doc_name [09:41:31]save OK [09:41:31]Clear old archive folders... [09:41:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:31]tlvbuf is 011FAE80 [09:41:31]SAM_PROTO_ClearQueue [09:41:31]wFMCommunicate request_size=4 [09:41:31]MH_SAM_APDU [09:41:31]CAPDU: 80 09 00 00 [09:41:31]Write to MH i2c: E2 08 00 D5 90 80 09 00 00 00 00 00 00 D7 [09:41:31]Write i2c OK [09:41:31]MH_I2C_Read... [09:41:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:31]Read from MH i2c: E2 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 03 00 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 03 00 D5 90 00 90 00 D9 [09:41:31]RAPDU: 90 00 [09:41:31]wFMCommunicate OK [09:41:31]SAM_PROTO_ClearQueue done [09:41:31]KKMCreateOFDPacket [09:41:31]OFDProtocolAddRootSTLVToBuf [09:41:31]FM_MakeSignedData [09:41:31]FM_MakeSignedData [09:41:31]SAM_PROTO_SignData [09:41:31]wFMCommunicate request_size=4 [09:41:31]MH_SAM_APDU [09:41:31]CAPDU: 80 0D 01 02 [09:41:31]Write to MH i2c: E2 08 00 D6 90 80 0D 01 02 00 00 00 00 DF [09:41:31]Write i2c OK [09:41:31]MH_I2C_Read... [09:41:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:31]Read from MH i2c: E2 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 03 00 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 03 00 D6 90 00 90 00 DA [09:41:31]RAPDU: 90 00 [09:41:31]wFMCommunicate OK [09:41:31]wFMCommunicate request_size=255 [09:41:31]MH_SAM_APDU [09:41:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 1E 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BA 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 83 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 15 00 00 00 F4 03 04 00 E1 15 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 90 C0 00 00 35 04 06 00 DA [09:41:31]Write to MH i2c: E2 02 01 D7 90 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 1E 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BA 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 83 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 15 00 00 00 F4 03 04 00 E1 15 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 90 C0 00 00 35 04 06 00 DA 00 00 AD [09:41:31]Write i2c OK [09:41:31]MH_I2C_Read... [09:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:31]Read from MH i2c: E2 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 03 00 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 03 00 D7 90 00 90 00 DB [09:41:31]RAPDU: 90 00 [09:41:31]wFMCommunicate OK [09:41:31]wFMCommunicate request_size=10 [09:41:31]MH_SAM_APDU [09:41:31]CAPDU: 80 0D 02 02 05 A7 A7 DD 31 8B [09:41:31]Write to MH i2c: E2 0D 00 D8 90 80 0D 02 02 05 00 A7 A7 DD 31 8B 00 00 D3 [09:41:31]Write i2c OK [09:41:31]MH_I2C_Read... [09:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:31]Read from MH i2c: E2 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 03 00 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 03 00 D8 90 00 90 00 DC [09:41:31]RAPDU: 90 00 [09:41:31]wFMCommunicate OK [09:41:31]wFMCommunicate request_size=4 [09:41:31]MH_SAM_APDU [09:41:31]CAPDU: 80 0D 03 02 [09:41:31]Write to MH i2c: E2 08 00 D9 90 80 0D 03 02 00 00 00 00 E4 [09:41:31]Write i2c OK [09:41:31]MH_I2C_Read... [09:41:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:31]Read from MH i2c: E2 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 0B 00 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 0B 00 D9 90 00 23 F9 03 5D 0D 03 76 0D 90 00 F4 [09:41:31]RAPDU: 23 F9 03 5D 0D 03 76 0D 90 00 [09:41:31]wFMCommunicate OK [09:41:31]SAM_PROTO_SignData done [09:41:31]FM_MakeSignedData done [09:41:31]CreateOFDProtocolMessage [09:41:31]wFMCommunicate request_size=4 [09:41:31]MH_SAM_APDU [09:41:31]CAPDU: 80 11 00 00 [09:41:31]Write to MH i2c: E2 08 00 DA 90 80 11 00 00 00 00 00 00 E4 [09:41:31]Write i2c OK [09:41:31]MH_I2C_Read... [09:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:31]Read from MH i2c: E2 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 17 00 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: E2 17 00 DA 90 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 31 [09:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:41:31]wFMCommunicate OK [09:41:31]CreateOFDProtocolMessage done [09:41:31]OFDSenderStorePacket 49296 [09:41:31]StoreOFDPacket docnum=49296 [09:41:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 DD E4 07 01 F9 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 1E 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BA 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 83 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 15 00 00 00 F4 03 04 00 E1 15 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 90 C0 00 00 35 04 06 00 DA A7 A7 DD 31 8B 23 F9 03 5D 0D 03 76 0D [09:41:31]CheckFolder [09:41:31]dirname=/storage/ofd_packets [09:41:31]CheckFolder done [09:41:31]ProducePacketName [09:41:31]name=ofd_packets/00049296 [09:41:31]NVStorageSaveData ofd_packets/00049296 [09:41:31]File name is /storage/ofd_packets/00049296 [09:41:31]Write 301 bytes [09:41:31]NVStorageSaveData done [09:41:31]OFDSenderStorePacket done [09:41:31]KKMCreateOFDPacket done [09:41:31]NVStorageSaveData kkm_last_timestamp [09:41:31]File name is /storage/kkm_last_timestamp [09:41:31]Write 4 bytes [09:41:31]NVStorageSaveData done [09:41:31]ExternCall_PrintAddStr [09:41:31]wPrintStart [09:41:31]Write to MH i2c: 01 00 00 DB 90 6B [09:41:31]Write i2c OK [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: 01 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: 01 07 00 [09:41:31]MH_I2C_Read... [09:41:31]Read from MH i2c: 01 07 00 DB 90 00 00 00 00 00 FF 0F 80 [09:41:31]RasterBufferAndPrint [09:41:31]line Счет N : (1)216399 [09:41:31]line ИНН: 02508201610067 [09:41:31]line Контрольно-Кассовый Чек [09:41:31]line ПРОДАЖА [09:41:31]line ТРК (МРК, ГНК) : 22 [09:41:31]line Товар: 2710124130 [09:41:31]line Аи-92-К-5 [09:41:31]line 7.800 * 60.30 [09:41:31]line = 470.34 [09:41:31]line НДС 12% НСП 1% [09:41:31]line > о реализуемом товаре [09:41:31]line ОКРУГЛЕНИЕ: -0.34 [09:41:31]line ИТОГО: 470.00 [09:41:31]line Внесено: 470.00 [09:41:31]line СДАЧА: 0.00 [09:41:31]line НСП 1% : 4.16 [09:41:31]line НДС 12% : 49.95 [09:41:31]line Наличными: 470.00 [09:41:31]line Безнал.: 0.00 [09:41:31]line Место: АЗС № 102 "Партнер Нефть" [09:41:31]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:41:31]line СНО: Общий режим [09:41:31]line Чек 21 31.01.2024 09:41 [09:41:31]line Смена: 247 ФФД: 1.0 [09:41:31]line ЗНМ: 0300000040 [09:41:31]line РНМ: 0000000000092723 [09:41:31]line Версия ККМ: 001 [09:41:31]line ФМ: 0000000000875060 [09:41:31]line ФД: 49296 [09:41:31]line ФПД: 240413610684811 [09:41:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T094153&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49296&fm=240413610684811&tin=02508201610067®Number=0000000000092723&sum=47000 [09:41:31]OFD Sender: Processing packet 49296 [packets to send 12, broken 11] [09:41:31]ProducePacketName [09:41:31]name=ofd_packets/00049296 [09:41:31]OFD Sender: To server: pG, [09:41:31]CommunicateWithHost lk.salyk.kg:30040 [09:41:31]ConnectInit lk.salyk.kg [09:41:32]written 0, free lines is 4095 [09:41:32]Connected sock=10 [09:41:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 DD E4 07 01 F9 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 1E 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 BA 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 83 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 15 00 00 00 F4 03 04 00 E1 15 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 90 C0 00 00 35 04 06 00 DA A7 A7 DD 31 8B 23 F9 03 5D 0D 03 76 0D [09:41:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 F5 5A 47 00 E6 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 35 30 36 30 10 04 04 00 90 C0 00 00 F4 03 04 00 D4 C1 B9 65 B6 04 01 00 00 4F 7A CF 31 BD 0C 6A 99 [09:41:32]CommunicateWithHost err = 0 [09:41:32]CheckOFDResponse [09:41:32]1017 (14) - 77093643461234 [09:41:32]1041 (16) - 0000000000875060 [09:41:32]1040 (4) - 49296 [09:41:32]1012 (4) - 31.01.2024 03:43 [09:41:32]1206 (1) - 0 [09:41:32]OFD Sender: Remove packet 49296 [09:41:32]ProducePacketName [09:41:32]name=ofd_packets/00049296 [09:41:32]NVStorageDeleteData [09:41:32]Write to MH i2c: 01 00 00 06 91 97 [09:41:32]Write i2c OK [09:41:32]MH_I2C_Read... [09:41:32]Read from MH i2c: 01 [09:41:32]MH_I2C_Read... [09:41:32]Read from MH i2c: 01 07 00 [09:41:32]MH_I2C_Read... [09:41:32]Read from MH i2c: 01 07 00 06 91 00 00 00 00 00 EE 0C 98 [09:41:32]RasterBufferAndPrint [09:41:32]line [09:41:32]line [09:41:32]line [09:41:32]line [09:41:32]line [09:41:32]written 0, free lines is 3316 [09:41:32]MH_Cut [09:41:32]Write to MH i2c: D1 01 00 0D 91 01 70 [09:41:32]Write i2c OK [09:41:32]MH_I2C_Read... [09:41:32]Read from MH i2c: D1 [09:41:32]MH_I2C_Read... [09:41:32]Read from MH i2c: D1 01 00 [09:41:32]MH_I2C_Read... [09:41:32]Read from MH i2c: D1 01 00 0D 91 00 6F [09:41:32]Write to MH i2c: 01 00 00 0E 91 9F [09:41:32]Write i2c OK [09:41:32]MH_I2C_Read... [09:41:32]OFD Sender: No OFD packet to send [09:41:33]*** Cut start [09:41:33]*** Partial cut [09:41:33]*** CUTSNS_PIN = 1 [09:41:33]*** CUTSNS_PIN = 0 [09:41:33]*** Brake cut motor [09:41:33]Read from MH i2c: 01 [09:41:33]MH_I2C_Read... [09:41:33]*** Stop cut motor [09:41:33]*** Cut end [09:41:33]Read from MH i2c: 01 07 00 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: 01 07 00 0E 91 00 00 00 00 00 FF 0F B4 [09:41:33]process_action close_receipt done [09:41:33]requested_data is exist [09:41:33]produce_requested_data [09:41:33]requested_item fm.sn is exist - process it [09:41:33]wFMCommunicate request_size=4 [09:41:33]MH_SAM_APDU [09:41:33]CAPDU: 80 11 00 00 [09:41:33]Write to MH i2c: E2 08 00 0F 91 80 11 00 00 00 00 00 00 1A [09:41:33]Write i2c OK [09:41:33]MH_I2C_Read... [09:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:33]Read from MH i2c: E2 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: E2 17 00 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: E2 17 00 0F 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 67 [09:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:41:33]wFMCommunicate OK [09:41:33]requested_item fd.num is exist - process it [09:41:33]SAM_PROTO_GetFieldsCounters [09:41:33]wFMCommunicate request_size=4 [09:41:33]MH_SAM_APDU [09:41:33]CAPDU: 80 13 00 00 [09:41:33]Write to MH i2c: E2 08 00 10 91 80 13 00 00 00 00 00 00 1D [09:41:33]Write i2c OK [09:41:33]MH_I2C_Read... [09:41:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:33]Read from MH i2c: E2 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: E2 62 00 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: E2 62 00 10 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 90 C0 00 00 0E 04 04 00 F7 00 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 BC [09:41: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 90 C0 00 00 0E 04 04 00 F7 00 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 [09:41:33]wFMCommunicate OK [09:41:33]SAM_PROTO_GetFieldsCounters done [09:41:33]requested_item shift.num is exist - process it [09:41:33]requested_item shift.opened is exist - process it [09:41:33]req_shift_opened [09:41:33]FM_GetShiftState [09:41:33]SAM_PROTO_GetShiftState [09:41:33]wFMCommunicate request_size=4 [09:41:33]MH_SAM_APDU [09:41:33]CAPDU: 80 13 01 00 [09:41:33]Write to MH i2c: E2 08 00 11 91 80 13 01 00 00 00 00 00 1F [09:41:33]Write i2c OK [09:41:33]MH_I2C_Read... [09:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:33]Read from MH i2c: E2 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: E2 0E 00 [09:41:33]MH_I2C_Read... [09:41:33]Read from MH i2c: E2 0E 00 11 91 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 75 [09:41:33]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:41:33]wFMCommunicate OK [09:41:33]SAM_PROTO_GetShiftState done [09:41:33]FM_GetShiftState done [09:41:33]req_shift_opened done [09:41:33]requested_item shift.open_date is exist - process it [09:41:33]req_shift_open_date [09:41:33]req_shift_open_date done [09:41:33]produce_requested_data done [09:41:33]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49296,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [09:41:33]process_action_free close_receipt [09:41:33]json_value_free [09:41:33]json_value_free done [09:41:33]process_json_proto returns [09:41:33]Send response to host [09:41:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49296,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [09:41:33]free response buf [09:41:33]execute_script done [09:41:33]execute_script returns [09:41:33]free content buf [09:41:33]Sock 9.Close socket [09:41:33]Sock 9.Thread stoped [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:47]OFD Sender: No OFD packet to send [09:41:52]OFD Sender: No OFD packet to send [09:41:57]OFD Sender: No OFD packet to send [09:42:02]OFD Sender: No OFD packet to send [09:42:07]OFD Sender: No OFD packet to send [09:42:12]OFD Sender: No OFD packet to send [09:42:17]OFD Sender: No OFD packet to send [09:42:22]OFD Sender: No OFD packet to send [09:42:27]OFD Sender: No OFD packet to send [09:42:32]OFD Sender: No OFD packet to send [09:42:37]OFD Sender: No OFD packet to send [09:42:42]OFD Sender: No OFD packet to send [09:42:47]OFD Sender: No OFD packet to send [09:42:52]OFD Sender: No OFD packet to send [09:42:57]OFD Sender: No OFD packet to send [09:43:02]OFD Sender: No OFD packet to send [09:43:07]OFD Sender: No OFD packet to send [09:43:12]OFD Sender: No OFD packet to send [09:43:17]OFD Sender: No OFD packet to send [09:43:22]OFD Sender: No OFD packet to send [09:43:27]OFD Sender: No OFD packet to send [09:43:32]OFD Sender: No OFD packet to send [09:43:37]OFD Sender: No OFD packet to send [09:43:42]OFD Sender: No OFD packet to send [09:43:47]OFD Sender: No OFD packet to send [09:43:52]OFD Sender: No OFD packet to send [09:43:57]OFD Sender: No OFD packet to send [09:44:02]OFD Sender: No OFD packet to send [09:44:07]OFD Sender: No OFD packet to send [09:44:11]accept exits with 7 [09:44:11]New connection [09:44:11]New thread 3066813796 created [09:44:11]Thread 3066670436 joined [09:44:11]Waiting for new connection... [09:44:11] Sock 7.Parse request [09:44:11]Sock 7.Check first char [09:44:11]Sock 7.First char is OK [09:44:11]request: POST /json_proto HTTP/1.0 [09:44:11]Method: POST [09:44:11]URL: /json_proto [09:44:11]Method is POST - this is cgi request [09:44:11]url: /json_proto [09:44:11]query_string will be loaded in cgi processing [09:44:11]execute_cgi json_proto POST (null) [09:44:11]execute_cgi path=json_proto method=POST [09:44:11]POST find Content-Length [09:44:11]Host: 172.17.56.67:8080 [09:44:11]Content-Length: 677 [09:44:11]Content-Type: application/json [09:44:11] [09:44:11]POST finish read [09:44:11]Found Content-Length = 677 [09:44:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 7.470, "sum" : 450.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:11]execute_script... [09:44: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)216400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 7.470, "sum" : 450.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 450.00, "total" : 450.00, "payments": [ { "type": 0, "sum" : 450.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:11]POST & json_proto [09:44:11]process_json_proto [09:44:11]json parsed OK: [09:44:11]protocol is kg_v1.0 [09:44:11]action value=close_receipt [09:44:11]process_action close_receipt [09:44:11]cmd_close_receipt [09:44:11]MH_GetDate [09:44:11]Write to MH i2c: F0 00 00 12 91 92 [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: F0 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: F0 09 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: F0 09 00 12 91 00 82 16 BA 65 26 5D 9E 65 D8 [09:44:11]GetLastDocTimeStamp 1706694113 [09:44:11]current date 1706694274 [09:44:11]FM_GetShiftState [09:44:11]SAM_PROTO_GetShiftState [09:44:11]wFMCommunicate request_size=4 [09:44:11]MH_SAM_APDU [09:44:11]CAPDU: 80 13 01 00 [09:44:11]Write to MH i2c: E2 08 00 13 91 80 13 01 00 00 00 00 00 21 [09:44:11]Write i2c OK [09:44:11]MH_I2C_Read... [09:44:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:11]Read from MH i2c: E2 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 0E 00 [09:44:11]MH_I2C_Read... [09:44:11]Read from MH i2c: E2 0E 00 13 91 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 77 [09:44:11]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:44:11]wFMCommunicate OK [09:44:11]SAM_PROTO_GetShiftState done [09:44:11]FM_GetShiftState done [09:44:11]opened in 1706659486 [09:44:11]opened+sec_in_day 1706745886 [09:44:11]quantity*price = 45044 [09:44:11]sum+1 = 45045 [09:44:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.99 НДС 12% : 47.83 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 22 31.01.2024 09:44 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49297 ФПД: 68044496336986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T094434&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49297&fm=68044496336986&tin=02508201610067®Number=0000000000092723&sum=45000 [09:44:12]StoreToDocumentArchive [09:44:12]shift 247 fd 49297 [09:44:12]save to /storage/0247/doc_00049297 [09:44:12]save last doc name /storage/0247/doc_00049297 to /storage/kkm_last_doc_name [09:44:12]save OK [09:44:12]Clear old archive folders... [09:44:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:12]tlvbuf is 011F85E0 [09:44:12]SAM_PROTO_ClearQueue [09:44:12]wFMCommunicate request_size=4 [09:44:12]MH_SAM_APDU [09:44:12]CAPDU: 80 09 00 00 [09:44:12]Write to MH i2c: E2 08 00 20 91 80 09 00 00 00 00 00 00 23 [09:44:12]Write i2c OK [09:44:12]MH_I2C_Read... [09:44:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:12]Read from MH i2c: E2 [09:44:12]MH_I2C_Read... [09:44:12]Read from MH i2c: E2 03 00 [09:44:12]MH_I2C_Read... [09:44:12]Read from MH i2c: E2 03 00 20 91 00 90 00 25 [09:44:12]RAPDU: 90 00 [09:44:12]wFMCommunicate OK [09:44:12]SAM_PROTO_ClearQueue done [09:44:12]KKMCreateOFDPacket [09:44:12]OFDProtocolAddRootSTLVToBuf [09:44:12]FM_MakeSignedData [09:44:12]FM_MakeSignedData [09:44:12]SAM_PROTO_SignData [09:44:12]wFMCommunicate request_size=4 [09:44:12]MH_SAM_APDU [09:44:12]CAPDU: 80 0D 01 02 [09:44:12]Write to MH i2c: E2 08 00 21 91 80 0D 01 02 00 00 00 00 2B [09:44:12]Write i2c OK [09:44:12]MH_I2C_Read... [09:44:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:12]Read from MH i2c: E2 [09:44:12]MH_I2C_Read... [09:44:12]Read from MH i2c: E2 03 00 [09:44:12]MH_I2C_Read... [09:44:12]Read from MH i2c: E2 03 00 21 91 00 90 00 26 [09:44:12]RAPDU: 90 00 [09:44:12]wFMCommunicate OK [09:44:12]wFMCommunicate request_size=255 [09:44:12]MH_SAM_APDU [09:44:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F4 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 82 16 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 91 C0 00 00 35 04 06 00 3D [09:44:12]Write to MH i2c: E2 02 01 22 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F4 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 82 16 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 91 C0 00 00 35 04 06 00 3D 00 00 51 [09:44:12]Write i2c OK [09:44:12]MH_I2C_Read... [09:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:12]Read from MH i2c: E2 [09:44:12]MH_I2C_Read... [09:44:12]Read from MH i2c: E2 03 00 [09:44:12]MH_I2C_Read... [09:44:12]Read from MH i2c: E2 03 00 22 91 00 90 00 27 [09:44:12]RAPDU: 90 00 [09:44:12]wFMCommunicate OK [09:44:12]wFMCommunicate request_size=10 [09:44:12]MH_SAM_APDU [09:44:12]CAPDU: 80 0D 02 02 05 E2 D8 08 78 5A [09:44:12]Write to MH i2c: E2 0D 00 23 91 80 0D 02 02 05 00 E2 D8 08 78 5A 00 00 CC [09:44:12]Write i2c OK [09:44:12]MH_I2C_Read... [09:44:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:12]Read from MH i2c: E2 [09:44:12]MH_I2C_Read... [09:44:12]Read from MH i2c: E2 03 00 [09:44:12]MH_I2C_Read... [09:44:12]Read from MH i2c: E2 03 00 23 91 00 90 00 28 [09:44:12]RAPDU: 90 00 [09:44:12]wFMCommunicate OK [09:44:12]wFMCommunicate request_size=4 [09:44:12]MH_SAM_APDU [09:44:12]CAPDU: 80 0D 03 02 [09:44:12]Write to MH i2c: E2 08 00 24 91 80 0D 03 02 00 00 00 00 30 [09:44:12]Write i2c OK [09:44:12]MH_I2C_Read... [09:44:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:12]Read from MH i2c: E2 [09:44:12]MH_I2C_Read... [09:44:12]Read from MH i2c: E2 0B 00 [09:44:12]MH_I2C_Read... [09:44:12]Read from MH i2c: E2 0B 00 24 91 00 E3 A7 B8 32 90 B9 6F B6 90 00 13 [09:44:12]RAPDU: E3 A7 B8 32 90 B9 6F B6 90 00 [09:44:12]wFMCommunicate OK [09:44:12]SAM_PROTO_SignData done [09:44:12]FM_MakeSignedData done [09:44:12]CreateOFDProtocolMessage [09:44:12]wFMCommunicate request_size=4 [09:44:12]MH_SAM_APDU [09:44:12]CAPDU: 80 11 00 00 [09:44:12]Write to MH i2c: E2 08 00 25 91 80 11 00 00 00 00 00 00 30 [09:44:12]Write i2c OK [09:44:12]MH_I2C_Read... [09:44:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:12]Read from MH i2c: E2 [09:44:12]MH_I2C_Read... [09:44:12]Read from MH i2c: E2 17 00 [09:44:12]MH_I2C_Read... [09:44:12]Read from MH i2c: E2 17 00 25 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7D [09:44:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:44:12]wFMCommunicate OK [09:44:12]CreateOFDProtocolMessage done [09:44:12]OFDSenderStorePacket 49297 [09:44:12]StoreOFDPacket docnum=49297 [09:44:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 86 B9 07 01 C4 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F4 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 82 16 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 91 C0 00 00 35 04 06 00 3D E2 D8 08 78 5A E3 A7 B8 32 90 B9 6F B6 [09:44:12]CheckFolder [09:44:12]dirname=/storage/ofd_packets [09:44:12]CheckFolder done [09:44:12]ProducePacketName [09:44:12]name=ofd_packets/00049297 [09:44:12]NVStorageSaveData ofd_packets/00049297 [09:44:12]File name is /storage/ofd_packets/00049297 [09:44:12]Write 301 bytes [09:44:12]NVStorageSaveData done [09:44:12]OFDSenderStorePacket done [09:44:12]KKMCreateOFDPacket done [09:44:12]NVStorageSaveData kkm_last_timestamp [09:44:12]File name is /storage/kkm_last_timestamp [09:44:12]Write 4 bytes [09:44:12]NVStorageSaveData done [09:44:12]ExternCall_PrintAddStr [09:44:12]wPrintStart [09:44:12]Write to MH i2c: 01 00 00 26 91 B7 [09:44:12]Write i2c OK [09:44:12]MH_I2C_Read... [09:44:12]Read from MH i2c: 01 [09:44:12]MH_I2C_Read... [09:44:12]Read from MH i2c: 01 07 00 [09:44:12]MH_I2C_Read... [09:44:12]Read from MH i2c: 01 07 00 26 91 00 00 00 00 00 FF 0F CC [09:44:12]RasterBufferAndPrint [09:44:12]line Счет N : (1)216400 [09:44:12]line ИНН: 02508201610067 [09:44:12]line Контрольно-Кассовый Чек [09:44:12]line ПРОДАЖА [09:44:12]line ТРК (МРК, ГНК) : 22 [09:44:12]line Товар: 2710124130 [09:44:12]line Аи-92-К-5 [09:44:12]line 7.470 * 60.30 [09:44:12]line = 450.44 [09:44:12]line НДС 12% НСП 1% [09:44:12]line > о реализуемом товаре [09:44:12]line ОКРУГЛЕНИЕ: -0.44 [09:44:12]line ИТОГО: 450.00 [09:44:12]line Внесено: 450.00 [09:44:12]line СДАЧА: 0.00 [09:44:12]line НСП 1% : 3.99 [09:44:12]line НДС 12% : 47.83 [09:44:12]line Наличными: 450.00 [09:44:12]line Безнал.: 0.00 [09:44:12]line Место: АЗС № 102 "Партнер Нефть" [09:44:12]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:44:12]line СНО: Общий режим [09:44:12]line Чек 22 31.01.2024 09:44 [09:44:12]line Смена: 247 ФФД: 1.0 [09:44:12]line ЗНМ: 0300000040 [09:44:12]line РНМ: 0000000000092723 [09:44:12]line Версия ККМ: 001 [09:44:12]line ФМ: 0000000000875060 [09:44:12]line ФД: 49297 [09:44:12]line ФПД: 68044496336986 [09:44:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T094434&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49297&fm=68044496336986&tin=02508201610067®Number=0000000000092723&sum=45000 [09:44:13]OFD Sender: Processing packet 49297 [packets to send 12, broken 11] [09:44:13]ProducePacketName [09:44:13]name=ofd_packets/00049297 [09:44:13]OFD Sender: To server: pG, [09:44:13]CommunicateWithHost lk.salyk.kg:30040 [09:44:13]ConnectInit lk.salyk.kg [09:44:13]written 0, free lines is 4095 [09:44:13]Connected sock=10 [09:44:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 86 B9 07 01 C4 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 1D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F4 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 82 16 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 91 C0 00 00 35 04 06 00 3D E2 D8 08 78 5A E3 A7 B8 32 90 B9 6F B6 [09:44:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 C8 4C 47 00 A5 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 91 C0 00 00 F4 03 04 00 75 C2 B9 65 B6 04 01 00 00 02 F2 61 AF D5 BF 17 33 [09:44:13]CommunicateWithHost err = 0 [09:44:13]CheckOFDResponse [09:44:13]1017 (14) - 77093643461234 [09:44:13]1041 (16) - 0000000000875060 [09:44:13]1040 (4) - 49297 [09:44:13]1012 (4) - 31.01.2024 03:45 [09:44:13]1206 (1) - 0 [09:44:13]OFD Sender: Remove packet 49297 [09:44:13]ProducePacketName [09:44:13]name=ofd_packets/00049297 [09:44:13]NVStorageDeleteData [09:44:13]Write to MH i2c: 01 00 00 51 91 E2 [09:44:13]Write i2c OK [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: 01 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: 01 07 00 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: 01 07 00 51 91 00 00 00 00 00 F5 0C EA [09:44:13]RasterBufferAndPrint [09:44:13]line [09:44:13]line [09:44:13]line [09:44:13]line [09:44:13]line [09:44:13]written 0, free lines is 3327 [09:44:13]MH_Cut [09:44:13]Write to MH i2c: D1 01 00 58 91 01 BB [09:44:13]Write i2c OK [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: D1 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: D1 01 00 [09:44:13]MH_I2C_Read... [09:44:13]Read from MH i2c: D1 01 00 58 91 00 BA [09:44:13]Write to MH i2c: 01 00 00 59 91 EA [09:44:13]Write i2c OK [09:44:13]MH_I2C_Read... [09:44:14]OFD Sender: No OFD packet to send [09:44:14]*** Cut start [09:44:14]*** Partial cut [09:44:14]*** CUTSNS_PIN = 1 [09:44:14]*** CUTSNS_PIN = 0 [09:44:14]*** Brake cut motor [09:44:14]Read from MH i2c: 01 [09:44:14]MH_I2C_Read... [09:44:14]*** Stop cut motor [09:44:14]*** Cut end [09:44:14]Read from MH i2c: 01 07 00 [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: 01 07 00 59 91 00 00 00 00 00 FF 0F FF [09:44:14]process_action close_receipt done [09:44:14]requested_data is exist [09:44:14]produce_requested_data [09:44:14]requested_item fm.sn is exist - process it [09:44:14]wFMCommunicate request_size=4 [09:44:14]MH_SAM_APDU [09:44:14]CAPDU: 80 11 00 00 [09:44:14]Write to MH i2c: E2 08 00 5A 91 80 11 00 00 00 00 00 00 65 [09:44:14]Write i2c OK [09:44:14]MH_I2C_Read... [09:44:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:14]Read from MH i2c: E2 [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: E2 17 00 [09:44:14]MH_I2C_Read... [09:44:14]Read from MH i2c: E2 17 00 5A 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B2 [09:44:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:44:14]wFMCommunicate OK [09:44:14]requested_item fd.num is exist - process it [09:44:14]SAM_PROTO_GetFieldsCounters [09:44:14]wFMCommunicate request_size=4 [09:44:14]MH_SAM_APDU [09:44:14]CAPDU: 80 13 00 00 [09:44:14]Write to MH i2c: E2 08 00 5B 91 80 13 00 00 00 00 00 00 68 [09:44:14]Write i2c OK [09:44:14]MH_I2C_Read... [09:44:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:15]Read from MH i2c: E2 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 62 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 62 00 5B 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 91 C0 00 00 0E 04 04 00 F7 00 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 0B [09:44: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 91 C0 00 00 0E 04 04 00 F7 00 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 [09:44:15]wFMCommunicate OK [09:44:15]SAM_PROTO_GetFieldsCounters done [09:44:15]requested_item shift.num is exist - process it [09:44:15]requested_item shift.opened is exist - process it [09:44:15]req_shift_opened [09:44:15]FM_GetShiftState [09:44:15]SAM_PROTO_GetShiftState [09:44:15]wFMCommunicate request_size=4 [09:44:15]MH_SAM_APDU [09:44:15]CAPDU: 80 13 01 00 [09:44:15]Write to MH i2c: E2 08 00 5C 91 80 13 01 00 00 00 00 00 6A [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:15]Read from MH i2c: E2 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 0E 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 0E 00 5C 91 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 C0 [09:44:15]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:44:15]wFMCommunicate OK [09:44:15]SAM_PROTO_GetShiftState done [09:44:15]FM_GetShiftState done [09:44:15]req_shift_opened done [09:44:15]requested_item shift.open_date is exist - process it [09:44:15]req_shift_open_date [09:44:15]req_shift_open_date done [09:44:15]produce_requested_data done [09:44:15]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49297,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [09:44:15]process_action_free close_receipt [09:44:15]json_value_free [09:44:15]json_value_free done [09:44:15]process_json_proto returns [09:44:15]Send response to host [09:44:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49297,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [09:44:15]free response buf [09:44:15]execute_script done [09:44:15]execute_script returns [09:44:15]free content buf [09:44:15]Sock 7.Close socket [09:44:15]Sock 7.Thread stoped [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:59]OFD Sender: No OFD packet to send [09:50:04]OFD Sender: No OFD packet to send [09:50:09]OFD Sender: No OFD packet to send [09:50:14]OFD Sender: No OFD packet to send [09:50:19]OFD Sender: No OFD packet to send [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:44]OFD Sender: No OFD packet to send [09:51:49]OFD Sender: No OFD packet to send [09:51:54]accept exits with 9 [09:51:54]New connection [09:51:54]New thread 3066670436 created [09:51:54]Thread 3066813796 joined [09:51:54]Waiting for new connection... [09:51:54] Sock 9.Parse request [09:51:54]Sock 9.Check first char [09:51:54]Sock 9.First char is OK [09:51:54]request: POST /json_proto HTTP/1.0 [09:51:54]Method: POST [09:51:54]URL: /json_proto [09:51:54]Method is POST - this is cgi request [09:51:54]url: /json_proto [09:51:54]query_string will be loaded in cgi processing [09:51:54]execute_cgi json_proto POST (null) [09:51:54]execute_cgi path=json_proto method=POST [09:51:54]POST find Content-Length [09:51:54]Host: 172.17.56.67:8080 [09:51:54]Content-Length: 677 [09:51:54]Content-Type: application/json [09:51:54] [09:51:54]POST finish read [09:51:54]Found Content-Length = 677 [09:51:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:54]execute_script... [09:51: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)216401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:54]POST & json_proto [09:51:54]process_json_proto [09:51:54]json parsed OK: [09:51:54]protocol is kg_v1.0 [09:51:54]action value=close_receipt [09:51:54]process_action close_receipt [09:51:54]cmd_close_receipt [09:51:54]MH_GetDate [09:51:54]Write to MH i2c: F0 00 00 5D 91 DD [09:51:54]Write i2c OK [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: F0 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: F0 09 00 [09:51:54]MH_I2C_Read... [09:51:54]OFD Sender: No OFD packet to send [09:51:54]Read from MH i2c: F0 09 00 5D 91 00 51 18 BA 65 26 5D 9E 65 F4 [09:51:54]GetLastDocTimeStamp 1706694274 [09:51:54]current date 1706694737 [09:51:54]FM_GetShiftState [09:51:54]SAM_PROTO_GetShiftState [09:51:54]wFMCommunicate request_size=4 [09:51:54]MH_SAM_APDU [09:51:54]CAPDU: 80 13 01 00 [09:51:54]Write to MH i2c: E2 08 00 5E 91 80 13 01 00 00 00 00 00 6C [09:51:54]Write i2c OK [09:51:54]MH_I2C_Read... [09:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:54]Read from MH i2c: E2 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: E2 0E 00 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: E2 0E 00 5E 91 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 C2 [09:51:54]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:51:54]wFMCommunicate OK [09:51:54]SAM_PROTO_GetShiftState done [09:51:54]FM_GetShiftState done [09:51:54]opened in 1706659486 [09:51:54]opened+sec_in_day 1706745886 [09:51:54]quantity*price = 50049 [09:51:54]sum+1 = 50050 [09:51:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 23 31.01.2024 09:52 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49298 ФПД: 8516490369918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T095217&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49298&fm=8516490369918&tin=02508201610067®Number=0000000000092723&sum=50000 [09:51:55]StoreToDocumentArchive [09:51:55]shift 247 fd 49298 [09:51:55]save to /storage/0247/doc_00049298 [09:51:55]save last doc name /storage/0247/doc_00049298 to /storage/kkm_last_doc_name [09:51:55]save OK [09:51:55]Clear old archive folders... [09:51:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:55]tlvbuf is 011DD240 [09:51:55]SAM_PROTO_ClearQueue [09:51:55]wFMCommunicate request_size=4 [09:51:55]MH_SAM_APDU [09:51:55]CAPDU: 80 09 00 00 [09:51:55]Write to MH i2c: E2 08 00 6B 91 80 09 00 00 00 00 00 00 6E [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:55]Read from MH i2c: E2 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 03 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 03 00 6B 91 00 90 00 70 [09:51:55]RAPDU: 90 00 [09:51:55]wFMCommunicate OK [09:51:55]SAM_PROTO_ClearQueue done [09:51:55]KKMCreateOFDPacket [09:51:55]OFDProtocolAddRootSTLVToBuf [09:51:55]FM_MakeSignedData [09:51:55]FM_MakeSignedData [09:51:55]SAM_PROTO_SignData [09:51:55]wFMCommunicate request_size=4 [09:51:55]MH_SAM_APDU [09:51:55]CAPDU: 80 0D 01 02 [09:51:55]Write to MH i2c: E2 08 00 6C 91 80 0D 01 02 00 00 00 00 76 [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:55]Read from MH i2c: E2 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 03 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 03 00 6C 91 00 90 00 71 [09:51:55]RAPDU: 90 00 [09:51:55]wFMCommunicate OK [09:51:55]wFMCommunicate request_size=255 [09:51:55]MH_SAM_APDU [09:51:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 51 18 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 92 C0 00 00 35 04 06 00 07 [09:51:55]Write to MH i2c: E2 02 01 6D 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 51 18 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 92 C0 00 00 35 04 06 00 07 00 00 95 [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:55]Read from MH i2c: E2 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 03 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 03 00 6D 91 00 90 00 72 [09:51:55]RAPDU: 90 00 [09:51:55]wFMCommunicate OK [09:51:55]wFMCommunicate request_size=10 [09:51:55]MH_SAM_APDU [09:51:55]CAPDU: 80 0D 02 02 05 BE E6 62 1B 7E [09:51:55]Write to MH i2c: E2 0D 00 6E 91 80 0D 02 02 05 00 BE E6 62 1B 7E 00 00 22 [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:55]Read from MH i2c: E2 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 03 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 03 00 6E 91 00 90 00 73 [09:51:55]RAPDU: 90 00 [09:51:55]wFMCommunicate OK [09:51:55]wFMCommunicate request_size=4 [09:51:55]MH_SAM_APDU [09:51:55]CAPDU: 80 0D 03 02 [09:51:55]Write to MH i2c: E2 08 00 6F 91 80 0D 03 02 00 00 00 00 7B [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 0B 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 0B 00 6F 91 00 2D 82 31 F2 CE 04 9A A6 90 00 60 [09:51:56]RAPDU: 2D 82 31 F2 CE 04 9A A6 90 00 [09:51:56]wFMCommunicate OK [09:51:56]SAM_PROTO_SignData done [09:51:56]FM_MakeSignedData done [09:51:56]CreateOFDProtocolMessage [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 11 00 00 [09:51:56]Write to MH i2c: E2 08 00 70 91 80 11 00 00 00 00 00 00 7B [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 17 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 17 00 70 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C8 [09:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:51:56]wFMCommunicate OK [09:51:56]CreateOFDProtocolMessage done [09:51:56]OFDSenderStorePacket 49298 [09:51:56]StoreOFDPacket docnum=49298 [09:51:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FF 60 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 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 51 18 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 92 C0 00 00 35 04 06 00 07 BE E6 62 1B 7E 2D 82 31 F2 CE 04 9A A6 [09:51:56]CheckFolder [09:51:56]dirname=/storage/ofd_packets [09:51:56]CheckFolder done [09:51:56]ProducePacketName [09:51:56]name=ofd_packets/00049298 [09:51:56]NVStorageSaveData ofd_packets/00049298 [09:51:56]File name is /storage/ofd_packets/00049298 [09:51:56]Write 301 bytes [09:51:56]NVStorageSaveData done [09:51:56]OFDSenderStorePacket done [09:51:56]KKMCreateOFDPacket done [09:51:56]NVStorageSaveData kkm_last_timestamp [09:51:56]File name is /storage/kkm_last_timestamp [09:51:56]Write 4 bytes [09:51:56]NVStorageSaveData done [09:51:56]ExternCall_PrintAddStr [09:51:56]wPrintStart [09:51:56]Write to MH i2c: 01 00 00 71 91 02 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 07 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 07 00 71 91 00 00 00 00 00 FF 0F 17 [09:51:56]RasterBufferAndPrint [09:51:56]line Счет N : (1)216401 [09:51:56]line ИНН: 02508201610067 [09:51:56]line Контрольно-Кассовый Чек [09:51:56]line ПРОДАЖА [09:51:56]line ТРК (МРК, ГНК) : 22 [09:51:56]line Товар: 2710124130 [09:51:56]line Аи-92-К-5 [09:51:56]line 8.300 * 60.30 [09:51:56]line = 500.49 [09:51:56]line НДС 12% НСП 1% [09:51:56]line > о реализуемом товаре [09:51:56]line ОКРУГЛЕНИЕ: -0.49 [09:51:56]line ИТОГО: 500.00 [09:51:56]line Внесено: 500.00 [09:51:56]line СДАЧА: 0.00 [09:51:56]line НСП 1% : 4.43 [09:51:56]line НДС 12% : 53.15 [09:51:56]line Наличными: 500.00 [09:51:56]line Безнал.: 0.00 [09:51:56]line Место: АЗС № 102 "Партнер Нефть" [09:51:56]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:51:56]line СНО: Общий режим [09:51:56]line Чек 23 31.01.2024 09:52 [09:51:56]line Смена: 247 ФФД: 1.0 [09:51:56]line ЗНМ: 0300000040 [09:51:56]line РНМ: 0000000000092723 [09:51:56]line Версия ККМ: 001 [09:51:56]line ФМ: 0000000000875060 [09:51:56]line ФД: 49298 [09:51:56]line ФПД: 8516490369918 [09:51:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T095217&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49298&fm=8516490369918&tin=02508201610067®Number=0000000000092723&sum=50000 [09:51:56]OFD Sender: Processing packet 49298 [packets to send 12, broken 11] [09:51:56]ProducePacketName [09:51:56]name=ofd_packets/00049298 [09:51:56]OFD Sender: To server: pG, [09:51:56]CommunicateWithHost lk.salyk.kg:30040 [09:51:56]ConnectInit lk.salyk.kg [09:51:56]written 0, free lines is 4095 [09:51:56]Connected sock=10 [09:51:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 FF 60 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 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 51 18 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 92 C0 00 00 35 04 06 00 07 BE E6 62 1B 7E 2D 82 31 F2 CE 04 9A A6 [09:51:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 AD 9D 47 00 10 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 92 C0 00 00 F4 03 04 00 44 C4 B9 65 B6 04 01 00 00 40 EF 91 B4 8C F6 EF AF [09:51:56]CommunicateWithHost err = 0 [09:51:56]CheckOFDResponse [09:51:56]1017 (14) - 77093643461234 [09:51:56]1041 (16) - 0000000000875060 [09:51:56]1040 (4) - 49298 [09:51:56]1012 (4) - 31.01.2024 03:53 [09:51:56]1206 (1) - 0 [09:51:56]OFD Sender: Remove packet 49298 [09:51:56]ProducePacketName [09:51:56]name=ofd_packets/00049298 [09:51:56]NVStorageDeleteData [09:51:56]Write to MH i2c: 01 00 00 9C 91 2D [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 07 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 07 00 9C 91 00 00 00 00 00 F0 0C 30 [09:51:56]RasterBufferAndPrint [09:51:56]line [09:51:56]line [09:51:56]line [09:51:56]line [09:51:56]line [09:51:56]written 0, free lines is 3318 [09:51:56]MH_Cut [09:51:56]Write to MH i2c: D1 01 00 A3 91 01 06 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: D1 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: D1 01 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: D1 01 00 A3 91 00 05 [09:51:56]Write to MH i2c: 01 00 00 A4 91 35 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:57]OFD Sender: No OFD packet to send [09:51:57]*** Cut start [09:51:57]*** Partial cut [09:51:57]*** CUTSNS_PIN = 1 [09:51:57]*** CUTSNS_PIN = 0 [09:51:57]*** Brake cut motor [09:51:58]Read from MH i2c: 01 [09:51:58]MH_I2C_Read... [09:51:58]*** Stop cut motor [09:51:58]*** Cut end [09:51:58]Read from MH i2c: 01 07 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: 01 07 00 A4 91 00 00 00 00 00 FF 0F 4A [09:51:58]process_action close_receipt done [09:51:58]requested_data is exist [09:51:58]produce_requested_data [09:51:58]requested_item fm.sn is exist - process it [09:51:58]wFMCommunicate request_size=4 [09:51:58]MH_SAM_APDU [09:51:58]CAPDU: 80 11 00 00 [09:51:58]Write to MH i2c: E2 08 00 A5 91 80 11 00 00 00 00 00 00 B0 [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:58]Read from MH i2c: E2 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 17 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 17 00 A5 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FD [09:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:51:58]wFMCommunicate OK [09:51:58]requested_item fd.num is exist - process it [09:51:58]SAM_PROTO_GetFieldsCounters [09:51:58]wFMCommunicate request_size=4 [09:51:58]MH_SAM_APDU [09:51:58]CAPDU: 80 13 00 00 [09:51:58]Write to MH i2c: E2 08 00 A6 91 80 13 00 00 00 00 00 00 B3 [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:58]Read from MH i2c: E2 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 62 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 62 00 A6 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 92 C0 00 00 0E 04 04 00 F7 00 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 5A [09:51: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 92 C0 00 00 0E 04 04 00 F7 00 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:51:58]wFMCommunicate OK [09:51:58]SAM_PROTO_GetFieldsCounters done [09:51:58]requested_item shift.num is exist - process it [09:51:58]requested_item shift.opened is exist - process it [09:51:58]req_shift_opened [09:51:58]FM_GetShiftState [09:51:58]SAM_PROTO_GetShiftState [09:51:58]wFMCommunicate request_size=4 [09:51:58]MH_SAM_APDU [09:51:58]CAPDU: 80 13 01 00 [09:51:58]Write to MH i2c: E2 08 00 A7 91 80 13 01 00 00 00 00 00 B5 [09:51:58]Write i2c OK [09:51:58]MH_I2C_Read... [09:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:58]Read from MH i2c: E2 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 0E 00 [09:51:58]MH_I2C_Read... [09:51:58]Read from MH i2c: E2 0E 00 A7 91 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 0B [09:51:58]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:51:58]wFMCommunicate OK [09:51:58]SAM_PROTO_GetShiftState done [09:51:58]FM_GetShiftState done [09:51:58]req_shift_opened done [09:51:58]requested_item shift.open_date is exist - process it [09:51:58]req_shift_open_date [09:51:58]req_shift_open_date done [09:51:58]produce_requested_data done [09:51:58]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49298,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [09:51:58]process_action_free close_receipt [09:51:58]json_value_free [09:51:58]json_value_free done [09:51:58]process_json_proto returns [09:51:58]Send response to host [09:51:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49298,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [09:51:58]free response buf [09:51:58]execute_script done [09:51:58]execute_script returns [09:51:58]free content buf [09:51:58]Sock 9.Close socket [09:51:58]Sock 9.Thread stoped [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:21]accept exits with 7 [09:58:21]New connection [09:58:21]New thread 3066813796 created [09:58:21]Thread 3066670436 joined [09:58:21]Waiting for new connection... [09:58:21] Sock 7.Parse request [09:58:21]Sock 7.Check first char [09:58:21]Sock 7.First char is OK [09:58:21]request: POST /json_proto HTTP/1.0 [09:58:21]Method: POST [09:58:21]URL: /json_proto [09:58:21]Method is POST - this is cgi request [09:58:21]url: /json_proto [09:58:21]query_string will be loaded in cgi processing [09:58:21]execute_cgi json_proto POST (null) [09:58:21]execute_cgi path=json_proto method=POST [09:58:21]POST find Content-Length [09:58:21]Host: 172.17.56.67:8080 [09:58:21]Content-Length: 677 [09:58:21]Content-Type: application/json [09:58:21] [09:58:21]POST finish read [09:58:21]Found Content-Length = 677 [09:58:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "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:58:21]execute_script... [09:58: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)216402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "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:58:21]POST & json_proto [09:58:21]process_json_proto [09:58:21]json parsed OK: [09:58:21]protocol is kg_v1.0 [09:58:21]action value=close_receipt [09:58:21]process_action close_receipt [09:58:21]cmd_close_receipt [09:58:21]MH_GetDate [09:58:21]Write to MH i2c: F0 00 00 A8 91 28 [09:58:21]Write i2c OK [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: F0 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: F0 09 00 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: F0 09 00 A8 91 00 D4 19 BA 65 26 5D 9E 65 C3 [09:58:21]GetLastDocTimeStamp 1706694737 [09:58:21]current date 1706695124 [09:58:21]FM_GetShiftState [09:58:21]SAM_PROTO_GetShiftState [09:58:21]wFMCommunicate request_size=4 [09:58:21]MH_SAM_APDU [09:58:21]CAPDU: 80 13 01 00 [09:58:21]Write to MH i2c: E2 08 00 A9 91 80 13 01 00 00 00 00 00 B7 [09:58:21]Write i2c OK [09:58:21]MH_I2C_Read... [09:58:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:21]Read from MH i2c: E2 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: E2 0E 00 [09:58:21]MH_I2C_Read... [09:58:21]Read from MH i2c: E2 0E 00 A9 91 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 0D [09:58:21]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:58:21]wFMCommunicate OK [09:58:21]SAM_PROTO_GetShiftState done [09:58:21]FM_GetShiftState done [09:58:21]opened in 1706659486 [09:58:21]opened+sec_in_day 1706745886 [09:58:21]quantity*price = 40039 [09:58:21]sum+1 = 40040 [09:58:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 24 31.01.2024 09:58 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49299 ФПД: 9485599501468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T095844&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49299&fm=9485599501468&tin=02508201610067®Number=0000000000092723&sum=40000 [09:58:22]StoreToDocumentArchive [09:58:22]shift 247 fd 49299 [09:58:22]save to /storage/0247/doc_00049299 [09:58:22]save last doc name /storage/0247/doc_00049299 to /storage/kkm_last_doc_name [09:58:22]save OK [09:58:22]Clear old archive folders... [09:58:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:58:22]tlvbuf is 01384890 [09:58:22]SAM_PROTO_ClearQueue [09:58:22]wFMCommunicate request_size=4 [09:58:22]MH_SAM_APDU [09:58:22]CAPDU: 80 09 00 00 [09:58:22]Write to MH i2c: E2 08 00 B6 91 80 09 00 00 00 00 00 00 B9 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:22]Read from MH i2c: E2 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 03 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 03 00 B6 91 00 90 00 BB [09:58:22]RAPDU: 90 00 [09:58:22]wFMCommunicate OK [09:58:22]SAM_PROTO_ClearQueue done [09:58:22]KKMCreateOFDPacket [09:58:22]OFDProtocolAddRootSTLVToBuf [09:58:22]FM_MakeSignedData [09:58:22]FM_MakeSignedData [09:58:22]SAM_PROTO_SignData [09:58:22]wFMCommunicate request_size=4 [09:58:22]MH_SAM_APDU [09:58:22]CAPDU: 80 0D 01 02 [09:58:22]Write to MH i2c: E2 08 00 B7 91 80 0D 01 02 00 00 00 00 C1 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:22]Read from MH i2c: E2 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 03 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 03 00 B7 91 00 90 00 BC [09:58:22]RAPDU: 90 00 [09:58:22]wFMCommunicate OK [09:58:22]wFMCommunicate request_size=255 [09:58:22]MH_SAM_APDU [09:58:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 18 00 00 00 F4 03 04 00 D4 19 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 93 C0 00 00 35 04 06 00 08 [09:58:22]Write to MH i2c: E2 02 01 B8 91 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 18 00 00 00 F4 03 04 00 D4 19 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 93 C0 00 00 35 04 06 00 08 00 00 B1 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]OFD Sender: No OFD packet to send [09:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:22]Read from MH i2c: E2 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 03 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 03 00 B8 91 00 90 00 BD [09:58:22]RAPDU: 90 00 [09:58:22]wFMCommunicate OK [09:58:22]wFMCommunicate request_size=10 [09:58:22]MH_SAM_APDU [09:58:22]CAPDU: 80 0D 02 02 05 A0 89 C9 EC 9C [09:58:22]Write to MH i2c: E2 0D 00 B9 91 80 0D 02 02 05 00 A0 89 C9 EC 9C 00 00 48 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:22]Read from MH i2c: E2 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 03 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 03 00 B9 91 00 90 00 BE [09:58:22]RAPDU: 90 00 [09:58:22]wFMCommunicate OK [09:58:22]wFMCommunicate request_size=4 [09:58:22]MH_SAM_APDU [09:58:22]CAPDU: 80 0D 03 02 [09:58:22]Write to MH i2c: E2 08 00 BA 91 80 0D 03 02 00 00 00 00 C6 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:22]Read from MH i2c: E2 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 0B 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 0B 00 BA 91 00 EC A4 6E 03 A4 29 60 8D 90 00 82 [09:58:22]RAPDU: EC A4 6E 03 A4 29 60 8D 90 00 [09:58:22]wFMCommunicate OK [09:58:22]SAM_PROTO_SignData done [09:58:22]FM_MakeSignedData done [09:58:22]CreateOFDProtocolMessage [09:58:22]wFMCommunicate request_size=4 [09:58:22]MH_SAM_APDU [09:58:22]CAPDU: 80 11 00 00 [09:58:22]Write to MH i2c: E2 08 00 BB 91 80 11 00 00 00 00 00 00 C6 [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:22]Read from MH i2c: E2 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 17 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: E2 17 00 BB 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 13 [09:58:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:58:22]wFMCommunicate OK [09:58:22]CreateOFDProtocolMessage done [09:58:22]OFDSenderStorePacket 49299 [09:58:22]StoreOFDPacket docnum=49299 [09:58:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6B 89 07 01 54 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 18 00 00 00 F4 03 04 00 D4 19 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 93 C0 00 00 35 04 06 00 08 A0 89 C9 EC 9C EC A4 6E 03 A4 29 60 8D [09:58:22]CheckFolder [09:58:22]dirname=/storage/ofd_packets [09:58:22]CheckFolder done [09:58:22]ProducePacketName [09:58:22]name=ofd_packets/00049299 [09:58:22]NVStorageSaveData ofd_packets/00049299 [09:58:22]File name is /storage/ofd_packets/00049299 [09:58:22]Write 301 bytes [09:58:22]NVStorageSaveData done [09:58:22]OFDSenderStorePacket done [09:58:22]KKMCreateOFDPacket done [09:58:22]NVStorageSaveData kkm_last_timestamp [09:58:22]File name is /storage/kkm_last_timestamp [09:58:22]Write 4 bytes [09:58:22]NVStorageSaveData done [09:58:22]ExternCall_PrintAddStr [09:58:22]wPrintStart [09:58:22]Write to MH i2c: 01 00 00 BC 91 4D [09:58:22]Write i2c OK [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: 01 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: 01 07 00 [09:58:22]MH_I2C_Read... [09:58:22]Read from MH i2c: 01 07 00 BC 91 00 00 00 00 00 FF 0F 62 [09:58:22]RasterBufferAndPrint [09:58:22]line Счет N : (1)216402 [09:58:22]line ИНН: 02508201610067 [09:58:22]line Контрольно-Кассовый Чек [09:58:22]line ПРОДАЖА [09:58:22]line ТРК (МРК, ГНК) : 22 [09:58:22]line Товар: 2710124130 [09:58:22]line Аи-92-К-5 [09:58:22]line 6.640 * 60.30 [09:58:22]line = 400.39 [09:58:22]line НДС 12% НСП 1% [09:58:22]line > о реализуемом товаре [09:58:22]line ОКРУГЛЕНИЕ: -0.39 [09:58:22]line ИТОГО: 400.00 [09:58:22]line Внесено: 400.00 [09:58:22]line СДАЧА: 0.00 [09:58:22]line НСП 1% : 3.54 [09:58:22]line НДС 12% : 42.52 [09:58:22]line Наличными: 400.00 [09:58:22]line Безнал.: 0.00 [09:58:22]line Место: АЗС № 102 "Партнер Нефть" [09:58:22]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:58:22]line СНО: Общий режим [09:58:22]line Чек 24 31.01.2024 09:58 [09:58:22]line Смена: 247 ФФД: 1.0 [09:58:22]line ЗНМ: 0300000040 [09:58:22]line РНМ: 0000000000092723 [09:58:22]line Версия ККМ: 001 [09:58:22]line ФМ: 0000000000875060 [09:58:22]line ФД: 49299 [09:58:22]line ФПД: 9485599501468 [09:58:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T095844&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49299&fm=9485599501468&tin=02508201610067®Number=0000000000092723&sum=40000 [09:58:23]OFD Sender: Processing packet 49299 [packets to send 12, broken 11] [09:58:23]ProducePacketName [09:58:23]name=ofd_packets/00049299 [09:58:23]OFD Sender: To server: pG, [09:58:23]CommunicateWithHost lk.salyk.kg:30040 [09:58:23]ConnectInit lk.salyk.kg [09:58:23]written 0, free lines is 4095 [09:58:23]Connected sock=9 [09:58:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6B 89 07 01 54 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 18 00 00 00 F4 03 04 00 D4 19 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 93 C0 00 00 35 04 06 00 08 A0 89 C9 EC 9C EC A4 6E 03 A4 29 60 8D [09:58:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 E1 1B 47 00 1B E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 93 C0 00 00 F4 03 04 00 C7 C5 B9 65 B6 04 01 00 00 52 40 2A D3 20 83 18 A2 [09:58:23]CommunicateWithHost err = 0 [09:58:23]CheckOFDResponse [09:58:23]1017 (14) - 77093643461234 [09:58:23]1041 (16) - 0000000000875060 [09:58:23]1040 (4) - 49299 [09:58:23]1012 (4) - 31.01.2024 04:00 [09:58:23]1206 (1) - 0 [09:58:23]OFD Sender: Remove packet 49299 [09:58:23]ProducePacketName [09:58:23]name=ofd_packets/00049299 [09:58:23]NVStorageDeleteData [09:58:23]Write to MH i2c: 01 00 00 E7 91 78 [09:58:23]Write i2c OK [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: 01 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: 01 07 00 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: 01 07 00 E7 91 00 00 00 00 00 0F 0D 9B [09:58:23]RasterBufferAndPrint [09:58:23]line [09:58:23]line [09:58:23]line [09:58:23]line [09:58:23]line [09:58:23]written 0, free lines is 3349 [09:58:23]MH_Cut [09:58:23]Write to MH i2c: D1 01 00 EE 91 01 51 [09:58:23]Write i2c OK [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: D1 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: D1 01 00 [09:58:23]MH_I2C_Read... [09:58:23]Read from MH i2c: D1 01 00 EE 91 00 50 [09:58:23]Write to MH i2c: 01 00 00 EF 91 80 [09:58:23]Write i2c OK [09:58:23]MH_I2C_Read... [09:58:24]OFD Sender: No OFD packet to send [09:58:24]*** Cut start [09:58:24]*** Partial cut [09:58:24]*** CUTSNS_PIN = 1 [09:58:24]*** CUTSNS_PIN = 0 [09:58:24]*** Brake cut motor [09:58:24]Read from MH i2c: 01 [09:58:24]MH_I2C_Read... [09:58:24]*** Stop cut motor [09:58:24]*** Cut end [09:58:24]Read from MH i2c: 01 07 00 [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: 01 07 00 EF 91 00 00 00 00 00 FF 0F 95 [09:58:24]process_action close_receipt done [09:58:24]requested_data is exist [09:58:24]produce_requested_data [09:58:24]requested_item fm.sn is exist - process it [09:58:24]wFMCommunicate request_size=4 [09:58:24]MH_SAM_APDU [09:58:24]CAPDU: 80 11 00 00 [09:58:24]Write to MH i2c: E2 08 00 F0 91 80 11 00 00 00 00 00 00 FB [09:58:24]Write i2c OK [09:58:24]MH_I2C_Read... [09:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:24]Read from MH i2c: E2 [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: E2 17 00 [09:58:24]MH_I2C_Read... [09:58:24]Read from MH i2c: E2 17 00 F0 91 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 48 [09:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:58:24]wFMCommunicate OK [09:58:24]requested_item fd.num is exist - process it [09:58:24]SAM_PROTO_GetFieldsCounters [09:58:24]wFMCommunicate request_size=4 [09:58:24]MH_SAM_APDU [09:58:24]CAPDU: 80 13 00 00 [09:58:24]Write to MH i2c: E2 08 00 F1 91 80 13 00 00 00 00 00 00 FE [09:58:24]Write i2c OK [09:58:24]MH_I2C_Read... [09:58:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:25]Read from MH i2c: E2 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 62 00 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 62 00 F1 91 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 93 C0 00 00 0E 04 04 00 F7 00 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 A9 [09:58: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 93 C0 00 00 0E 04 04 00 F7 00 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:58:25]wFMCommunicate OK [09:58:25]SAM_PROTO_GetFieldsCounters done [09:58:25]requested_item shift.num is exist - process it [09:58:25]requested_item shift.opened is exist - process it [09:58:25]req_shift_opened [09:58:25]FM_GetShiftState [09:58:25]SAM_PROTO_GetShiftState [09:58:25]wFMCommunicate request_size=4 [09:58:25]MH_SAM_APDU [09:58:25]CAPDU: 80 13 01 00 [09:58:25]Write to MH i2c: E2 08 00 F2 91 80 13 01 00 00 00 00 00 00 [09:58:25]Write i2c OK [09:58:25]MH_I2C_Read... [09:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:25]Read from MH i2c: E2 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 0E 00 [09:58:25]MH_I2C_Read... [09:58:25]Read from MH i2c: E2 0E 00 F2 91 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 56 [09:58:25]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [09:58:25]wFMCommunicate OK [09:58:25]SAM_PROTO_GetShiftState done [09:58:25]FM_GetShiftState done [09:58:25]req_shift_opened done [09:58:25]requested_item shift.open_date is exist - process it [09:58:25]req_shift_open_date [09:58:25]req_shift_open_date done [09:58:25]produce_requested_data done [09:58:25]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49299,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [09:58:25]process_action_free close_receipt [09:58:25]json_value_free [09:58:25]json_value_free done [09:58:25]process_json_proto returns [09:58:25]Send response to host [09:58:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49299,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [09:58:25]free response buf [09:58:25]execute_script done [09:58:25]execute_script returns [09:58:25]free content buf [09:58:25]Sock 7.Close socket [09:58:25]Sock 7.Thread stoped [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:36]accept exits with 10 [10:00:36]New connection [10:00:36]New thread 3066670436 created [10:00:36]Thread 3066813796 joined [10:00:36]Waiting for new connection... [10:00:36] Sock 10.Parse request [10:00:36]Sock 10.Check first char [10:00:36]Sock 10.First char is OK [10:00:36]request: POST /json_proto HTTP/1.0 [10:00:36]Method: POST [10:00:36]URL: /json_proto [10:00:36]Method is POST - this is cgi request [10:00:36]url: /json_proto [10:00:36]query_string will be loaded in cgi processing [10:00:36]execute_cgi json_proto POST (null) [10:00:36]execute_cgi path=json_proto method=POST [10:00:36]POST find Content-Length [10:00:36]Host: 172.17.56.67:8080 [10:00:36]Content-Length: 677 [10:00:36]Content-Type: application/json [10:00:36] [10:00:36]POST finish read [10:00:36]Found Content-Length = 677 [10:00:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "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:00:36]execute_script... [10:00: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)216403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "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:00:36]POST & json_proto [10:00:36]process_json_proto [10:00:36]json parsed OK: [10:00:36]protocol is kg_v1.0 [10:00:36]action value=close_receipt [10:00:36]process_action close_receipt [10:00:36]cmd_close_receipt [10:00:36]MH_GetDate [10:00:36]Write to MH i2c: F0 00 00 F3 91 73 [10:00:36]Write i2c OK [10:00:36]MH_I2C_Read... [10:00:36]Read from MH i2c: F0 [10:00:36]MH_I2C_Read... [10:00:36]Read from MH i2c: F0 09 00 [10:00:36]MH_I2C_Read... [10:00:36]Read from MH i2c: F0 09 00 F3 91 00 5C 1A BA 65 26 5D 9E 65 97 [10:00:36]GetLastDocTimeStamp 1706695124 [10:00:36]current date 1706695260 [10:00:36]FM_GetShiftState [10:00:36]SAM_PROTO_GetShiftState [10:00:36]wFMCommunicate request_size=4 [10:00:36]MH_SAM_APDU [10:00:36]CAPDU: 80 13 01 00 [10:00:36]Write to MH i2c: E2 08 00 F4 91 80 13 01 00 00 00 00 00 02 [10:00:36]Write i2c OK [10:00:36]MH_I2C_Read... [10:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:36]Read from MH i2c: E2 [10:00:36]MH_I2C_Read... [10:00:36]Read from MH i2c: E2 0E 00 [10:00:36]MH_I2C_Read... [10:00:36]Read from MH i2c: E2 0E 00 F4 91 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 58 [10:00:36]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:00:36]wFMCommunicate OK [10:00:36]SAM_PROTO_GetShiftState done [10:00:36]FM_GetShiftState done [10:00:36]opened in 1706659486 [10:00:36]opened+sec_in_day 1706745886 [10:00:36]quantity*price = 40039 [10:00:36]sum+1 = 40040 [10:00:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 25 31.01.2024 10:01 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49300 ФПД: 80415183018669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T100100&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49300&fm=80415183018669&tin=02508201610067®Number=0000000000092723&sum=40000 [10:00:37]StoreToDocumentArchive [10:00:37]shift 247 fd 49300 [10:00:37]save to /storage/0247/doc_00049300 [10:00:37]save last doc name /storage/0247/doc_00049300 to /storage/kkm_last_doc_name [10:00:37]save OK [10:00:37]Clear old archive folders... [10:00:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:37]tlvbuf is 011E9C80 [10:00:37]SAM_PROTO_ClearQueue [10:00:37]wFMCommunicate request_size=4 [10:00:37]MH_SAM_APDU [10:00:37]CAPDU: 80 09 00 00 [10:00:37]Write to MH i2c: E2 08 00 01 92 80 09 00 00 00 00 00 00 05 [10:00:37]Write i2c OK [10:00:37]MH_I2C_Read... [10:00:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:38]Read from MH i2c: E2 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 03 00 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 03 00 01 92 00 90 00 07 [10:00:38]RAPDU: 90 00 [10:00:38]wFMCommunicate OK [10:00:38]SAM_PROTO_ClearQueue done [10:00:38]KKMCreateOFDPacket [10:00:38]OFDProtocolAddRootSTLVToBuf [10:00:38]FM_MakeSignedData [10:00:38]FM_MakeSignedData [10:00:38]SAM_PROTO_SignData [10:00:38]wFMCommunicate request_size=4 [10:00:38]MH_SAM_APDU [10:00:38]CAPDU: 80 0D 01 02 [10:00:38]Write to MH i2c: E2 08 00 02 92 80 0D 01 02 00 00 00 00 0D [10:00:38]Write i2c OK [10:00:38]MH_I2C_Read... [10:00:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:38]Read from MH i2c: E2 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 03 00 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 03 00 02 92 00 90 00 08 [10:00:38]RAPDU: 90 00 [10:00:38]wFMCommunicate OK [10:00:38]wFMCommunicate request_size=255 [10:00:38]MH_SAM_APDU [10:00:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 19 00 00 00 F4 03 04 00 5C 1A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 94 C0 00 00 35 04 06 00 49 [10:00:38]Write to MH i2c: E2 02 01 03 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 19 00 00 00 F4 03 04 00 5C 1A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 94 C0 00 00 35 04 06 00 49 00 00 C9 [10:00:38]Write i2c OK [10:00:38]MH_I2C_Read... [10:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:38]Read from MH i2c: E2 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 03 00 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 03 00 03 92 00 90 00 09 [10:00:38]RAPDU: 90 00 [10:00:38]wFMCommunicate OK [10:00:38]wFMCommunicate request_size=10 [10:00:38]MH_SAM_APDU [10:00:38]CAPDU: 80 0D 02 02 05 23 1E 6B 1A AD [10:00:38]Write to MH i2c: E2 0D 00 04 92 80 0D 02 02 05 00 23 1E 6B 1A AD 00 00 8D [10:00:38]Write i2c OK [10:00:38]MH_I2C_Read... [10:00:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:38]Read from MH i2c: E2 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 03 00 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 03 00 04 92 00 90 00 0A [10:00:38]RAPDU: 90 00 [10:00:38]wFMCommunicate OK [10:00:38]wFMCommunicate request_size=4 [10:00:38]MH_SAM_APDU [10:00:38]CAPDU: 80 0D 03 02 [10:00:38]Write to MH i2c: E2 08 00 05 92 80 0D 03 02 00 00 00 00 12 [10:00:38]Write i2c OK [10:00:38]MH_I2C_Read... [10:00:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:38]Read from MH i2c: E2 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 0B 00 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 0B 00 05 92 00 3E F9 A6 53 BC 9D 7C 15 90 00 2D [10:00:38]RAPDU: 3E F9 A6 53 BC 9D 7C 15 90 00 [10:00:38]wFMCommunicate OK [10:00:38]SAM_PROTO_SignData done [10:00:38]FM_MakeSignedData done [10:00:38]CreateOFDProtocolMessage [10:00:38]wFMCommunicate request_size=4 [10:00:38]MH_SAM_APDU [10:00:38]CAPDU: 80 11 00 00 [10:00:38]Write to MH i2c: E2 08 00 06 92 80 11 00 00 00 00 00 00 12 [10:00:38]Write i2c OK [10:00:38]MH_I2C_Read... [10:00:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:38]Read from MH i2c: E2 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 17 00 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: E2 17 00 06 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5F [10:00:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:00:38]wFMCommunicate OK [10:00:38]CreateOFDProtocolMessage done [10:00:38]OFDSenderStorePacket 49300 [10:00:38]StoreOFDPacket docnum=49300 [10:00:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 1F 31 07 01 24 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 19 00 00 00 F4 03 04 00 5C 1A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 94 C0 00 00 35 04 06 00 49 23 1E 6B 1A AD 3E F9 A6 53 BC 9D 7C 15 [10:00:38]CheckFolder [10:00:38]dirname=/storage/ofd_packets [10:00:38]CheckFolder done [10:00:38]ProducePacketName [10:00:38]name=ofd_packets/00049300 [10:00:38]NVStorageSaveData ofd_packets/00049300 [10:00:38]File name is /storage/ofd_packets/00049300 [10:00:38]Write 301 bytes [10:00:38]NVStorageSaveData done [10:00:38]OFDSenderStorePacket done [10:00:38]KKMCreateOFDPacket done [10:00:38]NVStorageSaveData kkm_last_timestamp [10:00:38]File name is /storage/kkm_last_timestamp [10:00:38]Write 4 bytes [10:00:38]NVStorageSaveData done [10:00:38]ExternCall_PrintAddStr [10:00:38]wPrintStart [10:00:38]Write to MH i2c: 01 00 00 07 92 99 [10:00:38]Write i2c OK [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: 01 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: 01 07 00 [10:00:38]MH_I2C_Read... [10:00:38]Read from MH i2c: 01 07 00 07 92 00 00 00 00 00 FF 0F AE [10:00:38]RasterBufferAndPrint [10:00:38]line Счет N : (1)216403 [10:00:38]line ИНН: 02508201610067 [10:00:38]line Контрольно-Кассовый Чек [10:00:38]line ПРОДАЖА [10:00:38]line ТРК (МРК, ГНК) : 12 [10:00:38]line Товар: 2710124130 [10:00:38]line Аи-92-К-5 [10:00:38]line 6.640 * 60.30 [10:00:38]line = 400.39 [10:00:38]line НДС 12% НСП 1% [10:00:38]line > о реализуемом товаре [10:00:38]line ОКРУГЛЕНИЕ: -0.39 [10:00:38]line ИТОГО: 400.00 [10:00:38]line Внесено: 400.00 [10:00:38]line СДАЧА: 0.00 [10:00:38]line НСП 1% : 3.54 [10:00:38]line НДС 12% : 42.52 [10:00:38]line Наличными: 400.00 [10:00:38]line Безнал.: 0.00 [10:00:38]line Место: АЗС № 102 "Партнер Нефть" [10:00:38]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:00:38]line СНО: Общий режим [10:00:38]line Чек 25 31.01.2024 10:01 [10:00:38]line Смена: 247 ФФД: 1.0 [10:00:38]line ЗНМ: 0300000040 [10:00:38]line РНМ: 0000000000092723 [10:00:38]line Версия ККМ: 001 [10:00:38]line ФМ: 0000000000875060 [10:00:38]line ФД: 49300 [10:00:38]line ФПД: 80415183018669 [10:00:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T100100&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49300&fm=80415183018669&tin=02508201610067®Number=0000000000092723&sum=40000 [10:00:38]written 0, free lines is 4095 [10:00:38]OFD Sender: Processing packet 49300 [packets to send 12, broken 11] [10:00:38]ProducePacketName [10:00:38]name=ofd_packets/00049300 [10:00:38]OFD Sender: To server: pG, [10:00:38]CommunicateWithHost lk.salyk.kg:30040 [10:00:38]ConnectInit lk.salyk.kg [10:00:38]Connected sock=11 [10:00:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 1F 31 07 01 24 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 19 00 00 00 F4 03 04 00 5C 1A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 94 C0 00 00 35 04 06 00 49 23 1E 6B 1A AD 3E F9 A6 53 BC 9D 7C 15 [10:00:39]Write to MH i2c: 01 00 00 32 92 C4 [10:00:39]Write i2c OK [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: 01 [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: 01 07 00 [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: 01 07 00 32 92 00 00 00 00 00 FA 0C D1 [10:00:39]RasterBufferAndPrint [10:00:39]line [10:00:39]line [10:00:39]line [10:00:39]line [10:00:39]line [10:00:39]written 0, free lines is 3328 [10:00:39]MH_Cut [10:00:39]Write to MH i2c: D1 01 00 39 92 01 9D [10:00:39]Write i2c OK [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: D1 [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: D1 01 00 [10:00:39]MH_I2C_Read... [10:00:39]Read from MH i2c: D1 01 00 39 92 00 9C [10:00:39]Write to MH i2c: 01 00 00 3A 92 CC [10:00:39]Write i2c OK [10:00:39]MH_I2C_Read... [10:00:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 DB D4 47 00 C3 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 35 30 36 30 10 04 04 00 94 C0 00 00 F4 03 04 00 4F C6 B9 65 B6 04 01 00 00 41 59 86 56 F6 D7 33 F5 [10:00:39]CommunicateWithHost err = 0 [10:00:39]CheckOFDResponse [10:00:39]1017 (14) - 77093643461234 [10:00:39]1041 (16) - 0000000000875060 [10:00:39]1040 (4) - 49300 [10:00:39]1012 (4) - 31.01.2024 04:02 [10:00:39]1206 (1) - 0 [10:00:39]OFD Sender: Remove packet 49300 [10:00:39]ProducePacketName [10:00:39]name=ofd_packets/00049300 [10:00:39]NVStorageDeleteData [10:00:39]OFD Sender: No OFD packet to send [10:00:39]*** Cut start [10:00:39]*** Partial cut [10:00:39]*** CUTSNS_PIN = 1 [10:00:39]*** CUTSNS_PIN = 0 [10:00:39]*** Brake cut motor [10:00:40]Read from MH i2c: 01 [10:00:40]MH_I2C_Read... [10:00:40]*** Stop cut motor [10:00:40]*** Cut end [10:00:40]Read from MH i2c: 01 07 00 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: 01 07 00 3A 92 00 00 00 00 00 FF 0F E1 [10:00:40]process_action close_receipt done [10:00:40]requested_data is exist [10:00:40]produce_requested_data [10:00:40]requested_item fm.sn is exist - process it [10:00:40]wFMCommunicate request_size=4 [10:00:40]MH_SAM_APDU [10:00:40]CAPDU: 80 11 00 00 [10:00:40]Write to MH i2c: E2 08 00 3B 92 80 11 00 00 00 00 00 00 47 [10:00:40]Write i2c OK [10:00:40]MH_I2C_Read... [10:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:40]Read from MH i2c: E2 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 17 00 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 17 00 3B 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 94 [10:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:00:40]wFMCommunicate OK [10:00:40]requested_item fd.num is exist - process it [10:00:40]SAM_PROTO_GetFieldsCounters [10:00:40]wFMCommunicate request_size=4 [10:00:40]MH_SAM_APDU [10:00:40]CAPDU: 80 13 00 00 [10:00:40]Write to MH i2c: E2 08 00 3C 92 80 13 00 00 00 00 00 00 4A [10:00:40]Write i2c OK [10:00:40]MH_I2C_Read... [10:00:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:40]Read from MH i2c: E2 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 62 00 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 62 00 3C 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 94 C0 00 00 0E 04 04 00 F7 00 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 F9 [10:00: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 94 C0 00 00 0E 04 04 00 F7 00 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 [10:00:40]wFMCommunicate OK [10:00:40]SAM_PROTO_GetFieldsCounters done [10:00:40]requested_item shift.num is exist - process it [10:00:40]requested_item shift.opened is exist - process it [10:00:40]req_shift_opened [10:00:40]FM_GetShiftState [10:00:40]SAM_PROTO_GetShiftState [10:00:40]wFMCommunicate request_size=4 [10:00:40]MH_SAM_APDU [10:00:40]CAPDU: 80 13 01 00 [10:00:40]Write to MH i2c: E2 08 00 3D 92 80 13 01 00 00 00 00 00 4C [10:00:40]Write i2c OK [10:00:40]MH_I2C_Read... [10:00:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:40]Read from MH i2c: E2 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 0E 00 [10:00:40]MH_I2C_Read... [10:00:40]Read from MH i2c: E2 0E 00 3D 92 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 A2 [10:00:40]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:00:40]wFMCommunicate OK [10:00:40]SAM_PROTO_GetShiftState done [10:00:40]FM_GetShiftState done [10:00:40]req_shift_opened done [10:00:40]requested_item shift.open_date is exist - process it [10:00:40]req_shift_open_date [10:00:40]req_shift_open_date done [10:00:40]produce_requested_data done [10:00:40]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49300,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [10:00:40]process_action_free close_receipt [10:00:40]json_value_free [10:00:40]json_value_free done [10:00:40]process_json_proto returns [10:00:40]Send response to host [10:00:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49300,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [10:00:40]free response buf [10:00:40]execute_script done [10:00:40]execute_script returns [10:00:40]free content buf [10:00:40]Sock 10.Close socket [10:00:40]Sock 10.Thread stoped [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]accept exits with 7 [10:02:49]New connection [10:02:49]New thread 3066813796 created [10:02:49]Thread 3066670436 joined [10:02:49]Waiting for new connection... [10:02:49] Sock 7.Parse request [10:02:49]Sock 7.Check first char [10:02:49]Sock 7.First char is OK [10:02:49]request: POST /json_proto HTTP/1.0 [10:02:49]Method: POST [10:02:49]URL: /json_proto [10:02:49]Method is POST - this is cgi request [10:02:49]url: /json_proto [10:02:49]query_string will be loaded in cgi processing [10:02:49]execute_cgi json_proto POST (null) [10:02:49]execute_cgi path=json_proto method=POST [10:02:49]POST find Content-Length [10:02:49]Host: 172.17.56.67:8080 [10:02:49]Content-Length: 677 [10:02:49]Content-Type: application/json [10:02:49] [10:02:49]POST finish read [10:02:49]Found Content-Length = 677 [10:02:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:49]execute_script... [10:02: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)216404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:02:49]POST & json_proto [10:02:49]process_json_proto [10:02:49]json parsed OK: [10:02:49]protocol is kg_v1.0 [10:02:49]action value=close_receipt [10:02:49]process_action close_receipt [10:02:49]cmd_close_receipt [10:02:49]MH_GetDate [10:02:49]Write to MH i2c: F0 00 00 3E 92 BF [10:02:49]Write i2c OK [10:02:49]MH_I2C_Read... [10:02:49]Read from MH i2c: F0 [10:02:49]MH_I2C_Read... [10:02:49]Read from MH i2c: F0 09 00 [10:02:49]MH_I2C_Read... [10:02:49]Read from MH i2c: F0 09 00 3E 92 00 E0 1A BA 65 26 5D 9E 65 67 [10:02:49]GetLastDocTimeStamp 1706695260 [10:02:49]current date 1706695392 [10:02:49]FM_GetShiftState [10:02:49]SAM_PROTO_GetShiftState [10:02:49]wFMCommunicate request_size=4 [10:02:49]MH_SAM_APDU [10:02:49]CAPDU: 80 13 01 00 [10:02:49]Write to MH i2c: E2 08 00 3F 92 80 13 01 00 00 00 00 00 4E [10:02:49]Write i2c OK [10:02:49]MH_I2C_Read... [10:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:49]Read from MH i2c: E2 [10:02:49]MH_I2C_Read... [10:02:49]Read from MH i2c: E2 0E 00 [10:02:49]MH_I2C_Read... [10:02:49]Read from MH i2c: E2 0E 00 3F 92 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 A4 [10:02:49]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:02:49]wFMCommunicate OK [10:02:49]SAM_PROTO_GetShiftState done [10:02:49]FM_GetShiftState done [10:02:49]opened in 1706659486 [10:02:49]opened+sec_in_day 1706745886 [10:02:49]quantity*price = 50049 [10:02:49]sum+1 = 50050 [10:02:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 26 31.01.2024 10:03 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49301 ФПД: 2590323681258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T100312&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49301&fm=2590323681258&tin=02508201610067®Number=0000000000092723&sum=50000 [10:02:50]StoreToDocumentArchive [10:02:50]shift 247 fd 49301 [10:02:50]save to /storage/0247/doc_00049301 [10:02:50]save last doc name /storage/0247/doc_00049301 to /storage/kkm_last_doc_name [10:02:50]save OK [10:02:50]Clear old archive folders... [10:02:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:50]tlvbuf is 013CCA20 [10:02:50]SAM_PROTO_ClearQueue [10:02:50]wFMCommunicate request_size=4 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 09 00 00 [10:02:50]Write to MH i2c: E2 08 00 4C 92 80 09 00 00 00 00 00 00 50 [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 03 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 03 00 4C 92 00 90 00 52 [10:02:50]RAPDU: 90 00 [10:02:50]wFMCommunicate OK [10:02:50]SAM_PROTO_ClearQueue done [10:02:50]KKMCreateOFDPacket [10:02:50]OFDProtocolAddRootSTLVToBuf [10:02:50]FM_MakeSignedData [10:02:50]FM_MakeSignedData [10:02:50]SAM_PROTO_SignData [10:02:50]wFMCommunicate request_size=4 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 0D 01 02 [10:02:50]Write to MH i2c: E2 08 00 4D 92 80 0D 01 02 00 00 00 00 58 [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 03 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 03 00 4D 92 00 90 00 53 [10:02:50]RAPDU: 90 00 [10:02:50]wFMCommunicate OK [10:02:50]wFMCommunicate request_size=255 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 E0 1A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 95 C0 00 00 35 04 06 00 02 [10:02:50]Write to MH i2c: E2 02 01 4E 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 E0 1A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 95 C0 00 00 35 04 06 00 02 00 00 09 [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 03 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 03 00 4E 92 00 90 00 54 [10:02:50]RAPDU: 90 00 [10:02:50]wFMCommunicate OK [10:02:50]wFMCommunicate request_size=10 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 0D 02 02 05 5B 1B 52 A7 EA [10:02:50]Write to MH i2c: E2 0D 00 4F 92 80 0D 02 02 05 00 5B 1B 52 A7 EA 00 00 BE [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 03 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 03 00 4F 92 00 90 00 55 [10:02:50]RAPDU: 90 00 [10:02:50]wFMCommunicate OK [10:02:50]wFMCommunicate request_size=4 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 0D 03 02 [10:02:50]Write to MH i2c: E2 08 00 50 92 80 0D 03 02 00 00 00 00 5D [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 0B 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 0B 00 50 92 00 FB CB 4B B2 C8 38 96 5A 90 00 11 [10:02:50]RAPDU: FB CB 4B B2 C8 38 96 5A 90 00 [10:02:50]wFMCommunicate OK [10:02:50]SAM_PROTO_SignData done [10:02:50]FM_MakeSignedData done [10:02:50]CreateOFDProtocolMessage [10:02:50]wFMCommunicate request_size=4 [10:02:50]MH_SAM_APDU [10:02:50]CAPDU: 80 11 00 00 [10:02:50]Write to MH i2c: E2 08 00 51 92 80 11 00 00 00 00 00 00 5D [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:50]Read from MH i2c: E2 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 17 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: E2 17 00 51 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AA [10:02:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:02:50]wFMCommunicate OK [10:02:50]CreateOFDProtocolMessage done [10:02:50]OFDSenderStorePacket 49301 [10:02:50]StoreOFDPacket docnum=49301 [10:02:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 66 B1 07 01 13 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 E0 1A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 95 C0 00 00 35 04 06 00 02 5B 1B 52 A7 EA FB CB 4B B2 C8 38 96 5A [10:02:50]CheckFolder [10:02:50]dirname=/storage/ofd_packets [10:02:50]CheckFolder done [10:02:50]ProducePacketName [10:02:50]name=ofd_packets/00049301 [10:02:50]NVStorageSaveData ofd_packets/00049301 [10:02:50]File name is /storage/ofd_packets/00049301 [10:02:50]Write 301 bytes [10:02:50]NVStorageSaveData done [10:02:50]OFDSenderStorePacket done [10:02:50]KKMCreateOFDPacket done [10:02:50]NVStorageSaveData kkm_last_timestamp [10:02:50]File name is /storage/kkm_last_timestamp [10:02:50]Write 4 bytes [10:02:50]NVStorageSaveData done [10:02:50]ExternCall_PrintAddStr [10:02:50]wPrintStart [10:02:50]Write to MH i2c: 01 00 00 52 92 E4 [10:02:50]Write i2c OK [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: 01 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: 01 07 00 [10:02:50]MH_I2C_Read... [10:02:50]Read from MH i2c: 01 07 00 52 92 00 00 00 00 00 FF 0F F9 [10:02:50]RasterBufferAndPrint [10:02:50]line Счет N : (1)216404 [10:02:50]line ИНН: 02508201610067 [10:02:50]line Контрольно-Кассовый Чек [10:02:50]line ПРОДАЖА [10:02:50]line ТРК (МРК, ГНК) : 22 [10:02:50]line Товар: 2710124130 [10:02:50]line Аи-92-К-5 [10:02:50]line 8.300 * 60.30 [10:02:50]line = 500.49 [10:02:50]line НДС 12% НСП 1% [10:02:50]line > о реализуемом товаре [10:02:50]line ОКРУГЛЕНИЕ: -0.49 [10:02:50]line ИТОГО: 500.00 [10:02:50]line Внесено: 500.00 [10:02:50]line СДАЧА: 0.00 [10:02:50]line НСП 1% : 4.43 [10:02:50]line НДС 12% : 53.15 [10:02:50]line Наличными: 500.00 [10:02:50]line Безнал.: 0.00 [10:02:50]line Место: АЗС № 102 "Партнер Нефть" [10:02:50]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:02:50]line СНО: Общий режим [10:02:50]line Чек 26 31.01.2024 10:03 [10:02:50]line Смена: 247 ФФД: 1.0 [10:02:50]line ЗНМ: 0300000040 [10:02:50]line РНМ: 0000000000092723 [10:02:50]line Версия ККМ: 001 [10:02:50]line ФМ: 0000000000875060 [10:02:50]line ФД: 49301 [10:02:50]line ФПД: 2590323681258 [10:02:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T100312&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49301&fm=2590323681258&tin=02508201610067®Number=0000000000092723&sum=50000 [10:02:51]OFD Sender: Processing packet 49301 [packets to send 12, broken 11] [10:02:51]ProducePacketName [10:02:51]name=ofd_packets/00049301 [10:02:51]OFD Sender: To server: pG, [10:02:51]CommunicateWithHost lk.salyk.kg:30040 [10:02:51]ConnectInit lk.salyk.kg [10:02:51]written 0, free lines is 4095 [10:02:51]Connected sock=10 [10:02:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 66 B1 07 01 13 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 E0 1A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 95 C0 00 00 35 04 06 00 02 5B 1B 52 A7 EA FB CB 4B B2 C8 38 96 5A [10:02:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 99 A3 47 00 57 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 95 C0 00 00 F4 03 04 00 D3 C6 B9 65 B6 04 01 00 00 0C A8 95 72 17 33 25 A0 [10:02:51]CommunicateWithHost err = 0 [10:02:51]CheckOFDResponse [10:02:51]1017 (14) - 77093643461234 [10:02:51]1041 (16) - 0000000000875060 [10:02:51]1040 (4) - 49301 [10:02:51]1012 (4) - 31.01.2024 04:04 [10:02:51]1206 (1) - 0 [10:02:51]OFD Sender: Remove packet 49301 [10:02:51]ProducePacketName [10:02:51]name=ofd_packets/00049301 [10:02:51]NVStorageDeleteData [10:02:51]Write to MH i2c: 01 00 00 7D 92 0F [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: 01 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: 01 07 00 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: 01 07 00 7D 92 00 00 00 00 00 F4 0C 16 [10:02:51]RasterBufferAndPrint [10:02:51]line [10:02:51]line [10:02:51]line [10:02:51]line [10:02:51]line [10:02:51]written 0, free lines is 3322 [10:02:51]MH_Cut [10:02:51]Write to MH i2c: D1 01 00 84 92 01 E8 [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: D1 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: D1 01 00 [10:02:51]MH_I2C_Read... [10:02:51]Read from MH i2c: D1 01 00 84 92 00 E7 [10:02:51]Write to MH i2c: 01 00 00 85 92 17 [10:02:51]Write i2c OK [10:02:51]MH_I2C_Read... [10:02:51]OFD Sender: No OFD packet to send [10:02:52]*** Cut start [10:02:52]*** Partial cut [10:02:52]*** CUTSNS_PIN = 1 [10:02:52]*** CUTSNS_PIN = 0 [10:02:52]*** Brake cut motor [10:02:52]Read from MH i2c: 01 [10:02:52]MH_I2C_Read... [10:02:52]*** Stop cut motor [10:02:52]*** Cut end [10:02:52]Read from MH i2c: 01 07 00 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: 01 07 00 85 92 00 00 00 00 00 FF 0F 2C [10:02:52]process_action close_receipt done [10:02:52]requested_data is exist [10:02:52]produce_requested_data [10:02:52]requested_item fm.sn is exist - process it [10:02:52]wFMCommunicate request_size=4 [10:02:52]MH_SAM_APDU [10:02:52]CAPDU: 80 11 00 00 [10:02:52]Write to MH i2c: E2 08 00 86 92 80 11 00 00 00 00 00 00 92 [10:02:52]Write i2c OK [10:02:52]MH_I2C_Read... [10:02:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:52]Read from MH i2c: E2 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 17 00 [10:02:52]MH_I2C_Read... [10:02:52]Read from MH i2c: E2 17 00 86 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DF [10:02:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:02:52]wFMCommunicate OK [10:02:52]requested_item fd.num is exist - process it [10:02:52]SAM_PROTO_GetFieldsCounters [10:02:52]wFMCommunicate request_size=4 [10:02:52]MH_SAM_APDU [10:02:52]CAPDU: 80 13 00 00 [10:02:52]Write to MH i2c: E2 08 00 87 92 80 13 00 00 00 00 00 00 95 [10:02:52]Write i2c OK [10:02:52]MH_I2C_Read... [10:02:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:53]Read from MH i2c: E2 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: E2 62 00 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: E2 62 00 87 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 95 C0 00 00 0E 04 04 00 F7 00 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 48 [10:02:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 95 C0 00 00 0E 04 04 00 F7 00 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 [10:02:53]wFMCommunicate OK [10:02:53]SAM_PROTO_GetFieldsCounters done [10:02:53]requested_item shift.num is exist - process it [10:02:53]requested_item shift.opened is exist - process it [10:02:53]req_shift_opened [10:02:53]FM_GetShiftState [10:02:53]SAM_PROTO_GetShiftState [10:02:53]wFMCommunicate request_size=4 [10:02:53]MH_SAM_APDU [10:02:53]CAPDU: 80 13 01 00 [10:02:53]Write to MH i2c: E2 08 00 88 92 80 13 01 00 00 00 00 00 97 [10:02:53]Write i2c OK [10:02:53]MH_I2C_Read... [10:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:53]Read from MH i2c: E2 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: E2 0E 00 [10:02:53]MH_I2C_Read... [10:02:53]Read from MH i2c: E2 0E 00 88 92 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 ED [10:02:53]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:02:53]wFMCommunicate OK [10:02:53]SAM_PROTO_GetShiftState done [10:02:53]FM_GetShiftState done [10:02:53]req_shift_opened done [10:02:53]requested_item shift.open_date is exist - process it [10:02:53]req_shift_open_date [10:02:53]req_shift_open_date done [10:02:53]produce_requested_data done [10:02:53]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49301,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [10:02:53]process_action_free close_receipt [10:02:53]json_value_free [10:02:53]json_value_free done [10:02:53]process_json_proto returns [10:02:53]Send response to host [10:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49301,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [10:02:53]free response buf [10:02:53]execute_script done [10:02:53]execute_script returns [10:02:53]free content buf [10:02:53]Sock 7.Close socket [10:02:53]Sock 7.Thread stoped [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:37]accept exits with 9 [10:03:37]New connection [10:03:37]New thread 3066670436 created [10:03:37]Thread 3066813796 joined [10:03:37]Waiting for new connection... [10:03:37] Sock 9.Parse request [10:03:37]Sock 9.Check first char [10:03:37]Sock 9.First char is OK [10:03:37]request: POST /json_proto HTTP/1.0 [10:03:37]Method: POST [10:03:37]URL: /json_proto [10:03:37]Method is POST - this is cgi request [10:03:37]url: /json_proto [10:03:37]query_string will be loaded in cgi processing [10:03:37]execute_cgi json_proto POST (null) [10:03:37]execute_cgi path=json_proto method=POST [10:03:37]POST find Content-Length [10:03:37]Host: 172.17.56.67:8080 [10:03:37]Content-Length: 677 [10:03:37]Content-Type: application/json [10:03:37] [10:03:37]POST finish read [10:03:37]Found Content-Length = 677 [10:03:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:37]execute_script... [10:03: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)216405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:37]POST & json_proto [10:03:37]process_json_proto [10:03:37]json parsed OK: [10:03:37]protocol is kg_v1.0 [10:03:37]action value=close_receipt [10:03:37]process_action close_receipt [10:03:37]cmd_close_receipt [10:03:37]MH_GetDate [10:03:37]Write to MH i2c: F0 00 00 89 92 0A [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: F0 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: F0 09 00 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: F0 09 00 89 92 00 11 1B BA 65 26 5D 9E 65 E4 [10:03:37]GetLastDocTimeStamp 1706695392 [10:03:37]current date 1706695441 [10:03:37]FM_GetShiftState [10:03:37]SAM_PROTO_GetShiftState [10:03:37]wFMCommunicate request_size=4 [10:03:37]MH_SAM_APDU [10:03:37]CAPDU: 80 13 01 00 [10:03:37]Write to MH i2c: E2 08 00 8A 92 80 13 01 00 00 00 00 00 99 [10:03:37]Write i2c OK [10:03:37]MH_I2C_Read... [10:03:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:37]Read from MH i2c: E2 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 0E 00 [10:03:37]MH_I2C_Read... [10:03:37]Read from MH i2c: E2 0E 00 8A 92 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 EF [10:03:37]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:03:37]wFMCommunicate OK [10:03:37]SAM_PROTO_GetShiftState done [10:03:37]FM_GetShiftState done [10:03:37]opened in 1706659486 [10:03:37]opened+sec_in_day 1706745886 [10:03:37]quantity*price = 20019 [10:03:37]sum+1 = 20021 [10:03:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 27 31.01.2024 10:04 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49302 ФПД: 123726022433797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T100401&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49302&fm=123726022433797&tin=02508201610067®Number=0000000000092723&sum=20000 [10:03:38]StoreToDocumentArchive [10:03:38]shift 247 fd 49302 [10:03:38]save to /storage/0247/doc_00049302 [10:03:38]save last doc name /storage/0247/doc_00049302 to /storage/kkm_last_doc_name [10:03:38]save OK [10:03:38]Clear old archive folders... [10:03:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:38]tlvbuf is 011DD0E0 [10:03:38]SAM_PROTO_ClearQueue [10:03:38]wFMCommunicate request_size=4 [10:03:38]MH_SAM_APDU [10:03:38]CAPDU: 80 09 00 00 [10:03:38]Write to MH i2c: E2 08 00 97 92 80 09 00 00 00 00 00 00 9B [10:03:38]Write i2c OK [10:03:38]MH_I2C_Read... [10:03:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:39]Read from MH i2c: E2 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 03 00 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 03 00 97 92 00 90 00 9D [10:03:39]RAPDU: 90 00 [10:03:39]wFMCommunicate OK [10:03:39]SAM_PROTO_ClearQueue done [10:03:39]KKMCreateOFDPacket [10:03:39]OFDProtocolAddRootSTLVToBuf [10:03:39]FM_MakeSignedData [10:03:39]FM_MakeSignedData [10:03:39]SAM_PROTO_SignData [10:03:39]wFMCommunicate request_size=4 [10:03:39]MH_SAM_APDU [10:03:39]CAPDU: 80 0D 01 02 [10:03:39]Write to MH i2c: E2 08 00 98 92 80 0D 01 02 00 00 00 00 A3 [10:03:39]Write i2c OK [10:03:39]MH_I2C_Read... [10:03:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:39]Read from MH i2c: E2 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 03 00 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 03 00 98 92 00 90 00 9E [10:03:39]RAPDU: 90 00 [10:03:39]wFMCommunicate OK [10:03:39]wFMCommunicate request_size=255 [10:03:39]MH_SAM_APDU [10:03: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 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 1B 00 00 00 F4 03 04 00 11 1B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 96 C0 00 00 35 04 06 00 70 [10:03:39]Write to MH i2c: E2 02 01 99 92 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 1B 00 00 00 F4 03 04 00 11 1B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 96 C0 00 00 35 04 06 00 70 00 00 D6 [10:03:39]Write i2c OK [10:03:39]MH_I2C_Read... [10:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:39]Read from MH i2c: E2 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 03 00 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 03 00 99 92 00 90 00 9F [10:03:39]RAPDU: 90 00 [10:03:39]wFMCommunicate OK [10:03:39]wFMCommunicate request_size=10 [10:03:39]MH_SAM_APDU [10:03:39]CAPDU: 80 0D 02 02 05 87 35 9D DC 05 [10:03:39]Write to MH i2c: E2 0D 00 9A 92 80 0D 02 02 05 00 87 35 9D DC 05 00 00 EA [10:03:39]Write i2c OK [10:03:39]MH_I2C_Read... [10:03:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:39]Read from MH i2c: E2 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 03 00 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 03 00 9A 92 00 90 00 A0 [10:03:39]RAPDU: 90 00 [10:03:39]wFMCommunicate OK [10:03:39]wFMCommunicate request_size=4 [10:03:39]MH_SAM_APDU [10:03:39]CAPDU: 80 0D 03 02 [10:03:39]Write to MH i2c: E2 08 00 9B 92 80 0D 03 02 00 00 00 00 A8 [10:03:39]Write i2c OK [10:03:39]MH_I2C_Read... [10:03:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:39]Read from MH i2c: E2 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 0B 00 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 0B 00 9B 92 00 D6 77 2A 27 69 3F 19 AF 90 00 B7 [10:03:39]RAPDU: D6 77 2A 27 69 3F 19 AF 90 00 [10:03:39]wFMCommunicate OK [10:03:39]SAM_PROTO_SignData done [10:03:39]FM_MakeSignedData done [10:03:39]CreateOFDProtocolMessage [10:03:39]wFMCommunicate request_size=4 [10:03:39]MH_SAM_APDU [10:03:39]CAPDU: 80 11 00 00 [10:03:39]Write to MH i2c: E2 08 00 9C 92 80 11 00 00 00 00 00 00 A8 [10:03:39]Write i2c OK [10:03:39]MH_I2C_Read... [10:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:39]Read from MH i2c: E2 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 17 00 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: E2 17 00 9C 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F5 [10:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:03:39]wFMCommunicate OK [10:03:39]CreateOFDProtocolMessage done [10:03:39]OFDSenderStorePacket 49302 [10:03:39]StoreOFDPacket docnum=49302 [10:03:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D1 D4 07 01 75 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 1B 00 00 00 F4 03 04 00 11 1B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 96 C0 00 00 35 04 06 00 70 87 35 9D DC 05 D6 77 2A 27 69 3F 19 AF [10:03:39]CheckFolder [10:03:39]dirname=/storage/ofd_packets [10:03:39]CheckFolder done [10:03:39]ProducePacketName [10:03:39]name=ofd_packets/00049302 [10:03:39]NVStorageSaveData ofd_packets/00049302 [10:03:39]File name is /storage/ofd_packets/00049302 [10:03:39]Write 301 bytes [10:03:39]NVStorageSaveData done [10:03:39]OFDSenderStorePacket done [10:03:39]KKMCreateOFDPacket done [10:03:39]NVStorageSaveData kkm_last_timestamp [10:03:39]File name is /storage/kkm_last_timestamp [10:03:39]Write 4 bytes [10:03:39]NVStorageSaveData done [10:03:39]ExternCall_PrintAddStr [10:03:39]wPrintStart [10:03:39]Write to MH i2c: 01 00 00 9D 92 2F [10:03:39]Write i2c OK [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: 01 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: 01 07 00 [10:03:39]MH_I2C_Read... [10:03:39]Read from MH i2c: 01 07 00 9D 92 00 00 00 00 00 FF 0F 44 [10:03:39]RasterBufferAndPrint [10:03:39]line Счет N : (1)216405 [10:03:39]line ИНН: 02508201610067 [10:03:39]line Контрольно-Кассовый Чек [10:03:39]line ПРОДАЖА [10:03:39]line ТРК (МРК, ГНК) : 12 [10:03:39]line Товар: 2710124130 [10:03:39]line Аи-92-К-5 [10:03:39]line 3.320 * 60.30 [10:03:39]line = 200.20 [10:03:39]line НДС 12% НСП 1% [10:03:39]line > о реализуемом товаре [10:03:39]line ОКРУГЛЕНИЕ: -0.20 [10:03:39]line ИТОГО: 200.00 [10:03:39]line Внесено: 200.00 [10:03:39]line СДАЧА: 0.00 [10:03:39]line НСП 1% : 1.77 [10:03:39]line НДС 12% : 21.26 [10:03:39]line Наличными: 200.00 [10:03:39]line Безнал.: 0.00 [10:03:39]line Место: АЗС № 102 "Партнер Нефть" [10:03:39]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:03:39]line СНО: Общий режим [10:03:39]line Чек 27 31.01.2024 10:04 [10:03:39]line Смена: 247 ФФД: 1.0 [10:03:39]line ЗНМ: 0300000040 [10:03:39]line РНМ: 0000000000092723 [10:03:39]line Версия ККМ: 001 [10:03:39]line ФМ: 0000000000875060 [10:03:39]line ФД: 49302 [10:03:39]line ФПД: 123726022433797 [10:03:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T100401&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49302&fm=123726022433797&tin=02508201610067®Number=0000000000092723&sum=20000 [10:03:39]OFD Sender: Processing packet 49302 [packets to send 12, broken 11] [10:03:39]ProducePacketName [10:03:39]name=ofd_packets/00049302 [10:03:39]OFD Sender: To server: pG, [10:03:39]CommunicateWithHost lk.salyk.kg:30040 [10:03:39]ConnectInit lk.salyk.kg [10:03:39]written 0, free lines is 4095 [10:03:39]Connected sock=10 [10:03:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D1 D4 07 01 75 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 1B 00 00 00 F4 03 04 00 11 1B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 96 C0 00 00 35 04 06 00 70 87 35 9D DC 05 D6 77 2A 27 69 3F 19 AF [10:03:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 7D 88 47 00 87 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 35 30 36 30 10 04 04 00 96 C0 00 00 F4 03 04 00 04 C7 B9 65 B6 04 01 00 00 44 3F 70 47 38 98 1C 49 [10:03:40]CommunicateWithHost err = 0 [10:03:40]CheckOFDResponse [10:03:40]1017 (14) - 77093643461234 [10:03:40]1041 (16) - 0000000000875060 [10:03:40]1040 (4) - 49302 [10:03:40]1012 (4) - 31.01.2024 04:05 [10:03:40]1206 (1) - 0 [10:03:40]OFD Sender: Remove packet 49302 [10:03:40]ProducePacketName [10:03:40]name=ofd_packets/00049302 [10:03:40]NVStorageDeleteData [10:03:40]Write to MH i2c: 01 00 00 C8 92 5A [10:03:40]Write i2c OK [10:03:40]MH_I2C_Read... [10:03:40]Read from MH i2c: 01 [10:03:40]MH_I2C_Read... [10:03:40]Read from MH i2c: 01 07 00 [10:03:40]MH_I2C_Read... [10:03:40]Read from MH i2c: 01 07 00 C8 92 00 00 00 00 00 F8 0C 65 [10:03:40]RasterBufferAndPrint [10:03:40]line [10:03:40]line [10:03:40]line [10:03:40]line [10:03:40]line [10:03:40]written 0, free lines is 3331 [10:03:40]MH_Cut [10:03:40]Write to MH i2c: D1 01 00 CF 92 01 33 [10:03:40]Write i2c OK [10:03:40]MH_I2C_Read... [10:03:40]Read from MH i2c: D1 [10:03:40]MH_I2C_Read... [10:03:40]Read from MH i2c: D1 01 00 [10:03:40]MH_I2C_Read... [10:03:40]Read from MH i2c: D1 01 00 CF 92 00 32 [10:03:40]Write to MH i2c: 01 00 00 D0 92 62 [10:03:40]Write i2c OK [10:03:40]MH_I2C_Read... [10:03:40]OFD Sender: No OFD packet to send [10:03:40]*** Cut start [10:03:40]*** Partial cut [10:03:40]*** CUTSNS_PIN = 1 [10:03:41]*** CUTSNS_PIN = 0 [10:03:41]*** Brake cut motor [10:03:41]Read from MH i2c: 01 [10:03:41]MH_I2C_Read... [10:03:41]*** Stop cut motor [10:03:41]*** Cut end [10:03:41]Read from MH i2c: 01 07 00 [10:03:41]MH_I2C_Read... [10:03:41]Read from MH i2c: 01 07 00 D0 92 00 00 00 00 00 FF 0F 77 [10:03:41]process_action close_receipt done [10:03:41]requested_data is exist [10:03:41]produce_requested_data [10:03:41]requested_item fm.sn is exist - process it [10:03:41]wFMCommunicate request_size=4 [10:03:41]MH_SAM_APDU [10:03:41]CAPDU: 80 11 00 00 [10:03:41]Write to MH i2c: E2 08 00 D1 92 80 11 00 00 00 00 00 00 DD [10:03:41]Write i2c OK [10:03:41]MH_I2C_Read... [10:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:41]Read from MH i2c: E2 [10:03:41]MH_I2C_Read... [10:03:41]Read from MH i2c: E2 17 00 [10:03:41]MH_I2C_Read... [10:03:41]Read from MH i2c: E2 17 00 D1 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2A [10:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:03:41]wFMCommunicate OK [10:03:41]requested_item fd.num is exist - process it [10:03:41]SAM_PROTO_GetFieldsCounters [10:03:41]wFMCommunicate request_size=4 [10:03:41]MH_SAM_APDU [10:03:41]CAPDU: 80 13 00 00 [10:03:41]Write to MH i2c: E2 08 00 D2 92 80 13 00 00 00 00 00 00 E0 [10:03:41]Write i2c OK [10:03:41]MH_I2C_Read... [10:03:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:41]Read from MH i2c: E2 [10:03:41]MH_I2C_Read... [10:03:41]Read from MH i2c: E2 62 00 [10:03:41]MH_I2C_Read... [10:03:41]Read from MH i2c: E2 62 00 D2 92 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 96 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [10:03: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 96 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:41]wFMCommunicate OK [10:03:41]SAM_PROTO_GetFieldsCounters done [10:03:41]requested_item shift.num is exist - process it [10:03:41]requested_item shift.opened is exist - process it [10:03:41]req_shift_opened [10:03:41]FM_GetShiftState [10:03:41]SAM_PROTO_GetShiftState [10:03:41]wFMCommunicate request_size=4 [10:03:41]MH_SAM_APDU [10:03:41]CAPDU: 80 13 01 00 [10:03:41]Write to MH i2c: E2 08 00 D3 92 80 13 01 00 00 00 00 00 E2 [10:03:41]Write i2c OK [10:03:41]MH_I2C_Read... [10:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:41]Read from MH i2c: E2 [10:03:41]MH_I2C_Read... [10:03:41]Read from MH i2c: E2 0E 00 [10:03:41]MH_I2C_Read... [10:03:41]Read from MH i2c: E2 0E 00 D3 92 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 38 [10:03:41]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:03:41]wFMCommunicate OK [10:03:41]SAM_PROTO_GetShiftState done [10:03:41]FM_GetShiftState done [10:03:41]req_shift_opened done [10:03:41]requested_item shift.open_date is exist - process it [10:03:41]req_shift_open_date [10:03:41]req_shift_open_date done [10:03:41]produce_requested_data done [10:03:41]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49302,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [10:03:41]process_action_free close_receipt [10:03:41]json_value_free [10:03:41]json_value_free done [10:03:41]process_json_proto returns [10:03:41]Send response to host [10:03:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49302,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [10:03:41]free response buf [10:03:41]execute_script done [10:03:41]execute_script returns [10:03:41]free content buf [10:03:41]Sock 9.Close socket [10:03:41]Sock 9.Thread stoped [10:03:45]OFD Sender: No OFD packet to send [10:03:50]OFD Sender: No OFD packet to send [10:03:55]OFD Sender: No OFD packet to send [10:04:00]OFD Sender: No OFD packet to send [10:04:05]OFD Sender: No OFD packet to send [10:04:10]OFD Sender: No OFD packet to send [10:04:15]OFD Sender: No OFD packet to send [10:04:20]OFD Sender: No OFD packet to send [10:04:24]accept exits with 7 [10:04:24]New connection [10:04:24]New thread 3066813796 created [10:04:24]Thread 3066670436 joined [10:04:24]Waiting for new connection... [10:04:24] Sock 7.Parse request [10:04:24]Sock 7.Check first char [10:04:24]Sock 7.First char is OK [10:04:24]request: POST /json_proto HTTP/1.0 [10:04:24]Method: POST [10:04:24]URL: /json_proto [10:04:24]Method is POST - this is cgi request [10:04:24]url: /json_proto [10:04:24]query_string will be loaded in cgi processing [10:04:24]execute_cgi json_proto POST (null) [10:04:24]execute_cgi path=json_proto method=POST [10:04:24]POST find Content-Length [10:04:24]Host: 172.17.56.67:8080 [10:04:24]Content-Length: 674 [10:04:24]Content-Type: application/json [10:04:24] [10:04:24]POST finish read [10:04:24]Found Content-Length = 674 [10:04:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 4.300, "sum" : 300.57, "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:04:24]execute_script... [10:04: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)216406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 4.300, "sum" : 300.57, "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:04:24]POST & json_proto [10:04:24]process_json_proto [10:04:24]json parsed OK: [10:04:24]protocol is kg_v1.0 [10:04:24]action value=close_receipt [10:04:24]process_action close_receipt [10:04:24]cmd_close_receipt [10:04:24]MH_GetDate [10:04:24]Write to MH i2c: F0 00 00 D4 92 55 [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: F0 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: F0 09 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: F0 09 00 D4 92 00 40 1B BA 65 26 5D 9E 65 5E [10:04:24]GetLastDocTimeStamp 1706695441 [10:04:24]current date 1706695488 [10:04:24]FM_GetShiftState [10:04:24]SAM_PROTO_GetShiftState [10:04:24]wFMCommunicate request_size=4 [10:04:24]MH_SAM_APDU [10:04:24]CAPDU: 80 13 01 00 [10:04:24]Write to MH i2c: E2 08 00 D5 92 80 13 01 00 00 00 00 00 E4 [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:24]Read from MH i2c: E2 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 0E 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 0E 00 D5 92 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 3A [10:04:24]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:04:24]wFMCommunicate OK [10:04:24]SAM_PROTO_GetShiftState done [10:04:24]FM_GetShiftState done [10:04:24]opened in 1706659486 [10:04:24]opened+sec_in_day 1706745886 [10:04:24]quantity*price = 30057 [10:04:24]sum+1 = 30058 [10:04:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 28 31.01.2024 10:04 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49303 ФПД: 132207981507351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T100448&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49303&fm=132207981507351&tin=02508201610067®Number=0000000000092723&sum=30000 [10:04:26]StoreToDocumentArchive [10:04:26]shift 247 fd 49303 [10:04:26]save to /storage/0247/doc_00049303 [10:04:26]save last doc name /storage/0247/doc_00049303 to /storage/kkm_last_doc_name [10:04:26]save OK [10:04:26]Clear old archive folders... [10:04:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:04:26]tlvbuf is 0147B790 [10:04:26]SAM_PROTO_ClearQueue [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 09 00 00 [10:04:26]Write to MH i2c: E2 08 00 E2 92 80 09 00 00 00 00 00 00 E6 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 E2 92 00 90 00 E8 [10:04:26]RAPDU: 90 00 [10:04:26]wFMCommunicate OK [10:04:26]SAM_PROTO_ClearQueue done [10:04:26]KKMCreateOFDPacket [10:04:26]OFDProtocolAddRootSTLVToBuf [10:04:26]FM_MakeSignedData [10:04:26]FM_MakeSignedData [10:04:26]SAM_PROTO_SignData [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 0D 01 02 [10:04:26]Write to MH i2c: E2 08 00 E3 92 80 0D 01 02 00 00 00 00 EE [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 E3 92 00 90 00 E9 [10:04:26]RAPDU: 90 00 [10:04:26]wFMCommunicate OK [10:04:26]wFMCommunicate request_size=255 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 10 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 69 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1C 00 00 00 F4 03 04 00 40 1B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 97 C0 00 00 35 04 06 00 78 3E 11 C6 [10:04:26]Write to MH i2c: E2 02 01 E4 92 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 10 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 69 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1C 00 00 00 F4 03 04 00 40 1B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 97 C0 00 00 35 04 06 00 78 3E 11 C6 00 00 B0 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 E4 92 00 90 00 EA [10:04:26]RAPDU: 90 00 [10:04:26]wFMCommunicate OK [10:04:26]wFMCommunicate request_size=7 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 0D 02 02 02 33 17 [10:04:26]Write to MH i2c: E2 0A 00 E5 92 80 0D 02 02 02 00 33 17 00 00 3F [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 03 00 E5 92 00 90 00 EB [10:04:26]RAPDU: 90 00 [10:04:26]wFMCommunicate OK [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 0D 03 02 [10:04:26]Write to MH i2c: E2 08 00 E6 92 80 0D 03 02 00 00 00 00 F3 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 0B 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 0B 00 E6 92 00 B9 36 DA 78 0E 74 B5 26 90 00 92 [10:04:26]RAPDU: B9 36 DA 78 0E 74 B5 26 90 00 [10:04:26]wFMCommunicate OK [10:04:26]SAM_PROTO_SignData done [10:04:26]FM_MakeSignedData done [10:04:26]CreateOFDProtocolMessage [10:04:26]wFMCommunicate request_size=4 [10:04:26]MH_SAM_APDU [10:04:26]CAPDU: 80 11 00 00 [10:04:26]Write to MH i2c: E2 08 00 E7 92 80 11 00 00 00 00 00 00 F3 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:26]Read from MH i2c: E2 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 17 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: E2 17 00 E7 92 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 40 [10:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:04:26]wFMCommunicate OK [10:04:26]CreateOFDProtocolMessage done [10:04:26]OFDSenderStorePacket 49303 [10:04:26]StoreOFDPacket docnum=49303 [10:04:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 B2 44 04 01 E1 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 10 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 69 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1C 00 00 00 F4 03 04 00 40 1B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 97 C0 00 00 35 04 06 00 78 3E 11 C6 33 17 B9 36 DA 78 0E 74 B5 26 [10:04:26]CheckFolder [10:04:26]dirname=/storage/ofd_packets [10:04:26]CheckFolder done [10:04:26]ProducePacketName [10:04:26]name=ofd_packets/00049303 [10:04:26]NVStorageSaveData ofd_packets/00049303 [10:04:26]File name is /storage/ofd_packets/00049303 [10:04:26]Write 298 bytes [10:04:26]NVStorageSaveData done [10:04:26]OFDSenderStorePacket done [10:04:26]KKMCreateOFDPacket done [10:04:26]NVStorageSaveData kkm_last_timestamp [10:04:26]File name is /storage/kkm_last_timestamp [10:04:26]Write 4 bytes [10:04:26]NVStorageSaveData done [10:04:26]ExternCall_PrintAddStr [10:04:26]wPrintStart [10:04:26]Write to MH i2c: 01 00 00 E8 92 7A [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 07 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 07 00 E8 92 00 00 00 00 00 FF 0F 8F [10:04:26]RasterBufferAndPrint [10:04:26]line Счет N : (1)216406 [10:04:26]line ИНН: 02508201610067 [10:04:26]line Контрольно-Кассовый Чек [10:04:26]line ПРОДАЖА [10:04:26]line ТРК (МРК, ГНК) : 21 [10:04:26]line Товар: 2710194210 [10:04:26]line ДТ-К-5 [10:04:26]line 4.300 * 69.90 [10:04:26]line = 300.57 [10:04:26]line НДС 12% НСП 1% [10:04:26]line > о реализуемом товаре [10:04:26]line ОКРУГЛЕНИЕ: -0.57 [10:04:26]line ИТОГО: 300.00 [10:04:26]line Внесено: 300.00 [10:04:26]line СДАЧА: 0.00 [10:04:26]line НСП 1% : 2.66 [10:04:26]line НДС 12% : 31.92 [10:04:26]line Наличными: 300.00 [10:04:26]line Безнал.: 0.00 [10:04:26]line Место: АЗС № 102 "Партнер Нефть" [10:04:26]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:04:26]line СНО: Общий режим [10:04:26]line Чек 28 31.01.2024 10:04 [10:04:26]line Смена: 247 ФФД: 1.0 [10:04:26]line ЗНМ: 0300000040 [10:04:26]line РНМ: 0000000000092723 [10:04:26]line Версия ККМ: 001 [10:04:26]line ФМ: 0000000000875060 [10:04:26]line ФД: 49303 [10:04:26]line ФПД: 132207981507351 [10:04:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T100448&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49303&fm=132207981507351&tin=02508201610067®Number=0000000000092723&sum=30000 [10:04:26]OFD Sender: Processing packet 49303 [packets to send 12, broken 11] [10:04:26]ProducePacketName [10:04:26]name=ofd_packets/00049303 [10:04:26]OFD Sender: To server: pG, [10:04:26]CommunicateWithHost lk.salyk.kg:30040 [10:04:26]ConnectInit lk.salyk.kg [10:04:26]written 0, free lines is 4095 [10:04:26]Connected sock=10 [10:04:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 B2 44 04 01 E1 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 10 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 69 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 1C 00 00 00 F4 03 04 00 40 1B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 97 C0 00 00 35 04 06 00 78 3E 11 C6 33 17 B9 36 DA 78 0E 74 B5 26 [10:04:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 1D 3C 47 00 5C 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 35 30 36 30 10 04 04 00 97 C0 00 00 F4 03 04 00 33 C7 B9 65 B6 04 01 00 00 12 98 48 A4 0B C1 E1 A6 [10:04:27]CommunicateWithHost err = 0 [10:04:27]CheckOFDResponse [10:04:27]1017 (14) - 77093643461234 [10:04:27]1041 (16) - 0000000000875060 [10:04:27]1040 (4) - 49303 [10:04:27]1012 (4) - 31.01.2024 04:06 [10:04:27]1206 (1) - 0 [10:04:27]OFD Sender: Remove packet 49303 [10:04:27]ProducePacketName [10:04:27]name=ofd_packets/00049303 [10:04:27]NVStorageDeleteData [10:04:27]Write to MH i2c: 01 00 00 13 93 A6 [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: 01 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: 01 07 00 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: 01 07 00 13 93 00 00 00 00 00 04 0D BE [10:04:27]RasterBufferAndPrint [10:04:27]line [10:04:27]line [10:04:27]line [10:04:27]line [10:04:27]line [10:04:27]written 0, free lines is 3341 [10:04:27]MH_Cut [10:04:27]Write to MH i2c: D1 01 00 1A 93 01 7F [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: D1 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: D1 01 00 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: D1 01 00 1A 93 00 7E [10:04:27]Write to MH i2c: 01 00 00 1B 93 AE [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:27]OFD Sender: No OFD packet to send [10:04:27]*** Cut start [10:04:27]*** Partial cut [10:04:28]*** CUTSNS_PIN = 1 [10:04:28]*** CUTSNS_PIN = 0 [10:04:28]*** Brake cut motor [10:04:28]Read from MH i2c: 01 [10:04:28]MH_I2C_Read... [10:04:28]*** Stop cut motor [10:04:28]*** Cut end [10:04:28]Read from MH i2c: 01 07 00 [10:04:28]MH_I2C_Read... [10:04:28]Read from MH i2c: 01 07 00 1B 93 00 00 00 00 00 FF 0F C3 [10:04:28]process_action close_receipt done [10:04:28]requested_data is exist [10:04:28]produce_requested_data [10:04:28]requested_item fm.sn is exist - process it [10:04:28]wFMCommunicate request_size=4 [10:04:28]MH_SAM_APDU [10:04:28]CAPDU: 80 11 00 00 [10:04:28]Write to MH i2c: E2 08 00 1C 93 80 11 00 00 00 00 00 00 29 [10:04:28]Write i2c OK [10:04:28]MH_I2C_Read... [10:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:28]Read from MH i2c: E2 [10:04:28]MH_I2C_Read... [10:04:28]Read from MH i2c: E2 17 00 [10:04:28]MH_I2C_Read... [10:04:28]Read from MH i2c: E2 17 00 1C 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 76 [10:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:04:28]wFMCommunicate OK [10:04:28]requested_item fd.num is exist - process it [10:04:28]SAM_PROTO_GetFieldsCounters [10:04:28]wFMCommunicate request_size=4 [10:04:28]MH_SAM_APDU [10:04:28]CAPDU: 80 13 00 00 [10:04:28]Write to MH i2c: E2 08 00 1D 93 80 13 00 00 00 00 00 00 2C [10:04:28]Write i2c OK [10:04:28]MH_I2C_Read... [10:04:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:28]Read from MH i2c: E2 [10:04:28]MH_I2C_Read... [10:04:28]Read from MH i2c: E2 62 00 [10:04:28]MH_I2C_Read... [10:04:28]Read from MH i2c: E2 62 00 1D 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 97 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [10:04: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 97 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:28]wFMCommunicate OK [10:04:28]SAM_PROTO_GetFieldsCounters done [10:04:28]requested_item shift.num is exist - process it [10:04:28]requested_item shift.opened is exist - process it [10:04:28]req_shift_opened [10:04:28]FM_GetShiftState [10:04:28]SAM_PROTO_GetShiftState [10:04:28]wFMCommunicate request_size=4 [10:04:28]MH_SAM_APDU [10:04:28]CAPDU: 80 13 01 00 [10:04:28]Write to MH i2c: E2 08 00 1E 93 80 13 01 00 00 00 00 00 2E [10:04:28]Write i2c OK [10:04:28]MH_I2C_Read... [10:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:28]Read from MH i2c: E2 [10:04:28]MH_I2C_Read... [10:04:28]Read from MH i2c: E2 0E 00 [10:04:28]MH_I2C_Read... [10:04:28]Read from MH i2c: E2 0E 00 1E 93 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 84 [10:04:28]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:04:28]wFMCommunicate OK [10:04:28]SAM_PROTO_GetShiftState done [10:04:28]FM_GetShiftState done [10:04:28]req_shift_opened done [10:04:28]requested_item shift.open_date is exist - process it [10:04:28]req_shift_open_date [10:04:28]req_shift_open_date done [10:04:28]produce_requested_data done [10:04:28]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49303,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [10:04:28]process_action_free close_receipt [10:04:28]json_value_free [10:04:28]json_value_free done [10:04:28]process_json_proto returns [10:04:28]Send response to host [10:04:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49303,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [10:04:28]free response buf [10:04:28]execute_script done [10:04:28]execute_script returns [10:04:28]free content buf [10:04:28]Sock 7.Close socket [10:04:28]Sock 7.Thread stoped [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:41]accept exits with 9 [10:09:41]New connection [10:09:41]New thread 3066670436 created [10:09:41]Thread 3066813796 joined [10:09:41]Waiting for new connection... [10:09:41] Sock 9.Parse request [10:09:41]Sock 9.Check first char [10:09:41]Sock 9.First char is OK [10:09:41]request: POST /json_proto HTTP/1.0 [10:09:41]Method: POST [10:09:41]URL: /json_proto [10:09:41]Method is POST - this is cgi request [10:09:41]url: /json_proto [10:09:41]query_string will be loaded in cgi processing [10:09:41]execute_cgi json_proto POST (null) [10:09:41]execute_cgi path=json_proto method=POST [10:09:41]POST find Content-Length [10:09:41]Host: 172.17.56.67:8080 [10:09:41]Content-Length: 677 [10:09:41]Content-Type: application/json [10:09:41] [10:09:41]POST finish read [10:09:41]Found Content-Length = 677 [10:09:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:09:41]execute_script... [10:09: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)216407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:09:41]POST & json_proto [10:09:41]process_json_proto [10:09:41]json parsed OK: [10:09:41]protocol is kg_v1.0 [10:09:41]action value=close_receipt [10:09:41]process_action close_receipt [10:09:41]cmd_close_receipt [10:09:41]MH_GetDate [10:09:41]Write to MH i2c: F0 00 00 1F 93 A1 [10:09:41]Write i2c OK [10:09:41]MH_I2C_Read... [10:09:41]Read from MH i2c: F0 [10:09:41]MH_I2C_Read... [10:09:41]Read from MH i2c: F0 09 00 [10:09:41]MH_I2C_Read... [10:09:41]Read from MH i2c: F0 09 00 1F 93 00 7D 1C BA 65 26 5D 9E 65 E8 [10:09:41]GetLastDocTimeStamp 1706695488 [10:09:41]current date 1706695805 [10:09:41]FM_GetShiftState [10:09:41]SAM_PROTO_GetShiftState [10:09:41]wFMCommunicate request_size=4 [10:09:41]MH_SAM_APDU [10:09:41]CAPDU: 80 13 01 00 [10:09:41]Write to MH i2c: E2 08 00 20 93 80 13 01 00 00 00 00 00 30 [10:09:41]Write i2c OK [10:09:41]MH_I2C_Read... [10:09:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:41]Read from MH i2c: E2 [10:09:41]MH_I2C_Read... [10:09:41]Read from MH i2c: E2 0E 00 [10:09:41]MH_I2C_Read... [10:09:41]Read from MH i2c: E2 0E 00 20 93 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 86 [10:09:41]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:09:41]wFMCommunicate OK [10:09:41]SAM_PROTO_GetShiftState done [10:09:41]FM_GetShiftState done [10:09:41]opened in 1706659486 [10:09:41]opened+sec_in_day 1706745886 [10:09:41]quantity*price = 30029 [10:09:41]sum+1 = 30030 [10:09:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 29 31.01.2024 10:10 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49304 ФПД: 2432890494610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T101005&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49304&fm=2432890494610&tin=02508201610067®Number=0000000000092723&sum=30000 [10:09:42]StoreToDocumentArchive [10:09:42]shift 247 fd 49304 [10:09:42]save to /storage/0247/doc_00049304 [10:09:42]save last doc name /storage/0247/doc_00049304 to /storage/kkm_last_doc_name [10:09:42]save OK [10:09:42]Clear old archive folders... [10:09:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:42]tlvbuf is 0144F5A0 [10:09:42]SAM_PROTO_ClearQueue [10:09:42]wFMCommunicate request_size=4 [10:09:42]MH_SAM_APDU [10:09:42]CAPDU: 80 09 00 00 [10:09:42]Write to MH i2c: E2 08 00 2D 93 80 09 00 00 00 00 00 00 32 [10:09:42]Write i2c OK [10:09:42]MH_I2C_Read... [10:09:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:42]Read from MH i2c: E2 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 03 00 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 03 00 2D 93 00 90 00 34 [10:09:42]RAPDU: 90 00 [10:09:42]wFMCommunicate OK [10:09:42]SAM_PROTO_ClearQueue done [10:09:42]KKMCreateOFDPacket [10:09:42]OFDProtocolAddRootSTLVToBuf [10:09:42]FM_MakeSignedData [10:09:42]FM_MakeSignedData [10:09:42]SAM_PROTO_SignData [10:09:42]wFMCommunicate request_size=4 [10:09:42]MH_SAM_APDU [10:09:42]CAPDU: 80 0D 01 02 [10:09:42]Write to MH i2c: E2 08 00 2E 93 80 0D 01 02 00 00 00 00 3A [10:09:42]Write i2c OK [10:09:42]MH_I2C_Read... [10:09:42]OFD Sender: No OFD packet to send [10:09:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:42]Read from MH i2c: E2 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 03 00 [10:09:42]MH_I2C_Read... [10:09:42]Read from MH i2c: E2 03 00 2E 93 00 90 00 35 [10:09:42]RAPDU: 90 00 [10:09:42]wFMCommunicate OK [10:09:42]wFMCommunicate request_size=255 [10:09:42]MH_SAM_APDU [10:09:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 7D 1C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 98 C0 00 00 35 04 06 00 02 [10:09:42]Write to MH i2c: E2 02 01 2F 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 7D 1C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 98 C0 00 00 35 04 06 00 02 00 00 26 [10:09:42]Write i2c OK [10:09:42]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 2F 93 00 90 00 36 [10:09:43]RAPDU: 90 00 [10:09:43]wFMCommunicate OK [10:09:43]wFMCommunicate request_size=10 [10:09:43]MH_SAM_APDU [10:09:43]CAPDU: 80 0D 02 02 05 36 73 92 DE 92 [10:09:43]Write to MH i2c: E2 0D 00 30 93 80 0D 02 02 05 00 36 73 92 DE 92 00 00 F2 [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 03 00 30 93 00 90 00 37 [10:09:43]RAPDU: 90 00 [10:09:43]wFMCommunicate OK [10:09:43]wFMCommunicate request_size=4 [10:09:43]MH_SAM_APDU [10:09:43]CAPDU: 80 0D 03 02 [10:09:43]Write to MH i2c: E2 08 00 31 93 80 0D 03 02 00 00 00 00 3F [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 0B 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 0B 00 31 93 00 EE 85 87 82 89 7A EE BB 90 00 68 [10:09:43]RAPDU: EE 85 87 82 89 7A EE BB 90 00 [10:09:43]wFMCommunicate OK [10:09:43]SAM_PROTO_SignData done [10:09:43]FM_MakeSignedData done [10:09:43]CreateOFDProtocolMessage [10:09:43]wFMCommunicate request_size=4 [10:09:43]MH_SAM_APDU [10:09:43]CAPDU: 80 11 00 00 [10:09:43]Write to MH i2c: E2 08 00 32 93 80 11 00 00 00 00 00 00 3F [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 17 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 17 00 32 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8C [10:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:09:43]wFMCommunicate OK [10:09:43]CreateOFDProtocolMessage done [10:09:43]OFDSenderStorePacket 49304 [10:09:43]StoreOFDPacket docnum=49304 [10:09:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 5F 50 07 01 B1 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 7D 1C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 98 C0 00 00 35 04 06 00 02 36 73 92 DE 92 EE 85 87 82 89 7A EE BB [10:09:43]CheckFolder [10:09:43]dirname=/storage/ofd_packets [10:09:43]CheckFolder done [10:09:43]ProducePacketName [10:09:43]name=ofd_packets/00049304 [10:09:43]NVStorageSaveData ofd_packets/00049304 [10:09:43]File name is /storage/ofd_packets/00049304 [10:09:43]Write 301 bytes [10:09:43]NVStorageSaveData done [10:09:43]OFDSenderStorePacket done [10:09:43]KKMCreateOFDPacket done [10:09:43]NVStorageSaveData kkm_last_timestamp [10:09:43]File name is /storage/kkm_last_timestamp [10:09:43]Write 4 bytes [10:09:43]NVStorageSaveData done [10:09:43]ExternCall_PrintAddStr [10:09:43]wPrintStart [10:09:43]Write to MH i2c: 01 00 00 33 93 C6 [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: 01 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: 01 07 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: 01 07 00 33 93 00 00 00 00 00 FF 0F DB [10:09:43]RasterBufferAndPrint [10:09:43]line Счет N : (1)216407 [10:09:43]line ИНН: 02508201610067 [10:09:43]line Контрольно-Кассовый Чек [10:09:43]line ПРОДАЖА [10:09:43]line ТРК (МРК, ГНК) : 22 [10:09:43]line Товар: 2710124130 [10:09:43]line Аи-92-К-5 [10:09:43]line 4.980 * 60.30 [10:09:43]line = 300.29 [10:09:43]line НДС 12% НСП 1% [10:09:43]line > о реализуемом товаре [10:09:43]line ОКРУГЛЕНИЕ: -0.29 [10:09:43]line ИТОГО: 300.00 [10:09:43]line Внесено: 300.00 [10:09:43]line СДАЧА: 0.00 [10:09:43]line НСП 1% : 2.66 [10:09:43]line НДС 12% : 31.89 [10:09:43]line Наличными: 300.00 [10:09:43]line Безнал.: 0.00 [10:09:43]line Место: АЗС № 102 "Партнер Нефть" [10:09:43]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:09:43]line СНО: Общий режим [10:09:43]line Чек 29 31.01.2024 10:10 [10:09:43]line Смена: 247 ФФД: 1.0 [10:09:43]line ЗНМ: 0300000040 [10:09:43]line РНМ: 0000000000092723 [10:09:43]line Версия ККМ: 001 [10:09:43]line ФМ: 0000000000875060 [10:09:43]line ФД: 49304 [10:09:43]line ФПД: 2432890494610 [10:09:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T101005&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49304&fm=2432890494610&tin=02508201610067®Number=0000000000092723&sum=30000 [10:09:43]OFD Sender: Processing packet 49304 [packets to send 12, broken 11] [10:09:43]ProducePacketName [10:09:43]name=ofd_packets/00049304 [10:09:43]OFD Sender: To server: pG, [10:09:43]CommunicateWithHost lk.salyk.kg:30040 [10:09:43]ConnectInit lk.salyk.kg [10:09:43]written 0, free lines is 4095 [10:09:43]Connected sock=10 [10:09:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 5F 50 07 01 B1 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 7D 1C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 98 C0 00 00 35 04 06 00 02 36 73 92 DE 92 EE 85 87 82 89 7A EE BB [10:09:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 DB 9F 47 00 D0 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 35 30 36 30 10 04 04 00 98 C0 00 00 F4 03 04 00 6F C8 B9 65 B6 04 01 00 00 71 5C 4F AD C1 15 3C 83 [10:09:44]CommunicateWithHost err = 0 [10:09:44]CheckOFDResponse [10:09:44]1017 (14) - 77093643461234 [10:09:44]1041 (16) - 0000000000875060 [10:09:44]1040 (4) - 49304 [10:09:44]1012 (4) - 31.01.2024 04:11 [10:09:44]1206 (1) - 0 [10:09:44]OFD Sender: Remove packet 49304 [10:09:44]ProducePacketName [10:09:44]name=ofd_packets/00049304 [10:09:44]NVStorageDeleteData [10:09:44]Write to MH i2c: 01 00 00 5E 93 F1 [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: 01 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: 01 07 00 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: 01 07 00 5E 93 00 00 00 00 00 F5 0C F9 [10:09:44]RasterBufferAndPrint [10:09:44]line [10:09:44]line [10:09:44]line [10:09:44]line [10:09:44]line [10:09:44]written 0, free lines is 3327 [10:09:44]MH_Cut [10:09:44]Write to MH i2c: D1 01 00 65 93 01 CA [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: D1 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: D1 01 00 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: D1 01 00 65 93 00 C9 [10:09:44]Write to MH i2c: 01 00 00 66 93 F9 [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]OFD Sender: No OFD packet to send [10:09:44]*** Cut start [10:09:44]*** Partial cut [10:09:44]*** CUTSNS_PIN = 1 [10:09:44]*** CUTSNS_PIN = 0 [10:09:45]*** Brake cut motor [10:09:45]Read from MH i2c: 01 [10:09:45]MH_I2C_Read... [10:09:45]*** Stop cut motor [10:09:45]*** Cut end [10:09:45]Read from MH i2c: 01 07 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: 01 07 00 66 93 00 00 00 00 00 FF 0F 0E [10:09:45]process_action close_receipt done [10:09:45]requested_data is exist [10:09:45]produce_requested_data [10:09:45]requested_item fm.sn is exist - process it [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 11 00 00 [10:09:45]Write to MH i2c: E2 08 00 67 93 80 11 00 00 00 00 00 00 74 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 17 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 17 00 67 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C1 [10:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:09:45]wFMCommunicate OK [10:09:45]requested_item fd.num is exist - process it [10:09:45]SAM_PROTO_GetFieldsCounters [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 13 00 00 [10:09:45]Write to MH i2c: E2 08 00 68 93 80 13 00 00 00 00 00 00 77 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 62 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 62 00 68 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 98 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [10:09: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 98 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:45]wFMCommunicate OK [10:09:45]SAM_PROTO_GetFieldsCounters done [10:09:45]requested_item shift.num is exist - process it [10:09:45]requested_item shift.opened is exist - process it [10:09:45]req_shift_opened [10:09:45]FM_GetShiftState [10:09:45]SAM_PROTO_GetShiftState [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 13 01 00 [10:09:45]Write to MH i2c: E2 08 00 69 93 80 13 01 00 00 00 00 00 79 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 0E 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 0E 00 69 93 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 CF [10:09:45]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:09:45]wFMCommunicate OK [10:09:45]SAM_PROTO_GetShiftState done [10:09:45]FM_GetShiftState done [10:09:45]req_shift_opened done [10:09:45]requested_item shift.open_date is exist - process it [10:09:45]req_shift_open_date [10:09:45]req_shift_open_date done [10:09:45]produce_requested_data done [10:09:45]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49304,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [10:09:45]process_action_free close_receipt [10:09:45]json_value_free [10:09:45]json_value_free done [10:09:45]process_json_proto returns [10:09:45]Send response to host [10:09:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49304,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [10:09:45]free response buf [10:09:45]execute_script done [10:09:45]execute_script returns [10:09:45]free content buf [10:09:45]Sock 9.Close socket [10:09:45]Sock 9.Thread stoped [10:09:49]OFD Sender: No OFD packet to send [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:14]OFD Sender: No OFD packet to send [10:12:19]OFD Sender: No OFD packet to send [10:12:24]OFD Sender: No OFD packet to send [10:12:29]OFD Sender: No OFD packet to send [10:12:34]OFD Sender: No OFD packet to send [10:12:39]OFD Sender: No OFD packet to send [10:12:44]OFD Sender: No OFD packet to send [10:12:49]OFD Sender: No OFD packet to send [10:12:54]OFD Sender: No OFD packet to send [10:12:59]OFD Sender: No OFD packet to send [10:13:04]OFD Sender: No OFD packet to send [10:13:09]OFD Sender: No OFD packet to send [10:13:14]OFD Sender: No OFD packet to send [10:13:19]OFD Sender: No OFD packet to send [10:13:24]OFD Sender: No OFD packet to send [10:13:29]OFD Sender: No OFD packet to send [10:13:34]OFD Sender: No OFD packet to send [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]accept exits with 7 [10:17:49]New connection [10:17:49]New thread 3066813796 created [10:17:49]Thread 3066670436 joined [10:17:49]Waiting for new connection... [10:17:49] Sock 7.Parse request [10:17:49]Sock 7.Check first char [10:17:49]Sock 7.First char is OK [10:17:49]request: POST /json_proto HTTP/1.0 [10:17:49]Method: POST [10:17:49]URL: /json_proto [10:17:49]Method is POST - this is cgi request [10:17:49]url: /json_proto [10:17:49]query_string will be loaded in cgi processing [10:17:49]execute_cgi json_proto POST (null) [10:17:49]execute_cgi path=json_proto method=POST [10:17:49]POST find Content-Length [10:17:49]Host: 172.17.56.67:8080 [10:17:49]Content-Length: 677 [10:17:49]Content-Type: application/json [10:17:49] [10:17:49]POST finish read [10:17:49]Found Content-Length = 677 [10:17:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.150, "sum" : 250.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:49]execute_script... [10:17: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)216408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.150, "sum" : 250.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:17:49]POST & json_proto [10:17:49]process_json_proto [10:17:49]json parsed OK: [10:17:49]protocol is kg_v1.0 [10:17:49]action value=close_receipt [10:17:49]process_action close_receipt [10:17:49]cmd_close_receipt [10:17:49]MH_GetDate [10:17:49]Write to MH i2c: F0 00 00 6A 93 EC [10:17:49]Write i2c OK [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: F0 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: F0 09 00 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: F0 09 00 6A 93 00 64 1E BA 65 26 5D 9E 65 1C [10:17:49]GetLastDocTimeStamp 1706695805 [10:17:49]current date 1706696292 [10:17:49]FM_GetShiftState [10:17:49]SAM_PROTO_GetShiftState [10:17:49]wFMCommunicate request_size=4 [10:17:49]MH_SAM_APDU [10:17:49]CAPDU: 80 13 01 00 [10:17:49]Write to MH i2c: E2 08 00 6B 93 80 13 01 00 00 00 00 00 7B [10:17:49]Write i2c OK [10:17:49]MH_I2C_Read... [10:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:49]Read from MH i2c: E2 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 0E 00 [10:17:49]MH_I2C_Read... [10:17:49]Read from MH i2c: E2 0E 00 6B 93 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 D1 [10:17:49]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:17:49]wFMCommunicate OK [10:17:49]SAM_PROTO_GetShiftState done [10:17:49]FM_GetShiftState done [10:17:49]opened in 1706659486 [10:17:49]opened+sec_in_day 1706745886 [10:17:49]quantity*price = 25024 [10:17:49]sum+1 = 25026 [10:17:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 30 31.01.2024 10:18 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49305 ФПД: 41167073975351 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T101812&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49305&fm=41167073975351&tin=02508201610067®Number=0000000000092723&sum=25000 [10:17:50]StoreToDocumentArchive [10:17:50]shift 247 fd 49305 [10:17:50]save to /storage/0247/doc_00049305 [10:17:50]save last doc name /storage/0247/doc_00049305 to /storage/kkm_last_doc_name [10:17:50]save OK [10:17:50]Clear old archive folders... [10:17:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:17:50]tlvbuf is 014A7C30 [10:17:50]SAM_PROTO_ClearQueue [10:17:50]wFMCommunicate request_size=4 [10:17:50]MH_SAM_APDU [10:17:50]CAPDU: 80 09 00 00 [10:17:50]Write to MH i2c: E2 08 00 78 93 80 09 00 00 00 00 00 00 7D [10:17:50]Write i2c OK [10:17:50]MH_I2C_Read... [10:17:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:17:50]Read from MH i2c: E2 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 03 00 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 03 00 78 93 00 90 00 7F [10:17:50]RAPDU: 90 00 [10:17:50]wFMCommunicate OK [10:17:50]SAM_PROTO_ClearQueue done [10:17:50]KKMCreateOFDPacket [10:17:50]OFDProtocolAddRootSTLVToBuf [10:17:50]FM_MakeSignedData [10:17:50]FM_MakeSignedData [10:17:50]SAM_PROTO_SignData [10:17:50]wFMCommunicate request_size=4 [10:17:50]MH_SAM_APDU [10:17:50]CAPDU: 80 0D 01 02 [10:17:50]Write to MH i2c: E2 08 00 79 93 80 0D 01 02 00 00 00 00 85 [10:17:50]Write i2c OK [10:17:50]MH_I2C_Read... [10:17:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:17:50]Read from MH i2c: E2 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 03 00 [10:17:50]MH_I2C_Read... [10:17:50]Read from MH i2c: E2 03 00 79 93 00 90 00 80 [10:17:50]RAPDU: 90 00 [10:17:50]wFMCommunicate OK [10:17:50]wFMCommunicate request_size=255 [10:17:50]MH_SAM_APDU [10:17:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 64 1E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 99 C0 00 00 35 04 06 00 25 [10:17:50]Write to MH i2c: E2 02 01 7A 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 64 1E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 99 C0 00 00 35 04 06 00 25 00 00 22 [10:17:50]Write i2c OK [10:17:50]MH_I2C_Read... [10:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:51]Read from MH i2c: E2 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: E2 03 00 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: E2 03 00 7A 93 00 90 00 81 [10:17:51]RAPDU: 90 00 [10:17:51]wFMCommunicate OK [10:17:51]wFMCommunicate request_size=10 [10:17:51]MH_SAM_APDU [10:17:51]CAPDU: 80 0D 02 02 05 70 F4 D2 1C 37 [10:17:51]Write to MH i2c: E2 0D 00 7B 93 80 0D 02 02 05 00 70 F4 D2 1C 37 00 00 1B [10:17:51]Write i2c OK [10:17:51]MH_I2C_Read... [10:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:17:51]Read from MH i2c: E2 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: E2 03 00 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: E2 03 00 7B 93 00 90 00 82 [10:17:51]RAPDU: 90 00 [10:17:51]wFMCommunicate OK [10:17:51]wFMCommunicate request_size=4 [10:17:51]MH_SAM_APDU [10:17:51]CAPDU: 80 0D 03 02 [10:17:51]Write to MH i2c: E2 08 00 7C 93 80 0D 03 02 00 00 00 00 8A [10:17:51]Write i2c OK [10:17:51]MH_I2C_Read... [10:17:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:17:51]Read from MH i2c: E2 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: E2 0B 00 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: E2 0B 00 7C 93 00 CA 9A 53 5C 7A 5E 0B 5D 90 00 DE [10:17:51]RAPDU: CA 9A 53 5C 7A 5E 0B 5D 90 00 [10:17:51]wFMCommunicate OK [10:17:51]SAM_PROTO_SignData done [10:17:51]FM_MakeSignedData done [10:17:51]CreateOFDProtocolMessage [10:17:51]wFMCommunicate request_size=4 [10:17:51]MH_SAM_APDU [10:17:51]CAPDU: 80 11 00 00 [10:17:51]Write to MH i2c: E2 08 00 7D 93 80 11 00 00 00 00 00 00 8A [10:17:51]Write i2c OK [10:17:51]MH_I2C_Read... [10:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:51]Read from MH i2c: E2 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: E2 17 00 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: E2 17 00 7D 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D7 [10:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:17:51]wFMCommunicate OK [10:17:51]CreateOFDProtocolMessage done [10:17:51]OFDSenderStorePacket 49305 [10:17:51]StoreOFDPacket docnum=49305 [10:17:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 EA 68 07 01 7F 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 64 1E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 99 C0 00 00 35 04 06 00 25 70 F4 D2 1C 37 CA 9A 53 5C 7A 5E 0B 5D [10:17:51]CheckFolder [10:17:51]dirname=/storage/ofd_packets [10:17:51]CheckFolder done [10:17:51]ProducePacketName [10:17:51]name=ofd_packets/00049305 [10:17:51]NVStorageSaveData ofd_packets/00049305 [10:17:51]File name is /storage/ofd_packets/00049305 [10:17:51]Write 301 bytes [10:17:51]NVStorageSaveData done [10:17:51]OFDSenderStorePacket done [10:17:51]KKMCreateOFDPacket done [10:17:51]NVStorageSaveData kkm_last_timestamp [10:17:51]File name is /storage/kkm_last_timestamp [10:17:51]Write 4 bytes [10:17:51]NVStorageSaveData done [10:17:51]ExternCall_PrintAddStr [10:17:51]wPrintStart [10:17:51]Write to MH i2c: 01 00 00 7E 93 11 [10:17:51]Write i2c OK [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: 01 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: 01 07 00 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: 01 07 00 7E 93 00 00 00 00 00 FF 0F 26 [10:17:51]RasterBufferAndPrint [10:17:51]line Счет N : (1)216408 [10:17:51]line ИНН: 02508201610067 [10:17:51]line Контрольно-Кассовый Чек [10:17:51]line ПРОДАЖА [10:17:51]line ТРК (МРК, ГНК) : 12 [10:17:51]line Товар: 2710124130 [10:17:51]line Аи-92-К-5 [10:17:51]line 4.150 * 60.30 [10:17:51]line = 250.25 [10:17:51]line НДС 12% НСП 1% [10:17:51]line > о реализуемом товаре [10:17:51]line ОКРУГЛЕНИЕ: -0.25 [10:17:51]line ИТОГО: 250.00 [10:17:51]line Внесено: 250.00 [10:17:51]line СДАЧА: 0.00 [10:17:51]line НСП 1% : 2.21 [10:17:51]line НДС 12% : 26.57 [10:17:51]line Наличными: 250.00 [10:17:51]line Безнал.: 0.00 [10:17:51]line Место: АЗС № 102 "Партнер Нефть" [10:17:51]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:17:51]line СНО: Общий режим [10:17:51]line Чек 30 31.01.2024 10:18 [10:17:51]line Смена: 247 ФФД: 1.0 [10:17:51]line ЗНМ: 0300000040 [10:17:51]line РНМ: 0000000000092723 [10:17:51]line Версия ККМ: 001 [10:17:51]line ФМ: 0000000000875060 [10:17:51]line ФД: 49305 [10:17:51]line ФПД: 41167073975351 [10:17:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T101812&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49305&fm=41167073975351&tin=02508201610067®Number=0000000000092723&sum=25000 [10:17:51]OFD Sender: Processing packet 49305 [packets to send 12, broken 11] [10:17:51]ProducePacketName [10:17:51]name=ofd_packets/00049305 [10:17:51]OFD Sender: To server: pG, [10:17:51]CommunicateWithHost lk.salyk.kg:30040 [10:17:51]ConnectInit lk.salyk.kg [10:17:51]written 0, free lines is 4095 [10:17:51]Connected sock=10 [10:17:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 EA 68 07 01 7F 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 36 10 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C1 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 64 1E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 99 C0 00 00 35 04 06 00 25 70 F4 D2 1C 37 CA 9A 53 5C 7A 5E 0B 5D [10:17:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 C4 76 47 00 ED 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 35 30 36 30 10 04 04 00 99 C0 00 00 F4 03 04 00 57 CA B9 65 B6 04 01 00 00 22 A6 0F D9 B1 A6 7A 1E [10:17:51]CommunicateWithHost err = 0 [10:17:51]CheckOFDResponse [10:17:51]1017 (14) - 77093643461234 [10:17:51]1041 (16) - 0000000000875060 [10:17:51]1040 (4) - 49305 [10:17:51]1012 (4) - 31.01.2024 04:19 [10:17:51]1206 (1) - 0 [10:17:51]OFD Sender: Remove packet 49305 [10:17:51]ProducePacketName [10:17:51]name=ofd_packets/00049305 [10:17:51]NVStorageDeleteData [10:17:51]Write to MH i2c: 01 00 00 A9 93 3C [10:17:51]Write i2c OK [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: 01 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: 01 07 00 [10:17:51]MH_I2C_Read... [10:17:51]Read from MH i2c: 01 07 00 A9 93 00 00 00 00 00 E1 0C 30 [10:17:51]RasterBufferAndPrint [10:17:51]line [10:17:51]line [10:17:51]line [10:17:51]line [10:17:51]line [10:17:51]written 0, free lines is 3306 [10:17:52]MH_Cut [10:17:52]Write to MH i2c: D1 01 00 B0 93 01 15 [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: D1 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: D1 01 00 [10:17:52]MH_I2C_Read... [10:17:52]Read from MH i2c: D1 01 00 B0 93 00 14 [10:17:52]Write to MH i2c: 01 00 00 B1 93 44 [10:17:52]Write i2c OK [10:17:52]MH_I2C_Read... [10:17:52]OFD Sender: No OFD packet to send [10:17:52]*** Cut start [10:17:52]*** Partial cut [10:17:52]*** CUTSNS_PIN = 1 [10:17:52]*** CUTSNS_PIN = 0 [10:17:52]*** Brake cut motor [10:17:53]Read from MH i2c: 01 [10:17:53]MH_I2C_Read... [10:17:53]*** Stop cut motor [10:17:53]*** Cut end [10:17:53]Read from MH i2c: 01 07 00 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: 01 07 00 B1 93 00 00 00 00 00 FF 0F 59 [10:17:53]process_action close_receipt done [10:17:53]requested_data is exist [10:17:53]produce_requested_data [10:17:53]requested_item fm.sn is exist - process it [10:17:53]wFMCommunicate request_size=4 [10:17:53]MH_SAM_APDU [10:17:53]CAPDU: 80 11 00 00 [10:17:53]Write to MH i2c: E2 08 00 B2 93 80 11 00 00 00 00 00 00 BF [10:17:53]Write i2c OK [10:17:53]MH_I2C_Read... [10:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:17:53]Read from MH i2c: E2 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: E2 17 00 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: E2 17 00 B2 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0C [10:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:17:53]wFMCommunicate OK [10:17:53]requested_item fd.num is exist - process it [10:17:53]SAM_PROTO_GetFieldsCounters [10:17:53]wFMCommunicate request_size=4 [10:17:53]MH_SAM_APDU [10:17:53]CAPDU: 80 13 00 00 [10:17:53]Write to MH i2c: E2 08 00 B3 93 80 13 00 00 00 00 00 00 C2 [10:17:53]Write i2c OK [10:17:53]MH_I2C_Read... [10:17:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:17:53]Read from MH i2c: E2 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: E2 62 00 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: E2 62 00 B3 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 99 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [10:17: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 99 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:17:53]wFMCommunicate OK [10:17:53]SAM_PROTO_GetFieldsCounters done [10:17:53]requested_item shift.num is exist - process it [10:17:53]requested_item shift.opened is exist - process it [10:17:53]req_shift_opened [10:17:53]FM_GetShiftState [10:17:53]SAM_PROTO_GetShiftState [10:17:53]wFMCommunicate request_size=4 [10:17:53]MH_SAM_APDU [10:17:53]CAPDU: 80 13 01 00 [10:17:53]Write to MH i2c: E2 08 00 B4 93 80 13 01 00 00 00 00 00 C4 [10:17:53]Write i2c OK [10:17:53]MH_I2C_Read... [10:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:17:53]Read from MH i2c: E2 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: E2 0E 00 [10:17:53]MH_I2C_Read... [10:17:53]Read from MH i2c: E2 0E 00 B4 93 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 1A [10:17:53]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:17:53]wFMCommunicate OK [10:17:53]SAM_PROTO_GetShiftState done [10:17:53]FM_GetShiftState done [10:17:53]req_shift_opened done [10:17:53]requested_item shift.open_date is exist - process it [10:17:53]req_shift_open_date [10:17:53]req_shift_open_date done [10:17:53]produce_requested_data done [10:17:53]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49305,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [10:17:53]process_action_free close_receipt [10:17:53]json_value_free [10:17:53]json_value_free done [10:17:53]process_json_proto returns [10:17:53]Send response to host [10:17:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49305,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [10:17:53]free response buf [10:17:53]execute_script done [10:17:53]execute_script returns [10:17:53]free content buf [10:17:53]Sock 7.Close socket [10:17:53]Sock 7.Thread stoped [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:22]OFD Sender: No OFD packet to send [10:19:27]OFD Sender: No OFD packet to send [10:19:32]OFD Sender: No OFD packet to send [10:19:37]OFD Sender: No OFD packet to send [10:19:42]OFD Sender: No OFD packet to send [10:19:47]OFD Sender: No OFD packet to send [10:19:52]OFD Sender: No OFD packet to send [10:19:57]OFD Sender: No OFD packet to send [10:20:02]OFD Sender: No OFD packet to send [10:20:07]OFD Sender: No OFD packet to send [10:20:12]OFD Sender: No OFD packet to send [10:20:17]OFD Sender: No OFD packet to send [10:20:22]OFD Sender: No OFD packet to send [10:20:27]OFD Sender: No OFD packet to send [10:20:32]OFD Sender: No OFD packet to send [10:20:37]OFD Sender: No OFD packet to send [10:20:42]OFD Sender: No OFD packet to send [10:20:47]OFD Sender: No OFD packet to send [10:20:52]OFD Sender: No OFD packet to send [10:20:57]OFD Sender: No OFD packet to send [10:21:02]OFD Sender: No OFD packet to send [10:21:07]OFD Sender: No OFD packet to send [10:21:12]OFD Sender: No OFD packet to send [10:21:17]OFD Sender: No OFD packet to send [10:21:22]OFD Sender: No OFD packet to send [10:21:27]OFD Sender: No OFD packet to send [10:21:31]accept exits with 9 [10:21:31]New connection [10:21:31]New thread 3066670436 created [10:21:31]Thread 3066813796 joined [10:21:31]Waiting for new connection... [10:21:31] Sock 9.Parse request [10:21:31]Sock 9.Check first char [10:21:31]Sock 9.First char is OK [10:21:31]request: POST /json_proto HTTP/1.0 [10:21:31]Method: POST [10:21:31]URL: /json_proto [10:21:31]Method is POST - this is cgi request [10:21:31]url: /json_proto [10:21:31]query_string will be loaded in cgi processing [10:21:31]execute_cgi json_proto POST (null) [10:21:31]execute_cgi path=json_proto method=POST [10:21:31]POST find Content-Length [10:21:31]Host: 172.17.56.67:8080 [10:21:31]Content-Length: 677 [10:21:31]Content-Type: application/json [10:21:31] [10:21:31]POST finish read [10:21:31]Found Content-Length = 677 [10:21:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:31]execute_script... [10:21: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)216409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:31]POST & json_proto [10:21:31]process_json_proto [10:21:31]json parsed OK: [10:21:31]protocol is kg_v1.0 [10:21:31]action value=close_receipt [10:21:31]process_action close_receipt [10:21:31]cmd_close_receipt [10:21:31]MH_GetDate [10:21:31]Write to MH i2c: F0 00 00 B5 93 37 [10:21:31]Write i2c OK [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: F0 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: F0 09 00 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: F0 09 00 B5 93 00 42 1F BA 65 26 5D 9E 65 46 [10:21:31]GetLastDocTimeStamp 1706696292 [10:21:31]current date 1706696514 [10:21:31]FM_GetShiftState [10:21:31]SAM_PROTO_GetShiftState [10:21:31]wFMCommunicate request_size=4 [10:21:31]MH_SAM_APDU [10:21:31]CAPDU: 80 13 01 00 [10:21:31]Write to MH i2c: E2 08 00 B6 93 80 13 01 00 00 00 00 00 C6 [10:21:31]Write i2c OK [10:21:31]MH_I2C_Read... [10:21:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:31]Read from MH i2c: E2 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: E2 0E 00 [10:21:31]MH_I2C_Read... [10:21:31]Read from MH i2c: E2 0E 00 B6 93 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 1C [10:21:31]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:21:31]wFMCommunicate OK [10:21:31]SAM_PROTO_GetShiftState done [10:21:31]FM_GetShiftState done [10:21:31]opened in 1706659486 [10:21:31]opened+sec_in_day 1706745886 [10:21:31]quantity*price = 50049 [10:21:31]sum+1 = 50050 [10:21:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 31 31.01.2024 10:21 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49306 ФПД: 11957530808305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T102155&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49306&fm=11957530808305&tin=02508201610067®Number=0000000000092723&sum=50000 [10:21:32]StoreToDocumentArchive [10:21:32]shift 247 fd 49306 [10:21:32]save to /storage/0247/doc_00049306 [10:21:32]save last doc name /storage/0247/doc_00049306 to /storage/kkm_last_doc_name [10:21:32]save OK [10:21:32]Clear old archive folders... [10:21:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:32]tlvbuf is 013B87A0 [10:21:32]SAM_PROTO_ClearQueue [10:21:32]wFMCommunicate request_size=4 [10:21:32]MH_SAM_APDU [10:21:32]CAPDU: 80 09 00 00 [10:21:32]Write to MH i2c: E2 08 00 C3 93 80 09 00 00 00 00 00 00 C8 [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:32]Read from MH i2c: E2 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 03 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 03 00 C3 93 00 90 00 CA [10:21:32]RAPDU: 90 00 [10:21:32]wFMCommunicate OK [10:21:32]SAM_PROTO_ClearQueue done [10:21:32]KKMCreateOFDPacket [10:21:32]OFDProtocolAddRootSTLVToBuf [10:21:32]FM_MakeSignedData [10:21:32]FM_MakeSignedData [10:21:32]SAM_PROTO_SignData [10:21:32]wFMCommunicate request_size=4 [10:21:32]MH_SAM_APDU [10:21:32]CAPDU: 80 0D 01 02 [10:21:32]Write to MH i2c: E2 08 00 C4 93 80 0D 01 02 00 00 00 00 D0 [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:32]Read from MH i2c: E2 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 03 00 [10:21:32]MH_I2C_Read... [10:21:32]Read from MH i2c: E2 03 00 C4 93 00 90 00 CB [10:21:32]RAPDU: 90 00 [10:21:32]wFMCommunicate OK [10:21:32]wFMCommunicate request_size=255 [10:21:32]MH_SAM_APDU [10:21:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 43 1F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9A C0 00 00 35 04 06 00 0A [10:21:32]Write to MH i2c: E2 02 01 C5 93 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 43 1F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9A C0 00 00 35 04 06 00 0A 00 00 FB [10:21:32]Write i2c OK [10:21:32]MH_I2C_Read... [10:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:33]Read from MH i2c: E2 [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: E2 03 00 [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: E2 03 00 C5 93 00 90 00 CC [10:21:33]RAPDU: 90 00 [10:21:33]wFMCommunicate OK [10:21:33]wFMCommunicate request_size=10 [10:21:33]MH_SAM_APDU [10:21:33]CAPDU: 80 0D 02 02 05 E0 14 60 4F F1 [10:21:33]Write to MH i2c: E2 0D 00 C6 93 80 0D 02 02 05 00 E0 14 60 4F F1 00 00 71 [10:21:33]Write i2c OK [10:21:33]MH_I2C_Read... [10:21:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:33]Read from MH i2c: E2 [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: E2 03 00 [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: E2 03 00 C6 93 00 90 00 CD [10:21:33]RAPDU: 90 00 [10:21:33]wFMCommunicate OK [10:21:33]wFMCommunicate request_size=4 [10:21:33]MH_SAM_APDU [10:21:33]CAPDU: 80 0D 03 02 [10:21:33]Write to MH i2c: E2 08 00 C7 93 80 0D 03 02 00 00 00 00 D5 [10:21:33]Write i2c OK [10:21:33]MH_I2C_Read... [10:21:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:33]Read from MH i2c: E2 [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: E2 0B 00 [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: E2 0B 00 C7 93 00 89 C1 0E C9 B6 0E E2 CF 90 00 6C [10:21:33]RAPDU: 89 C1 0E C9 B6 0E E2 CF 90 00 [10:21:33]wFMCommunicate OK [10:21:33]SAM_PROTO_SignData done [10:21:33]FM_MakeSignedData done [10:21:33]CreateOFDProtocolMessage [10:21:33]wFMCommunicate request_size=4 [10:21:33]MH_SAM_APDU [10:21:33]CAPDU: 80 11 00 00 [10:21:33]Write to MH i2c: E2 08 00 C8 93 80 11 00 00 00 00 00 00 D5 [10:21:33]Write i2c OK [10:21:33]MH_I2C_Read... [10:21:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:33]Read from MH i2c: E2 [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: E2 17 00 [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: E2 17 00 C8 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 22 [10:21:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:21:33]wFMCommunicate OK [10:21:33]CreateOFDProtocolMessage done [10:21:33]OFDSenderStorePacket 49306 [10:21:33]StoreOFDPacket docnum=49306 [10:21:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 7C 26 07 01 14 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 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 43 1F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9A C0 00 00 35 04 06 00 0A E0 14 60 4F F1 89 C1 0E C9 B6 0E E2 CF [10:21:33]CheckFolder [10:21:33]dirname=/storage/ofd_packets [10:21:33]CheckFolder done [10:21:33]ProducePacketName [10:21:33]name=ofd_packets/00049306 [10:21:33]NVStorageSaveData ofd_packets/00049306 [10:21:33]File name is /storage/ofd_packets/00049306 [10:21:33]Write 301 bytes [10:21:33]NVStorageSaveData done [10:21:33]OFDSenderStorePacket done [10:21:33]KKMCreateOFDPacket done [10:21:33]NVStorageSaveData kkm_last_timestamp [10:21:33]File name is /storage/kkm_last_timestamp [10:21:33]Write 4 bytes [10:21:33]NVStorageSaveData done [10:21:33]ExternCall_PrintAddStr [10:21:33]wPrintStart [10:21:33]Write to MH i2c: 01 00 00 C9 93 5C [10:21:33]OFD Sender: Processing packet 49306 [packets to send 12, broken 11] [10:21:33]ProducePacketName [10:21:33]name=ofd_packets/00049306 [10:21:33]OFD Sender: To server: pG, [10:21:33]CommunicateWithHost lk.salyk.kg:30040 [10:21:33]ConnectInit lk.salyk.kg [10:21:33]Write i2c OK [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: 01 [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: 01 07 00 [10:21:33]MH_I2C_Read... [10:21:33]Read from MH i2c: 01 07 00 C9 93 00 00 00 00 00 FF 0F 71 [10:21:33]RasterBufferAndPrint [10:21:33]line Счет N : (1)216409 [10:21:33]line ИНН: 02508201610067 [10:21:33]line Контрольно-Кассовый Чек [10:21:33]line ПРОДАЖА [10:21:33]line ТРК (МРК, ГНК) : 12 [10:21:33]line Товар: 2710124130 [10:21:33]line Аи-92-К-5 [10:21:33]line 8.300 * 60.30 [10:21:33]line = 500.49 [10:21:33]line НДС 12% НСП 1% [10:21:33]line > о реализуемом товаре [10:21:33]line ОКРУГЛЕНИЕ: -0.49 [10:21:33]line ИТОГО: 500.00 [10:21:33]line Внесено: 500.00 [10:21:33]line СДАЧА: 0.00 [10:21:33]line НСП 1% : 4.43 [10:21:33]line НДС 12% : 53.15 [10:21:33]line Наличными: 500.00 [10:21:33]line Безнал.: 0.00 [10:21:33]line Место: АЗС № 102 "Партнер Нефть" [10:21:33]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:21:33]line СНО: Общий режим [10:21:33]line Чек 31 31.01.2024 10:21 [10:21:33]line Смена: 247 ФФД: 1.0 [10:21:33]line ЗНМ: 0300000040 [10:21:33]line РНМ: 0000000000092723 [10:21:33]line Версия ККМ: 001 [10:21:33]line ФМ: 0000000000875060 [10:21:33]line ФД: 49306 [10:21:33]line ФПД: 11957530808305 [10:21:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T102155&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49306&fm=11957530808305&tin=02508201610067®Number=0000000000092723&sum=50000 [10:21:33]Connected sock=10 [10:21:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 7C 26 07 01 14 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 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 43 1F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9A C0 00 00 35 04 06 00 0A E0 14 60 4F F1 89 C1 0E C9 B6 0E E2 CF [10:21:33]written 0, free lines is 4095 [10:21:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 60 2B 47 00 3D FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9A C0 00 00 F4 03 04 00 35 CB B9 65 B6 04 01 00 00 6D 3C 28 0E 01 2C 6B 3F [10:21:33]CommunicateWithHost err = 0 [10:21:33]CheckOFDResponse [10:21:33]1017 (14) - 77093643461234 [10:21:33]1041 (16) - 0000000000875060 [10:21:33]1040 (4) - 49306 [10:21:33]1012 (4) - 31.01.2024 04:23 [10:21:33]1206 (1) - 0 [10:21:33]OFD Sender: Remove packet 49306 [10:21:33]ProducePacketName [10:21:33]name=ofd_packets/00049306 [10:21:33]NVStorageDeleteData [10:21:34]Write to MH i2c: 01 00 00 F4 93 87 [10:21:34]Write i2c OK [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: 01 [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: 01 07 00 [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: 01 07 00 F4 93 00 00 00 00 00 EC 0C 86 [10:21:34]RasterBufferAndPrint [10:21:34]line [10:21:34]line [10:21:34]line [10:21:34]line [10:21:34]line [10:21:34]written 0, free lines is 3315 [10:21:34]MH_Cut [10:21:34]Write to MH i2c: D1 01 00 FB 93 01 60 [10:21:34]Write i2c OK [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: D1 [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: D1 01 00 [10:21:34]MH_I2C_Read... [10:21:34]Read from MH i2c: D1 01 00 FB 93 00 5F [10:21:34]Write to MH i2c: 01 00 00 FC 93 8F [10:21:34]Write i2c OK [10:21:34]MH_I2C_Read... [10:21:34]OFD Sender: No OFD packet to send [10:21:34]*** Cut start [10:21:34]*** Partial cut [10:21:34]*** CUTSNS_PIN = 1 [10:21:34]*** CUTSNS_PIN = 0 [10:21:35]*** Brake cut motor [10:21:35]Read from MH i2c: 01 [10:21:35]MH_I2C_Read... [10:21:35]*** Stop cut motor [10:21:35]*** Cut end [10:21:35]Read from MH i2c: 01 07 00 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: 01 07 00 FC 93 00 00 00 00 00 FF 0F A4 [10:21:35]process_action close_receipt done [10:21:35]requested_data is exist [10:21:35]produce_requested_data [10:21:35]requested_item fm.sn is exist - process it [10:21:35]wFMCommunicate request_size=4 [10:21:35]MH_SAM_APDU [10:21:35]CAPDU: 80 11 00 00 [10:21:35]Write to MH i2c: E2 08 00 FD 93 80 11 00 00 00 00 00 00 0A [10:21:35]Write i2c OK [10:21:35]MH_I2C_Read... [10:21:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:35]Read from MH i2c: E2 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: E2 17 00 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: E2 17 00 FD 93 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 57 [10:21:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:21:35]wFMCommunicate OK [10:21:35]requested_item fd.num is exist - process it [10:21:35]SAM_PROTO_GetFieldsCounters [10:21:35]wFMCommunicate request_size=4 [10:21:35]MH_SAM_APDU [10:21:35]CAPDU: 80 13 00 00 [10:21:35]Write to MH i2c: E2 08 00 FE 93 80 13 00 00 00 00 00 00 0D [10:21:35]Write i2c OK [10:21:35]MH_I2C_Read... [10:21:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:35]Read from MH i2c: E2 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: E2 62 00 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: E2 62 00 FE 93 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 9A C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [10:21: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 9A C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:35]wFMCommunicate OK [10:21:35]SAM_PROTO_GetFieldsCounters done [10:21:35]requested_item shift.num is exist - process it [10:21:35]requested_item shift.opened is exist - process it [10:21:35]req_shift_opened [10:21:35]FM_GetShiftState [10:21:35]SAM_PROTO_GetShiftState [10:21:35]wFMCommunicate request_size=4 [10:21:35]MH_SAM_APDU [10:21:35]CAPDU: 80 13 01 00 [10:21:35]Write to MH i2c: E2 08 00 FF 93 80 13 01 00 00 00 00 00 0F [10:21:35]Write i2c OK [10:21:35]MH_I2C_Read... [10:21:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:35]Read from MH i2c: E2 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: E2 0E 00 [10:21:35]MH_I2C_Read... [10:21:35]Read from MH i2c: E2 0E 00 FF 93 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 65 [10:21:35]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:21:35]wFMCommunicate OK [10:21:35]SAM_PROTO_GetShiftState done [10:21:35]FM_GetShiftState done [10:21:35]req_shift_opened done [10:21:35]requested_item shift.open_date is exist - process it [10:21:35]req_shift_open_date [10:21:35]req_shift_open_date done [10:21:35]produce_requested_data done [10:21:35]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49306,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [10:21:35]process_action_free close_receipt [10:21:35]json_value_free [10:21:35]json_value_free done [10:21:35]process_json_proto returns [10:21:35]Send response to host [10:21:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49306,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [10:21:35]free response buf [10:21:35]execute_script done [10:21:35]execute_script returns [10:21:35]free content buf [10:21:35]Sock 9.Close socket [10:21:35]Sock 9.Thread stoped [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:53]accept exits with 7 [10:23:53]New connection [10:23:53]New thread 3066813796 created [10:23:53]Thread 3066670436 joined [10:23:53]Waiting for new connection... [10:23:53] Sock 7.Parse request [10:23:53]Sock 7.Check first char [10:23:53]Sock 7.First char is OK [10:23:53]request: POST /json_proto HTTP/1.0 [10:23:53]Method: POST [10:23:53]URL: /json_proto [10:23:53]Method is POST - this is cgi request [10:23:53]url: /json_proto [10:23:53]query_string will be loaded in cgi processing [10:23:53]execute_cgi json_proto POST (null) [10:23:53]execute_cgi path=json_proto method=POST [10:23:53]POST find Content-Length [10:23:53]Host: 172.17.56.67:8080 [10:23:53]Content-Length: 639 [10:23:53]Content-Type: application/json [10:23:53] [10:23:53]POST finish read [10:23:53]Found Content-Length = 639 [10:23:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.990, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:53]execute_script... [10:23: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)216410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.990, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:53]POST & json_proto [10:23:53]process_json_proto [10:23:53]json parsed OK: [10:23:53]protocol is kg_v1.0 [10:23:53]action value=close_receipt [10:23:53]process_action close_receipt [10:23:53]cmd_close_receipt [10:23:53]MH_GetDate [10:23:53]Write to MH i2c: F0 00 00 00 94 83 [10:23:53]Write i2c OK [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: F0 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: F0 09 00 [10:23:53]MH_I2C_Read... [10:23:53]Read from MH i2c: F0 09 00 00 94 00 D1 1F BA 65 26 5D 9E 65 21 [10:23:53]GetLastDocTimeStamp 1706696515 [10:23:53]current date 1706696657 [10:23:53]FM_GetShiftState [10:23:53]SAM_PROTO_GetShiftState [10:23:53]wFMCommunicate request_size=4 [10:23:53]MH_SAM_APDU [10:23:53]CAPDU: 80 13 01 00 [10:23:53]Write to MH i2c: E2 08 00 01 94 80 13 01 00 00 00 00 00 12 [10:23:53]Write i2c OK [10:23:53]MH_I2C_Read... [10:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:54]Read from MH i2c: E2 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 0E 00 [10:23:54]MH_I2C_Read... [10:23:54]Read from MH i2c: E2 0E 00 01 94 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 68 [10:23:54]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:23:54]wFMCommunicate OK [10:23:54]SAM_PROTO_GetShiftState done [10:23:54]FM_GetShiftState done [10:23:54]opened in 1706659486 [10:23:54]opened+sec_in_day 1706745886 [10:23:54]quantity*price = 11999 [10:23:54]sum+1 = 12001 [10:23:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 32 31.01.2024 10:24 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49307 ФПД: 28771226261609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T102417&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49307&fm=28771226261609&tin=02508201610067®Number=0000000000092723&sum=12000 [10:23:55]StoreToDocumentArchive [10:23:55]shift 247 fd 49307 [10:23:55]save to /storage/0247/doc_00049307 [10:23:55]save last doc name /storage/0247/doc_00049307 to /storage/kkm_last_doc_name [10:23:55]save OK [10:23:55]Clear old archive folders... [10:23:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:55]tlvbuf is B6F33180 [10:23:55]SAM_PROTO_ClearQueue [10:23:55]wFMCommunicate request_size=4 [10:23:55]MH_SAM_APDU [10:23:55]CAPDU: 80 09 00 00 [10:23:55]Write to MH i2c: E2 08 00 0E 94 80 09 00 00 00 00 00 00 14 [10:23:55]Write i2c OK [10:23:55]MH_I2C_Read... [10:23:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:55]Read from MH i2c: E2 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: E2 03 00 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: E2 03 00 0E 94 00 90 00 16 [10:23:55]RAPDU: 90 00 [10:23:55]wFMCommunicate OK [10:23:55]SAM_PROTO_ClearQueue done [10:23:55]KKMCreateOFDPacket [10:23:55]OFDProtocolAddRootSTLVToBuf [10:23:55]FM_MakeSignedData [10:23:55]FM_MakeSignedData [10:23:55]SAM_PROTO_SignData [10:23:55]wFMCommunicate request_size=4 [10:23:55]MH_SAM_APDU [10:23:55]CAPDU: 80 0D 01 02 [10:23:55]Write to MH i2c: E2 08 00 0F 94 80 0D 01 02 00 00 00 00 1C [10:23:55]Write i2c OK [10:23:55]MH_I2C_Read... [10:23:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:55]Read from MH i2c: E2 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: E2 03 00 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: E2 03 00 0F 94 00 90 00 17 [10:23:55]RAPDU: 90 00 [10:23:55]wFMCommunicate OK [10:23:55]wFMCommunicate request_size=255 [10:23:55]MH_SAM_APDU [10:23:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 07 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 D1 1F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9B C0 00 00 35 04 06 00 1A [10:23:55]Write to MH i2c: E2 02 01 10 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 07 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 D1 1F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9B C0 00 00 35 04 06 00 1A 00 00 BD [10:23:55]Write i2c OK [10:23:55]MH_I2C_Read... [10:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:55]Read from MH i2c: E2 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: E2 03 00 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: E2 03 00 10 94 00 90 00 18 [10:23:55]RAPDU: 90 00 [10:23:55]wFMCommunicate OK [10:23:55]wFMCommunicate request_size=10 [10:23:55]MH_SAM_APDU [10:23:55]CAPDU: 80 0D 02 02 05 2A D2 B8 98 69 [10:23:55]Write to MH i2c: E2 0D 00 11 94 80 0D 02 02 05 00 2A D2 B8 98 69 00 00 DE [10:23:55]Write i2c OK [10:23:55]MH_I2C_Read... [10:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:55]Read from MH i2c: E2 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: E2 03 00 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: E2 03 00 11 94 00 90 00 19 [10:23:55]RAPDU: 90 00 [10:23:55]wFMCommunicate OK [10:23:55]wFMCommunicate request_size=4 [10:23:55]MH_SAM_APDU [10:23:55]CAPDU: 80 0D 03 02 [10:23:55]Write to MH i2c: E2 08 00 12 94 80 0D 03 02 00 00 00 00 21 [10:23:55]Write i2c OK [10:23:55]MH_I2C_Read... [10:23:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:55]Read from MH i2c: E2 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: E2 0B 00 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: E2 0B 00 12 94 00 A5 22 9A 0C 3E A6 40 BE 90 00 71 [10:23:55]RAPDU: A5 22 9A 0C 3E A6 40 BE 90 00 [10:23:55]wFMCommunicate OK [10:23:55]SAM_PROTO_SignData done [10:23:55]FM_MakeSignedData done [10:23:55]CreateOFDProtocolMessage [10:23:55]wFMCommunicate request_size=4 [10:23:55]MH_SAM_APDU [10:23:55]CAPDU: 80 11 00 00 [10:23:55]Write to MH i2c: E2 08 00 13 94 80 11 00 00 00 00 00 00 21 [10:23:55]Write i2c OK [10:23:55]MH_I2C_Read... [10:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:55]Read from MH i2c: E2 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: E2 17 00 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: E2 17 00 13 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6E [10:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:23:55]wFMCommunicate OK [10:23:55]CreateOFDProtocolMessage done [10:23:55]OFDSenderStorePacket 49307 [10:23:55]StoreOFDPacket docnum=49307 [10:23:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 41 D8 07 01 1B 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 07 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 D1 1F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9B C0 00 00 35 04 06 00 1A 2A D2 B8 98 69 A5 22 9A 0C 3E A6 40 BE [10:23:55]CheckFolder [10:23:55]dirname=/storage/ofd_packets [10:23:55]CheckFolder done [10:23:55]ProducePacketName [10:23:55]name=ofd_packets/00049307 [10:23:55]NVStorageSaveData ofd_packets/00049307 [10:23:55]File name is /storage/ofd_packets/00049307 [10:23:55]Write 301 bytes [10:23:55]NVStorageSaveData done [10:23:55]OFDSenderStorePacket done [10:23:55]KKMCreateOFDPacket done [10:23:55]NVStorageSaveData kkm_last_timestamp [10:23:55]File name is /storage/kkm_last_timestamp [10:23:55]Write 4 bytes [10:23:55]NVStorageSaveData done [10:23:55]ExternCall_PrintAddStr [10:23:55]wPrintStart [10:23:55]Write to MH i2c: 01 00 00 14 94 A8 [10:23:55]Write i2c OK [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: 01 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: 01 07 00 [10:23:55]MH_I2C_Read... [10:23:55]Read from MH i2c: 01 07 00 14 94 00 00 00 00 00 FF 0F BD [10:23:55]RasterBufferAndPrint [10:23:55]line Счет N : (1)216410 [10:23:55]line ИНН: 02508201610067 [10:23:55]line Контрольно-Кассовый Чек [10:23:55]line ПРОДАЖА [10:23:55]line ТРК (МРК, ГНК) : 12 [10:23:55]line Товар: 2710124130 [10:23:55]line Аи-92-К-5 [10:23:55]line 1.990 * 60.30 [10:23:55]line = 120.00 [10:23:55]line НДС 12% НСП 1% [10:23:55]line > о реализуемом товаре [10:23:55]line ИТОГО: 120.00 [10:23:55]line НСП 1% : 1.06 [10:23:55]line НДС 12% : 12.74 [10:23:55]line Наличными: 120.00 [10:23:55]line Безнал.: 0.00 [10:23:55]line Место: АЗС № 102 "Партнер Нефть" [10:23:55]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:23:55]line СНО: Общий режим [10:23:55]line Чек 32 31.01.2024 10:24 [10:23:55]line Смена: 247 ФФД: 1.0 [10:23:55]line ЗНМ: 0300000040 [10:23:55]line РНМ: 0000000000092723 [10:23:55]line Версия ККМ: 001 [10:23:55]line ФМ: 0000000000875060 [10:23:55]line ФД: 49307 [10:23:55]line ФПД: 28771226261609 [10:23:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T102417&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49307&fm=28771226261609&tin=02508201610067®Number=0000000000092723&sum=12000 [10:23:56]OFD Sender: Processing packet 49307 [packets to send 12, broken 11] [10:23:56]ProducePacketName [10:23:56]name=ofd_packets/00049307 [10:23:56]OFD Sender: To server: pG, [10:23:56]CommunicateWithHost lk.salyk.kg:30040 [10:23:56]ConnectInit lk.salyk.kg [10:23:56]written 0, free lines is 4095 [10:23:56]Write to MH i2c: 01 00 00 3C 94 D0 [10:23:56]Write i2c OK [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: 01 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: 01 07 00 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: 01 07 00 3C 94 00 00 00 00 00 18 0D FC [10:23:56]RasterBufferAndPrint [10:23:56]line [10:23:56]line [10:23:56]line [10:23:56]line [10:23:56]line [10:23:56]written 0, free lines is 3358 [10:23:56]MH_Cut [10:23:56]Write to MH i2c: D1 01 00 43 94 01 A9 [10:23:56]Write i2c OK [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: D1 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: D1 01 00 [10:23:56]MH_I2C_Read... [10:23:56]Read from MH i2c: D1 01 00 43 94 00 A8 [10:23:56]Write to MH i2c: 01 00 00 44 94 D8 [10:23:56]Write i2c OK [10:23:56]MH_I2C_Read... [10:23:57]*** Cut start [10:23:57]*** Partial cut [10:23:57]*** CUTSNS_PIN = 1 [10:23:57]*** CUTSNS_PIN = 0 [10:23:57]*** Brake cut motor [10:23:57]Read from MH i2c: 01 [10:23:57]MH_I2C_Read... [10:23:57]*** Stop cut motor [10:23:57]*** Cut end [10:23:57]Read from MH i2c: 01 07 00 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: 01 07 00 44 94 00 00 00 00 00 FF 0F ED [10:23:57]process_action close_receipt done [10:23:57]requested_data is exist [10:23:57]produce_requested_data [10:23:57]requested_item fm.sn is exist - process it [10:23:57]wFMCommunicate request_size=4 [10:23:57]MH_SAM_APDU [10:23:57]CAPDU: 80 11 00 00 [10:23:57]Write to MH i2c: E2 08 00 45 94 80 11 00 00 00 00 00 00 53 [10:23:57]Write i2c OK [10:23:57]MH_I2C_Read... [10:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:57]Read from MH i2c: E2 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 17 00 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 17 00 45 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A0 [10:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:23:57]wFMCommunicate OK [10:23:57]requested_item fd.num is exist - process it [10:23:57]SAM_PROTO_GetFieldsCounters [10:23:57]wFMCommunicate request_size=4 [10:23:57]MH_SAM_APDU [10:23:57]CAPDU: 80 13 00 00 [10:23:57]Write to MH i2c: E2 08 00 46 94 80 13 00 00 00 00 00 00 56 [10:23:57]Write i2c OK [10:23:57]MH_I2C_Read... [10:23:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:57]Read from MH i2c: E2 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 62 00 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 62 00 46 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 9B C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [10:23: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 9B C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:57]wFMCommunicate OK [10:23:57]SAM_PROTO_GetFieldsCounters done [10:23:57]requested_item shift.num is exist - process it [10:23:57]requested_item shift.opened is exist - process it [10:23:57]req_shift_opened [10:23:57]FM_GetShiftState [10:23:57]SAM_PROTO_GetShiftState [10:23:57]wFMCommunicate request_size=4 [10:23:57]MH_SAM_APDU [10:23:57]CAPDU: 80 13 01 00 [10:23:57]Write to MH i2c: E2 08 00 47 94 80 13 01 00 00 00 00 00 58 [10:23:57]Write i2c OK [10:23:57]MH_I2C_Read... [10:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:57]Read from MH i2c: E2 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 0E 00 [10:23:57]MH_I2C_Read... [10:23:57]Read from MH i2c: E2 0E 00 47 94 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 AE [10:23:57]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:23:57]wFMCommunicate OK [10:23:57]SAM_PROTO_GetShiftState done [10:23:57]FM_GetShiftState done [10:23:57]req_shift_opened done [10:23:57]requested_item shift.open_date is exist - process it [10:23:57]req_shift_open_date [10:23:57]req_shift_open_date done [10:23:57]produce_requested_data done [10:23:57]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49307,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [10:23:57]process_action_free close_receipt [10:23:57]json_value_free [10:23:57]json_value_free done [10:23:57]process_json_proto returns [10:23:57]Send response to host [10:23:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49307,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [10:23:57]free response buf [10:23:57]execute_script done [10:23:57]execute_script returns [10:23:57]free content buf [10:23:57]Sock 7.Close socket [10:23:57]Sock 7.Thread stoped [10:26:08]ConnectInit Can't connect to host [10:26:08]CommunicateWithHost connect error [10:26:08]CommunicateWithHost err = -1 [10:26:08]OFD Sender: Server communicate error [10:26:13]OFD Sender: Processing packet 49307 [packets to send 12, broken 11] [10:26:13]ProducePacketName [10:26:13]name=ofd_packets/00049307 [10:26:13]OFD Sender: To server: pG, [10:26:13]CommunicateWithHost lk.salyk.kg:30040 [10:26:13]ConnectInit lk.salyk.kg [10:26:13]Connected sock=7 [10:26:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 41 D8 07 01 1B 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C6 07 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 D1 1F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9B C0 00 00 35 04 06 00 1A 2A D2 B8 98 69 A5 22 9A 0C 3E A6 40 BE [10:26:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 91 86 47 00 1D 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 35 30 36 30 10 04 04 00 9B C0 00 00 F4 03 04 00 4E CC B9 65 B6 04 01 00 00 3A B4 19 33 23 E2 DF E1 [10:26:14]CommunicateWithHost err = 0 [10:26:14]CheckOFDResponse [10:26:14]1017 (14) - 77093643461234 [10:26:14]1041 (16) - 0000000000875060 [10:26:14]1040 (4) - 49307 [10:26:14]1012 (4) - 31.01.2024 04:27 [10:26:14]1206 (1) - 0 [10:26:14]OFD Sender: Remove packet 49307 [10:26:14]ProducePacketName [10:26:14]name=ofd_packets/00049307 [10:26:14]NVStorageDeleteData [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:54]OFD Sender: No OFD packet to send [10:30:59]OFD Sender: No OFD packet to send [10:31:04]OFD Sender: No OFD packet to send [10:31:09]OFD Sender: No OFD packet to send [10:31:14]OFD Sender: No OFD packet to send [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]OFD Sender: No OFD packet to send [10:32:09]OFD Sender: No OFD packet to send [10:32:14]OFD Sender: No OFD packet to send [10:32:19]OFD Sender: No OFD packet to send [10:32:24]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:19]OFD Sender: No OFD packet to send [10:34:24]OFD Sender: No OFD packet to send [10:34:29]OFD Sender: No OFD packet to send [10:34:34]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:55]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:08]accept exits with 9 [10:35:08]New connection [10:35:08]New thread 3066670436 created [10:35:08]Thread 3066813796 joined [10:35:08]Waiting for new connection... [10:35:08] Sock 9.Parse request [10:35:08]Sock 9.Check first char [10:35:08]Sock 9.First char is OK [10:35:08]request: POST /json_proto HTTP/1.0 [10:35:08]Method: POST [10:35:08]URL: /json_proto [10:35:08]Method is POST - this is cgi request [10:35:08]url: /json_proto [10:35:08]query_string will be loaded in cgi processing [10:35:08]execute_cgi json_proto POST (null) [10:35:08]execute_cgi path=json_proto method=POST [10:35:08]POST find Content-Length [10:35:08]Host: 172.17.56.67:8080 [10:35:08]Content-Length: 677 [10:35:08]Content-Type: application/json [10:35:08] [10:35:08]POST finish read [10:35:08]Found Content-Length = 677 [10:35:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:35:08]execute_script... [10:35: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)216411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:35:08]POST & json_proto [10:35:08]process_json_proto [10:35:08]json parsed OK: [10:35:08]protocol is kg_v1.0 [10:35:08]action value=close_receipt [10:35:08]process_action close_receipt [10:35:08]cmd_close_receipt [10:35:08]MH_GetDate [10:35:08]Write to MH i2c: F0 00 00 48 94 CB [10:35:08]Write i2c OK [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: F0 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: F0 09 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: F0 09 00 48 94 00 73 22 BA 65 26 5D 9E 65 0E [10:35:08]GetLastDocTimeStamp 1706696657 [10:35:08]current date 1706697331 [10:35:08]FM_GetShiftState [10:35:08]SAM_PROTO_GetShiftState [10:35:08]wFMCommunicate request_size=4 [10:35:08]MH_SAM_APDU [10:35:08]CAPDU: 80 13 01 00 [10:35:08]Write to MH i2c: E2 08 00 49 94 80 13 01 00 00 00 00 00 5A [10:35:08]Write i2c OK [10:35:08]MH_I2C_Read... [10:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:08]Read from MH i2c: E2 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 0E 00 [10:35:08]MH_I2C_Read... [10:35:08]Read from MH i2c: E2 0E 00 49 94 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 B0 [10:35:08]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:35:08]wFMCommunicate OK [10:35:08]SAM_PROTO_GetShiftState done [10:35:08]FM_GetShiftState done [10:35:08]opened in 1706659486 [10:35:08]opened+sec_in_day 1706745886 [10:35:08]quantity*price = 30029 [10:35:08]sum+1 = 30030 [10:35:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 33 31.01.2024 10:35 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49308 ФПД: 197072094687377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T103531&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49308&fm=197072094687377&tin=02508201610067®Number=0000000000092723&sum=30000 [10:35:09]StoreToDocumentArchive [10:35:09]shift 247 fd 49308 [10:35:09]save to /storage/0247/doc_00049308 [10:35:09]save last doc name /storage/0247/doc_00049308 to /storage/kkm_last_doc_name [10:35:09]save OK [10:35:09]Clear old archive folders... [10:35:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:09]tlvbuf is 014CFBF0 [10:35:09]SAM_PROTO_ClearQueue [10:35:09]wFMCommunicate request_size=4 [10:35:09]MH_SAM_APDU [10:35:09]CAPDU: 80 09 00 00 [10:35:09]Write to MH i2c: E2 08 00 56 94 80 09 00 00 00 00 00 00 5C [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:09]Read from MH i2c: E2 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 56 94 00 90 00 5E [10:35:09]RAPDU: 90 00 [10:35:09]wFMCommunicate OK [10:35:09]SAM_PROTO_ClearQueue done [10:35:09]KKMCreateOFDPacket [10:35:09]OFDProtocolAddRootSTLVToBuf [10:35:09]FM_MakeSignedData [10:35:09]FM_MakeSignedData [10:35:09]SAM_PROTO_SignData [10:35:09]wFMCommunicate request_size=4 [10:35:09]MH_SAM_APDU [10:35:09]CAPDU: 80 0D 01 02 [10:35:09]Write to MH i2c: E2 08 00 57 94 80 0D 01 02 00 00 00 00 64 [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:09]Read from MH i2c: E2 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 57 94 00 90 00 5F [10:35:09]RAPDU: 90 00 [10:35:09]wFMCommunicate OK [10:35:09]wFMCommunicate request_size=255 [10:35:09]MH_SAM_APDU [10:35:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 73 22 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9C C0 00 00 35 04 06 00 B3 [10:35:09]Write to MH i2c: E2 02 01 58 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 73 22 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9C C0 00 00 35 04 06 00 B3 00 00 05 [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:09]Read from MH i2c: E2 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 58 94 00 90 00 60 [10:35:09]RAPDU: 90 00 [10:35:09]wFMCommunicate OK [10:35:09]wFMCommunicate request_size=10 [10:35:09]MH_SAM_APDU [10:35:09]CAPDU: 80 0D 02 02 05 3C 6C 32 F0 91 [10:35:09]Write to MH i2c: E2 0D 00 59 94 80 0D 02 02 05 00 3C 6C 32 F0 91 00 00 CC [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:09]Read from MH i2c: E2 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 03 00 59 94 00 90 00 61 [10:35:09]RAPDU: 90 00 [10:35:09]wFMCommunicate OK [10:35:09]wFMCommunicate request_size=4 [10:35:09]MH_SAM_APDU [10:35:09]CAPDU: 80 0D 03 02 [10:35:09]Write to MH i2c: E2 08 00 5A 94 80 0D 03 02 00 00 00 00 69 [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:09]Read from MH i2c: E2 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 0B 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 0B 00 5A 94 00 6A 3C 4C B6 BF 1F 33 73 90 00 96 [10:35:09]RAPDU: 6A 3C 4C B6 BF 1F 33 73 90 00 [10:35:09]wFMCommunicate OK [10:35:09]SAM_PROTO_SignData done [10:35:09]FM_MakeSignedData done [10:35:09]CreateOFDProtocolMessage [10:35:09]wFMCommunicate request_size=4 [10:35:09]MH_SAM_APDU [10:35:09]CAPDU: 80 11 00 00 [10:35:09]Write to MH i2c: E2 08 00 5B 94 80 11 00 00 00 00 00 00 69 [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:09]Read from MH i2c: E2 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 17 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: E2 17 00 5B 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B6 [10:35:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:35:09]wFMCommunicate OK [10:35:09]CreateOFDProtocolMessage done [10:35:09]OFDSenderStorePacket 49308 [10:35:09]StoreOFDPacket docnum=49308 [10:35:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 0D 9D 07 01 79 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 73 22 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9C C0 00 00 35 04 06 00 B3 3C 6C 32 F0 91 6A 3C 4C B6 BF 1F 33 73 [10:35:09]CheckFolder [10:35:09]dirname=/storage/ofd_packets [10:35:09]CheckFolder done [10:35:09]ProducePacketName [10:35:09]name=ofd_packets/00049308 [10:35:09]NVStorageSaveData ofd_packets/00049308 [10:35:09]File name is /storage/ofd_packets/00049308 [10:35:09]Write 301 bytes [10:35:09]NVStorageSaveData done [10:35:09]OFDSenderStorePacket done [10:35:09]KKMCreateOFDPacket done [10:35:09]NVStorageSaveData kkm_last_timestamp [10:35:09]File name is /storage/kkm_last_timestamp [10:35:09]Write 4 bytes [10:35:09]NVStorageSaveData done [10:35:09]ExternCall_PrintAddStr [10:35:09]wPrintStart [10:35:09]Write to MH i2c: 01 00 00 5C 94 F0 [10:35:09]Write i2c OK [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: 01 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: 01 07 00 [10:35:09]MH_I2C_Read... [10:35:09]Read from MH i2c: 01 07 00 5C 94 00 00 00 00 00 FF 0F 05 [10:35:09]RasterBufferAndPrint [10:35:09]line Счет N : (1)216411 [10:35:09]line ИНН: 02508201610067 [10:35:09]line Контрольно-Кассовый Чек [10:35:09]line ПРОДАЖА [10:35:09]line ТРК (МРК, ГНК) : 12 [10:35:09]line Товар: 2710124130 [10:35:09]line Аи-92-К-5 [10:35:09]line 4.980 * 60.30 [10:35:09]line = 300.29 [10:35:09]line НДС 12% НСП 1% [10:35:09]line > о реализуемом товаре [10:35:09]line ОКРУГЛЕНИЕ: -0.29 [10:35:09]line ИТОГО: 300.00 [10:35:09]line Внесено: 300.00 [10:35:09]line СДАЧА: 0.00 [10:35:09]line НСП 1% : 2.66 [10:35:09]line НДС 12% : 31.89 [10:35:09]line Наличными: 300.00 [10:35:09]line Безнал.: 0.00 [10:35:09]line Место: АЗС № 102 "Партнер Нефть" [10:35:09]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:35:09]line СНО: Общий режим [10:35:09]line Чек 33 31.01.2024 10:35 [10:35:09]line Смена: 247 ФФД: 1.0 [10:35:09]line ЗНМ: 0300000040 [10:35:09]line РНМ: 0000000000092723 [10:35:09]line Версия ККМ: 001 [10:35:09]line ФМ: 0000000000875060 [10:35:09]line ФД: 49308 [10:35:09]line ФПД: 197072094687377 [10:35:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T103531&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49308&fm=197072094687377&tin=02508201610067®Number=0000000000092723&sum=30000 [10:35:10]OFD Sender: Processing packet 49308 [packets to send 12, broken 11] [10:35:10]ProducePacketName [10:35:10]name=ofd_packets/00049308 [10:35:10]OFD Sender: To server: pG, [10:35:10]CommunicateWithHost lk.salyk.kg:30040 [10:35:10]ConnectInit lk.salyk.kg [10:35:10]written 0, free lines is 4095 [10:35:10]Connected sock=10 [10:35:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 0D 9D 07 01 79 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 73 22 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9C C0 00 00 35 04 06 00 B3 3C 6C 32 F0 91 6A 3C 4C B6 BF 1F 33 73 [10:35:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 B7 C3 47 00 70 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 35 30 36 30 10 04 04 00 9C C0 00 00 F4 03 04 00 66 CE B9 65 B6 04 01 00 00 BF 1B 93 B4 DC 35 D8 92 [10:35:10]CommunicateWithHost err = 0 [10:35:10]CheckOFDResponse [10:35:10]1017 (14) - 77093643461234 [10:35:10]1041 (16) - 0000000000875060 [10:35:10]1040 (4) - 49308 [10:35:10]1012 (4) - 31.01.2024 04:36 [10:35:10]1206 (1) - 0 [10:35:10]OFD Sender: Remove packet 49308 [10:35:10]ProducePacketName [10:35:10]name=ofd_packets/00049308 [10:35:10]NVStorageDeleteData [10:35:10]Write to MH i2c: 01 00 00 87 94 1B [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: 01 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: 01 07 00 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: 01 07 00 87 94 00 00 00 00 00 EE 0C 1C [10:35:10]RasterBufferAndPrint [10:35:10]line [10:35:10]line [10:35:10]line [10:35:10]line [10:35:10]line [10:35:10]written 0, free lines is 3316 [10:35:10]MH_Cut [10:35:10]Write to MH i2c: D1 01 00 8E 94 01 F4 [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: D1 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: D1 01 00 [10:35:10]MH_I2C_Read... [10:35:10]Read from MH i2c: D1 01 00 8E 94 00 F3 [10:35:10]Write to MH i2c: 01 00 00 8F 94 23 [10:35:10]Write i2c OK [10:35:10]MH_I2C_Read... [10:35:11]OFD Sender: No OFD packet to send [10:35:11]*** Cut start [10:35:11]*** Partial cut [10:35:11]*** CUTSNS_PIN = 1 [10:35:11]*** CUTSNS_PIN = 0 [10:35:11]*** Brake cut motor [10:35:11]Read from MH i2c: 01 [10:35:11]MH_I2C_Read... [10:35:11]*** Stop cut motor [10:35:11]*** Cut end [10:35:11]Read from MH i2c: 01 07 00 [10:35:11]MH_I2C_Read... [10:35:11]Read from MH i2c: 01 07 00 8F 94 00 00 00 00 00 FF 0F 38 [10:35:11]process_action close_receipt done [10:35:11]requested_data is exist [10:35:11]produce_requested_data [10:35:11]requested_item fm.sn is exist - process it [10:35:11]wFMCommunicate request_size=4 [10:35:11]MH_SAM_APDU [10:35:11]CAPDU: 80 11 00 00 [10:35:11]Write to MH i2c: E2 08 00 90 94 80 11 00 00 00 00 00 00 9E [10:35:11]Write i2c OK [10:35:11]MH_I2C_Read... [10:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:12]Read from MH i2c: E2 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 17 00 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 17 00 90 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EB [10:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:35:12]wFMCommunicate OK [10:35:12]requested_item fd.num is exist - process it [10:35:12]SAM_PROTO_GetFieldsCounters [10:35:12]wFMCommunicate request_size=4 [10:35:12]MH_SAM_APDU [10:35:12]CAPDU: 80 13 00 00 [10:35:12]Write to MH i2c: E2 08 00 91 94 80 13 00 00 00 00 00 00 A1 [10:35:12]Write i2c OK [10:35:12]MH_I2C_Read... [10:35:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:12]Read from MH i2c: E2 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 62 00 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 62 00 91 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 9C C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [10:35:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 9C C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:12]wFMCommunicate OK [10:35:12]SAM_PROTO_GetFieldsCounters done [10:35:12]requested_item shift.num is exist - process it [10:35:12]requested_item shift.opened is exist - process it [10:35:12]req_shift_opened [10:35:12]FM_GetShiftState [10:35:12]SAM_PROTO_GetShiftState [10:35:12]wFMCommunicate request_size=4 [10:35:12]MH_SAM_APDU [10:35:12]CAPDU: 80 13 01 00 [10:35:12]Write to MH i2c: E2 08 00 92 94 80 13 01 00 00 00 00 00 A3 [10:35:12]Write i2c OK [10:35:12]MH_I2C_Read... [10:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:12]Read from MH i2c: E2 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 0E 00 [10:35:12]MH_I2C_Read... [10:35:12]Read from MH i2c: E2 0E 00 92 94 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 F9 [10:35:12]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:35:12]wFMCommunicate OK [10:35:12]SAM_PROTO_GetShiftState done [10:35:12]FM_GetShiftState done [10:35:12]req_shift_opened done [10:35:12]requested_item shift.open_date is exist - process it [10:35:12]req_shift_open_date [10:35:12]req_shift_open_date done [10:35:12]produce_requested_data done [10:35:12]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49308,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [10:35:12]process_action_free close_receipt [10:35:12]json_value_free [10:35:12]json_value_free done [10:35:12]process_json_proto returns [10:35:12]Send response to host [10:35:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49308,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [10:35:12]free response buf [10:35:12]execute_script done [10:35:12]execute_script returns [10:35:12]free content buf [10:35:12]Sock 9.Close socket [10:35:12]Sock 9.Thread stoped [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:16]accept exits with 7 [10:36:16]New connection [10:36:16]New thread 3066813796 created [10:36:16]Thread 3066670436 joined [10:36:16]Waiting for new connection... [10:36:16] Sock 7.Parse request [10:36:16]Sock 7.Check first char [10:36:16]Sock 7.First char is OK [10:36:16]request: POST /json_proto HTTP/1.0 [10:36:16]Method: POST [10:36:16]URL: /json_proto [10:36:16]Method is POST - this is cgi request [10:36:16]url: /json_proto [10:36:16]query_string will be loaded in cgi processing [10:36:16]execute_cgi json_proto POST (null) [10:36:16]execute_cgi path=json_proto method=POST [10:36:16]POST find Content-Length [10:36:16]Host: 172.17.56.67:8080 [10:36:16]Content-Length: 679 [10:36:16]Content-Type: application/json [10:36:16] [10:36:16]POST finish read [10:36:16]Found Content-Length = 679 [10:36:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:16]execute_script... [10:36: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)216412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:16]POST & json_proto [10:36:16]process_json_proto [10:36:16]json parsed OK: [10:36:16]protocol is kg_v1.0 [10:36:16]action value=close_receipt [10:36:16]process_action close_receipt [10:36:16]cmd_close_receipt [10:36:16]MH_GetDate [10:36:16]Write to MH i2c: F0 00 00 93 94 16 [10:36:16]Write i2c OK [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: F0 [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: F0 09 00 [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: F0 09 00 93 94 00 B7 22 BA 65 26 5D 9E 65 9D [10:36:16]GetLastDocTimeStamp 1706697331 [10:36:16]current date 1706697399 [10:36:16]FM_GetShiftState [10:36:16]SAM_PROTO_GetShiftState [10:36:16]wFMCommunicate request_size=4 [10:36:16]MH_SAM_APDU [10:36:16]CAPDU: 80 13 01 00 [10:36:16]Write to MH i2c: E2 08 00 94 94 80 13 01 00 00 00 00 00 A5 [10:36:16]Write i2c OK [10:36:16]MH_I2C_Read... [10:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:16]Read from MH i2c: E2 [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: E2 0E 00 [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: E2 0E 00 94 94 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 FB [10:36:16]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:36:16]wFMCommunicate OK [10:36:16]SAM_PROTO_GetShiftState done [10:36:16]FM_GetShiftState done [10:36:16]opened in 1706659486 [10:36:16]opened+sec_in_day 1706745886 [10:36:16]quantity*price = 100026 [10:36:16]sum+1 = 100028 [10:36:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 34 31.01.2024 10:36 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49309 ФПД: 44436760682498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T103639&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49309&fm=44436760682498&tin=02508201610067®Number=0000000000092723&sum=100000 [10:36:17]StoreToDocumentArchive [10:36:17]shift 247 fd 49309 [10:36:17]save to /storage/0247/doc_00049309 [10:36:17]save last doc name /storage/0247/doc_00049309 to /storage/kkm_last_doc_name [10:36:17]save OK [10:36:17]Clear old archive folders... [10:36:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:36:17]tlvbuf is B6EB8790 [10:36:17]SAM_PROTO_ClearQueue [10:36:17]wFMCommunicate request_size=4 [10:36:17]MH_SAM_APDU [10:36:17]CAPDU: 80 09 00 00 [10:36:17]Write to MH i2c: E2 08 00 A1 94 80 09 00 00 00 00 00 00 A7 [10:36:17]Write i2c OK [10:36:17]MH_I2C_Read... [10:36:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:17]Read from MH i2c: E2 [10:36:17]MH_I2C_Read... [10:36:17]Read from MH i2c: E2 03 00 [10:36:17]MH_I2C_Read... [10:36:17]Read from MH i2c: E2 03 00 A1 94 00 90 00 A9 [10:36:17]RAPDU: 90 00 [10:36:17]wFMCommunicate OK [10:36:17]SAM_PROTO_ClearQueue done [10:36:17]KKMCreateOFDPacket [10:36:17]OFDProtocolAddRootSTLVToBuf [10:36:17]FM_MakeSignedData [10:36:17]FM_MakeSignedData [10:36:17]SAM_PROTO_SignData [10:36:17]wFMCommunicate request_size=4 [10:36:17]MH_SAM_APDU [10:36:17]CAPDU: 80 0D 01 02 [10:36:17]Write to MH i2c: E2 08 00 A2 94 80 0D 01 02 00 00 00 00 AF [10:36:17]Write i2c OK [10:36:17]MH_I2C_Read... [10:36:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:17]Read from MH i2c: E2 [10:36:17]MH_I2C_Read... [10:36:17]Read from MH i2c: E2 03 00 [10:36:17]MH_I2C_Read... [10:36:17]Read from MH i2c: E2 03 00 A2 94 00 90 00 AA [10:36:17]RAPDU: 90 00 [10:36:17]wFMCommunicate OK [10:36:17]wFMCommunicate request_size=255 [10:36:17]MH_SAM_APDU [10:36:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 22 00 00 00 F4 03 04 00 B7 22 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9D C0 00 00 35 04 06 00 28 6A 3D 55 [10:36:17]Write to MH i2c: E2 02 01 A3 94 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 22 00 00 00 F4 03 04 00 B7 22 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9D C0 00 00 35 04 06 00 28 6A 3D 55 00 00 CB [10:36:17]Write i2c OK [10:36:17]MH_I2C_Read... [10:36:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:17]Read from MH i2c: E2 [10:36:17]MH_I2C_Read... [10:36:17]Read from MH i2c: E2 03 00 [10:36:17]MH_I2C_Read... [10:36:18]Read from MH i2c: E2 03 00 A3 94 00 90 00 AB [10:36:18]RAPDU: 90 00 [10:36:18]wFMCommunicate OK [10:36:18]wFMCommunicate request_size=7 [10:36:18]MH_SAM_APDU [10:36:18]CAPDU: 80 0D 02 02 02 E0 02 [10:36:18]Write to MH i2c: E2 0A 00 A4 94 80 0D 02 02 02 00 E0 02 00 00 98 [10:36:18]Write i2c OK [10:36:18]MH_I2C_Read... [10:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:18]Read from MH i2c: E2 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: E2 03 00 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: E2 03 00 A4 94 00 90 00 AC [10:36:18]RAPDU: 90 00 [10:36:18]wFMCommunicate OK [10:36:18]wFMCommunicate request_size=4 [10:36:18]MH_SAM_APDU [10:36:18]CAPDU: 80 0D 03 02 [10:36:18]Write to MH i2c: E2 08 00 A5 94 80 0D 03 02 00 00 00 00 B4 [10:36:18]Write i2c OK [10:36:18]MH_I2C_Read... [10:36:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:18]Read from MH i2c: E2 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: E2 0B 00 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: E2 0B 00 A5 94 00 58 6A 11 F5 28 92 80 9D 90 00 54 [10:36:18]RAPDU: 58 6A 11 F5 28 92 80 9D 90 00 [10:36:18]wFMCommunicate OK [10:36:18]SAM_PROTO_SignData done [10:36:18]FM_MakeSignedData done [10:36:18]CreateOFDProtocolMessage [10:36:18]wFMCommunicate request_size=4 [10:36:18]MH_SAM_APDU [10:36:18]CAPDU: 80 11 00 00 [10:36:18]Write to MH i2c: E2 08 00 A6 94 80 11 00 00 00 00 00 00 B4 [10:36:18]Write i2c OK [10:36:18]MH_I2C_Read... [10:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:18]Read from MH i2c: E2 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: E2 17 00 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: E2 17 00 A6 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 01 [10:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:36:18]wFMCommunicate OK [10:36:18]CreateOFDProtocolMessage done [10:36:18]OFDSenderStorePacket 49309 [10:36:18]StoreOFDPacket docnum=49309 [10:36:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 03 09 04 01 3A E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 22 00 00 00 F4 03 04 00 B7 22 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9D C0 00 00 35 04 06 00 28 6A 3D 55 E0 02 58 6A 11 F5 28 92 80 9D [10:36:18]CheckFolder [10:36:18]dirname=/storage/ofd_packets [10:36:18]CheckFolder done [10:36:18]ProducePacketName [10:36:18]name=ofd_packets/00049309 [10:36:18]NVStorageSaveData ofd_packets/00049309 [10:36:18]File name is /storage/ofd_packets/00049309 [10:36:18]Write 298 bytes [10:36:18]NVStorageSaveData done [10:36:18]OFDSenderStorePacket done [10:36:18]KKMCreateOFDPacket done [10:36:18]NVStorageSaveData kkm_last_timestamp [10:36:18]File name is /storage/kkm_last_timestamp [10:36:18]Write 4 bytes [10:36:18]NVStorageSaveData done [10:36:18]ExternCall_PrintAddStr [10:36:18]wPrintStart [10:36:18]Write to MH i2c: 01 00 00 A7 94 3B [10:36:18]Write i2c OK [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: 01 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: 01 07 00 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: 01 07 00 A7 94 00 00 00 00 00 FF 0F 50 [10:36:18]RasterBufferAndPrint [10:36:18]line Счет N : (1)216412 [10:36:18]line ИНН: 02508201610067 [10:36:18]line Контрольно-Кассовый Чек [10:36:18]line ПРОДАЖА [10:36:18]line ТРК (МРК, ГНК) : 21 [10:36:18]line Товар: 2710194210 [10:36:18]line ДТ-К-5 [10:36:18]line 14.310 * 69.90 [10:36:18]line = 1000.27 [10:36:18]line НДС 12% НСП 1% [10:36:18]line > о реализуемом товаре [10:36:18]line ОКРУГЛЕНИЕ: -0.27 [10:36:18]line ИТОГО: 1000.00 [10:36:18]line Внесено: 1000.00 [10:36:18]line СДАЧА: 0.00 [10:36:18]line НСП 1% : 8.85 [10:36:18]line НДС 12% : 106.22 [10:36:18]line Наличными: 1000.00 [10:36:18]line Безнал.: 0.00 [10:36:18]line Место: АЗС № 102 "Партнер Нефть" [10:36:18]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:36:18]line СНО: Общий режим [10:36:18]line Чек 34 31.01.2024 10:36 [10:36:18]line Смена: 247 ФФД: 1.0 [10:36:18]line ЗНМ: 0300000040 [10:36:18]line РНМ: 0000000000092723 [10:36:18]line Версия ККМ: 001 [10:36:18]line ФМ: 0000000000875060 [10:36:18]line ФД: 49309 [10:36:18]line ФПД: 44436760682498 [10:36:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T103639&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49309&fm=44436760682498&tin=02508201610067®Number=0000000000092723&sum=100000 [10:36:18]OFD Sender: Processing packet 49309 [packets to send 12, broken 11] [10:36:18]ProducePacketName [10:36:18]name=ofd_packets/00049309 [10:36:18]OFD Sender: To server: pG, [10:36:18]CommunicateWithHost lk.salyk.kg:30040 [10:36:18]ConnectInit lk.salyk.kg [10:36:18]written 0, free lines is 4095 [10:36:18]Connected sock=10 [10:36:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 03 09 04 01 3A E9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 22 00 00 00 F4 03 04 00 B7 22 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9D C0 00 00 35 04 06 00 28 6A 3D 55 E0 02 58 6A 11 F5 28 92 80 9D [10:36:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 18 A3 47 00 78 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 35 30 36 30 10 04 04 00 9D C0 00 00 F4 03 04 00 AA CE B9 65 B6 04 01 00 00 4B 61 98 80 7C F5 9F 0C [10:36:18]CommunicateWithHost err = 0 [10:36:18]CheckOFDResponse [10:36:18]1017 (14) - 77093643461234 [10:36:18]1041 (16) - 0000000000875060 [10:36:18]1040 (4) - 49309 [10:36:18]1012 (4) - 31.01.2024 04:38 [10:36:18]1206 (1) - 0 [10:36:18]OFD Sender: Remove packet 49309 [10:36:18]ProducePacketName [10:36:18]name=ofd_packets/00049309 [10:36:18]NVStorageDeleteData [10:36:18]Write to MH i2c: 01 00 00 D2 94 66 [10:36:18]Write i2c OK [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: 01 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: 01 07 00 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: 01 07 00 D2 94 00 00 00 00 00 ED 0C 66 [10:36:18]RasterBufferAndPrint [10:36:18]line [10:36:18]line [10:36:18]line [10:36:18]line [10:36:18]line [10:36:18]written 0, free lines is 3318 [10:36:18]MH_Cut [10:36:18]Write to MH i2c: D1 01 00 D9 94 01 3F [10:36:18]Write i2c OK [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: D1 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: D1 01 00 [10:36:18]MH_I2C_Read... [10:36:18]Read from MH i2c: D1 01 00 D9 94 00 3E [10:36:18]Write to MH i2c: 01 00 00 DA 94 6E [10:36:18]Write i2c OK [10:36:18]MH_I2C_Read... [10:36:19]OFD Sender: No OFD packet to send [10:36:19]*** Cut start [10:36:19]*** Partial cut [10:36:19]*** CUTSNS_PIN = 1 [10:36:19]*** CUTSNS_PIN = 0 [10:36:19]*** Brake cut motor [10:36:20]Read from MH i2c: 01 [10:36:20]MH_I2C_Read... [10:36:20]*** Stop cut motor [10:36:20]*** Cut end [10:36:20]Read from MH i2c: 01 07 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: 01 07 00 DA 94 00 00 00 00 00 FF 0F 83 [10:36:20]process_action close_receipt done [10:36:20]requested_data is exist [10:36:20]produce_requested_data [10:36:20]requested_item fm.sn is exist - process it [10:36:20]wFMCommunicate request_size=4 [10:36:20]MH_SAM_APDU [10:36:20]CAPDU: 80 11 00 00 [10:36:20]Write to MH i2c: E2 08 00 DB 94 80 11 00 00 00 00 00 00 E9 [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:20]Read from MH i2c: E2 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 17 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 17 00 DB 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 36 [10:36:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:36:20]wFMCommunicate OK [10:36:20]requested_item fd.num is exist - process it [10:36:20]SAM_PROTO_GetFieldsCounters [10:36:20]wFMCommunicate request_size=4 [10:36:20]MH_SAM_APDU [10:36:20]CAPDU: 80 13 00 00 [10:36:20]Write to MH i2c: E2 08 00 DC 94 80 13 00 00 00 00 00 00 EC [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:20]Read from MH i2c: E2 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 62 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 62 00 DC 94 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 9D C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [10:36: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 9D C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:20]wFMCommunicate OK [10:36:20]SAM_PROTO_GetFieldsCounters done [10:36:20]requested_item shift.num is exist - process it [10:36:20]requested_item shift.opened is exist - process it [10:36:20]req_shift_opened [10:36:20]FM_GetShiftState [10:36:20]SAM_PROTO_GetShiftState [10:36:20]wFMCommunicate request_size=4 [10:36:20]MH_SAM_APDU [10:36:20]CAPDU: 80 13 01 00 [10:36:20]Write to MH i2c: E2 08 00 DD 94 80 13 01 00 00 00 00 00 EE [10:36:20]Write i2c OK [10:36:20]MH_I2C_Read... [10:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:20]Read from MH i2c: E2 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 0E 00 [10:36:20]MH_I2C_Read... [10:36:20]Read from MH i2c: E2 0E 00 DD 94 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 44 [10:36:20]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:36:20]wFMCommunicate OK [10:36:20]SAM_PROTO_GetShiftState done [10:36:20]FM_GetShiftState done [10:36:20]req_shift_opened done [10:36:20]requested_item shift.open_date is exist - process it [10:36:20]req_shift_open_date [10:36:20]req_shift_open_date done [10:36:20]produce_requested_data done [10:36:20]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49309,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [10:36:20]process_action_free close_receipt [10:36:20]json_value_free [10:36:20]json_value_free done [10:36:20]process_json_proto returns [10:36:20]Send response to host [10:36:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49309,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [10:36:20]free response buf [10:36:20]execute_script done [10:36:20]execute_script returns [10:36:20]free content buf [10:36:20]Sock 7.Close socket [10:36:20]Sock 7.Thread stoped [10:36:24]OFD Sender: No OFD packet to send [10:36:29]OFD Sender: No OFD packet to send [10:36:34]OFD Sender: No OFD packet to send [10:36:39]OFD Sender: No OFD packet to send [10:36:44]OFD Sender: No OFD packet to send [10:36:49]OFD Sender: No OFD packet to send [10:36:54]OFD Sender: No OFD packet to send [10:36:59]OFD Sender: No OFD packet to send [10:37:04]OFD Sender: No OFD packet to send [10:37:09]OFD Sender: No OFD packet to send [10:37:14]OFD Sender: No OFD packet to send [10:37:19]OFD Sender: No OFD packet to send [10:37:24]OFD Sender: No OFD packet to send [10:37:29]OFD Sender: No OFD packet to send [10:37:34]OFD Sender: No OFD packet to send [10:37:39]OFD Sender: No OFD packet to send [10:37:44]OFD Sender: No OFD packet to send [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:55]accept exits with 9 [10:37:55]New connection [10:37:55]New thread 3066670436 created [10:37:55]Thread 3066813796 joined [10:37:55]Waiting for new connection... [10:37:55] Sock 9.Parse request [10:37:55]Sock 9.Check first char [10:37:55]Sock 9.First char is OK [10:37:55]request: POST /json_proto HTTP/1.0 [10:37:55]Method: POST [10:37:55]URL: /json_proto [10:37:55]Method is POST - this is cgi request [10:37:55]url: /json_proto [10:37:55]query_string will be loaded in cgi processing [10:37:55]execute_cgi json_proto POST (null) [10:37:55]execute_cgi path=json_proto method=POST [10:37:55]POST find Content-Length [10:37:55]Host: 172.17.56.67:8080 [10:37:55]Content-Length: 677 [10:37:55]Content-Type: application/json [10:37:55] [10:37:55]POST finish read [10:37:55]Found Content-Length = 677 [10:37:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "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:37:55]execute_script... [10:37:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "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:37:55]POST & json_proto [10:37:55]process_json_proto [10:37:55]json parsed OK: [10:37:55]protocol is kg_v1.0 [10:37:55]action value=close_receipt [10:37:55]process_action close_receipt [10:37:55]cmd_close_receipt [10:37:55]MH_GetDate [10:37:55]Write to MH i2c: F0 00 00 DE 94 61 [10:37:55]Write i2c OK [10:37:55]MH_I2C_Read... [10:37:55]Read from MH i2c: F0 [10:37:55]MH_I2C_Read... [10:37:55]Read from MH i2c: F0 09 00 [10:37:55]MH_I2C_Read... [10:37:55]Read from MH i2c: F0 09 00 DE 94 00 1A 23 BA 65 26 5D 9E 65 4C [10:37:55]GetLastDocTimeStamp 1706697399 [10:37:55]current date 1706697498 [10:37:55]FM_GetShiftState [10:37:55]SAM_PROTO_GetShiftState [10:37:55]wFMCommunicate request_size=4 [10:37:55]MH_SAM_APDU [10:37:55]CAPDU: 80 13 01 00 [10:37:55]Write to MH i2c: E2 08 00 DF 94 80 13 01 00 00 00 00 00 F0 [10:37:55]Write i2c OK [10:37:55]MH_I2C_Read... [10:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:55]Read from MH i2c: E2 [10:37:55]MH_I2C_Read... [10:37:55]Read from MH i2c: E2 0E 00 [10:37:55]MH_I2C_Read... [10:37:55]Read from MH i2c: E2 0E 00 DF 94 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 46 [10:37:55]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:37:55]wFMCommunicate OK [10:37:55]SAM_PROTO_GetShiftState done [10:37:55]FM_GetShiftState done [10:37:55]opened in 1706659486 [10:37:55]opened+sec_in_day 1706745886 [10:37:55]quantity*price = 40039 [10:37:55]sum+1 = 40040 [10:37:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 35 31.01.2024 10:38 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49310 ФПД: 174583983670313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T103818&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49310&fm=174583983670313&tin=02508201610067®Number=0000000000092723&sum=40000 [10:37:56]StoreToDocumentArchive [10:37:56]shift 247 fd 49310 [10:37:56]save to /storage/0247/doc_00049310 [10:37:56]save last doc name /storage/0247/doc_00049310 to /storage/kkm_last_doc_name [10:37:56]save OK [10:37:56]Clear old archive folders... [10:37:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:56]tlvbuf is 01337BB0 [10:37:56]SAM_PROTO_ClearQueue [10:37:56]wFMCommunicate request_size=4 [10:37:56]MH_SAM_APDU [10:37:56]CAPDU: 80 09 00 00 [10:37:56]Write to MH i2c: E2 08 00 EC 94 80 09 00 00 00 00 00 00 F2 [10:37:56]Write i2c OK [10:37:56]MH_I2C_Read... [10:37:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:56]Read from MH i2c: E2 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 03 00 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 03 00 EC 94 00 90 00 F4 [10:37:56]RAPDU: 90 00 [10:37:56]wFMCommunicate OK [10:37:56]SAM_PROTO_ClearQueue done [10:37:56]KKMCreateOFDPacket [10:37:56]OFDProtocolAddRootSTLVToBuf [10:37:56]FM_MakeSignedData [10:37:56]FM_MakeSignedData [10:37:56]SAM_PROTO_SignData [10:37:56]wFMCommunicate request_size=4 [10:37:56]MH_SAM_APDU [10:37:56]CAPDU: 80 0D 01 02 [10:37:56]Write to MH i2c: E2 08 00 ED 94 80 0D 01 02 00 00 00 00 FA [10:37:56]Write i2c OK [10:37:56]MH_I2C_Read... [10:37:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:56]Read from MH i2c: E2 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 03 00 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 03 00 ED 94 00 90 00 F5 [10:37:56]RAPDU: 90 00 [10:37:56]wFMCommunicate OK [10:37:56]wFMCommunicate request_size=255 [10:37:56]MH_SAM_APDU [10:37:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 23 00 00 00 F4 03 04 00 1A 23 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9E C0 00 00 35 04 06 00 9E [10:37:56]Write to MH i2c: E2 02 01 EE 94 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 23 00 00 00 F4 03 04 00 1A 23 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9E C0 00 00 35 04 06 00 9E 00 00 E6 [10:37:56]Write i2c OK [10:37:56]MH_I2C_Read... [10:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:56]Read from MH i2c: E2 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 03 00 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 03 00 EE 94 00 90 00 F6 [10:37:56]RAPDU: 90 00 [10:37:56]wFMCommunicate OK [10:37:56]wFMCommunicate request_size=10 [10:37:56]MH_SAM_APDU [10:37:56]CAPDU: 80 0D 02 02 05 C8 80 54 84 29 [10:37:56]Write to MH i2c: E2 0D 00 EF 94 80 0D 02 02 05 00 C8 80 54 84 29 00 00 50 [10:37:56]Write i2c OK [10:37:56]MH_I2C_Read... [10:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:56]Read from MH i2c: E2 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 03 00 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 03 00 EF 94 00 90 00 F7 [10:37:56]RAPDU: 90 00 [10:37:56]wFMCommunicate OK [10:37:56]wFMCommunicate request_size=4 [10:37:56]MH_SAM_APDU [10:37:56]CAPDU: 80 0D 03 02 [10:37:56]Write to MH i2c: E2 08 00 F0 94 80 0D 03 02 00 00 00 00 FF [10:37:56]Write i2c OK [10:37:56]MH_I2C_Read... [10:37:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:56]Read from MH i2c: E2 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 0B 00 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 0B 00 F0 94 00 83 EF 7D 57 6F 83 18 29 90 00 79 [10:37:56]RAPDU: 83 EF 7D 57 6F 83 18 29 90 00 [10:37:56]wFMCommunicate OK [10:37:56]SAM_PROTO_SignData done [10:37:56]FM_MakeSignedData done [10:37:56]CreateOFDProtocolMessage [10:37:56]wFMCommunicate request_size=4 [10:37:56]MH_SAM_APDU [10:37:56]CAPDU: 80 11 00 00 [10:37:56]Write to MH i2c: E2 08 00 F1 94 80 11 00 00 00 00 00 00 FF [10:37:56]Write i2c OK [10:37:56]MH_I2C_Read... [10:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:56]Read from MH i2c: E2 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 17 00 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: E2 17 00 F1 94 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4C [10:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:37:56]wFMCommunicate OK [10:37:56]CreateOFDProtocolMessage done [10:37:56]OFDSenderStorePacket 49310 [10:37:56]StoreOFDPacket docnum=49310 [10:37:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E1 4E 07 01 54 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 23 00 00 00 F4 03 04 00 1A 23 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9E C0 00 00 35 04 06 00 9E C8 80 54 84 29 83 EF 7D 57 6F 83 18 29 [10:37:56]CheckFolder [10:37:56]dirname=/storage/ofd_packets [10:37:56]CheckFolder done [10:37:56]ProducePacketName [10:37:56]name=ofd_packets/00049310 [10:37:56]NVStorageSaveData ofd_packets/00049310 [10:37:56]File name is /storage/ofd_packets/00049310 [10:37:56]Write 301 bytes [10:37:56]NVStorageSaveData done [10:37:56]OFDSenderStorePacket done [10:37:56]KKMCreateOFDPacket done [10:37:56]NVStorageSaveData kkm_last_timestamp [10:37:56]File name is /storage/kkm_last_timestamp [10:37:56]Write 4 bytes [10:37:56]NVStorageSaveData done [10:37:56]ExternCall_PrintAddStr [10:37:56]wPrintStart [10:37:56]Write to MH i2c: 01 00 00 F2 94 86 [10:37:56]Write i2c OK [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: 01 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: 01 07 00 [10:37:56]MH_I2C_Read... [10:37:56]Read from MH i2c: 01 07 00 F2 94 00 00 00 00 00 FF 0F 9B [10:37:56]RasterBufferAndPrint [10:37:56]line Счет N : (1)216413 [10:37:56]line ИНН: 02508201610067 [10:37:56]line Контрольно-Кассовый Чек [10:37:56]line ПРОДАЖА [10:37:56]line ТРК (МРК, ГНК) : 12 [10:37:56]line Товар: 2710124130 [10:37:56]line Аи-92-К-5 [10:37:56]line 6.640 * 60.30 [10:37:56]line = 400.39 [10:37:56]line НДС 12% НСП 1% [10:37:56]line > о реализуемом товаре [10:37:56]line ОКРУГЛЕНИЕ: -0.39 [10:37:56]line ИТОГО: 400.00 [10:37:56]line Внесено: 400.00 [10:37:56]line СДАЧА: 0.00 [10:37:56]line НСП 1% : 3.54 [10:37:56]line НДС 12% : 42.52 [10:37:56]line Наличными: 400.00 [10:37:56]line Безнал.: 0.00 [10:37:56]line Место: АЗС № 102 "Партнер Нефть" [10:37:56]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:37:56]line СНО: Общий режим [10:37:56]line Чек 35 31.01.2024 10:38 [10:37:56]line Смена: 247 ФФД: 1.0 [10:37:56]line ЗНМ: 0300000040 [10:37:56]line РНМ: 0000000000092723 [10:37:56]line Версия ККМ: 001 [10:37:56]line ФМ: 0000000000875060 [10:37:56]line ФД: 49310 [10:37:57]line ФПД: 174583983670313 [10:37:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T103818&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49310&fm=174583983670313&tin=02508201610067®Number=0000000000092723&sum=40000 [10:37:57]OFD Sender: Processing packet 49310 [packets to send 12, broken 11] [10:37:57]ProducePacketName [10:37:57]name=ofd_packets/00049310 [10:37:57]OFD Sender: To server: pG, [10:37:57]CommunicateWithHost lk.salyk.kg:30040 [10:37:57]ConnectInit lk.salyk.kg [10:37:57]written 0, free lines is 4095 [10:37:57]Connected sock=10 [10:37:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E1 4E 07 01 54 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 23 00 00 00 F4 03 04 00 1A 23 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9E C0 00 00 35 04 06 00 9E C8 80 54 84 29 83 EF 7D 57 6F 83 18 29 [10:37:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 46 98 47 00 01 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 35 30 36 30 10 04 04 00 9E C0 00 00 F4 03 04 00 0D CF B9 65 B6 04 01 00 00 77 DE 79 54 84 06 47 01 [10:37:57]CommunicateWithHost err = 0 [10:37:57]CheckOFDResponse [10:37:57]1017 (14) - 77093643461234 [10:37:57]1041 (16) - 0000000000875060 [10:37:57]1040 (4) - 49310 [10:37:57]1012 (4) - 31.01.2024 04:39 [10:37:57]1206 (1) - 0 [10:37:57]OFD Sender: Remove packet 49310 [10:37:57]ProducePacketName [10:37:57]name=ofd_packets/00049310 [10:37:57]NVStorageDeleteData [10:37:57]Write to MH i2c: 01 00 00 1D 95 B2 [10:37:57]Write i2c OK [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: 01 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: 01 07 00 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: 01 07 00 1D 95 00 00 00 00 00 EC 0C B1 [10:37:57]RasterBufferAndPrint [10:37:57]line [10:37:57]line [10:37:57]line [10:37:57]line [10:37:57]line [10:37:57]written 0, free lines is 3314 [10:37:57]MH_Cut [10:37:57]Write to MH i2c: D1 01 00 24 95 01 8B [10:37:57]Write i2c OK [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: D1 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: D1 01 00 [10:37:57]MH_I2C_Read... [10:37:57]Read from MH i2c: D1 01 00 24 95 00 8A [10:37:57]Write to MH i2c: 01 00 00 25 95 BA [10:37:57]Write i2c OK [10:37:57]MH_I2C_Read... [10:37:57]OFD Sender: No OFD packet to send [10:37:58]*** Cut start [10:37:58]*** Partial cut [10:37:58]*** CUTSNS_PIN = 1 [10:37:58]*** CUTSNS_PIN = 0 [10:37:58]*** Brake cut motor [10:37:58]Read from MH i2c: 01 [10:37:58]MH_I2C_Read... [10:37:58]*** Stop cut motor [10:37:58]*** Cut end [10:37:58]Read from MH i2c: 01 07 00 [10:37:58]MH_I2C_Read... [10:37:58]Read from MH i2c: 01 07 00 25 95 00 00 00 00 00 FF 0F CF [10:37:58]process_action close_receipt done [10:37:58]requested_data is exist [10:37:58]produce_requested_data [10:37:58]requested_item fm.sn is exist - process it [10:37:58]wFMCommunicate request_size=4 [10:37:58]MH_SAM_APDU [10:37:58]CAPDU: 80 11 00 00 [10:37:58]Write to MH i2c: E2 08 00 26 95 80 11 00 00 00 00 00 00 35 [10:37:58]Write i2c OK [10:37:58]MH_I2C_Read... [10:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:58]Read from MH i2c: E2 [10:37:58]MH_I2C_Read... [10:37:58]Read from MH i2c: E2 17 00 [10:37:58]MH_I2C_Read... [10:37:58]Read from MH i2c: E2 17 00 26 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 82 [10:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:37:58]wFMCommunicate OK [10:37:58]requested_item fd.num is exist - process it [10:37:58]SAM_PROTO_GetFieldsCounters [10:37:58]wFMCommunicate request_size=4 [10:37:58]MH_SAM_APDU [10:37:58]CAPDU: 80 13 00 00 [10:37:58]Write to MH i2c: E2 08 00 27 95 80 13 00 00 00 00 00 00 38 [10:37:58]Write i2c OK [10:37:58]MH_I2C_Read... [10:37:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:59]Read from MH i2c: E2 [10:37:59]MH_I2C_Read... [10:37:59]Read from MH i2c: E2 62 00 [10:37:59]MH_I2C_Read... [10:37:59]Read from MH i2c: E2 62 00 27 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 9E C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [10:37: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 9E C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:59]wFMCommunicate OK [10:37:59]SAM_PROTO_GetFieldsCounters done [10:37:59]requested_item shift.num is exist - process it [10:37:59]requested_item shift.opened is exist - process it [10:37:59]req_shift_opened [10:37:59]FM_GetShiftState [10:37:59]SAM_PROTO_GetShiftState [10:37:59]wFMCommunicate request_size=4 [10:37:59]MH_SAM_APDU [10:37:59]CAPDU: 80 13 01 00 [10:37:59]Write to MH i2c: E2 08 00 28 95 80 13 01 00 00 00 00 00 3A [10:37:59]Write i2c OK [10:37:59]MH_I2C_Read... [10:37:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:59]Read from MH i2c: E2 [10:37:59]MH_I2C_Read... [10:37:59]Read from MH i2c: E2 0E 00 [10:37:59]MH_I2C_Read... [10:37:59]Read from MH i2c: E2 0E 00 28 95 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 90 [10:37:59]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:37:59]wFMCommunicate OK [10:37:59]SAM_PROTO_GetShiftState done [10:37:59]FM_GetShiftState done [10:37:59]req_shift_opened done [10:37:59]requested_item shift.open_date is exist - process it [10:37:59]req_shift_open_date [10:37:59]req_shift_open_date done [10:37:59]produce_requested_data done [10:37:59]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49310,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [10:37:59]process_action_free close_receipt [10:37:59]json_value_free [10:37:59]json_value_free done [10:37:59]process_json_proto returns [10:37:59]Send response to host [10:37:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49310,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [10:37:59]free response buf [10:37:59]execute_script done [10:37:59]execute_script returns [10:37:59]free content buf [10:37:59]Sock 9.Close socket [10:37:59]Sock 9.Thread stoped [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:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:53]OFD Sender: No OFD packet to send [10:41:58]OFD Sender: No OFD packet to send [10:42:03]OFD Sender: No OFD packet to send [10:42:08]OFD Sender: No OFD packet to send [10:42:13]OFD Sender: No OFD packet to send [10:42:18]OFD Sender: No OFD packet to send [10:42:23]OFD Sender: No OFD packet to send [10:42:28]OFD Sender: No OFD packet to send [10:42:33]OFD Sender: No OFD packet to send [10:42:38]OFD Sender: No OFD packet to send [10:42:43]OFD Sender: No OFD packet to send [10:42:48]OFD Sender: No OFD packet to send [10:42:53]OFD Sender: No OFD packet to send [10:42:58]OFD Sender: No OFD packet to send [10:43:03]OFD Sender: No OFD packet to send [10:43:08]OFD Sender: No OFD packet to send [10:43:13]OFD Sender: No OFD packet to send [10:43:18]OFD Sender: No OFD packet to send [10:43:23]OFD Sender: No OFD packet to send [10:43:28]OFD Sender: No OFD packet to send [10:43:32]accept exits with 7 [10:43:32]New connection [10:43:32]New thread 3066813796 created [10:43:32]Thread 3066670436 joined [10:43:32]Waiting for new connection... [10:43:32] Sock 7.Parse request [10:43:32]Sock 7.Check first char [10:43:32]Sock 7.First char is OK [10:43:32]request: POST /json_proto HTTP/1.0 [10:43:32]Method: POST [10:43:32]URL: /json_proto [10:43:32]Method is POST - this is cgi request [10:43:32]url: /json_proto [10:43:32]query_string will be loaded in cgi processing [10:43:32]execute_cgi json_proto POST (null) [10:43:32]execute_cgi path=json_proto method=POST [10:43:32]POST find Content-Length [10:43:32]Host: 172.17.56.67:8080 [10:43:32]Content-Length: 677 [10:43:32]Content-Type: application/json [10:43:32] [10:43:32]POST finish read [10:43:32]Found Content-Length = 677 [10:43:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:32]execute_script... [10:43: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)216414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:32]POST & json_proto [10:43:32]process_json_proto [10:43:32]json parsed OK: [10:43:32]protocol is kg_v1.0 [10:43:32]action value=close_receipt [10:43:32]process_action close_receipt [10:43:32]cmd_close_receipt [10:43:32]MH_GetDate [10:43:32]Write to MH i2c: F0 00 00 29 95 AD [10:43:32]Write i2c OK [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: F0 [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: F0 09 00 [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: F0 09 00 29 95 00 6B 24 BA 65 26 5D 9E 65 EA [10:43:32]GetLastDocTimeStamp 1706697498 [10:43:32]current date 1706697835 [10:43:32]FM_GetShiftState [10:43:32]SAM_PROTO_GetShiftState [10:43:32]wFMCommunicate request_size=4 [10:43:32]MH_SAM_APDU [10:43:32]CAPDU: 80 13 01 00 [10:43:32]Write to MH i2c: E2 08 00 2A 95 80 13 01 00 00 00 00 00 3C [10:43:32]Write i2c OK [10:43:32]MH_I2C_Read... [10:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:32]Read from MH i2c: E2 [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: E2 0E 00 [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: E2 0E 00 2A 95 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 92 [10:43:32]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:43:32]wFMCommunicate OK [10:43:32]SAM_PROTO_GetShiftState done [10:43:32]FM_GetShiftState done [10:43:32]opened in 1706659486 [10:43:32]opened+sec_in_day 1706745886 [10:43:32]quantity*price = 20019 [10:43:32]sum+1 = 20021 [10:43:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 36 31.01.2024 10:43 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49311 ФПД: 158597814531881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T104355&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49311&fm=158597814531881&tin=02508201610067®Number=0000000000092723&sum=20000 [10:43:33]StoreToDocumentArchive [10:43:33]shift 247 fd 49311 [10:43:33]save to /storage/0247/doc_00049311 [10:43:33]save last doc name /storage/0247/doc_00049311 to /storage/kkm_last_doc_name [10:43:33]save OK [10:43:33]Clear old archive folders... [10:43:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:43:33]tlvbuf is 01384820 [10:43:33]SAM_PROTO_ClearQueue [10:43:33]wFMCommunicate request_size=4 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 09 00 00 [10:43:33]Write to MH i2c: E2 08 00 37 95 80 09 00 00 00 00 00 00 3E [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:33]Read from MH i2c: E2 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 37 95 00 90 00 40 [10:43:33]RAPDU: 90 00 [10:43:33]wFMCommunicate OK [10:43:33]SAM_PROTO_ClearQueue done [10:43:33]KKMCreateOFDPacket [10:43:33]OFDProtocolAddRootSTLVToBuf [10:43:33]FM_MakeSignedData [10:43:33]FM_MakeSignedData [10:43:33]SAM_PROTO_SignData [10:43:33]wFMCommunicate request_size=4 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 0D 01 02 [10:43:33]Write to MH i2c: E2 08 00 38 95 80 0D 01 02 00 00 00 00 46 [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:33]Read from MH i2c: E2 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 38 95 00 90 00 41 [10:43:33]RAPDU: 90 00 [10:43:33]wFMCommunicate OK [10:43:33]wFMCommunicate request_size=255 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 24 00 00 00 F4 03 04 00 6B 24 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9F C0 00 00 35 04 06 00 90 [10:43:33]Write to MH i2c: E2 02 01 39 95 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 24 00 00 00 F4 03 04 00 6B 24 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9F C0 00 00 35 04 06 00 90 00 00 0E [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:33]Read from MH i2c: E2 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 39 95 00 90 00 42 [10:43:33]RAPDU: 90 00 [10:43:33]wFMCommunicate OK [10:43:33]wFMCommunicate request_size=10 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 0D 02 02 05 3E 6E 65 B7 29 [10:43:33]Write to MH i2c: E2 0D 00 3A 95 80 0D 02 02 05 00 3E 6E 65 B7 29 00 00 44 [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:33]Read from MH i2c: E2 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 3A 95 00 90 00 43 [10:43:33]RAPDU: 90 00 [10:43:33]wFMCommunicate OK [10:43:33]wFMCommunicate request_size=4 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 0D 03 02 [10:43:33]Write to MH i2c: E2 08 00 3B 95 80 0D 03 02 00 00 00 00 4B [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:34]Read from MH i2c: E2 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: E2 0B 00 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: E2 0B 00 3B 95 00 AE C0 1C DA 7B 45 89 D8 90 00 D1 [10:43:34]RAPDU: AE C0 1C DA 7B 45 89 D8 90 00 [10:43:34]wFMCommunicate OK [10:43:34]SAM_PROTO_SignData done [10:43:34]FM_MakeSignedData done [10:43:34]CreateOFDProtocolMessage [10:43:34]wFMCommunicate request_size=4 [10:43:34]MH_SAM_APDU [10:43:34]CAPDU: 80 11 00 00 [10:43:34]Write to MH i2c: E2 08 00 3C 95 80 11 00 00 00 00 00 00 4B [10:43:34]Write i2c OK [10:43:34]MH_I2C_Read... [10:43:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:34]Read from MH i2c: E2 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: E2 17 00 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: E2 17 00 3C 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 98 [10:43:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:43:34]wFMCommunicate OK [10:43:34]CreateOFDProtocolMessage done [10:43:34]OFDSenderStorePacket 49311 [10:43:34]StoreOFDPacket docnum=49311 [10:43:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 BD 28 07 01 B1 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 24 00 00 00 F4 03 04 00 6B 24 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9F C0 00 00 35 04 06 00 90 3E 6E 65 B7 29 AE C0 1C DA 7B 45 89 D8 [10:43:34]CheckFolder [10:43:34]dirname=/storage/ofd_packets [10:43:34]CheckFolder done [10:43:34]ProducePacketName [10:43:34]name=ofd_packets/00049311 [10:43:34]NVStorageSaveData ofd_packets/00049311 [10:43:34]File name is /storage/ofd_packets/00049311 [10:43:34]Write 301 bytes [10:43:34]NVStorageSaveData done [10:43:34]OFDSenderStorePacket done [10:43:34]KKMCreateOFDPacket done [10:43:34]NVStorageSaveData kkm_last_timestamp [10:43:34]File name is /storage/kkm_last_timestamp [10:43:34]Write 4 bytes [10:43:34]NVStorageSaveData done [10:43:34]ExternCall_PrintAddStr [10:43:34]wPrintStart [10:43:34]Write to MH i2c: 01 00 00 3D 95 D2 [10:43:34]Write i2c OK [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: 01 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: 01 07 00 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: 01 07 00 3D 95 00 00 00 00 00 FF 0F E7 [10:43:34]RasterBufferAndPrint [10:43:34]line Счет N : (1)216414 [10:43:34]line ИНН: 02508201610067 [10:43:34]line Контрольно-Кассовый Чек [10:43:34]line ПРОДАЖА [10:43:34]line ТРК (МРК, ГНК) : 22 [10:43:34]line Товар: 2710124130 [10:43:34]line Аи-92-К-5 [10:43:34]line 3.320 * 60.30 [10:43:34]line = 200.20 [10:43:34]line НДС 12% НСП 1% [10:43:34]line > о реализуемом товаре [10:43:34]line ОКРУГЛЕНИЕ: -0.20 [10:43:34]line ИТОГО: 200.00 [10:43:34]line Внесено: 200.00 [10:43:34]line СДАЧА: 0.00 [10:43:34]line НСП 1% : 1.77 [10:43:34]line НДС 12% : 21.26 [10:43:34]line Наличными: 200.00 [10:43:34]line Безнал.: 0.00 [10:43:34]line Место: АЗС № 102 "Партнер Нефть" [10:43:34]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:43:34]line СНО: Общий режим [10:43:34]line Чек 36 31.01.2024 10:43 [10:43:34]line Смена: 247 ФФД: 1.0 [10:43:34]line ЗНМ: 0300000040 [10:43:34]line РНМ: 0000000000092723 [10:43:34]line Версия ККМ: 001 [10:43:34]line ФМ: 0000000000875060 [10:43:34]line ФД: 49311 [10:43:34]line ФПД: 158597814531881 [10:43:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T104355&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49311&fm=158597814531881&tin=02508201610067®Number=0000000000092723&sum=20000 [10:43:34]OFD Sender: Processing packet 49311 [packets to send 12, broken 11] [10:43:34]ProducePacketName [10:43:34]name=ofd_packets/00049311 [10:43:34]OFD Sender: To server: pG, [10:43:34]CommunicateWithHost lk.salyk.kg:30040 [10:43:34]ConnectInit lk.salyk.kg [10:43:34]written 0, free lines is 4095 [10:43:34]Connected sock=10 [10:43:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 BD 28 07 01 B1 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 24 00 00 00 F4 03 04 00 6B 24 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9F C0 00 00 35 04 06 00 90 3E 6E 65 B7 29 AE C0 1C DA 7B 45 89 D8 [10:43:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 7D 2D 47 00 96 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 35 30 36 30 10 04 04 00 9F C0 00 00 F4 03 04 00 5E D0 B9 65 B6 04 01 00 00 F6 61 E6 0D 33 53 20 6E [10:43:34]CommunicateWithHost err = 0 [10:43:34]CheckOFDResponse [10:43:34]1017 (14) - 77093643461234 [10:43:34]1041 (16) - 0000000000875060 [10:43:34]1040 (4) - 49311 [10:43:34]1012 (4) - 31.01.2024 04:45 [10:43:34]1206 (1) - 0 [10:43:34]OFD Sender: Remove packet 49311 [10:43:34]ProducePacketName [10:43:34]name=ofd_packets/00049311 [10:43:34]NVStorageDeleteData [10:43:34]Write to MH i2c: 01 00 00 68 95 FD [10:43:34]Write i2c OK [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: 01 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: 01 07 00 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: 01 07 00 68 95 00 00 00 00 00 E6 0C F6 [10:43:34]RasterBufferAndPrint [10:43:34]line [10:43:34]line [10:43:34]line [10:43:34]line [10:43:34]line [10:43:34]written 0, free lines is 3308 [10:43:34]MH_Cut [10:43:34]Write to MH i2c: D1 01 00 6F 95 01 D6 [10:43:34]Write i2c OK [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: D1 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: D1 01 00 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: D1 01 00 6F 95 00 D5 [10:43:34]Write to MH i2c: 01 00 00 70 95 05 [10:43:34]Write i2c OK [10:43:34]MH_I2C_Read... [10:43:35]OFD Sender: No OFD packet to send [10:43:35]*** Cut start [10:43:35]*** Partial cut [10:43:35]*** CUTSNS_PIN = 1 [10:43:35]*** CUTSNS_PIN = 0 [10:43:35]*** Brake cut motor [10:43:36]Read from MH i2c: 01 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: 01 07 00 [10:43:36]MH_I2C_Read... [10:43:36]*** Stop cut motor [10:43:36]*** Cut end [10:43:36]Read from MH i2c: 01 07 00 70 95 00 00 00 00 00 FF 0F 1A [10:43:36]process_action close_receipt done [10:43:36]requested_data is exist [10:43:36]produce_requested_data [10:43:36]requested_item fm.sn is exist - process it [10:43:36]wFMCommunicate request_size=4 [10:43:36]MH_SAM_APDU [10:43:36]CAPDU: 80 11 00 00 [10:43:36]Write to MH i2c: E2 08 00 71 95 80 11 00 00 00 00 00 00 80 [10:43:36]Write i2c OK [10:43:36]MH_I2C_Read... [10:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:36]Read from MH i2c: E2 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: E2 17 00 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: E2 17 00 71 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CD [10:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:43:36]wFMCommunicate OK [10:43:36]requested_item fd.num is exist - process it [10:43:36]SAM_PROTO_GetFieldsCounters [10:43:36]wFMCommunicate request_size=4 [10:43:36]MH_SAM_APDU [10:43:36]CAPDU: 80 13 00 00 [10:43:36]Write to MH i2c: E2 08 00 72 95 80 13 00 00 00 00 00 00 83 [10:43:36]Write i2c OK [10:43:36]MH_I2C_Read... [10:43:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:36]Read from MH i2c: E2 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: E2 62 00 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: E2 62 00 72 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 9F C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [10:43: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 9F C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:36]wFMCommunicate OK [10:43:36]SAM_PROTO_GetFieldsCounters done [10:43:36]requested_item shift.num is exist - process it [10:43:36]requested_item shift.opened is exist - process it [10:43:36]req_shift_opened [10:43:36]FM_GetShiftState [10:43:36]SAM_PROTO_GetShiftState [10:43:36]wFMCommunicate request_size=4 [10:43:36]MH_SAM_APDU [10:43:36]CAPDU: 80 13 01 00 [10:43:36]Write to MH i2c: E2 08 00 73 95 80 13 01 00 00 00 00 00 85 [10:43:36]Write i2c OK [10:43:36]MH_I2C_Read... [10:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:36]Read from MH i2c: E2 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: E2 0E 00 [10:43:36]MH_I2C_Read... [10:43:36]Read from MH i2c: E2 0E 00 73 95 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 DB [10:43:36]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:43:36]wFMCommunicate OK [10:43:36]SAM_PROTO_GetShiftState done [10:43:36]FM_GetShiftState done [10:43:36]req_shift_opened done [10:43:36]requested_item shift.open_date is exist - process it [10:43:36]req_shift_open_date [10:43:36]req_shift_open_date done [10:43:36]produce_requested_data done [10:43:36]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49311,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [10:43:36]process_action_free close_receipt [10:43:36]json_value_free [10:43:36]json_value_free done [10:43:36]process_json_proto returns [10:43:36]Send response to host [10:43:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49311,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [10:43:36]free response buf [10:43:36]execute_script done [10:43:36]execute_script returns [10:43:36]free content buf [10:43:36]Sock 7.Close socket [10:43:36]Sock 7.Thread stoped [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:21]accept exits with 9 [10:55:21]New connection [10:55:21]New thread 3066670436 created [10:55:21]Thread 3066813796 joined [10:55:21]Waiting for new connection... [10:55:21] Sock 9.Parse request [10:55:21]Sock 9.Check first char [10:55:21]Sock 9.First char is OK [10:55:21]request: POST /json_proto HTTP/1.0 [10:55:21]Method: POST [10:55:21]URL: /json_proto [10:55:21]Method is POST - this is cgi request [10:55:21]url: /json_proto [10:55:21]query_string will be loaded in cgi processing [10:55:21]execute_cgi json_proto POST (null) [10:55:21]execute_cgi path=json_proto method=POST [10:55:21]POST find Content-Length [10:55:21]Host: 172.17.56.67:8080 [10:55:21]Content-Length: 674 [10:55:21]Content-Type: application/json [10:55:21] [10:55:21]POST finish read [10:55:21]Found Content-Length = 674 [10:55:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 5.730, "sum" : 400.53, "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:55:21]execute_script... [10:55: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)216415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 5.730, "sum" : 400.53, "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:55:21]POST & json_proto [10:55:21]process_json_proto [10:55:21]json parsed OK: [10:55:21]protocol is kg_v1.0 [10:55:21]action value=close_receipt [10:55:21]process_action close_receipt [10:55:21]cmd_close_receipt [10:55:21]MH_GetDate [10:55:21]Write to MH i2c: F0 00 00 74 95 F8 [10:55:21]Write i2c OK [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: F0 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: F0 09 00 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: F0 09 00 74 95 00 31 27 BA 65 26 5D 9E 65 FE [10:55:21]GetLastDocTimeStamp 1706697835 [10:55:21]current date 1706698545 [10:55:21]FM_GetShiftState [10:55:21]SAM_PROTO_GetShiftState [10:55:21]wFMCommunicate request_size=4 [10:55:21]MH_SAM_APDU [10:55:21]CAPDU: 80 13 01 00 [10:55:21]Write to MH i2c: E2 08 00 75 95 80 13 01 00 00 00 00 00 87 [10:55:21]Write i2c OK [10:55:21]MH_I2C_Read... [10:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:21]Read from MH i2c: E2 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: E2 0E 00 [10:55:21]MH_I2C_Read... [10:55:21]Read from MH i2c: E2 0E 00 75 95 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 DD [10:55:21]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:55:21]wFMCommunicate OK [10:55:21]SAM_PROTO_GetShiftState done [10:55:21]FM_GetShiftState done [10:55:21]opened in 1706659486 [10:55:21]opened+sec_in_day 1706745886 [10:55:21]quantity*price = 40052 [10:55:21]sum+1 = 40054 [10:55:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.53 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 37 31.01.2024 10:55 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49312 ФПД: 73010211434031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T105545&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49312&fm=73010211434031&tin=02508201610067®Number=0000000000092723&sum=40000 [10:55:23]StoreToDocumentArchive [10:55:23]shift 247 fd 49312 [10:55:23]save to /storage/0247/doc_00049312 [10:55:23]save last doc name /storage/0247/doc_00049312 to /storage/kkm_last_doc_name [10:55:23]save OK [10:55:23]Clear old archive folders... [10:55:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:55:23]tlvbuf is 0147AF10 [10:55:23]SAM_PROTO_ClearQueue [10:55:23]wFMCommunicate request_size=4 [10:55:23]MH_SAM_APDU [10:55:23]CAPDU: 80 09 00 00 [10:55:23]Write to MH i2c: E2 08 00 82 95 80 09 00 00 00 00 00 00 89 [10:55:23]Write i2c OK [10:55:23]MH_I2C_Read... [10:55:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:23]Read from MH i2c: E2 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 03 00 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 03 00 82 95 00 90 00 8B [10:55:23]RAPDU: 90 00 [10:55:23]wFMCommunicate OK [10:55:23]SAM_PROTO_ClearQueue done [10:55:23]KKMCreateOFDPacket [10:55:23]OFDProtocolAddRootSTLVToBuf [10:55:23]FM_MakeSignedData [10:55:23]FM_MakeSignedData [10:55:23]SAM_PROTO_SignData [10:55:23]wFMCommunicate request_size=4 [10:55:23]MH_SAM_APDU [10:55:23]CAPDU: 80 0D 01 02 [10:55:23]Write to MH i2c: E2 08 00 83 95 80 0D 01 02 00 00 00 00 91 [10:55:23]Write i2c OK [10:55:23]MH_I2C_Read... [10:55:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:23]Read from MH i2c: E2 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 03 00 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 03 00 83 95 00 90 00 8C [10:55:23]RAPDU: 90 00 [10:55:23]wFMCommunicate OK [10:55:23]wFMCommunicate request_size=255 [10:55:23]MH_SAM_APDU [10:55:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 75 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 9D 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 25 00 00 00 F4 03 04 00 31 27 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A0 C0 00 00 35 04 06 00 42 67 03 B7 [10:55:23]Write to MH i2c: E2 02 01 84 95 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 75 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 9D 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 25 00 00 00 F4 03 04 00 31 27 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A0 C0 00 00 35 04 06 00 42 67 03 B7 00 00 F6 [10:55:23]Write i2c OK [10:55:23]MH_I2C_Read... [10:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:23]Read from MH i2c: E2 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 03 00 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 03 00 84 95 00 90 00 8D [10:55:23]RAPDU: 90 00 [10:55:23]wFMCommunicate OK [10:55:23]wFMCommunicate request_size=7 [10:55:23]MH_SAM_APDU [10:55:23]CAPDU: 80 0D 02 02 02 AE 2F [10:55:23]Write to MH i2c: E2 0A 00 85 95 80 0D 02 02 02 00 AE 2F 00 00 75 [10:55:23]Write i2c OK [10:55:23]MH_I2C_Read... [10:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:23]Read from MH i2c: E2 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 03 00 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 03 00 85 95 00 90 00 8E [10:55:23]RAPDU: 90 00 [10:55:23]wFMCommunicate OK [10:55:23]wFMCommunicate request_size=4 [10:55:23]MH_SAM_APDU [10:55:23]CAPDU: 80 0D 03 02 [10:55:23]Write to MH i2c: E2 08 00 86 95 80 0D 03 02 00 00 00 00 96 [10:55:23]Write i2c OK [10:55:23]MH_I2C_Read... [10:55:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:23]Read from MH i2c: E2 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 0B 00 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 0B 00 86 95 00 51 3C 2B A4 B0 EA 56 E5 90 00 C8 [10:55:23]RAPDU: 51 3C 2B A4 B0 EA 56 E5 90 00 [10:55:23]wFMCommunicate OK [10:55:23]SAM_PROTO_SignData done [10:55:23]FM_MakeSignedData done [10:55:23]CreateOFDProtocolMessage [10:55:23]wFMCommunicate request_size=4 [10:55:23]MH_SAM_APDU [10:55:23]CAPDU: 80 11 00 00 [10:55:23]Write to MH i2c: E2 08 00 87 95 80 11 00 00 00 00 00 00 96 [10:55:23]Write i2c OK [10:55:23]MH_I2C_Read... [10:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:23]Read from MH i2c: E2 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 17 00 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: E2 17 00 87 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E3 [10:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:55:23]wFMCommunicate OK [10:55:23]CreateOFDProtocolMessage done [10:55:23]OFDSenderStorePacket 49312 [10:55:23]StoreOFDPacket docnum=49312 [10:55:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 8A A8 04 01 F2 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 75 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 9D 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 25 00 00 00 F4 03 04 00 31 27 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A0 C0 00 00 35 04 06 00 42 67 03 B7 AE 2F 51 3C 2B A4 B0 EA 56 E5 [10:55:23]CheckFolder [10:55:23]dirname=/storage/ofd_packets [10:55:23]CheckFolder done [10:55:23]ProducePacketName [10:55:23]name=ofd_packets/00049312 [10:55:23]NVStorageSaveData ofd_packets/00049312 [10:55:23]File name is /storage/ofd_packets/00049312 [10:55:23]Write 298 bytes [10:55:23]NVStorageSaveData done [10:55:23]OFDSenderStorePacket done [10:55:23]KKMCreateOFDPacket done [10:55:23]NVStorageSaveData kkm_last_timestamp [10:55:23]File name is /storage/kkm_last_timestamp [10:55:23]Write 4 bytes [10:55:23]NVStorageSaveData done [10:55:23]ExternCall_PrintAddStr [10:55:23]wPrintStart [10:55:23]Write to MH i2c: 01 00 00 88 95 1D [10:55:23]Write i2c OK [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: 01 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: 01 07 00 [10:55:23]MH_I2C_Read... [10:55:23]Read from MH i2c: 01 07 00 88 95 00 00 00 00 00 FF 0F 32 [10:55:23]RasterBufferAndPrint [10:55:23]line Счет N : (1)216415 [10:55:23]line ИНН: 02508201610067 [10:55:23]line Контрольно-Кассовый Чек [10:55:23]line ПРОДАЖА [10:55:23]line ТРК (МРК, ГНК) : 21 [10:55:23]line Товар: 2710194210 [10:55:23]line ДТ-К-5 [10:55:23]line 5.730 * 69.90 [10:55:23]line = 400.53 [10:55:23]line НДС 12% НСП 1% [10:55:23]line > о реализуемом товаре [10:55:23]line ОКРУГЛЕНИЕ: -0.53 [10:55:23]line ИТОГО: 400.00 [10:55:23]line Внесено: 400.00 [10:55:23]line СДАЧА: 0.00 [10:55:23]line НСП 1% : 3.54 [10:55:23]line НДС 12% : 42.53 [10:55:23]line Наличными: 400.00 [10:55:23]line Безнал.: 0.00 [10:55:23]line Место: АЗС № 102 "Партнер Нефть" [10:55:23]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:55:23]line СНО: Общий режим [10:55:23]line Чек 37 31.01.2024 10:55 [10:55:23]line Смена: 247 ФФД: 1.0 [10:55:23]line ЗНМ: 0300000040 [10:55:23]line РНМ: 0000000000092723 [10:55:23]line Версия ККМ: 001 [10:55:23]line ФМ: 0000000000875060 [10:55:23]line ФД: 49312 [10:55:23]line ФПД: 73010211434031 [10:55:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T105545&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49312&fm=73010211434031&tin=02508201610067®Number=0000000000092723&sum=40000 [10:55:23]OFD Sender: Processing packet 49312 [packets to send 12, broken 11] [10:55:23]ProducePacketName [10:55:23]name=ofd_packets/00049312 [10:55:23]OFD Sender: To server: pG, [10:55:23]CommunicateWithHost lk.salyk.kg:30040 [10:55:23]ConnectInit lk.salyk.kg [10:55:23]written 0, free lines is 4095 [10:55:23]Connected sock=10 [10:55:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 8A A8 04 01 F2 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 62 16 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 75 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 9D 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 25 00 00 00 F4 03 04 00 31 27 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A0 C0 00 00 35 04 06 00 42 67 03 B7 AE 2F 51 3C 2B A4 B0 EA 56 E5 [10:55:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 E5 54 47 00 AD 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 35 30 36 30 10 04 04 00 A0 C0 00 00 F4 03 04 00 24 D3 B9 65 B6 04 01 00 00 B7 2E E0 E7 6B 31 EE CF [10:55:24]CommunicateWithHost err = 0 [10:55:24]CheckOFDResponse [10:55:24]1017 (14) - 77093643461234 [10:55:24]1041 (16) - 0000000000875060 [10:55:24]1040 (4) - 49312 [10:55:24]1012 (4) - 31.01.2024 04:57 [10:55:24]1206 (1) - 0 [10:55:24]OFD Sender: Remove packet 49312 [10:55:24]ProducePacketName [10:55:24]name=ofd_packets/00049312 [10:55:24]NVStorageDeleteData [10:55:24]Write to MH i2c: 01 00 00 B3 95 48 [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: 01 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: 01 07 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: 01 07 00 B3 95 00 00 00 00 00 E1 0C 3C [10:55:24]RasterBufferAndPrint [10:55:24]line [10:55:24]line [10:55:24]line [10:55:24]line [10:55:24]line [10:55:24]written 0, free lines is 3302 [10:55:24]MH_Cut [10:55:24]Write to MH i2c: D1 01 00 BA 95 01 21 [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: D1 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: D1 01 00 [10:55:24]MH_I2C_Read... [10:55:24]Read from MH i2c: D1 01 00 BA 95 00 20 [10:55:24]Write to MH i2c: 01 00 00 BB 95 50 [10:55:24]Write i2c OK [10:55:24]MH_I2C_Read... [10:55:24]OFD Sender: No OFD packet to send [10:55:24]*** Cut start [10:55:24]*** Partial cut [10:55:24]*** CUTSNS_PIN = 1 [10:55:25]*** CUTSNS_PIN = 0 [10:55:25]*** Brake cut motor [10:55:25]Read from MH i2c: 01 [10:55:25]MH_I2C_Read... [10:55:25]*** Stop cut motor [10:55:25]*** Cut end [10:55:25]Read from MH i2c: 01 07 00 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: 01 07 00 BB 95 00 00 00 00 00 FF 0F 65 [10:55:25]process_action close_receipt done [10:55:25]requested_data is exist [10:55:25]produce_requested_data [10:55:25]requested_item fm.sn is exist - process it [10:55:25]wFMCommunicate request_size=4 [10:55:25]MH_SAM_APDU [10:55:25]CAPDU: 80 11 00 00 [10:55:25]Write to MH i2c: E2 08 00 BC 95 80 11 00 00 00 00 00 00 CB [10:55:25]Write i2c OK [10:55:25]MH_I2C_Read... [10:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:25]Read from MH i2c: E2 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: E2 17 00 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: E2 17 00 BC 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 18 [10:55:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:55:25]wFMCommunicate OK [10:55:25]requested_item fd.num is exist - process it [10:55:25]SAM_PROTO_GetFieldsCounters [10:55:25]wFMCommunicate request_size=4 [10:55:25]MH_SAM_APDU [10:55:25]CAPDU: 80 13 00 00 [10:55:25]Write to MH i2c: E2 08 00 BD 95 80 13 00 00 00 00 00 00 CE [10:55:25]Write i2c OK [10:55:25]MH_I2C_Read... [10:55:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:25]Read from MH i2c: E2 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: E2 62 00 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: E2 62 00 BD 95 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A0 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [10:55: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A0 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:25]wFMCommunicate OK [10:55:25]SAM_PROTO_GetFieldsCounters done [10:55:25]requested_item shift.num is exist - process it [10:55:25]requested_item shift.opened is exist - process it [10:55:25]req_shift_opened [10:55:25]FM_GetShiftState [10:55:25]SAM_PROTO_GetShiftState [10:55:25]wFMCommunicate request_size=4 [10:55:25]MH_SAM_APDU [10:55:25]CAPDU: 80 13 01 00 [10:55:25]Write to MH i2c: E2 08 00 BE 95 80 13 01 00 00 00 00 00 D0 [10:55:25]Write i2c OK [10:55:25]MH_I2C_Read... [10:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:25]Read from MH i2c: E2 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: E2 0E 00 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: E2 0E 00 BE 95 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 26 [10:55:25]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:55:25]wFMCommunicate OK [10:55:25]SAM_PROTO_GetShiftState done [10:55:25]FM_GetShiftState done [10:55:25]req_shift_opened done [10:55:25]requested_item shift.open_date is exist - process it [10:55:25]req_shift_open_date [10:55:25]req_shift_open_date done [10:55:25]produce_requested_data done [10:55:25]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49312,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [10:55:25]process_action_free close_receipt [10:55:25]json_value_free [10:55:25]json_value_free done [10:55:25]process_json_proto returns [10:55:25]Send response to host [10:55:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49312,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [10:55:25]free response buf [10:55:25]execute_script done [10:55:25]execute_script returns [10:55:25]free content buf [10:55:25]Sock 9.Close socket [10:55:25]Sock 9.Thread stoped [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:08]accept exits with 7 [10:57:08]New connection [10:57:08]New thread 3066813796 created [10:57:08]Thread 3066670436 joined [10:57:08]Waiting for new connection... [10:57:08] Sock 7.Parse request [10:57:08]Sock 7.Check first char [10:57:08]Sock 7.First char is OK [10:57:08]request: POST /json_proto HTTP/1.0 [10:57:08]Method: POST [10:57:08]URL: /json_proto [10:57:08]Method is POST - this is cgi request [10:57:08]url: /json_proto [10:57:08]query_string will be loaded in cgi processing [10:57:08]execute_cgi json_proto POST (null) [10:57:08]execute_cgi path=json_proto method=POST [10:57:08]POST find Content-Length [10:57:08]Host: 172.17.56.67:8080 [10:57:08]Content-Length: 677 [10:57:08]Content-Type: application/json [10:57:08] [10:57:08]POST finish read [10:57:08]Found Content-Length = 677 [10:57:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 2.160, "sum" : 130.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:08]execute_script... [10:57: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)216416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 2.160, "sum" : 130.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 130.00, "total" : 130.00, "payments": [ { "type": 0, "sum" : 130.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:08]POST & json_proto [10:57:08]process_json_proto [10:57:08]json parsed OK: [10:57:08]protocol is kg_v1.0 [10:57:08]action value=close_receipt [10:57:08]process_action close_receipt [10:57:08]cmd_close_receipt [10:57:08]MH_GetDate [10:57:08]Write to MH i2c: F0 00 00 BF 95 43 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: F0 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: F0 09 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: F0 09 00 BF 95 00 9C 27 BA 65 26 5D 9E 65 B4 [10:57:08]GetLastDocTimeStamp 1706698545 [10:57:08]current date 1706698652 [10:57:08]FM_GetShiftState [10:57:08]SAM_PROTO_GetShiftState [10:57:08]wFMCommunicate request_size=4 [10:57:08]MH_SAM_APDU [10:57:08]CAPDU: 80 13 01 00 [10:57:08]Write to MH i2c: E2 08 00 C0 95 80 13 01 00 00 00 00 00 D2 [10:57:08]Write i2c OK [10:57:08]MH_I2C_Read... [10:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:08]Read from MH i2c: E2 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 0E 00 [10:57:08]MH_I2C_Read... [10:57:08]Read from MH i2c: E2 0E 00 C0 95 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 28 [10:57:08]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:57:08]wFMCommunicate OK [10:57:08]SAM_PROTO_GetShiftState done [10:57:08]FM_GetShiftState done [10:57:08]opened in 1706659486 [10:57:08]opened+sec_in_day 1706745886 [10:57:08]quantity*price = 13024 [10:57:08]sum+1 = 13026 [10:57:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.15 НДС 12% : 13.83 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 38 31.01.2024 10:57 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49313 ФПД: 175836371531705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T105732&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49313&fm=175836371531705&tin=02508201610067®Number=0000000000092723&sum=13000 [10:57:09]StoreToDocumentArchive [10:57:09]shift 247 fd 49313 [10:57:09]save to /storage/0247/doc_00049313 [10:57:09]save last doc name /storage/0247/doc_00049313 to /storage/kkm_last_doc_name [10:57:09]save OK [10:57:09]Clear old archive folders... [10:57:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:57:09]tlvbuf is 011E6090 [10:57:09]SAM_PROTO_ClearQueue [10:57:09]wFMCommunicate request_size=4 [10:57:09]MH_SAM_APDU [10:57:09]CAPDU: 80 09 00 00 [10:57:09]Write to MH i2c: E2 08 00 CD 95 80 09 00 00 00 00 00 00 D4 [10:57:09]Write i2c OK [10:57:09]MH_I2C_Read... [10:57:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:09]Read from MH i2c: E2 [10:57:09]MH_I2C_Read... [10:57:09]Read from MH i2c: E2 03 00 [10:57:09]MH_I2C_Read... [10:57:09]Read from MH i2c: E2 03 00 CD 95 00 90 00 D6 [10:57:09]RAPDU: 90 00 [10:57:09]wFMCommunicate OK [10:57:09]SAM_PROTO_ClearQueue done [10:57:09]KKMCreateOFDPacket [10:57:09]OFDProtocolAddRootSTLVToBuf [10:57:09]FM_MakeSignedData [10:57:09]FM_MakeSignedData [10:57:09]SAM_PROTO_SignData [10:57:09]wFMCommunicate request_size=4 [10:57:09]MH_SAM_APDU [10:57:09]CAPDU: 80 0D 01 02 [10:57:09]Write to MH i2c: E2 08 00 CE 95 80 0D 01 02 00 00 00 00 DC [10:57:09]Write i2c OK [10:57:09]MH_I2C_Read... [10:57:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:09]Read from MH i2c: E2 [10:57:09]MH_I2C_Read... [10:57:09]Read from MH i2c: E2 03 00 [10:57:09]MH_I2C_Read... [10:57:09]Read from MH i2c: E2 03 00 CE 95 00 90 00 D7 [10:57:09]RAPDU: 90 00 [10:57:09]wFMCommunicate OK [10:57:09]wFMCommunicate request_size=255 [10:57:09]MH_SAM_APDU [10:57:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 08 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 E1 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 9C 27 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A1 C0 00 00 35 04 06 00 9F [10:57:09]Write to MH i2c: E2 02 01 CF 95 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 08 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 E1 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 9C 27 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A1 C0 00 00 35 04 06 00 9F 00 00 E0 [10:57:10]Write i2c OK [10:57:10]MH_I2C_Read... [10:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:10]Read from MH i2c: E2 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 03 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 03 00 CF 95 00 90 00 D8 [10:57:10]RAPDU: 90 00 [10:57:10]wFMCommunicate OK [10:57:10]wFMCommunicate request_size=10 [10:57:10]MH_SAM_APDU [10:57:10]CAPDU: 80 0D 02 02 05 EC 18 76 B7 B9 [10:57:10]Write to MH i2c: E2 0D 00 D0 95 80 0D 02 02 05 00 EC 18 76 B7 B9 00 00 D3 [10:57:10]Write i2c OK [10:57:10]MH_I2C_Read... [10:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:10]Read from MH i2c: E2 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 03 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 03 00 D0 95 00 90 00 D9 [10:57:10]RAPDU: 90 00 [10:57:10]wFMCommunicate OK [10:57:10]wFMCommunicate request_size=4 [10:57:10]MH_SAM_APDU [10:57:10]CAPDU: 80 0D 03 02 [10:57:10]Write to MH i2c: E2 08 00 D1 95 80 0D 03 02 00 00 00 00 E1 [10:57:10]Write i2c OK [10:57:10]MH_I2C_Read... [10:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:10]Read from MH i2c: E2 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 0B 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 0B 00 D1 95 00 92 C1 FA F3 BD 3E C0 A6 90 00 83 [10:57:10]RAPDU: 92 C1 FA F3 BD 3E C0 A6 90 00 [10:57:10]wFMCommunicate OK [10:57:10]SAM_PROTO_SignData done [10:57:10]FM_MakeSignedData done [10:57:10]CreateOFDProtocolMessage [10:57:10]wFMCommunicate request_size=4 [10:57:10]MH_SAM_APDU [10:57:10]CAPDU: 80 11 00 00 [10:57:10]Write to MH i2c: E2 08 00 D2 95 80 11 00 00 00 00 00 00 E1 [10:57:10]Write i2c OK [10:57:10]MH_I2C_Read... [10:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:10]Read from MH i2c: E2 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 17 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: E2 17 00 D2 95 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2E [10:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:57:10]wFMCommunicate OK [10:57:10]CreateOFDProtocolMessage done [10:57:10]OFDSenderStorePacket 49313 [10:57:10]StoreOFDPacket docnum=49313 [10:57:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6A 84 07 01 3A 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 08 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 E1 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 9C 27 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A1 C0 00 00 35 04 06 00 9F EC 18 76 B7 B9 92 C1 FA F3 BD 3E C0 A6 [10:57:10]CheckFolder [10:57:10]dirname=/storage/ofd_packets [10:57:10]CheckFolder done [10:57:10]ProducePacketName [10:57:10]name=ofd_packets/00049313 [10:57:10]NVStorageSaveData ofd_packets/00049313 [10:57:10]File name is /storage/ofd_packets/00049313 [10:57:10]Write 301 bytes [10:57:10]NVStorageSaveData done [10:57:10]OFDSenderStorePacket done [10:57:10]KKMCreateOFDPacket done [10:57:10]NVStorageSaveData kkm_last_timestamp [10:57:10]File name is /storage/kkm_last_timestamp [10:57:10]Write 4 bytes [10:57:10]NVStorageSaveData done [10:57:10]ExternCall_PrintAddStr [10:57:10]wPrintStart [10:57:10]Write to MH i2c: 01 00 00 D3 95 68 [10:57:10]Write i2c OK [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: 01 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: 01 07 00 [10:57:10]MH_I2C_Read... [10:57:10]Read from MH i2c: 01 07 00 D3 95 00 00 00 00 00 FF 0F 7D [10:57:10]RasterBufferAndPrint [10:57:10]line Счет N : (1)216416 [10:57:10]line ИНН: 02508201610067 [10:57:10]line Контрольно-Кассовый Чек [10:57:10]line ПРОДАЖА [10:57:10]line ТРК (МРК, ГНК) : 12 [10:57:10]line Товар: 2710124130 [10:57:10]line Аи-92-К-5 [10:57:10]line 2.160 * 60.30 [10:57:10]line = 130.25 [10:57:10]line НДС 12% НСП 1% [10:57:10]line > о реализуемом товаре [10:57:10]line ОКРУГЛЕНИЕ: -0.25 [10:57:10]line ИТОГО: 130.00 [10:57:10]line Внесено: 130.00 [10:57:10]line СДАЧА: 0.00 [10:57:10]line НСП 1% : 1.15 [10:57:10]line НДС 12% : 13.83 [10:57:10]line Наличными: 130.00 [10:57:10]line Безнал.: 0.00 [10:57:10]line Место: АЗС № 102 "Партнер Нефть" [10:57:10]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:57:10]line СНО: Общий режим [10:57:10]line Чек 38 31.01.2024 10:57 [10:57:10]line Смена: 247 ФФД: 1.0 [10:57:10]line ЗНМ: 0300000040 [10:57:10]line РНМ: 0000000000092723 [10:57:10]line Версия ККМ: 001 [10:57:10]line ФМ: 0000000000875060 [10:57:10]line ФД: 49313 [10:57:10]line ФПД: 175836371531705 [10:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T105732&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49313&fm=175836371531705&tin=02508201610067®Number=0000000000092723&sum=13000 [10:57:10]OFD Sender: Processing packet 49313 [packets to send 12, broken 11] [10:57:10]ProducePacketName [10:57:10]name=ofd_packets/00049313 [10:57:10]OFD Sender: To server: pG, [10:57:10]CommunicateWithHost lk.salyk.kg:30040 [10:57:10]ConnectInit lk.salyk.kg [10:57:10]written 0, free lines is 4095 [10:57:10]Connected sock=10 [10:57:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6A 84 07 01 3A 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 70 08 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 E1 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 67 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 9C 27 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A1 C0 00 00 35 04 06 00 9F EC 18 76 B7 B9 92 C1 FA F3 BD 3E C0 A6 [10:57:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 36 71 47 00 D1 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A1 C0 00 00 F4 03 04 00 8F D3 B9 65 B6 04 01 00 00 06 33 19 97 C9 FD F7 74 [10:57:11]CommunicateWithHost err = 0 [10:57:11]CheckOFDResponse [10:57:11]1017 (14) - 77093643461234 [10:57:11]1041 (16) - 0000000000875060 [10:57:11]1040 (4) - 49313 [10:57:11]1012 (4) - 31.01.2024 04:58 [10:57:11]1206 (1) - 0 [10:57:11]OFD Sender: Remove packet 49313 [10:57:11]ProducePacketName [10:57:11]name=ofd_packets/00049313 [10:57:11]NVStorageDeleteData [10:57:11]Write to MH i2c: 01 00 00 FE 95 93 [10:57:11]Write i2c OK [10:57:11]MH_I2C_Read... [10:57:11]Read from MH i2c: 01 [10:57:11]MH_I2C_Read... [10:57:11]Read from MH i2c: 01 07 00 [10:57:11]MH_I2C_Read... [10:57:11]Read from MH i2c: 01 07 00 FE 95 00 00 00 00 00 E4 0C 8A [10:57:11]RasterBufferAndPrint [10:57:11]line [10:57:11]line [10:57:11]line [10:57:11]line [10:57:11]line [10:57:11]written 0, free lines is 3306 [10:57:11]MH_Cut [10:57:11]Write to MH i2c: D1 01 00 05 96 01 6D [10:57:11]Write i2c OK [10:57:11]MH_I2C_Read... [10:57:11]Read from MH i2c: D1 [10:57:11]MH_I2C_Read... [10:57:11]Read from MH i2c: D1 01 00 [10:57:11]MH_I2C_Read... [10:57:11]Read from MH i2c: D1 01 00 05 96 00 6C [10:57:11]Write to MH i2c: 01 00 00 06 96 9C [10:57:11]Write i2c OK [10:57:11]MH_I2C_Read... [10:57:11]OFD Sender: No OFD packet to send [10:57:11]*** Cut start [10:57:11]*** Partial cut [10:57:11]*** CUTSNS_PIN = 1 [10:57:11]*** CUTSNS_PIN = 0 [10:57:12]*** Brake cut motor [10:57:12]Read from MH i2c: 01 [10:57:12]MH_I2C_Read... [10:57:12]*** Stop cut motor [10:57:12]*** Cut end [10:57:12]Read from MH i2c: 01 07 00 [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: 01 07 00 06 96 00 00 00 00 00 FF 0F B1 [10:57:12]process_action close_receipt done [10:57:12]requested_data is exist [10:57:12]produce_requested_data [10:57:12]requested_item fm.sn is exist - process it [10:57:12]wFMCommunicate request_size=4 [10:57:12]MH_SAM_APDU [10:57:12]CAPDU: 80 11 00 00 [10:57:12]Write to MH i2c: E2 08 00 07 96 80 11 00 00 00 00 00 00 17 [10:57:12]Write i2c OK [10:57:12]MH_I2C_Read... [10:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:12]Read from MH i2c: E2 [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: E2 17 00 [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: E2 17 00 07 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 64 [10:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:57:12]wFMCommunicate OK [10:57:12]requested_item fd.num is exist - process it [10:57:12]SAM_PROTO_GetFieldsCounters [10:57:12]wFMCommunicate request_size=4 [10:57:12]MH_SAM_APDU [10:57:12]CAPDU: 80 13 00 00 [10:57:12]Write to MH i2c: E2 08 00 08 96 80 13 00 00 00 00 00 00 1A [10:57:12]Write i2c OK [10:57:12]MH_I2C_Read... [10:57:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:12]Read from MH i2c: E2 [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: E2 62 00 [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: E2 62 00 08 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A1 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [10:57:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A1 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:12]wFMCommunicate OK [10:57:12]SAM_PROTO_GetFieldsCounters done [10:57:12]requested_item shift.num is exist - process it [10:57:12]requested_item shift.opened is exist - process it [10:57:12]req_shift_opened [10:57:12]FM_GetShiftState [10:57:12]SAM_PROTO_GetShiftState [10:57:12]wFMCommunicate request_size=4 [10:57:12]MH_SAM_APDU [10:57:12]CAPDU: 80 13 01 00 [10:57:12]Write to MH i2c: E2 08 00 09 96 80 13 01 00 00 00 00 00 1C [10:57:12]Write i2c OK [10:57:12]MH_I2C_Read... [10:57:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:12]Read from MH i2c: E2 [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: E2 0E 00 [10:57:12]MH_I2C_Read... [10:57:12]Read from MH i2c: E2 0E 00 09 96 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 72 [10:57:12]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [10:57:12]wFMCommunicate OK [10:57:12]SAM_PROTO_GetShiftState done [10:57:12]FM_GetShiftState done [10:57:12]req_shift_opened done [10:57:12]requested_item shift.open_date is exist - process it [10:57:12]req_shift_open_date [10:57:12]req_shift_open_date done [10:57:12]produce_requested_data done [10:57:12]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49313,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [10:57:12]process_action_free close_receipt [10:57:12]json_value_free [10:57:12]json_value_free done [10:57:12]process_json_proto returns [10:57:12]Send response to host [10:57:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49313,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [10:57:12]free response buf [10:57:12]execute_script done [10:57:12]execute_script returns [10:57:12]free content buf [10:57:12]Sock 7.Close socket [10:57:12]Sock 7.Thread stoped [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:38]accept exits with 9 [11:08:38]New connection [11:08:38]New thread 3066670436 created [11:08:38]Thread 3066813796 joined [11:08:38]Waiting for new connection... [11:08:38] Sock 9.Parse request [11:08:38]Sock 9.Check first char [11:08:38]Sock 9.First char is OK [11:08:38]request: POST /json_proto HTTP/1.0 [11:08:38]Method: POST [11:08:38]URL: /json_proto [11:08:38]Method is POST - this is cgi request [11:08:38]url: /json_proto [11:08:38]query_string will be loaded in cgi processing [11:08:38]execute_cgi json_proto POST (null) [11:08:38]execute_cgi path=json_proto method=POST [11:08:38]POST find Content-Length [11:08:38]Host: 172.17.56.67:8080 [11:08:38]Content-Length: 677 [11:08:38]Content-Type: application/json [11:08:38] [11:08:38]POST finish read [11:08:38]Found Content-Length = 677 [11:08:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:08:38]execute_script... [11:08: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)216417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:08:38]POST & json_proto [11:08:38]process_json_proto [11:08:38]json parsed OK: [11:08:38]protocol is kg_v1.0 [11:08:38]action value=close_receipt [11:08:38]process_action close_receipt [11:08:38]cmd_close_receipt [11:08:38]MH_GetDate [11:08:38]Write to MH i2c: F0 00 00 0A 96 8F [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: F0 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: F0 09 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: F0 09 00 0A 96 00 4E 2A BA 65 26 5D 9E 65 B5 [11:08:38]GetLastDocTimeStamp 1706698652 [11:08:38]current date 1706699342 [11:08:38]FM_GetShiftState [11:08:38]SAM_PROTO_GetShiftState [11:08:38]wFMCommunicate request_size=4 [11:08:38]MH_SAM_APDU [11:08:38]CAPDU: 80 13 01 00 [11:08:38]Write to MH i2c: E2 08 00 0B 96 80 13 01 00 00 00 00 00 1E [11:08:38]Write i2c OK [11:08:38]MH_I2C_Read... [11:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:38]Read from MH i2c: E2 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 0E 00 [11:08:38]MH_I2C_Read... [11:08:38]Read from MH i2c: E2 0E 00 0B 96 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 74 [11:08:38]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [11:08:38]wFMCommunicate OK [11:08:38]SAM_PROTO_GetShiftState done [11:08:38]FM_GetShiftState done [11:08:38]opened in 1706659486 [11:08:38]opened+sec_in_day 1706745886 [11:08:38]quantity*price = 30029 [11:08:38]sum+1 = 30030 [11:08:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 39 31.01.2024 11:09 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49314 ФПД: 93063695761608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T110902&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49314&fm=93063695761608&tin=02508201610067®Number=0000000000092723&sum=30000 [11:08:40]StoreToDocumentArchive [11:08:40]shift 247 fd 49314 [11:08:40]save to /storage/0247/doc_00049314 [11:08:40]save last doc name /storage/0247/doc_00049314 to /storage/kkm_last_doc_name [11:08:40]save OK [11:08:40]Clear old archive folders... [11:08:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:40]tlvbuf is B6EB8A00 [11:08:40]SAM_PROTO_ClearQueue [11:08:40]wFMCommunicate request_size=4 [11:08:40]MH_SAM_APDU [11:08:40]CAPDU: 80 09 00 00 [11:08:40]Write to MH i2c: E2 08 00 18 96 80 09 00 00 00 00 00 00 20 [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 18 96 00 90 00 22 [11:08:40]RAPDU: 90 00 [11:08:40]wFMCommunicate OK [11:08:40]SAM_PROTO_ClearQueue done [11:08:40]KKMCreateOFDPacket [11:08:40]OFDProtocolAddRootSTLVToBuf [11:08:40]FM_MakeSignedData [11:08:40]FM_MakeSignedData [11:08:40]SAM_PROTO_SignData [11:08:40]wFMCommunicate request_size=4 [11:08:40]MH_SAM_APDU [11:08:40]CAPDU: 80 0D 01 02 [11:08:40]Write to MH i2c: E2 08 00 19 96 80 0D 01 02 00 00 00 00 28 [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 19 96 00 90 00 23 [11:08:40]RAPDU: 90 00 [11:08:40]wFMCommunicate OK [11:08:40]wFMCommunicate request_size=255 [11:08:40]MH_SAM_APDU [11:08:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 4E 2A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A2 C0 00 00 35 04 06 00 54 [11:08:40]Write to MH i2c: E2 02 01 1A 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 4E 2A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A2 C0 00 00 35 04 06 00 54 00 00 59 [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 1A 96 00 90 00 24 [11:08:40]RAPDU: 90 00 [11:08:40]wFMCommunicate OK [11:08:40]wFMCommunicate request_size=10 [11:08:40]MH_SAM_APDU [11:08:40]CAPDU: 80 0D 02 02 05 A4 14 87 00 C8 [11:08:40]Write to MH i2c: E2 0D 00 1B 96 80 0D 02 02 05 00 A4 14 87 00 C8 00 00 3C [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 03 00 1B 96 00 90 00 25 [11:08:40]RAPDU: 90 00 [11:08:40]wFMCommunicate OK [11:08:40]wFMCommunicate request_size=4 [11:08:40]MH_SAM_APDU [11:08:40]CAPDU: 80 0D 03 02 [11:08:40]Write to MH i2c: E2 08 00 1C 96 80 0D 03 02 00 00 00 00 2D [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 0B 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 0B 00 1C 96 00 B0 A3 92 13 43 A8 95 5A 90 00 00 [11:08:40]RAPDU: B0 A3 92 13 43 A8 95 5A 90 00 [11:08:40]wFMCommunicate OK [11:08:40]SAM_PROTO_SignData done [11:08:40]FM_MakeSignedData done [11:08:40]CreateOFDProtocolMessage [11:08:40]wFMCommunicate request_size=4 [11:08:40]MH_SAM_APDU [11:08:40]CAPDU: 80 11 00 00 [11:08:40]Write to MH i2c: E2 08 00 1D 96 80 11 00 00 00 00 00 00 2D [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:40]Read from MH i2c: E2 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 17 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: E2 17 00 1D 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7A [11:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:08:40]wFMCommunicate OK [11:08:40]CreateOFDProtocolMessage done [11:08:40]OFDSenderStorePacket 49314 [11:08:40]StoreOFDPacket docnum=49314 [11:08:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 DE BE 07 01 57 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 4E 2A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A2 C0 00 00 35 04 06 00 54 A4 14 87 00 C8 B0 A3 92 13 43 A8 95 5A [11:08:40]CheckFolder [11:08:40]dirname=/storage/ofd_packets [11:08:40]CheckFolder done [11:08:40]ProducePacketName [11:08:40]name=ofd_packets/00049314 [11:08:40]NVStorageSaveData ofd_packets/00049314 [11:08:40]File name is /storage/ofd_packets/00049314 [11:08:40]Write 301 bytes [11:08:40]NVStorageSaveData done [11:08:40]OFDSenderStorePacket done [11:08:40]KKMCreateOFDPacket done [11:08:40]NVStorageSaveData kkm_last_timestamp [11:08:40]File name is /storage/kkm_last_timestamp [11:08:40]Write 4 bytes [11:08:40]NVStorageSaveData done [11:08:40]ExternCall_PrintAddStr [11:08:40]wPrintStart [11:08:40]Write to MH i2c: 01 00 00 1E 96 B4 [11:08:40]Write i2c OK [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: 01 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: 01 07 00 [11:08:40]MH_I2C_Read... [11:08:40]Read from MH i2c: 01 07 00 1E 96 00 00 00 00 00 FF 0F C9 [11:08:40]RasterBufferAndPrint [11:08:40]line Счет N : (1)216417 [11:08:40]line ИНН: 02508201610067 [11:08:40]line Контрольно-Кассовый Чек [11:08:40]line ПРОДАЖА [11:08:40]line ТРК (МРК, ГНК) : 12 [11:08:40]line Товар: 2710124130 [11:08:40]line Аи-92-К-5 [11:08:40]line 4.980 * 60.30 [11:08:40]line = 300.29 [11:08:40]line НДС 12% НСП 1% [11:08:40]line > о реализуемом товаре [11:08:40]line ОКРУГЛЕНИЕ: -0.29 [11:08:40]line ИТОГО: 300.00 [11:08:40]line Внесено: 300.00 [11:08:40]line СДАЧА: 0.00 [11:08:40]line НСП 1% : 2.66 [11:08:40]line НДС 12% : 31.89 [11:08:40]line Наличными: 300.00 [11:08:40]line Безнал.: 0.00 [11:08:40]line Место: АЗС № 102 "Партнер Нефть" [11:08:40]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:08:40]line СНО: Общий режим [11:08:40]line Чек 39 31.01.2024 11:09 [11:08:40]line Смена: 247 ФФД: 1.0 [11:08:40]line ЗНМ: 0300000040 [11:08:40]line РНМ: 0000000000092723 [11:08:40]line Версия ККМ: 001 [11:08:40]line ФМ: 0000000000875060 [11:08:40]line ФД: 49314 [11:08:40]line ФПД: 93063695761608 [11:08:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T110902&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49314&fm=93063695761608&tin=02508201610067®Number=0000000000092723&sum=30000 [11:08:40]OFD Sender: Processing packet 49314 [packets to send 12, broken 11] [11:08:40]ProducePacketName [11:08:40]name=ofd_packets/00049314 [11:08:40]OFD Sender: To server: pG, [11:08:40]CommunicateWithHost lk.salyk.kg:30040 [11:08:40]ConnectInit lk.salyk.kg [11:08:40]written 0, free lines is 4095 [11:08:41]Connected sock=11 [11:08:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 DE BE 07 01 57 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 4E 2A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A2 C0 00 00 35 04 06 00 54 A4 14 87 00 C8 B0 A3 92 13 43 A8 95 5A [11:08:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 33 EE 47 00 B3 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 35 30 36 30 10 04 04 00 A2 C0 00 00 F4 03 04 00 41 D6 B9 65 B6 04 01 00 00 25 36 6B 15 F4 F6 62 79 [11:08:41]CommunicateWithHost err = 0 [11:08:41]CheckOFDResponse [11:08:41]1017 (14) - 77093643461234 [11:08:41]1041 (16) - 0000000000875060 [11:08:41]1040 (4) - 49314 [11:08:41]1012 (4) - 31.01.2024 05:10 [11:08:41]1206 (1) - 0 [11:08:41]OFD Sender: Remove packet 49314 [11:08:41]ProducePacketName [11:08:41]name=ofd_packets/00049314 [11:08:41]NVStorageDeleteData [11:08:41]Write to MH i2c: 01 00 00 49 96 DF [11:08:41]Write i2c OK [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: 01 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: 01 07 00 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: 01 07 00 49 96 00 00 00 00 00 ED 0C DF [11:08:41]RasterBufferAndPrint [11:08:41]line [11:08:41]line [11:08:41]line [11:08:41]line [11:08:41]line [11:08:41]written 0, free lines is 3315 [11:08:41]MH_Cut [11:08:41]Write to MH i2c: D1 01 00 50 96 01 B8 [11:08:41]Write i2c OK [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: D1 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: D1 01 00 [11:08:41]MH_I2C_Read... [11:08:41]Read from MH i2c: D1 01 00 50 96 00 B7 [11:08:41]Write to MH i2c: 01 00 00 51 96 E7 [11:08:41]Write i2c OK [11:08:41]MH_I2C_Read... [11:08:41]OFD Sender: No OFD packet to send [11:08:42]*** Cut start [11:08:42]*** Partial cut [11:08:42]*** CUTSNS_PIN = 1 [11:08:42]*** CUTSNS_PIN = 0 [11:08:42]*** Brake cut motor [11:08:42]Read from MH i2c: 01 [11:08:42]MH_I2C_Read... [11:08:42]*** Stop cut motor [11:08:42]*** Cut end [11:08:42]Read from MH i2c: 01 07 00 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: 01 07 00 51 96 00 00 00 00 00 FF 0F FC [11:08:42]process_action close_receipt done [11:08:42]requested_data is exist [11:08:42]produce_requested_data [11:08:42]requested_item fm.sn is exist - process it [11:08:42]wFMCommunicate request_size=4 [11:08:42]MH_SAM_APDU [11:08:42]CAPDU: 80 11 00 00 [11:08:42]Write to MH i2c: E2 08 00 52 96 80 11 00 00 00 00 00 00 62 [11:08:42]Write i2c OK [11:08:42]MH_I2C_Read... [11:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:42]Read from MH i2c: E2 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: E2 17 00 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: E2 17 00 52 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AF [11:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:08:42]wFMCommunicate OK [11:08:42]requested_item fd.num is exist - process it [11:08:42]SAM_PROTO_GetFieldsCounters [11:08:42]wFMCommunicate request_size=4 [11:08:42]MH_SAM_APDU [11:08:42]CAPDU: 80 13 00 00 [11:08:42]Write to MH i2c: E2 08 00 53 96 80 13 00 00 00 00 00 00 65 [11:08:42]Write i2c OK [11:08:42]MH_I2C_Read... [11:08:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:42]Read from MH i2c: E2 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: E2 62 00 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: E2 62 00 53 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [11: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:42]wFMCommunicate OK [11:08:42]SAM_PROTO_GetFieldsCounters done [11:08:42]requested_item shift.num is exist - process it [11:08:42]requested_item shift.opened is exist - process it [11:08:42]req_shift_opened [11:08:42]FM_GetShiftState [11:08:42]SAM_PROTO_GetShiftState [11:08:42]wFMCommunicate request_size=4 [11:08:42]MH_SAM_APDU [11:08:42]CAPDU: 80 13 01 00 [11:08:42]Write to MH i2c: E2 08 00 54 96 80 13 01 00 00 00 00 00 67 [11:08:42]Write i2c OK [11:08:42]MH_I2C_Read... [11:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:42]Read from MH i2c: E2 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: E2 0E 00 [11:08:42]MH_I2C_Read... [11:08:42]Read from MH i2c: E2 0E 00 54 96 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 BD [11:08:42]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [11:08:42]wFMCommunicate OK [11:08:42]SAM_PROTO_GetShiftState done [11:08:42]FM_GetShiftState done [11:08:42]req_shift_opened done [11:08:42]requested_item shift.open_date is exist - process it [11:08:42]req_shift_open_date [11:08:42]req_shift_open_date done [11:08:42]produce_requested_data done [11:08:42]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49314,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [11:08:42]process_action_free close_receipt [11:08:42]json_value_free [11:08:42]json_value_free done [11:08:42]process_json_proto returns [11:08:42]Send response to host [11:08:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49314,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [11:08:42]free response buf [11:08:42]execute_script done [11:08:42]execute_script returns [11:08:42]free content buf [11:08:42]Sock 9.Close socket [11:08:42]Sock 9.Thread stoped [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:12]OFD Sender: No OFD packet to send [11:16:17]OFD Sender: No OFD packet to send [11:16:22]OFD Sender: No OFD packet to send [11:16:27]OFD Sender: No OFD packet to send [11:16:32]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:42]OFD Sender: No OFD packet to send [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:03]accept exits with 7 [11:18:03]New connection [11:18:03]New thread 3066813796 created [11:18:03]Thread 3066670436 joined [11:18:03]Waiting for new connection... [11:18:03] Sock 7.Parse request [11:18:03]Sock 7.Check first char [11:18:03]Sock 7.First char is OK [11:18:03]request: POST /json_proto HTTP/1.0 [11:18:03]Method: POST [11:18:03]URL: /json_proto [11:18:03]Method is POST - this is cgi request [11:18:03]url: /json_proto [11:18:03]query_string will be loaded in cgi processing [11:18:03]execute_cgi json_proto POST (null) [11:18:03]execute_cgi path=json_proto method=POST [11:18:03]POST find Content-Length [11:18:03]Host: 172.17.56.67:8080 [11:18:03]Content-Length: 677 [11:18:03]Content-Type: application/json [11:18:03] [11:18:03]POST finish read [11:18:03]Found Content-Length = 677 [11:18:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:03]execute_script... [11:18: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)216418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:03]POST & json_proto [11:18:03]process_json_proto [11:18:03]json parsed OK: [11:18:03]protocol is kg_v1.0 [11:18:03]action value=close_receipt [11:18:03]process_action close_receipt [11:18:03]cmd_close_receipt [11:18:03]MH_GetDate [11:18:03]Write to MH i2c: F0 00 00 55 96 DA [11:18:03]Write i2c OK [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: F0 [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: F0 09 00 [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: F0 09 00 55 96 00 83 2C BA 65 26 5D 9E 65 37 [11:18:03]GetLastDocTimeStamp 1706699342 [11:18:03]current date 1706699907 [11:18:03]FM_GetShiftState [11:18:03]SAM_PROTO_GetShiftState [11:18:03]wFMCommunicate request_size=4 [11:18:03]MH_SAM_APDU [11:18:03]CAPDU: 80 13 01 00 [11:18:03]Write to MH i2c: E2 08 00 56 96 80 13 01 00 00 00 00 00 69 [11:18:03]Write i2c OK [11:18:03]MH_I2C_Read... [11:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:03]Read from MH i2c: E2 [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: E2 0E 00 [11:18:03]MH_I2C_Read... [11:18:03]Read from MH i2c: E2 0E 00 56 96 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 BF [11:18:03]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [11:18:03]wFMCommunicate OK [11:18:03]SAM_PROTO_GetShiftState done [11:18:03]FM_GetShiftState done [11:18:03]opened in 1706659486 [11:18:03]opened+sec_in_day 1706745886 [11:18:03]quantity*price = 50049 [11:18:03]sum+1 = 50050 [11:18:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 40 31.01.2024 11:18 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49315 ФПД: 78938493052773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T111827&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49315&fm=78938493052773&tin=02508201610067®Number=0000000000092723&sum=50000 [11:18:04]StoreToDocumentArchive [11:18:04]shift 247 fd 49315 [11:18:04]save to /storage/0247/doc_00049315 [11:18:04]save last doc name /storage/0247/doc_00049315 to /storage/kkm_last_doc_name [11:18:04]save OK [11:18:04]Clear old archive folders... [11:18:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:04]tlvbuf is 011DD210 [11:18:04]SAM_PROTO_ClearQueue [11:18:04]wFMCommunicate request_size=4 [11:18:04]MH_SAM_APDU [11:18:04]CAPDU: 80 09 00 00 [11:18:04]Write to MH i2c: E2 08 00 63 96 80 09 00 00 00 00 00 00 6B [11:18:04]Write i2c OK [11:18:04]MH_I2C_Read... [11:18:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:04]Read from MH i2c: E2 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: E2 03 00 [11:18:04]MH_I2C_Read... [11:18:04]Read from MH i2c: E2 03 00 63 96 00 90 00 6D [11:18:04]RAPDU: 90 00 [11:18:04]wFMCommunicate OK [11:18:04]SAM_PROTO_ClearQueue done [11:18:04]KKMCreateOFDPacket [11:18:04]OFDProtocolAddRootSTLVToBuf [11:18:04]FM_MakeSignedData [11:18:04]FM_MakeSignedData [11:18:04]SAM_PROTO_SignData [11:18:04]wFMCommunicate request_size=4 [11:18:04]MH_SAM_APDU [11:18:04]CAPDU: 80 0D 01 02 [11:18:04]Write to MH i2c: E2 08 00 64 96 80 0D 01 02 00 00 00 00 73 [11:18:04]Write i2c OK [11:18:04]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:05]Read from MH i2c: E2 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 64 96 00 90 00 6E [11:18:05]RAPDU: 90 00 [11:18:05]wFMCommunicate OK [11:18:05]wFMCommunicate request_size=255 [11:18:05]MH_SAM_APDU [11:18:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 83 2C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A3 C0 00 00 35 04 06 00 47 [11:18:05]Write to MH i2c: E2 02 01 65 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 83 2C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A3 C0 00 00 35 04 06 00 47 00 00 3A [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:05]Read from MH i2c: E2 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 65 96 00 90 00 6F [11:18:05]RAPDU: 90 00 [11:18:05]wFMCommunicate OK [11:18:05]wFMCommunicate request_size=10 [11:18:05]MH_SAM_APDU [11:18:05]CAPDU: 80 0D 02 02 05 CB 4C D6 67 65 [11:18:05]Write to MH i2c: E2 0D 00 66 96 80 0D 02 02 05 00 CB 4C D6 67 65 00 00 39 [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:05]Read from MH i2c: E2 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 03 00 66 96 00 90 00 70 [11:18:05]RAPDU: 90 00 [11:18:05]wFMCommunicate OK [11:18:05]wFMCommunicate request_size=4 [11:18:05]MH_SAM_APDU [11:18:05]CAPDU: 80 0D 03 02 [11:18:05]Write to MH i2c: E2 08 00 67 96 80 0D 03 02 00 00 00 00 78 [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:05]Read from MH i2c: E2 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 0B 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 0B 00 67 96 00 B9 BE 10 4A D5 6E 1E E8 90 00 93 [11:18:05]RAPDU: B9 BE 10 4A D5 6E 1E E8 90 00 [11:18:05]wFMCommunicate OK [11:18:05]SAM_PROTO_SignData done [11:18:05]FM_MakeSignedData done [11:18:05]CreateOFDProtocolMessage [11:18:05]wFMCommunicate request_size=4 [11:18:05]MH_SAM_APDU [11:18:05]CAPDU: 80 11 00 00 [11:18:05]Write to MH i2c: E2 08 00 68 96 80 11 00 00 00 00 00 00 78 [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:05]Read from MH i2c: E2 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 17 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: E2 17 00 68 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C5 [11:18:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:18:05]wFMCommunicate OK [11:18:05]CreateOFDProtocolMessage done [11:18:05]OFDSenderStorePacket 49315 [11:18:05]StoreOFDPacket docnum=49315 [11:18:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 9F D1 07 01 B2 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 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 83 2C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A3 C0 00 00 35 04 06 00 47 CB 4C D6 67 65 B9 BE 10 4A D5 6E 1E E8 [11:18:05]CheckFolder [11:18:05]dirname=/storage/ofd_packets [11:18:05]CheckFolder done [11:18:05]ProducePacketName [11:18:05]name=ofd_packets/00049315 [11:18:05]NVStorageSaveData ofd_packets/00049315 [11:18:05]File name is /storage/ofd_packets/00049315 [11:18:05]Write 301 bytes [11:18:05]NVStorageSaveData done [11:18:05]OFDSenderStorePacket done [11:18:05]KKMCreateOFDPacket done [11:18:05]NVStorageSaveData kkm_last_timestamp [11:18:05]File name is /storage/kkm_last_timestamp [11:18:05]Write 4 bytes [11:18:05]NVStorageSaveData done [11:18:05]ExternCall_PrintAddStr [11:18:05]wPrintStart [11:18:05]Write to MH i2c: 01 00 00 69 96 FF [11:18:05]Write i2c OK [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: 01 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: 01 07 00 [11:18:05]MH_I2C_Read... [11:18:05]Read from MH i2c: 01 07 00 69 96 00 00 00 00 00 FF 0F 14 [11:18:05]RasterBufferAndPrint [11:18:05]line Счет N : (1)216418 [11:18:05]line ИНН: 02508201610067 [11:18:05]line Контрольно-Кассовый Чек [11:18:05]line ПРОДАЖА [11:18:05]line ТРК (МРК, ГНК) : 22 [11:18:05]line Товар: 2710124130 [11:18:05]line Аи-92-К-5 [11:18:05]line 8.300 * 60.30 [11:18:05]line = 500.49 [11:18:05]line НДС 12% НСП 1% [11:18:05]line > о реализуемом товаре [11:18:05]line ОКРУГЛЕНИЕ: -0.49 [11:18:05]line ИТОГО: 500.00 [11:18:05]line Внесено: 500.00 [11:18:05]line СДАЧА: 0.00 [11:18:05]line НСП 1% : 4.43 [11:18:05]line НДС 12% : 53.15 [11:18:05]line Наличными: 500.00 [11:18:05]line Безнал.: 0.00 [11:18:05]line Место: АЗС № 102 "Партнер Нефть" [11:18:05]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:18:05]line СНО: Общий режим [11:18:05]line Чек 40 31.01.2024 11:18 [11:18:05]line Смена: 247 ФФД: 1.0 [11:18:05]line ЗНМ: 0300000040 [11:18:05]line РНМ: 0000000000092723 [11:18:05]line Версия ККМ: 001 [11:18:05]line ФМ: 0000000000875060 [11:18:05]line ФД: 49315 [11:18:05]line ФПД: 78938493052773 [11:18:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T111827&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49315&fm=78938493052773&tin=02508201610067®Number=0000000000092723&sum=50000 [11:18:05]OFD Sender: Processing packet 49315 [packets to send 12, broken 11] [11:18:05]ProducePacketName [11:18:05]name=ofd_packets/00049315 [11:18:05]OFD Sender: To server: pG, [11:18:05]CommunicateWithHost lk.salyk.kg:30040 [11:18:05]ConnectInit lk.salyk.kg [11:18:05]written 0, free lines is 4095 [11:18:05]Connected sock=9 [11:18:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 9F D1 07 01 B2 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 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 83 2C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A3 C0 00 00 35 04 06 00 47 CB 4C D6 67 65 B9 BE 10 4A D5 6E 1E E8 [11:18:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 1C 5E 47 00 06 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A3 C0 00 00 F4 03 04 00 76 D8 B9 65 B6 04 01 00 00 84 18 C3 07 6D 13 0C 34 [11:18:06]CommunicateWithHost err = 0 [11:18:06]CheckOFDResponse [11:18:06]1017 (14) - 77093643461234 [11:18:06]1041 (16) - 0000000000875060 [11:18:06]1040 (4) - 49315 [11:18:06]1012 (4) - 31.01.2024 05:19 [11:18:06]1206 (1) - 0 [11:18:06]OFD Sender: Remove packet 49315 [11:18:06]ProducePacketName [11:18:06]name=ofd_packets/00049315 [11:18:06]NVStorageDeleteData [11:18:06]Write to MH i2c: 01 00 00 94 96 2A [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 07 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: 01 07 00 94 96 00 00 00 00 00 EA 0C 27 [11:18:06]RasterBufferAndPrint [11:18:06]line [11:18:06]line [11:18:06]line [11:18:06]line [11:18:06]line [11:18:06]written 0, free lines is 3312 [11:18:06]MH_Cut [11:18:06]Write to MH i2c: D1 01 00 9B 96 01 03 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: D1 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: D1 01 00 [11:18:06]MH_I2C_Read... [11:18:06]Read from MH i2c: D1 01 00 9B 96 00 02 [11:18:06]Write to MH i2c: 01 00 00 9C 96 32 [11:18:06]Write i2c OK [11:18:06]MH_I2C_Read... [11:18:06]OFD Sender: No OFD packet to send [11:18:06]*** Cut start [11:18:06]*** Partial cut [11:18:06]*** CUTSNS_PIN = 1 [11:18:06]*** CUTSNS_PIN = 0 [11:18:07]*** Brake cut motor [11:18:07]Read from MH i2c: 01 [11:18:07]MH_I2C_Read... [11:18:07]*** Stop cut motor [11:18:07]*** Cut end [11:18:07]Read from MH i2c: 01 07 00 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: 01 07 00 9C 96 00 00 00 00 00 FF 0F 47 [11:18:07]process_action close_receipt done [11:18:07]requested_data is exist [11:18:07]produce_requested_data [11:18:07]requested_item fm.sn is exist - process it [11:18:07]wFMCommunicate request_size=4 [11:18:07]MH_SAM_APDU [11:18:07]CAPDU: 80 11 00 00 [11:18:07]Write to MH i2c: E2 08 00 9D 96 80 11 00 00 00 00 00 00 AD [11:18:07]Write i2c OK [11:18:07]MH_I2C_Read... [11:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:07]Read from MH i2c: E2 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 17 00 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 17 00 9D 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FA [11:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:18:07]wFMCommunicate OK [11:18:07]requested_item fd.num is exist - process it [11:18:07]SAM_PROTO_GetFieldsCounters [11:18:07]wFMCommunicate request_size=4 [11:18:07]MH_SAM_APDU [11:18:07]CAPDU: 80 13 00 00 [11:18:07]Write to MH i2c: E2 08 00 9E 96 80 13 00 00 00 00 00 00 B0 [11:18:07]Write i2c OK [11:18:07]MH_I2C_Read... [11:18:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:07]Read from MH i2c: E2 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 62 00 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 62 00 9E 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A3 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [11:18: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A3 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:18:07]wFMCommunicate OK [11:18:07]SAM_PROTO_GetFieldsCounters done [11:18:07]requested_item shift.num is exist - process it [11:18:07]requested_item shift.opened is exist - process it [11:18:07]req_shift_opened [11:18:07]FM_GetShiftState [11:18:07]SAM_PROTO_GetShiftState [11:18:07]wFMCommunicate request_size=4 [11:18:07]MH_SAM_APDU [11:18:07]CAPDU: 80 13 01 00 [11:18:07]Write to MH i2c: E2 08 00 9F 96 80 13 01 00 00 00 00 00 B2 [11:18:07]Write i2c OK [11:18:07]MH_I2C_Read... [11:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:07]Read from MH i2c: E2 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 0E 00 [11:18:07]MH_I2C_Read... [11:18:07]Read from MH i2c: E2 0E 00 9F 96 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 08 [11:18:07]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [11:18:07]wFMCommunicate OK [11:18:07]SAM_PROTO_GetShiftState done [11:18:07]FM_GetShiftState done [11:18:07]req_shift_opened done [11:18:07]requested_item shift.open_date is exist - process it [11:18:07]req_shift_open_date [11:18:07]req_shift_open_date done [11:18:07]produce_requested_data done [11:18:07]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49315,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [11:18:07]process_action_free close_receipt [11:18:07]json_value_free [11:18:07]json_value_free done [11:18:07]process_json_proto returns [11:18:07]Send response to host [11:18:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49315,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [11:18:07]free response buf [11:18:07]execute_script done [11:18:07]execute_script returns [11:18:07]free content buf [11:18:07]Sock 7.Close socket [11:18:07]Sock 7.Thread stoped [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [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:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:17]OFD Sender: No OFD packet to send [11:40:22]OFD Sender: No OFD packet to send [11:40:27]OFD Sender: No OFD packet to send [11:40:32]OFD Sender: No OFD packet to send [11:40:37]OFD Sender: No OFD packet to send [11:40:42]OFD Sender: No OFD packet to send [11:40:47]OFD Sender: No OFD packet to send [11:40:52]OFD Sender: No OFD packet to send [11:40:57]OFD Sender: No OFD packet to send [11:41:02]OFD Sender: No OFD packet to send [11:41:07]OFD Sender: No OFD packet to send [11:41:12]OFD Sender: No OFD packet to send [11:41:17]accept exits with 10 [11:41:17]New connection [11:41:17]New thread 3066670436 created [11:41:17]Thread 3066813796 joined [11:41:17]Waiting for new connection... [11:41:17] Sock 10.Parse request [11:41:17]Sock 10.Check first char [11:41:17]Sock 10.First char is OK [11:41:17]request: POST /json_proto HTTP/1.0 [11:41:17]Method: POST [11:41:17]URL: /json_proto [11:41:17]Method is POST - this is cgi request [11:41:17]url: /json_proto [11:41:17]query_string will be loaded in cgi processing [11:41:17]execute_cgi json_proto POST (null) [11:41:17]execute_cgi path=json_proto method=POST [11:41:17]POST find Content-Length [11:41:17]Host: 172.17.56.67:8080 [11:41:17]Content-Length: 677 [11:41:17]Content-Type: application/json [11:41:17] [11:41:17]POST finish read [11:41:17]Found Content-Length = 677 [11:41:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:17]execute_script... [11:41:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:17]POST & json_proto [11:41:17]process_json_proto [11:41:17]json parsed OK: [11:41:17]protocol is kg_v1.0 [11:41:17]action value=close_receipt [11:41:17]process_action close_receipt [11:41:17]cmd_close_receipt [11:41:17]MH_GetDate [11:41:17]Write to MH i2c: F0 00 00 A0 96 25 [11:41:17]Write i2c OK [11:41:17]MH_I2C_Read... [11:41:17]Read from MH i2c: F0 [11:41:17]MH_I2C_Read... [11:41:17]Read from MH i2c: F0 09 00 [11:41:17]MH_I2C_Read... [11:41:17]Read from MH i2c: F0 09 00 A0 96 00 F5 31 BA 65 26 5D 9E 65 F9 [11:41:17]GetLastDocTimeStamp 1706699907 [11:41:17]current date 1706701301 [11:41:17]FM_GetShiftState [11:41:17]SAM_PROTO_GetShiftState [11:41:17]wFMCommunicate request_size=4 [11:41:17]MH_SAM_APDU [11:41:17]CAPDU: 80 13 01 00 [11:41:17]Write to MH i2c: E2 08 00 A1 96 80 13 01 00 00 00 00 00 B4 [11:41:17]Write i2c OK [11:41:17]MH_I2C_Read... [11:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:17]Read from MH i2c: E2 [11:41:17]MH_I2C_Read... [11:41:17]Read from MH i2c: E2 0E 00 [11:41:17]MH_I2C_Read... [11:41:17]Read from MH i2c: E2 0E 00 A1 96 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 0A [11:41:17]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [11:41:17]wFMCommunicate OK [11:41:17]SAM_PROTO_GetShiftState done [11:41:17]FM_GetShiftState done [11:41:17]opened in 1706659486 [11:41:17]opened+sec_in_day 1706745886 [11:41:17]quantity*price = 20019 [11:41:17]sum+1 = 20021 [11:41:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 41 31.01.2024 11:41 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49316 ФПД: 153913194768359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T114141&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49316&fm=153913194768359&tin=02508201610067®Number=0000000000092723&sum=20000 [11:41:18]StoreToDocumentArchive [11:41:18]shift 247 fd 49316 [11:41:18]save to /storage/0247/doc_00049316 [11:41:18]save last doc name /storage/0247/doc_00049316 to /storage/kkm_last_doc_name [11:41:18]save OK [11:41:18]Clear old archive folders... [11:41:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:18]tlvbuf is 01408A70 [11:41:18]SAM_PROTO_ClearQueue [11:41:18]wFMCommunicate request_size=4 [11:41:18]MH_SAM_APDU [11:41:18]CAPDU: 80 09 00 00 [11:41:18]Write to MH i2c: E2 08 00 AE 96 80 09 00 00 00 00 00 00 B6 [11:41:18]Write i2c OK [11:41:18]MH_I2C_Read... [11:41:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:18]Read from MH i2c: E2 [11:41:18]MH_I2C_Read... [11:41:18]Read from MH i2c: E2 03 00 [11:41:18]MH_I2C_Read... [11:41:18]Read from MH i2c: E2 03 00 AE 96 00 90 00 B8 [11:41:18]RAPDU: 90 00 [11:41:18]wFMCommunicate OK [11:41:18]SAM_PROTO_ClearQueue done [11:41:18]KKMCreateOFDPacket [11:41:18]OFDProtocolAddRootSTLVToBuf [11:41:18]FM_MakeSignedData [11:41:18]FM_MakeSignedData [11:41:18]SAM_PROTO_SignData [11:41:18]wFMCommunicate request_size=4 [11:41:18]MH_SAM_APDU [11:41:18]CAPDU: 80 0D 01 02 [11:41:18]Write to MH i2c: E2 08 00 AF 96 80 0D 01 02 00 00 00 00 BE [11:41:18]Write i2c OK [11:41:18]MH_I2C_Read... [11:41:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:18]Read from MH i2c: E2 [11:41:18]MH_I2C_Read... [11:41:18]Read from MH i2c: E2 03 00 [11:41:18]MH_I2C_Read... [11:41:18]Read from MH i2c: E2 03 00 AF 96 00 90 00 B9 [11:41:18]RAPDU: 90 00 [11:41:18]wFMCommunicate OK [11:41:18]wFMCommunicate request_size=255 [11:41:18]MH_SAM_APDU [11:41:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 29 00 00 00 F4 03 04 00 F5 31 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A4 C0 00 00 35 04 06 00 8B [11:41:18]Write to MH i2c: E2 02 01 B0 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 29 00 00 00 F4 03 04 00 F5 31 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A4 C0 00 00 35 04 06 00 8B 00 00 22 [11:41:18]Write i2c OK [11:41:18]MH_I2C_Read... [11:41:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:19]Read from MH i2c: E2 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 03 00 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 03 00 B0 96 00 90 00 BA [11:41:19]RAPDU: 90 00 [11:41:19]wFMCommunicate OK [11:41:19]wFMCommunicate request_size=10 [11:41:19]MH_SAM_APDU [11:41:19]CAPDU: 80 0D 02 02 05 FB B5 4C E7 E7 [11:41:19]Write to MH i2c: E2 0D 00 B1 96 80 0D 02 02 05 00 FB B5 4C E7 E7 00 00 95 [11:41:19]Write i2c OK [11:41:19]MH_I2C_Read... [11:41:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:19]Read from MH i2c: E2 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 03 00 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 03 00 B1 96 00 90 00 BB [11:41:19]RAPDU: 90 00 [11:41:19]wFMCommunicate OK [11:41:19]wFMCommunicate request_size=4 [11:41:19]MH_SAM_APDU [11:41:19]CAPDU: 80 0D 03 02 [11:41:19]Write to MH i2c: E2 08 00 B2 96 80 0D 03 02 00 00 00 00 C3 [11:41:19]Write i2c OK [11:41:19]MH_I2C_Read... [11:41:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:19]Read from MH i2c: E2 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 0B 00 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 0B 00 B2 96 00 1A A0 09 EA F0 A1 89 D5 90 00 60 [11:41:19]RAPDU: 1A A0 09 EA F0 A1 89 D5 90 00 [11:41:19]wFMCommunicate OK [11:41:19]SAM_PROTO_SignData done [11:41:19]FM_MakeSignedData done [11:41:19]CreateOFDProtocolMessage [11:41:19]wFMCommunicate request_size=4 [11:41:19]MH_SAM_APDU [11:41:19]CAPDU: 80 11 00 00 [11:41:19]Write to MH i2c: E2 08 00 B3 96 80 11 00 00 00 00 00 00 C3 [11:41:19]Write i2c OK [11:41:19]MH_I2C_Read... [11:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:19]Read from MH i2c: E2 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 17 00 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: E2 17 00 B3 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 10 [11:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:41:19]wFMCommunicate OK [11:41:19]CreateOFDProtocolMessage done [11:41:19]OFDSenderStorePacket 49316 [11:41:19]StoreOFDPacket docnum=49316 [11:41:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 07 02 07 01 BA 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 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 29 00 00 00 F4 03 04 00 F5 31 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A4 C0 00 00 35 04 06 00 8B FB B5 4C E7 E7 1A A0 09 EA F0 A1 89 D5 [11:41:19]CheckFolder [11:41:19]dirname=/storage/ofd_packets [11:41:19]CheckFolder done [11:41:19]ProducePacketName [11:41:19]name=ofd_packets/00049316 [11:41:19]NVStorageSaveData ofd_packets/00049316 [11:41:19]File name is /storage/ofd_packets/00049316 [11:41:19]Write 301 bytes [11:41:19]NVStorageSaveData done [11:41:19]OFDSenderStorePacket done [11:41:19]KKMCreateOFDPacket done [11:41:19]NVStorageSaveData kkm_last_timestamp [11:41:19]File name is /storage/kkm_last_timestamp [11:41:19]Write 4 bytes [11:41:19]NVStorageSaveData done [11:41:19]ExternCall_PrintAddStr [11:41:19]wPrintStart [11:41:19]Write to MH i2c: 01 00 00 B4 96 4A [11:41:19]Write i2c OK [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: 01 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: 01 07 00 [11:41:19]MH_I2C_Read... [11:41:19]Read from MH i2c: 01 07 00 B4 96 00 00 00 00 00 FF 0F 5F [11:41:19]RasterBufferAndPrint [11:41:19]line Счет N : (1)216419 [11:41:19]line ИНН: 02508201610067 [11:41:19]line Контрольно-Кассовый Чек [11:41:19]line ПРОДАЖА [11:41:19]line ТРК (МРК, ГНК) : 22 [11:41:19]line Товар: 2710124130 [11:41:19]line Аи-92-К-5 [11:41:19]line 3.320 * 60.30 [11:41:19]line = 200.20 [11:41:19]line НДС 12% НСП 1% [11:41:19]line > о реализуемом товаре [11:41:19]line ОКРУГЛЕНИЕ: -0.20 [11:41:19]line ИТОГО: 200.00 [11:41:19]line Внесено: 200.00 [11:41:19]line СДАЧА: 0.00 [11:41:19]line НСП 1% : 1.77 [11:41:19]line НДС 12% : 21.26 [11:41:19]line Наличными: 200.00 [11:41:19]line Безнал.: 0.00 [11:41:19]line Место: АЗС № 102 "Партнер Нефть" [11:41:19]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:41:19]line СНО: Общий режим [11:41:19]line Чек 41 31.01.2024 11:41 [11:41:19]line Смена: 247 ФФД: 1.0 [11:41:19]line ЗНМ: 0300000040 [11:41:19]line РНМ: 0000000000092723 [11:41:19]line Версия ККМ: 001 [11:41:19]line ФМ: 0000000000875060 [11:41:19]line ФД: 49316 [11:41:19]line ФПД: 153913194768359 [11:41:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T114141&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49316&fm=153913194768359&tin=02508201610067®Number=0000000000092723&sum=20000 [11:41:19]OFD Sender: Processing packet 49316 [packets to send 12, broken 11] [11:41:19]ProducePacketName [11:41:19]name=ofd_packets/00049316 [11:41:19]OFD Sender: To server: pG, [11:41:19]CommunicateWithHost lk.salyk.kg:30040 [11:41:19]ConnectInit lk.salyk.kg [11:41:19]written 0, free lines is 4095 [11:41:19]Connected sock=9 [11:41:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 07 02 07 01 BA 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 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 29 00 00 00 F4 03 04 00 F5 31 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A4 C0 00 00 35 04 06 00 8B FB B5 4C E7 E7 1A A0 09 EA F0 A1 89 D5 [11:41:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 4B 06 47 00 2E 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 35 30 36 30 10 04 04 00 A4 C0 00 00 F4 03 04 00 E7 DD B9 65 B6 04 01 00 00 94 6C EF F9 10 E1 DD D3 [11:41:19]CommunicateWithHost err = 0 [11:41:19]CheckOFDResponse [11:41:19]1017 (14) - 77093643461234 [11:41:19]1041 (16) - 0000000000875060 [11:41:19]1040 (4) - 49316 [11:41:19]1012 (4) - 31.01.2024 05:43 [11:41:19]1206 (1) - 0 [11:41:19]OFD Sender: Remove packet 49316 [11:41:19]ProducePacketName [11:41:19]name=ofd_packets/00049316 [11:41:19]NVStorageDeleteData [11:41:20]Write to MH i2c: 01 00 00 DF 96 75 [11:41:20]Write i2c OK [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: 01 [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: 01 07 00 [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: 01 07 00 DF 96 00 00 00 00 00 E4 0C 6C [11:41:20]RasterBufferAndPrint [11:41:20]line [11:41:20]line [11:41:20]line [11:41:20]line [11:41:20]line [11:41:20]written 0, free lines is 3306 [11:41:20]MH_Cut [11:41:20]Write to MH i2c: D1 01 00 E6 96 01 4E [11:41:20]Write i2c OK [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: D1 [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: D1 01 00 [11:41:20]MH_I2C_Read... [11:41:20]Read from MH i2c: D1 01 00 E6 96 00 4D [11:41:20]Write to MH i2c: 01 00 00 E7 96 7D [11:41:20]Write i2c OK [11:41:20]MH_I2C_Read... [11:41:20]OFD Sender: No OFD packet to send [11:41:20]*** Cut start [11:41:20]*** Partial cut [11:41:20]*** CUTSNS_PIN = 1 [11:41:20]*** CUTSNS_PIN = 0 [11:41:20]*** Brake cut motor [11:41:21]Read from MH i2c: 01 [11:41:21]MH_I2C_Read... [11:41:21]*** Stop cut motor [11:41:21]*** Cut end [11:41:21]Read from MH i2c: 01 07 00 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: 01 07 00 E7 96 00 00 00 00 00 FF 0F 92 [11:41:21]process_action close_receipt done [11:41:21]requested_data is exist [11:41:21]produce_requested_data [11:41:21]requested_item fm.sn is exist - process it [11:41:21]wFMCommunicate request_size=4 [11:41:21]MH_SAM_APDU [11:41:21]CAPDU: 80 11 00 00 [11:41:21]Write to MH i2c: E2 08 00 E8 96 80 11 00 00 00 00 00 00 F8 [11:41:21]Write i2c OK [11:41:21]MH_I2C_Read... [11:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:21]Read from MH i2c: E2 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: E2 17 00 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: E2 17 00 E8 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 45 [11:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:41:21]wFMCommunicate OK [11:41:21]requested_item fd.num is exist - process it [11:41:21]SAM_PROTO_GetFieldsCounters [11:41:21]wFMCommunicate request_size=4 [11:41:21]MH_SAM_APDU [11:41:21]CAPDU: 80 13 00 00 [11:41:21]Write to MH i2c: E2 08 00 E9 96 80 13 00 00 00 00 00 00 FB [11:41:21]Write i2c OK [11:41:21]MH_I2C_Read... [11:41:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:21]Read from MH i2c: E2 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: E2 62 00 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: E2 62 00 E9 96 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A4 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [11:41: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A4 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:21]wFMCommunicate OK [11:41:21]SAM_PROTO_GetFieldsCounters done [11:41:21]requested_item shift.num is exist - process it [11:41:21]requested_item shift.opened is exist - process it [11:41:21]req_shift_opened [11:41:21]FM_GetShiftState [11:41:21]SAM_PROTO_GetShiftState [11:41:21]wFMCommunicate request_size=4 [11:41:21]MH_SAM_APDU [11:41:21]CAPDU: 80 13 01 00 [11:41:21]Write to MH i2c: E2 08 00 EA 96 80 13 01 00 00 00 00 00 FD [11:41:21]Write i2c OK [11:41:21]MH_I2C_Read... [11:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:21]Read from MH i2c: E2 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: E2 0E 00 [11:41:21]MH_I2C_Read... [11:41:21]Read from MH i2c: E2 0E 00 EA 96 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 53 [11:41:21]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [11:41:21]wFMCommunicate OK [11:41:21]SAM_PROTO_GetShiftState done [11:41:21]FM_GetShiftState done [11:41:21]req_shift_opened done [11:41:21]requested_item shift.open_date is exist - process it [11:41:21]req_shift_open_date [11:41:21]req_shift_open_date done [11:41:21]produce_requested_data done [11:41:21]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49316,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [11:41:21]process_action_free close_receipt [11:41:21]json_value_free [11:41:21]json_value_free done [11:41:21]process_json_proto returns [11:41:21]Send response to host [11:41:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49316,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [11:41:21]free response buf [11:41:21]execute_script done [11:41:21]execute_script returns [11:41:21]free content buf [11:41:21]Sock 10.Close socket [11:41:21]Sock 10.Thread stoped [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:43]accept exits with 7 [11:41:43]New connection [11:41:43]New thread 3066813796 created [11:41:43]Thread 3066670436 joined [11:41:43]Waiting for new connection... [11:41:43] Sock 7.Parse request [11:41:43]Sock 7.Check first char [11:41:43]Sock 7.First char is OK [11:41:43]request: POST /json_proto HTTP/1.0 [11:41:43]Method: POST [11:41:43]URL: /json_proto [11:41:43]Method is POST - this is cgi request [11:41:43]url: /json_proto [11:41:43]query_string will be loaded in cgi processing [11:41:43]execute_cgi json_proto POST (null) [11:41:43]execute_cgi path=json_proto method=POST [11:41:43]POST find Content-Length [11:41:43]Host: 172.17.56.67:8080 [11:41:43]Content-Length: 677 [11:41:43]Content-Type: application/json [11:41:43] [11:41:43]POST finish read [11:41:43]Found Content-Length = 677 [11:41:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:43]execute_script... [11:41: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)216420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:41:43]POST & json_proto [11:41:43]process_json_proto [11:41:43]json parsed OK: [11:41:43]protocol is kg_v1.0 [11:41:43]action value=close_receipt [11:41:43]process_action close_receipt [11:41:43]cmd_close_receipt [11:41:43]MH_GetDate [11:41:43]Write to MH i2c: F0 00 00 EB 96 70 [11:41:43]Write i2c OK [11:41:43]MH_I2C_Read... [11:41:43]Read from MH i2c: F0 [11:41:43]MH_I2C_Read... [11:41:43]Read from MH i2c: F0 09 00 [11:41:43]MH_I2C_Read... [11:41:43]Read from MH i2c: F0 09 00 EB 96 00 0F 32 BA 65 26 5D 9E 65 5F [11:41:43]GetLastDocTimeStamp 1706701301 [11:41:43]current date 1706701327 [11:41:43]FM_GetShiftState [11:41:43]SAM_PROTO_GetShiftState [11:41:43]wFMCommunicate request_size=4 [11:41:43]MH_SAM_APDU [11:41:43]CAPDU: 80 13 01 00 [11:41:43]Write to MH i2c: E2 08 00 EC 96 80 13 01 00 00 00 00 00 FF [11:41:43]Write i2c OK [11:41:43]MH_I2C_Read... [11:41:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:43]Read from MH i2c: E2 [11:41:43]MH_I2C_Read... [11:41:43]Read from MH i2c: E2 0E 00 [11:41:43]MH_I2C_Read... [11:41:43]Read from MH i2c: E2 0E 00 EC 96 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 55 [11:41:43]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [11:41:43]wFMCommunicate OK [11:41:43]SAM_PROTO_GetShiftState done [11:41:43]FM_GetShiftState done [11:41:43]opened in 1706659486 [11:41:43]opened+sec_in_day 1706745886 [11:41:43]quantity*price = 50049 [11:41:43]sum+1 = 50050 [11:41:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 42 31.01.2024 11:42 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49317 ФПД: 8114245862011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T114207&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49317&fm=8114245862011&tin=02508201610067®Number=0000000000092723&sum=50000 [11:41:44]StoreToDocumentArchive [11:41:44]shift 247 fd 49317 [11:41:44]save to /storage/0247/doc_00049317 [11:41:44]save last doc name /storage/0247/doc_00049317 to /storage/kkm_last_doc_name [11:41:44]save OK [11:41:44]Clear old archive folders... [11:41:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:44]tlvbuf is 011EA090 [11:41:44]SAM_PROTO_ClearQueue [11:41:44]wFMCommunicate request_size=4 [11:41:44]MH_SAM_APDU [11:41:44]CAPDU: 80 09 00 00 [11:41:44]Write to MH i2c: E2 08 00 F9 96 80 09 00 00 00 00 00 00 01 [11:41:44]Write i2c OK [11:41:44]MH_I2C_Read... [11:41:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:44]Read from MH i2c: E2 [11:41:44]MH_I2C_Read... [11:41:44]Read from MH i2c: E2 03 00 [11:41:44]MH_I2C_Read... [11:41:44]Read from MH i2c: E2 03 00 F9 96 00 90 00 03 [11:41:44]RAPDU: 90 00 [11:41:44]wFMCommunicate OK [11:41:44]SAM_PROTO_ClearQueue done [11:41:44]KKMCreateOFDPacket [11:41:44]OFDProtocolAddRootSTLVToBuf [11:41:44]FM_MakeSignedData [11:41:44]FM_MakeSignedData [11:41:44]SAM_PROTO_SignData [11:41:44]wFMCommunicate request_size=4 [11:41:44]MH_SAM_APDU [11:41:44]CAPDU: 80 0D 01 02 [11:41:44]Write to MH i2c: E2 08 00 FA 96 80 0D 01 02 00 00 00 00 09 [11:41:44]Write i2c OK [11:41:44]MH_I2C_Read... [11:41:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:44]Read from MH i2c: E2 [11:41:44]MH_I2C_Read... [11:41:44]Read from MH i2c: E2 03 00 [11:41:44]MH_I2C_Read... [11:41:44]Read from MH i2c: E2 03 00 FA 96 00 90 00 04 [11:41:44]RAPDU: 90 00 [11:41:44]wFMCommunicate OK [11:41:44]wFMCommunicate request_size=255 [11:41:44]MH_SAM_APDU [11:41:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 0F 32 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A5 C0 00 00 35 04 06 00 07 [11:41:44]Write to MH i2c: E2 02 01 FB 96 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 0F 32 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A5 C0 00 00 35 04 06 00 07 00 00 26 [11:41:44]Write i2c OK [11:41:44]MH_I2C_Read... [11:41:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:45]Read from MH i2c: E2 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: E2 03 00 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: E2 03 00 FB 96 00 90 00 05 [11:41:45]RAPDU: 90 00 [11:41:45]wFMCommunicate OK [11:41:45]wFMCommunicate request_size=10 [11:41:45]MH_SAM_APDU [11:41:45]CAPDU: 80 0D 02 02 05 61 3E BE 02 7B [11:41:45]Write to MH i2c: E2 0D 00 FC 96 80 0D 02 02 05 00 61 3E BE 02 7B 00 00 F0 [11:41:45]Write i2c OK [11:41:45]MH_I2C_Read... [11:41:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:45]Read from MH i2c: E2 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: E2 03 00 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: E2 03 00 FC 96 00 90 00 06 [11:41:45]RAPDU: 90 00 [11:41:45]wFMCommunicate OK [11:41:45]wFMCommunicate request_size=4 [11:41:45]MH_SAM_APDU [11:41:45]CAPDU: 80 0D 03 02 [11:41:45]Write to MH i2c: E2 08 00 FD 96 80 0D 03 02 00 00 00 00 0E [11:41:45]Write i2c OK [11:41:45]MH_I2C_Read... [11:41:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:45]Read from MH i2c: E2 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: E2 0B 00 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: E2 0B 00 FD 96 00 80 D5 71 0A F2 CE 89 28 90 00 50 [11:41:45]RAPDU: 80 D5 71 0A F2 CE 89 28 90 00 [11:41:45]wFMCommunicate OK [11:41:45]SAM_PROTO_SignData done [11:41:45]FM_MakeSignedData done [11:41:45]CreateOFDProtocolMessage [11:41:45]wFMCommunicate request_size=4 [11:41:45]MH_SAM_APDU [11:41:45]CAPDU: 80 11 00 00 [11:41:45]Write to MH i2c: E2 08 00 FE 96 80 11 00 00 00 00 00 00 0E [11:41:45]Write i2c OK [11:41:45]MH_I2C_Read... [11:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:45]Read from MH i2c: E2 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: E2 17 00 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: E2 17 00 FE 96 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5B [11:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:41:45]wFMCommunicate OK [11:41:45]CreateOFDProtocolMessage done [11:41:45]OFDSenderStorePacket 49317 [11:41:45]StoreOFDPacket docnum=49317 [11:41:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 14 74 07 01 5E C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 0F 32 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A5 C0 00 00 35 04 06 00 07 61 3E BE 02 7B 80 D5 71 0A F2 CE 89 28 [11:41:45]CheckFolder [11:41:45]dirname=/storage/ofd_packets [11:41:45]CheckFolder done [11:41:45]ProducePacketName [11:41:45]name=ofd_packets/00049317 [11:41:45]NVStorageSaveData ofd_packets/00049317 [11:41:45]File name is /storage/ofd_packets/00049317 [11:41:45]Write 301 bytes [11:41:45]NVStorageSaveData done [11:41:45]OFDSenderStorePacket done [11:41:45]KKMCreateOFDPacket done [11:41:45]NVStorageSaveData kkm_last_timestamp [11:41:45]File name is /storage/kkm_last_timestamp [11:41:45]Write 4 bytes [11:41:45]NVStorageSaveData done [11:41:45]ExternCall_PrintAddStr [11:41:45]wPrintStart [11:41:45]Write to MH i2c: 01 00 00 FF 96 95 [11:41:45]Write i2c OK [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: 01 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: 01 07 00 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: 01 07 00 FF 96 00 00 00 00 00 FF 0F AA [11:41:45]RasterBufferAndPrint [11:41:45]line Счет N : (1)216420 [11:41:45]line ИНН: 02508201610067 [11:41:45]line Контрольно-Кассовый Чек [11:41:45]line ПРОДАЖА [11:41:45]line ТРК (МРК, ГНК) : 12 [11:41:45]line Товар: 2710124130 [11:41:45]line Аи-92-К-5 [11:41:45]line 8.300 * 60.30 [11:41:45]line = 500.49 [11:41:45]line НДС 12% НСП 1% [11:41:45]line > о реализуемом товаре [11:41:45]line ОКРУГЛЕНИЕ: -0.49 [11:41:45]line ИТОГО: 500.00 [11:41:45]line Внесено: 500.00 [11:41:45]line СДАЧА: 0.00 [11:41:45]line НСП 1% : 4.43 [11:41:45]line НДС 12% : 53.15 [11:41:45]line Наличными: 500.00 [11:41:45]line Безнал.: 0.00 [11:41:45]line Место: АЗС № 102 "Партнер Нефть" [11:41:45]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:41:45]line СНО: Общий режим [11:41:45]line Чек 42 31.01.2024 11:42 [11:41:45]line Смена: 247 ФФД: 1.0 [11:41:45]line ЗНМ: 0300000040 [11:41:45]line РНМ: 0000000000092723 [11:41:45]line Версия ККМ: 001 [11:41:45]line ФМ: 0000000000875060 [11:41:45]line ФД: 49317 [11:41:45]line ФПД: 8114245862011 [11:41:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T114207&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49317&fm=8114245862011&tin=02508201610067®Number=0000000000092723&sum=50000 [11:41:45]OFD Sender: Processing packet 49317 [packets to send 12, broken 11] [11:41:45]ProducePacketName [11:41:45]name=ofd_packets/00049317 [11:41:45]OFD Sender: To server: pG, [11:41:45]CommunicateWithHost lk.salyk.kg:30040 [11:41:45]ConnectInit lk.salyk.kg [11:41:45]written 0, free lines is 4095 [11:41:45]Connected sock=9 [11:41:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 14 74 07 01 5E C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 0F 32 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A5 C0 00 00 35 04 06 00 07 61 3E BE 02 7B 80 D5 71 0A F2 CE 89 28 [11:41:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 09 69 47 00 E9 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 35 30 36 30 10 04 04 00 A5 C0 00 00 F4 03 04 00 01 DE B9 65 B6 04 01 00 00 90 E5 2D B0 15 5D 52 47 [11:41:45]CommunicateWithHost err = 0 [11:41:45]CheckOFDResponse [11:41:45]1017 (14) - 77093643461234 [11:41:45]1041 (16) - 0000000000875060 [11:41:45]1040 (4) - 49317 [11:41:45]1012 (4) - 31.01.2024 05:43 [11:41:45]1206 (1) - 0 [11:41:45]OFD Sender: Remove packet 49317 [11:41:45]ProducePacketName [11:41:45]name=ofd_packets/00049317 [11:41:45]NVStorageDeleteData [11:41:46]Write to MH i2c: 01 00 00 2A 97 C1 [11:41:46]Write i2c OK [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: 01 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: 01 07 00 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: 01 07 00 2A 97 00 00 00 00 00 F4 0C C8 [11:41:46]RasterBufferAndPrint [11:41:46]line [11:41:46]line [11:41:46]line [11:41:46]line [11:41:46]line [11:41:46]written 0, free lines is 3322 [11:41:46]MH_Cut [11:41:46]Write to MH i2c: D1 01 00 31 97 01 9A [11:41:46]Write i2c OK [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: D1 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: D1 01 00 [11:41:46]MH_I2C_Read... [11:41:46]Read from MH i2c: D1 01 00 31 97 00 99 [11:41:46]Write to MH i2c: 01 00 00 32 97 C9 [11:41:46]Write i2c OK [11:41:46]MH_I2C_Read... [11:41:46]OFD Sender: No OFD packet to send [11:41:46]*** Cut start [11:41:46]*** Partial cut [11:41:46]*** CUTSNS_PIN = 1 [11:41:46]*** CUTSNS_PIN = 0 [11:41:46]*** Brake cut motor [11:41:47]Read from MH i2c: 01 [11:41:47]MH_I2C_Read... [11:41:47]*** Stop cut motor [11:41:47]*** Cut end [11:41:47]Read from MH i2c: 01 07 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: 01 07 00 32 97 00 00 00 00 00 FF 0F DE [11:41:47]process_action close_receipt done [11:41:47]requested_data is exist [11:41:47]produce_requested_data [11:41:47]requested_item fm.sn is exist - process it [11:41:47]wFMCommunicate request_size=4 [11:41:47]MH_SAM_APDU [11:41:47]CAPDU: 80 11 00 00 [11:41:47]Write to MH i2c: E2 08 00 33 97 80 11 00 00 00 00 00 00 44 [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:47]Read from MH i2c: E2 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 17 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 17 00 33 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 91 [11:41:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:41:47]wFMCommunicate OK [11:41:47]requested_item fd.num is exist - process it [11:41:47]SAM_PROTO_GetFieldsCounters [11:41:47]wFMCommunicate request_size=4 [11:41:47]MH_SAM_APDU [11:41:47]CAPDU: 80 13 00 00 [11:41:47]Write to MH i2c: E2 08 00 34 97 80 13 00 00 00 00 00 00 47 [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:47]Read from MH i2c: E2 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 62 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 62 00 34 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A5 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [11:41: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A5 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:47]wFMCommunicate OK [11:41:47]SAM_PROTO_GetFieldsCounters done [11:41:47]requested_item shift.num is exist - process it [11:41:47]requested_item shift.opened is exist - process it [11:41:47]req_shift_opened [11:41:47]FM_GetShiftState [11:41:47]SAM_PROTO_GetShiftState [11:41:47]wFMCommunicate request_size=4 [11:41:47]MH_SAM_APDU [11:41:47]CAPDU: 80 13 01 00 [11:41:47]Write to MH i2c: E2 08 00 35 97 80 13 01 00 00 00 00 00 49 [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:47]Read from MH i2c: E2 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 0E 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 0E 00 35 97 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 9F [11:41:47]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [11:41:47]wFMCommunicate OK [11:41:47]SAM_PROTO_GetShiftState done [11:41:47]FM_GetShiftState done [11:41:47]req_shift_opened done [11:41:47]requested_item shift.open_date is exist - process it [11:41:47]req_shift_open_date [11:41:47]req_shift_open_date done [11:41:47]produce_requested_data done [11:41:47]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49317,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [11:41:47]process_action_free close_receipt [11:41:47]json_value_free [11:41:47]json_value_free done [11:41:47]process_json_proto returns [11:41:47]Send response to host [11:41:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49317,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [11:41:47]free response buf [11:41:47]execute_script done [11:41:47]execute_script returns [11:41:47]free content buf [11:41:47]Sock 7.Close socket [11:41:47]Sock 7.Thread stoped [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:21]OFD Sender: No OFD packet to send [11:45:26]OFD Sender: No OFD packet to send [11:45:31]OFD Sender: No OFD packet to send [11:45:36]OFD Sender: No OFD packet to send [11:45:41]OFD Sender: No OFD packet to send [11:45:46]OFD Sender: No OFD packet to send [11:45:51]OFD Sender: No OFD packet to send [11:45:56]OFD Sender: No OFD packet to send [11:46:01]OFD Sender: No OFD packet to send [11:46:06]OFD Sender: No OFD packet to send [11:46:11]OFD Sender: No OFD packet to send [11:46:16]OFD Sender: No OFD packet to send [11:46:21]OFD Sender: No OFD packet to send [11:46:26]OFD Sender: No OFD packet to send [11:46:31]OFD Sender: No OFD packet to send [11:46:36]OFD Sender: No OFD packet to send [11:46:41]OFD Sender: No OFD packet to send [11:46:46]OFD Sender: No OFD packet to send [11:46:51]OFD Sender: No OFD packet to send [11:46:56]OFD Sender: No OFD packet to send [11:47:01]OFD Sender: No OFD packet to send [11:47:06]OFD Sender: No OFD packet to send [11:47:11]OFD Sender: No OFD packet to send [11:47:16]OFD Sender: No OFD packet to send [11:47:21]OFD Sender: No OFD packet to send [11:47:26]OFD Sender: No OFD packet to send [11:47:31]OFD Sender: No OFD packet to send [11:47:36]OFD Sender: No OFD packet to send [11:47:41]OFD Sender: No OFD packet to send [11:47:46]OFD Sender: No OFD packet to send [11:47:51]OFD Sender: No OFD packet to send [11:47:56]OFD Sender: No OFD packet to send [11:48:01]OFD Sender: No OFD packet to send [11:48:06]OFD Sender: No OFD packet to send [11:48:11]OFD Sender: No OFD packet to send [11:48:16]OFD Sender: No OFD packet to send [11:48:21]OFD Sender: No OFD packet to send [11:48:26]OFD Sender: No OFD packet to send [11:48:31]OFD Sender: No OFD packet to send [11:48:36]OFD Sender: No OFD packet to send [11:48:41]OFD Sender: No OFD packet to send [11:48:46]OFD Sender: No OFD packet to send [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:36]OFD Sender: No OFD packet to send [11:49:41]OFD Sender: No OFD packet to send [11:49:46]OFD Sender: No OFD packet to send [11:49:51]OFD Sender: No OFD packet to send [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:21]OFD Sender: No OFD packet to send [11:50:26]OFD Sender: No OFD packet to send [11:50:31]OFD Sender: No OFD packet to send [11:50:36]OFD Sender: No OFD packet to send [11:50:41]OFD Sender: No OFD packet to send [11:50:46]OFD Sender: No OFD packet to send [11:50:51]OFD Sender: No OFD packet to send [11:50:53]accept exits with 10 [11:50:53]New connection [11:50:53]New thread 3066670436 created [11:50:53]Thread 3066813796 joined [11:50:53]Waiting for new connection... [11:50:53] Sock 10.Parse request [11:50:53]Sock 10.Check first char [11:50:53]Sock 10.First char is OK [11:50:53]request: POST /json_proto HTTP/1.0 [11:50:53]Method: POST [11:50:53]URL: /json_proto [11:50:53]Method is POST - this is cgi request [11:50:53]url: /json_proto [11:50:53]query_string will be loaded in cgi processing [11:50:53]execute_cgi json_proto POST (null) [11:50:53]execute_cgi path=json_proto method=POST [11:50:53]POST find Content-Length [11:50:53]Host: 172.17.56.67:8080 [11:50:53]Content-Length: 677 [11:50:53]Content-Type: application/json [11:50:53] [11:50:53]POST finish read [11:50:53]Found Content-Length = 677 [11:50:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:53]execute_script... [11:50: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)216421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:50:53]POST & json_proto [11:50:53]process_json_proto [11:50:53]json parsed OK: [11:50:53]protocol is kg_v1.0 [11:50:53]action value=close_receipt [11:50:53]process_action close_receipt [11:50:53]cmd_close_receipt [11:50:53]MH_GetDate [11:50:53]Write to MH i2c: F0 00 00 36 97 BC [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: F0 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: F0 09 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: F0 09 00 36 97 00 35 34 BA 65 26 5D 9E 65 D3 [11:50:53]GetLastDocTimeStamp 1706701327 [11:50:53]current date 1706701877 [11:50:53]FM_GetShiftState [11:50:53]SAM_PROTO_GetShiftState [11:50:53]wFMCommunicate request_size=4 [11:50:53]MH_SAM_APDU [11:50:53]CAPDU: 80 13 01 00 [11:50:53]Write to MH i2c: E2 08 00 37 97 80 13 01 00 00 00 00 00 4B [11:50:53]Write i2c OK [11:50:53]MH_I2C_Read... [11:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:53]Read from MH i2c: E2 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 0E 00 [11:50:53]MH_I2C_Read... [11:50:53]Read from MH i2c: E2 0E 00 37 97 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 A1 [11:50:53]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [11:50:53]wFMCommunicate OK [11:50:53]SAM_PROTO_GetShiftState done [11:50:53]FM_GetShiftState done [11:50:53]opened in 1706659486 [11:50:53]opened+sec_in_day 1706745886 [11:50:53]quantity*price = 30029 [11:50:53]sum+1 = 30030 [11:50:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 350.00 СДАЧА: 50.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 43 31.01.2024 11:51 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49318 ФПД: 177466180393514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T115117&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49318&fm=177466180393514&tin=02508201610067®Number=0000000000092723&sum=30000 [11:50:55]StoreToDocumentArchive [11:50:55]shift 247 fd 49318 [11:50:55]save to /storage/0247/doc_00049318 [11:50:55]save last doc name /storage/0247/doc_00049318 to /storage/kkm_last_doc_name [11:50:55]save OK [11:50:55]Clear old archive folders... [11:50:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:55]tlvbuf is 0128CF40 [11:50:55]SAM_PROTO_ClearQueue [11:50:55]wFMCommunicate request_size=4 [11:50:55]MH_SAM_APDU [11:50:55]CAPDU: 80 09 00 00 [11:50:55]Write to MH i2c: E2 08 00 44 97 80 09 00 00 00 00 00 00 4D [11:50:55]Write i2c OK [11:50:55]MH_I2C_Read... [11:50:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:55]Read from MH i2c: E2 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 03 00 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 03 00 44 97 00 90 00 4F [11:50:55]RAPDU: 90 00 [11:50:55]wFMCommunicate OK [11:50:55]SAM_PROTO_ClearQueue done [11:50:55]KKMCreateOFDPacket [11:50:55]OFDProtocolAddRootSTLVToBuf [11:50:55]FM_MakeSignedData [11:50:55]FM_MakeSignedData [11:50:55]SAM_PROTO_SignData [11:50:55]wFMCommunicate request_size=4 [11:50:55]MH_SAM_APDU [11:50:55]CAPDU: 80 0D 01 02 [11:50:55]Write to MH i2c: E2 08 00 45 97 80 0D 01 02 00 00 00 00 55 [11:50:55]Write i2c OK [11:50:55]MH_I2C_Read... [11:50:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:55]Read from MH i2c: E2 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 03 00 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 03 00 45 97 00 90 00 50 [11:50:55]RAPDU: 90 00 [11:50:55]wFMCommunicate OK [11:50:55]wFMCommunicate request_size=255 [11:50:55]MH_SAM_APDU [11:50:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 35 34 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A6 C0 00 00 35 04 06 00 A1 [11:50:55]Write to MH i2c: E2 02 01 46 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 35 34 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A6 C0 00 00 35 04 06 00 A1 00 00 CC [11:50:55]Write i2c OK [11:50:55]MH_I2C_Read... [11:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:55]Read from MH i2c: E2 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 03 00 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 03 00 46 97 00 90 00 51 [11:50:55]RAPDU: 90 00 [11:50:55]wFMCommunicate OK [11:50:55]wFMCommunicate request_size=10 [11:50:55]MH_SAM_APDU [11:50:55]CAPDU: 80 0D 02 02 05 67 90 A4 5A 2A [11:50:55]Write to MH i2c: E2 0D 00 47 97 80 0D 02 02 05 00 67 90 A4 5A 2A 00 00 81 [11:50:55]Write i2c OK [11:50:55]MH_I2C_Read... [11:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:55]Read from MH i2c: E2 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 03 00 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 03 00 47 97 00 90 00 52 [11:50:55]RAPDU: 90 00 [11:50:55]wFMCommunicate OK [11:50:55]wFMCommunicate request_size=4 [11:50:55]MH_SAM_APDU [11:50:55]CAPDU: 80 0D 03 02 [11:50:55]Write to MH i2c: E2 08 00 48 97 80 0D 03 02 00 00 00 00 5A [11:50:55]Write i2c OK [11:50:55]MH_I2C_Read... [11:50:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:55]Read from MH i2c: E2 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 0B 00 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 0B 00 48 97 00 43 36 B8 17 27 52 20 4A 90 00 86 [11:50:55]RAPDU: 43 36 B8 17 27 52 20 4A 90 00 [11:50:55]wFMCommunicate OK [11:50:55]SAM_PROTO_SignData done [11:50:55]FM_MakeSignedData done [11:50:55]CreateOFDProtocolMessage [11:50:55]wFMCommunicate request_size=4 [11:50:55]MH_SAM_APDU [11:50:55]CAPDU: 80 11 00 00 [11:50:55]Write to MH i2c: E2 08 00 49 97 80 11 00 00 00 00 00 00 5A [11:50:55]Write i2c OK [11:50:55]MH_I2C_Read... [11:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:55]Read from MH i2c: E2 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 17 00 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: E2 17 00 49 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A7 [11:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:50:55]wFMCommunicate OK [11:50:55]CreateOFDProtocolMessage done [11:50:55]OFDSenderStorePacket 49318 [11:50:55]StoreOFDPacket docnum=49318 [11:50:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 F7 C8 07 01 F4 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 35 34 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A6 C0 00 00 35 04 06 00 A1 67 90 A4 5A 2A 43 36 B8 17 27 52 20 4A [11:50:55]CheckFolder [11:50:55]dirname=/storage/ofd_packets [11:50:55]CheckFolder done [11:50:55]ProducePacketName [11:50:55]name=ofd_packets/00049318 [11:50:55]NVStorageSaveData ofd_packets/00049318 [11:50:55]File name is /storage/ofd_packets/00049318 [11:50:55]Write 301 bytes [11:50:55]NVStorageSaveData done [11:50:55]OFDSenderStorePacket done [11:50:55]KKMCreateOFDPacket done [11:50:55]NVStorageSaveData kkm_last_timestamp [11:50:55]File name is /storage/kkm_last_timestamp [11:50:55]Write 4 bytes [11:50:55]NVStorageSaveData done [11:50:55]ExternCall_PrintAddStr [11:50:55]wPrintStart [11:50:55]Write to MH i2c: 01 00 00 4A 97 E1 [11:50:55]Write i2c OK [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: 01 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: 01 07 00 [11:50:55]MH_I2C_Read... [11:50:55]Read from MH i2c: 01 07 00 4A 97 00 00 00 00 00 FF 0F F6 [11:50:55]RasterBufferAndPrint [11:50:55]line Счет N : (1)216421 [11:50:55]line ИНН: 02508201610067 [11:50:55]line Контрольно-Кассовый Чек [11:50:55]line ПРОДАЖА [11:50:55]line ТРК (МРК, ГНК) : 12 [11:50:55]line Товар: 2710124130 [11:50:55]line Аи-92-К-5 [11:50:55]line 4.980 * 60.30 [11:50:55]line = 300.29 [11:50:55]line НДС 12% НСП 1% [11:50:55]line > о реализуемом товаре [11:50:55]line ОКРУГЛЕНИЕ: -0.29 [11:50:55]line ИТОГО: 300.00 [11:50:55]line Внесено: 350.00 [11:50:55]line СДАЧА: 50.00 [11:50:55]line НСП 1% : 2.66 [11:50:55]line НДС 12% : 31.89 [11:50:55]line Наличными: 300.00 [11:50:55]line Безнал.: 0.00 [11:50:55]line Место: АЗС № 102 "Партнер Нефть" [11:50:55]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:50:55]line СНО: Общий режим [11:50:55]line Чек 43 31.01.2024 11:51 [11:50:55]line Смена: 247 ФФД: 1.0 [11:50:55]line ЗНМ: 0300000040 [11:50:55]line РНМ: 0000000000092723 [11:50:55]line Версия ККМ: 001 [11:50:55]line ФМ: 0000000000875060 [11:50:55]line ФД: 49318 [11:50:55]line ФПД: 177466180393514 [11:50:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T115117&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49318&fm=177466180393514&tin=02508201610067®Number=0000000000092723&sum=30000 [11:50:55]OFD Sender: Processing packet 49318 [packets to send 12, broken 11] [11:50:55]ProducePacketName [11:50:55]name=ofd_packets/00049318 [11:50:55]OFD Sender: To server: pG, [11:50:55]CommunicateWithHost lk.salyk.kg:30040 [11:50:55]ConnectInit lk.salyk.kg [11:50:55]written 0, free lines is 4095 [11:50:56]Connected sock=9 [11:50:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 F7 C8 07 01 F4 D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 35 34 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A6 C0 00 00 35 04 06 00 A1 67 90 A4 5A 2A 43 36 B8 17 27 52 20 4A [11:50:56]Write to MH i2c: 01 00 00 75 97 0C [11:50:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 7D 12 47 00 36 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 35 30 36 30 10 04 04 00 A6 C0 00 00 F4 03 04 00 28 E0 B9 65 B6 04 01 00 00 5D C1 F0 1B 73 32 7F 75 [11:50:56]CommunicateWithHost err = 0 [11:50:56]CheckOFDResponse [11:50:56]1017 (14) - 77093643461234 [11:50:56]1041 (16) - 0000000000875060 [11:50:56]1040 (4) - 49318 [11:50:56]1012 (4) - 31.01.2024 05:52 [11:50:56]1206 (1) - 0 [11:50:56]OFD Sender: Remove packet 49318 [11:50:56]ProducePacketName [11:50:56]name=ofd_packets/00049318 [11:50:56]NVStorageDeleteData [11:50:56]Write i2c OK [11:50:56]MH_I2C_Read... [11:50:56]Read from MH i2c: 01 [11:50:56]MH_I2C_Read... [11:50:56]Read from MH i2c: 01 07 00 [11:50:56]MH_I2C_Read... [11:50:56]Read from MH i2c: 01 07 00 75 97 00 00 00 00 00 F2 0C 11 [11:50:56]RasterBufferAndPrint [11:50:56]line [11:50:56]line [11:50:56]line [11:50:56]line [11:50:56]line [11:50:56]written 0, free lines is 3326 [11:50:56]MH_Cut [11:50:56]Write to MH i2c: D1 01 00 7C 97 01 E5 [11:50:56]Write i2c OK [11:50:56]MH_I2C_Read... [11:50:56]Read from MH i2c: D1 [11:50:56]MH_I2C_Read... [11:50:56]Read from MH i2c: D1 01 00 [11:50:56]MH_I2C_Read... [11:50:56]Read from MH i2c: D1 01 00 7C 97 00 E4 [11:50:56]Write to MH i2c: 01 00 00 7D 97 14 [11:50:56]Write i2c OK [11:50:56]MH_I2C_Read... [11:50:56]OFD Sender: No OFD packet to send [11:50:57]*** Cut start [11:50:57]*** Partial cut [11:50:57]*** CUTSNS_PIN = 1 [11:50:57]*** CUTSNS_PIN = 0 [11:50:57]*** Brake cut motor [11:50:57]Read from MH i2c: 01 [11:50:57]MH_I2C_Read... [11:50:57]*** Stop cut motor [11:50:57]*** Cut end [11:50:57]Read from MH i2c: 01 07 00 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: 01 07 00 7D 97 00 00 00 00 00 FF 0F 29 [11:50:57]process_action close_receipt done [11:50:57]requested_data is exist [11:50:57]produce_requested_data [11:50:57]requested_item fm.sn is exist - process it [11:50:57]wFMCommunicate request_size=4 [11:50:57]MH_SAM_APDU [11:50:57]CAPDU: 80 11 00 00 [11:50:57]Write to MH i2c: E2 08 00 7E 97 80 11 00 00 00 00 00 00 8F [11:50:57]Write i2c OK [11:50:57]MH_I2C_Read... [11:50:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:57]Read from MH i2c: E2 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: E2 17 00 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: E2 17 00 7E 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DC [11:50:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:50:57]wFMCommunicate OK [11:50:57]requested_item fd.num is exist - process it [11:50:57]SAM_PROTO_GetFieldsCounters [11:50:57]wFMCommunicate request_size=4 [11:50:57]MH_SAM_APDU [11:50:57]CAPDU: 80 13 00 00 [11:50:57]Write to MH i2c: E2 08 00 7F 97 80 13 00 00 00 00 00 00 92 [11:50:57]Write i2c OK [11:50:57]MH_I2C_Read... [11:50:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:57]Read from MH i2c: E2 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: E2 62 00 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: E2 62 00 7F 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A6 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [11: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A6 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:57]wFMCommunicate OK [11:50:57]SAM_PROTO_GetFieldsCounters done [11:50:57]requested_item shift.num is exist - process it [11:50:57]requested_item shift.opened is exist - process it [11:50:57]req_shift_opened [11:50:57]FM_GetShiftState [11:50:57]SAM_PROTO_GetShiftState [11:50:57]wFMCommunicate request_size=4 [11:50:57]MH_SAM_APDU [11:50:57]CAPDU: 80 13 01 00 [11:50:57]Write to MH i2c: E2 08 00 80 97 80 13 01 00 00 00 00 00 94 [11:50:57]Write i2c OK [11:50:57]MH_I2C_Read... [11:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:57]Read from MH i2c: E2 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: E2 0E 00 [11:50:57]MH_I2C_Read... [11:50:57]Read from MH i2c: E2 0E 00 80 97 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 EA [11:50:57]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [11:50:57]wFMCommunicate OK [11:50:57]SAM_PROTO_GetShiftState done [11:50:57]FM_GetShiftState done [11:50:57]req_shift_opened done [11:50:57]requested_item shift.open_date is exist - process it [11:50:57]req_shift_open_date [11:50:57]req_shift_open_date done [11:50:57]produce_requested_data done [11:50:57]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49318,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [11:50:57]process_action_free close_receipt [11:50:57]json_value_free [11:50:57]json_value_free done [11:50:57]process_json_proto returns [11:50:57]Send response to host [11:50:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49318,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [11:50:57]free response buf [11:50:57]execute_script done [11:50:57]execute_script returns [11:50:57]free content buf [11:50:57]Sock 10.Close socket [11:50:57]Sock 10.Thread stoped [11:51:01]OFD Sender: No OFD packet to send [11:51:06]OFD Sender: No OFD packet to send [11:51:11]OFD Sender: No OFD packet to send [11:51:16]OFD Sender: No OFD packet to send [11:51:21]OFD Sender: No OFD packet to send [11:51:26]OFD Sender: No OFD packet to send [11:51:31]OFD Sender: No OFD packet to send [11:51:36]OFD Sender: No OFD packet to send [11:51:41]OFD Sender: No OFD packet to send [11:51:46]OFD Sender: No OFD packet to send [11:51:51]OFD Sender: No OFD packet to send [11:51:56]OFD Sender: No OFD packet to send [11:52:01]OFD Sender: No OFD packet to send [11:52:06]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:52]OFD Sender: No OFD packet to send [11:54:57]OFD Sender: No OFD packet to send [11:55:02]OFD Sender: No OFD packet to send [11:55:07]OFD Sender: No OFD packet to send [11:55:12]OFD Sender: No OFD packet to send [11:55:17]OFD Sender: No OFD packet to send [11:55:22]OFD Sender: No OFD packet to send [11:55:27]OFD Sender: No OFD packet to send [11:55:32]OFD Sender: No OFD packet to send [11:55:37]OFD Sender: No OFD packet to send [11:55:42]OFD Sender: No OFD packet to send [11:55:47]OFD Sender: No OFD packet to send [11:55:52]OFD Sender: No OFD packet to send [11:55:57]OFD Sender: No OFD packet to send [11:56:02]OFD Sender: No OFD packet to send [11:56:07]OFD Sender: No OFD packet to send [11:56:12]OFD Sender: No OFD packet to send [11:56:17]OFD Sender: No OFD packet to send [11:56:22]OFD Sender: No OFD packet to send [11:56:27]OFD Sender: No OFD packet to send [11:56:32]OFD Sender: No OFD packet to send [11:56:37]OFD Sender: No OFD packet to send [11:56:42]OFD Sender: No OFD packet to send [11:56:47]OFD Sender: No OFD packet to send [11:56:52]OFD Sender: No OFD packet to send [11:56:57]OFD Sender: No OFD packet to send [11:57:02]OFD Sender: No OFD packet to send [11:57:07]OFD Sender: No OFD packet to send [11:57:12]OFD Sender: No OFD packet to send [11:57:17]accept exits with 7 [11:57:17]New connection [11:57:17]New thread 3066813796 created [11:57:17]Thread 3066670436 joined [11:57:17]Waiting for new connection... [11:57:17] Sock 7.Parse request [11:57:17]Sock 7.Check first char [11:57:17]Sock 7.First char is OK [11:57:17]request: POST /json_proto HTTP/1.0 [11:57:17]Method: POST [11:57:17]URL: /json_proto [11:57:17]Method is POST - this is cgi request [11:57:17]url: /json_proto [11:57:17]query_string will be loaded in cgi processing [11:57:17]execute_cgi json_proto POST (null) [11:57:17]execute_cgi path=json_proto method=POST [11:57:17]POST find Content-Length [11:57:17]Host: 172.17.56.67:8080 [11:57:17]Content-Length: 682 [11:57:17]Content-Type: application/json [11:57:17] [11:57:17]POST finish read [11:57:17]Found Content-Length = 682 [11:57:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:17]execute_script... [11: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)216422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:17]POST & json_proto [11:57:17]process_json_proto [11:57:17]json parsed OK: [11:57:17]protocol is kg_v1.0 [11:57:17]action value=close_receipt [11:57:17]process_action close_receipt [11:57:17]cmd_close_receipt [11:57:17]MH_GetDate [11:57:17]Write to MH i2c: F0 00 00 81 97 07 [11:57:17]Write i2c OK [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: F0 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: F0 09 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: F0 09 00 81 97 00 B4 35 BA 65 26 5D 9E 65 9E [11:57:17]GetLastDocTimeStamp 1706701877 [11:57:17]current date 1706702260 [11:57:17]FM_GetShiftState [11:57:17]SAM_PROTO_GetShiftState [11:57:17]wFMCommunicate request_size=4 [11:57:17]MH_SAM_APDU [11:57:17]CAPDU: 80 13 01 00 [11:57:17]Write to MH i2c: E2 08 00 82 97 80 13 01 00 00 00 00 00 96 [11:57:17]Write i2c OK [11:57:17]MH_I2C_Read... [11:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:17]Read from MH i2c: E2 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 0E 00 [11:57:17]MH_I2C_Read... [11:57:17]Read from MH i2c: E2 0E 00 82 97 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 EC [11:57:17]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [11:57:17]wFMCommunicate OK [11:57:17]SAM_PROTO_GetShiftState done [11:57:17]FM_GetShiftState done [11:57:17]opened in 1706659486 [11:57:17]opened+sec_in_day 1706745886 [11:57:17]quantity*price = 100037 [11:57:17]sum+1 = 100039 [11:57:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 44 31.01.2024 11:57 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49319 ФПД: 129959575031760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T115740&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49319&fm=129959575031760&tin=02508201610067®Number=0000000000092723&sum=100000 [11:57:18]StoreToDocumentArchive [11:57:18]shift 247 fd 49319 [11:57:18]save to /storage/0247/doc_00049319 [11:57:18]save last doc name /storage/0247/doc_00049319 to /storage/kkm_last_doc_name [11:57:18]save OK [11:57:18]Clear old archive folders... [11:57:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:18]tlvbuf is 011EA120 [11:57:18]SAM_PROTO_ClearQueue [11:57:18]wFMCommunicate request_size=4 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 09 00 00 [11:57:18]Write to MH i2c: E2 08 00 8F 97 80 09 00 00 00 00 00 00 98 [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 8F 97 00 90 00 9A [11:57:18]RAPDU: 90 00 [11:57:18]wFMCommunicate OK [11:57:18]SAM_PROTO_ClearQueue done [11:57:18]KKMCreateOFDPacket [11:57:18]OFDProtocolAddRootSTLVToBuf [11:57:18]FM_MakeSignedData [11:57:18]FM_MakeSignedData [11:57:18]SAM_PROTO_SignData [11:57:18]wFMCommunicate request_size=4 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 0D 01 02 [11:57:18]Write to MH i2c: E2 08 00 90 97 80 0D 01 02 00 00 00 00 A0 [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 90 97 00 90 00 9B [11:57:18]RAPDU: 90 00 [11:57:18]wFMCommunicate OK [11:57:18]wFMCommunicate request_size=255 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 B4 35 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A7 C0 00 00 35 04 06 00 76 [11:57:18]Write to MH i2c: E2 02 01 91 97 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 B4 35 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A7 C0 00 00 35 04 06 00 76 00 00 18 [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 91 97 00 90 00 9C [11:57:18]RAPDU: 90 00 [11:57:18]wFMCommunicate OK [11:57:18]wFMCommunicate request_size=10 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 0D 02 02 05 32 92 4E 0F D0 [11:57:18]Write to MH i2c: E2 0D 00 92 97 80 0D 02 02 05 00 32 92 4E 0F D0 00 00 9E [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 03 00 92 97 00 90 00 9D [11:57:18]RAPDU: 90 00 [11:57:18]wFMCommunicate OK [11:57:18]wFMCommunicate request_size=4 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 0D 03 02 [11:57:18]Write to MH i2c: E2 08 00 93 97 80 0D 03 02 00 00 00 00 A5 [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 0B 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 0B 00 93 97 00 5E 6D 34 C7 AC 1C FB D5 90 00 04 [11:57:18]RAPDU: 5E 6D 34 C7 AC 1C FB D5 90 00 [11:57:18]wFMCommunicate OK [11:57:18]SAM_PROTO_SignData done [11:57:18]FM_MakeSignedData done [11:57:18]CreateOFDProtocolMessage [11:57:18]wFMCommunicate request_size=4 [11:57:18]MH_SAM_APDU [11:57:18]CAPDU: 80 11 00 00 [11:57:18]Write to MH i2c: E2 08 00 94 97 80 11 00 00 00 00 00 00 A5 [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:18]Read from MH i2c: E2 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 17 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: E2 17 00 94 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F2 [11:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:57:18]wFMCommunicate OK [11:57:18]CreateOFDProtocolMessage done [11:57:18]OFDSenderStorePacket 49319 [11:57:18]StoreOFDPacket docnum=49319 [11:57:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 71 D8 07 01 5A C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 B4 35 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A7 C0 00 00 35 04 06 00 76 32 92 4E 0F D0 5E 6D 34 C7 AC 1C FB D5 [11:57:18]CheckFolder [11:57:18]dirname=/storage/ofd_packets [11:57:18]CheckFolder done [11:57:18]ProducePacketName [11:57:18]name=ofd_packets/00049319 [11:57:18]NVStorageSaveData ofd_packets/00049319 [11:57:18]File name is /storage/ofd_packets/00049319 [11:57:18]Write 301 bytes [11:57:18]NVStorageSaveData done [11:57:18]OFDSenderStorePacket done [11:57:18]KKMCreateOFDPacket done [11:57:18]NVStorageSaveData kkm_last_timestamp [11:57:18]File name is /storage/kkm_last_timestamp [11:57:18]Write 4 bytes [11:57:18]NVStorageSaveData done [11:57:18]ExternCall_PrintAddStr [11:57:18]wPrintStart [11:57:18]Write to MH i2c: 01 00 00 95 97 2C [11:57:18]Write i2c OK [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: 01 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: 01 07 00 [11:57:18]MH_I2C_Read... [11:57:18]Read from MH i2c: 01 07 00 95 97 00 00 00 00 00 FF 0F 41 [11:57:18]RasterBufferAndPrint [11:57:18]line Счет N : (1)216422 [11:57:18]line ИНН: 02508201610067 [11:57:18]line Контрольно-Кассовый Чек [11:57:18]line ПРОДАЖА [11:57:18]line ТРК (МРК, ГНК) : 22 [11:57:18]line Товар: 2710124130 [11:57:18]line Аи-92-К-5 [11:57:18]line 16.590 * 60.30 [11:57:18]line = 1000.38 [11:57:18]line НДС 12% НСП 1% [11:57:18]line > о реализуемом товаре [11:57:18]line ОКРУГЛЕНИЕ: -0.38 [11:57:18]line ИТОГО: 1000.00 [11:57:18]line Внесено: 1000.00 [11:57:18]line СДАЧА: 0.00 [11:57:18]line НСП 1% : 8.85 [11:57:18]line НДС 12% : 106.23 [11:57:18]line Наличными: 1000.00 [11:57:18]line Безнал.: 0.00 [11:57:18]line Место: АЗС № 102 "Партнер Нефть" [11:57:18]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:57:18]line СНО: Общий режим [11:57:18]line Чек 44 31.01.2024 11:57 [11:57:18]line Смена: 247 ФФД: 1.0 [11:57:18]line ЗНМ: 0300000040 [11:57:18]line РНМ: 0000000000092723 [11:57:18]line Версия ККМ: 001 [11:57:18]line ФМ: 0000000000875060 [11:57:18]line ФД: 49319 [11:57:18]line ФПД: 129959575031760 [11:57:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T115740&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49319&fm=129959575031760&tin=02508201610067®Number=0000000000092723&sum=100000 [11:57:19]OFD Sender: Processing packet 49319 [packets to send 12, broken 11] [11:57:19]ProducePacketName [11:57:19]name=ofd_packets/00049319 [11:57:19]OFD Sender: To server: pG, [11:57:19]CommunicateWithHost lk.salyk.kg:30040 [11:57:19]ConnectInit lk.salyk.kg [11:57:19]written 0, free lines is 4095 [11:57:19]Connected sock=11 [11: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 35 30 36 30 0F 01 00 00 71 D8 07 01 5A C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 B4 35 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A7 C0 00 00 35 04 06 00 76 32 92 4E 0F D0 5E 6D 34 C7 AC 1C FB D5 [11:57:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 03 3A 47 00 36 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 35 30 36 30 10 04 04 00 A7 C0 00 00 F4 03 04 00 A7 E1 B9 65 B6 04 01 00 00 1B AB B6 4C 09 F6 CF A2 [11:57:19]CommunicateWithHost err = 0 [11:57:19]CheckOFDResponse [11:57:19]1017 (14) - 77093643461234 [11:57:19]1041 (16) - 0000000000875060 [11:57:19]1040 (4) - 49319 [11:57:19]1012 (4) - 31.01.2024 05:59 [11:57:19]1206 (1) - 0 [11:57:19]OFD Sender: Remove packet 49319 [11:57:19]ProducePacketName [11:57:19]name=ofd_packets/00049319 [11:57:19]NVStorageDeleteData [11:57:19]Write to MH i2c: 01 00 00 C0 97 57 [11:57:19]Write i2c OK [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: 01 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: 01 07 00 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: 01 07 00 C0 97 00 00 00 00 00 F4 0C 5E [11:57:19]RasterBufferAndPrint [11:57:19]line [11:57:19]line [11:57:19]line [11:57:19]line [11:57:19]line [11:57:19]written 0, free lines is 3322 [11:57:19]MH_Cut [11:57:19]Write to MH i2c: D1 01 00 C7 97 01 30 [11:57:19]Write i2c OK [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: D1 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: D1 01 00 [11:57:19]MH_I2C_Read... [11:57:19]Read from MH i2c: D1 01 00 C7 97 00 2F [11:57:19]Write to MH i2c: 01 00 00 C8 97 5F [11:57:19]Write i2c OK [11:57:19]MH_I2C_Read... [11:57:19]OFD Sender: No OFD packet to send [11:57:20]*** Cut start [11:57:20]*** Partial cut [11:57:20]*** CUTSNS_PIN = 1 [11:57:20]*** CUTSNS_PIN = 0 [11:57:20]*** Brake cut motor [11:57:20]Read from MH i2c: 01 [11:57:20]MH_I2C_Read... [11:57:20]*** Stop cut motor [11:57:20]*** Cut end [11:57:20]Read from MH i2c: 01 07 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: 01 07 00 C8 97 00 00 00 00 00 FF 0F 74 [11:57:20]process_action close_receipt done [11:57:20]requested_data is exist [11:57:20]produce_requested_data [11:57:20]requested_item fm.sn is exist - process it [11:57:20]wFMCommunicate request_size=4 [11:57:20]MH_SAM_APDU [11:57:20]CAPDU: 80 11 00 00 [11:57:20]Write to MH i2c: E2 08 00 C9 97 80 11 00 00 00 00 00 00 DA [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:20]Read from MH i2c: E2 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 17 00 [11:57:20]MH_I2C_Read... [11:57:20]Read from MH i2c: E2 17 00 C9 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 27 [11:57:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:57:20]wFMCommunicate OK [11:57:20]requested_item fd.num is exist - process it [11:57:20]SAM_PROTO_GetFieldsCounters [11:57:20]wFMCommunicate request_size=4 [11:57:20]MH_SAM_APDU [11:57:20]CAPDU: 80 13 00 00 [11:57:20]Write to MH i2c: E2 08 00 CA 97 80 13 00 00 00 00 00 00 DD [11:57:20]Write i2c OK [11:57:20]MH_I2C_Read... [11:57:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:21]Read from MH i2c: E2 [11:57:21]MH_I2C_Read... [11:57:21]Read from MH i2c: E2 62 00 [11:57:21]MH_I2C_Read... [11:57:21]Read from MH i2c: E2 62 00 CA 97 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A7 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [11:57: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A7 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:21]wFMCommunicate OK [11:57:21]SAM_PROTO_GetFieldsCounters done [11:57:21]requested_item shift.num is exist - process it [11:57:21]requested_item shift.opened is exist - process it [11:57:21]req_shift_opened [11:57:21]FM_GetShiftState [11:57:21]SAM_PROTO_GetShiftState [11:57:21]wFMCommunicate request_size=4 [11:57:21]MH_SAM_APDU [11:57:21]CAPDU: 80 13 01 00 [11:57:21]Write to MH i2c: E2 08 00 CB 97 80 13 01 00 00 00 00 00 DF [11:57:21]Write i2c OK [11:57:21]MH_I2C_Read... [11:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:21]Read from MH i2c: E2 [11:57:21]MH_I2C_Read... [11:57:21]Read from MH i2c: E2 0E 00 [11:57:21]MH_I2C_Read... [11:57:21]Read from MH i2c: E2 0E 00 CB 97 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 35 [11:57:21]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [11:57:21]wFMCommunicate OK [11:57:21]SAM_PROTO_GetShiftState done [11:57:21]FM_GetShiftState done [11:57:21]req_shift_opened done [11:57:21]requested_item shift.open_date is exist - process it [11:57:21]req_shift_open_date [11:57:21]req_shift_open_date done [11:57:21]produce_requested_data done [11:57:21]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49319,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [11:57:21]process_action_free close_receipt [11:57:21]json_value_free [11:57:21]json_value_free done [11:57:21]process_json_proto returns [11:57:21]Send response to host [11:57:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49319,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [11:57:21]free response buf [11:57:21]execute_script done [11:57:21]execute_script returns [11:57:21]free content buf [11:57:21]Sock 7.Close socket [11:57:21]Sock 7.Thread stoped [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:55]accept exits with 9 [11:57:55]New connection [11:57:55]New thread 3066670436 created [11:57:55]Thread 3066813796 joined [11:57:55]Waiting for new connection... [11:57:55] Sock 9.Parse request [11:57:55]Sock 9.Check first char [11:57:55]Sock 9.First char is OK [11:57:55]request: POST /json_proto HTTP/1.0 [11:57:55]Method: POST [11:57:55]URL: /json_proto [11:57:55]Method is POST - this is cgi request [11:57:55]url: /json_proto [11:57:55]query_string will be loaded in cgi processing [11:57:55]execute_cgi json_proto POST (null) [11:57:55]execute_cgi path=json_proto method=POST [11:57:55]POST find Content-Length [11:57:55]Host: 172.17.56.67:8080 [11:57:55]Content-Length: 679 [11:57:55]Content-Type: application/json [11:57:55] [11:57:55]POST finish read [11:57:55]Found Content-Length = 679 [11:57:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:55]execute_script... [11:57:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:55]POST & json_proto [11:57:55]process_json_proto [11:57:55]json parsed OK: [11:57:55]protocol is kg_v1.0 [11:57:55]action value=close_receipt [11:57:55]process_action close_receipt [11:57:55]cmd_close_receipt [11:57:55]MH_GetDate [11:57:55]Write to MH i2c: F0 00 00 CC 97 52 [11:57:55]Write i2c OK [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: F0 [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: F0 09 00 [11:57:55]MH_I2C_Read... [11:57:55]Read from MH i2c: F0 09 00 CC 97 00 DB 35 BA 65 26 5D 9E 65 10 [11:57:55]GetLastDocTimeStamp 1706702260 [11:57:55]current date 1706702299 [11:57:55]FM_GetShiftState [11:57:55]SAM_PROTO_GetShiftState [11:57:55]wFMCommunicate request_size=4 [11:57:55]MH_SAM_APDU [11:57:55]CAPDU: 80 13 01 00 [11:57:55]Write to MH i2c: E2 08 00 CD 97 80 13 01 00 00 00 00 00 E1 [11:57:55]Write i2c OK [11:57:55]MH_I2C_Read... [11:57:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:56]Read from MH i2c: E2 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: E2 0E 00 [11:57:56]MH_I2C_Read... [11:57:56]Read from MH i2c: E2 0E 00 CD 97 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 37 [11:57:56]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [11:57:56]wFMCommunicate OK [11:57:56]SAM_PROTO_GetShiftState done [11:57:56]FM_GetShiftState done [11:57:56]opened in 1706659486 [11:57:56]opened+sec_in_day 1706745886 [11:57:56]quantity*price = 100026 [11:57:56]sum+1 = 100028 [11:57:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 45 31.01.2024 11:58 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49320 ФПД: 237455114425495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T115819&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49320&fm=237455114425495&tin=02508201610067®Number=0000000000092723&sum=100000 [11:57:57]StoreToDocumentArchive [11:57:57]shift 247 fd 49320 [11:57:57]save to /storage/0247/doc_00049320 [11:57:57]save last doc name /storage/0247/doc_00049320 to /storage/kkm_last_doc_name [11:57:57]save OK [11:57:57]Clear old archive folders... [11:57:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:57:57]tlvbuf is B6D862D0 [11:57:57]SAM_PROTO_ClearQueue [11:57:57]wFMCommunicate request_size=4 [11:57:57]MH_SAM_APDU [11:57:57]CAPDU: 80 09 00 00 [11:57:57]Write to MH i2c: E2 08 00 DA 97 80 09 00 00 00 00 00 00 E3 [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:57]Read from MH i2c: E2 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 03 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 03 00 DA 97 00 90 00 E5 [11:57:57]RAPDU: 90 00 [11:57:57]wFMCommunicate OK [11:57:57]SAM_PROTO_ClearQueue done [11:57:57]KKMCreateOFDPacket [11:57:57]OFDProtocolAddRootSTLVToBuf [11:57:57]FM_MakeSignedData [11:57:57]FM_MakeSignedData [11:57:57]SAM_PROTO_SignData [11:57:57]wFMCommunicate request_size=4 [11:57:57]MH_SAM_APDU [11:57:57]CAPDU: 80 0D 01 02 [11:57:57]Write to MH i2c: E2 08 00 DB 97 80 0D 01 02 00 00 00 00 EB [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:57]Read from MH i2c: E2 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 03 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 03 00 DB 97 00 90 00 E6 [11:57:57]RAPDU: 90 00 [11:57:57]wFMCommunicate OK [11:57:57]wFMCommunicate request_size=255 [11:57:57]MH_SAM_APDU [11:57:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2D 00 00 00 F4 03 04 00 DB 35 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A8 C0 00 00 35 04 06 00 D7 F6 D3 BE [11:57:57]Write to MH i2c: E2 02 01 DC 97 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2D 00 00 00 F4 03 04 00 DB 35 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A8 C0 00 00 35 04 06 00 D7 F6 D3 BE 00 00 8E [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:57]Read from MH i2c: E2 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 03 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 03 00 DC 97 00 90 00 E7 [11:57:57]RAPDU: 90 00 [11:57:57]wFMCommunicate OK [11:57:57]wFMCommunicate request_size=7 [11:57:57]MH_SAM_APDU [11:57:57]CAPDU: 80 0D 02 02 02 D4 97 [11:57:57]Write to MH i2c: E2 0A 00 DD 97 80 0D 02 02 02 00 D4 97 00 00 5D [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:57]Read from MH i2c: E2 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 03 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 03 00 DD 97 00 90 00 E8 [11:57:57]RAPDU: 90 00 [11:57:57]wFMCommunicate OK [11:57:57]wFMCommunicate request_size=4 [11:57:57]MH_SAM_APDU [11:57:57]CAPDU: 80 0D 03 02 [11:57:57]Write to MH i2c: E2 08 00 DE 97 80 0D 03 02 00 00 00 00 F0 [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:57]Read from MH i2c: E2 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 0B 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 0B 00 DE 97 00 F5 45 32 9E 4A 1D 71 19 90 00 EC [11:57:57]RAPDU: F5 45 32 9E 4A 1D 71 19 90 00 [11:57:57]wFMCommunicate OK [11:57:57]SAM_PROTO_SignData done [11:57:57]FM_MakeSignedData done [11:57:57]CreateOFDProtocolMessage [11:57:57]wFMCommunicate request_size=4 [11:57:57]MH_SAM_APDU [11:57:57]CAPDU: 80 11 00 00 [11:57:57]Write to MH i2c: E2 08 00 DF 97 80 11 00 00 00 00 00 00 F0 [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:57]Read from MH i2c: E2 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 17 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: E2 17 00 DF 97 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3D [11:57:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:57:57]wFMCommunicate OK [11:57:57]CreateOFDProtocolMessage done [11:57:57]OFDSenderStorePacket 49320 [11:57:57]StoreOFDPacket docnum=49320 [11:57:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 79 46 04 01 97 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2D 00 00 00 F4 03 04 00 DB 35 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A8 C0 00 00 35 04 06 00 D7 F6 D3 BE D4 97 F5 45 32 9E 4A 1D 71 19 [11:57:57]CheckFolder [11:57:57]dirname=/storage/ofd_packets [11:57:57]CheckFolder done [11:57:57]ProducePacketName [11:57:57]name=ofd_packets/00049320 [11:57:57]NVStorageSaveData ofd_packets/00049320 [11:57:57]File name is /storage/ofd_packets/00049320 [11:57:57]Write 298 bytes [11:57:57]NVStorageSaveData done [11:57:57]OFDSenderStorePacket done [11:57:57]KKMCreateOFDPacket done [11:57:57]NVStorageSaveData kkm_last_timestamp [11:57:57]File name is /storage/kkm_last_timestamp [11:57:57]Write 4 bytes [11:57:57]NVStorageSaveData done [11:57:57]ExternCall_PrintAddStr [11:57:57]wPrintStart [11:57:57]Write to MH i2c: 01 00 00 E0 97 77 [11:57:57]Write i2c OK [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: 01 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: 01 07 00 [11:57:57]MH_I2C_Read... [11:57:57]Read from MH i2c: 01 07 00 E0 97 00 00 00 00 00 FF 0F 8C [11:57:57]RasterBufferAndPrint [11:57:57]line Счет N : (1)216423 [11:57:57]line ИНН: 02508201610067 [11:57:57]line Контрольно-Кассовый Чек [11:57:57]line ПРОДАЖА [11:57:57]line ТРК (МРК, ГНК) : 11 [11:57:57]line Товар: 2710194210 [11:57:57]line ДТ-К-5 [11:57:57]line 14.310 * 69.90 [11:57:57]line = 1000.27 [11:57:57]line НДС 12% НСП 1% [11:57:57]line > о реализуемом товаре [11:57:57]line ОКРУГЛЕНИЕ: -0.27 [11:57:57]line ИТОГО: 1000.00 [11:57:57]line Внесено: 1000.00 [11:57:57]line СДАЧА: 0.00 [11:57:57]line НСП 1% : 8.85 [11:57:57]line НДС 12% : 106.22 [11:57:57]line Наличными: 1000.00 [11:57:57]line Безнал.: 0.00 [11:57:57]line Место: АЗС № 102 "Партнер Нефть" [11:57:57]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:57:57]line СНО: Общий режим [11:57:57]line Чек 45 31.01.2024 11:58 [11:57:57]line Смена: 247 ФФД: 1.0 [11:57:57]line ЗНМ: 0300000040 [11:57:57]line РНМ: 0000000000092723 [11:57:57]line Версия ККМ: 001 [11:57:57]line ФМ: 0000000000875060 [11:57:57]line ФД: 49320 [11:57:57]line ФПД: 237455114425495 [11:57:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T115819&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49320&fm=237455114425495&tin=02508201610067®Number=0000000000092723&sum=100000 [11:57:57]OFD Sender: Processing packet 49320 [packets to send 12, broken 11] [11:57:58]ProducePacketName [11:57:58]name=ofd_packets/00049320 [11:57:58]OFD Sender: To server: pG, [11:57:58]CommunicateWithHost lk.salyk.kg:30040 [11:57:58]ConnectInit lk.salyk.kg [11:57:58]written 0, free lines is 4095 [11:57:58]Connected sock=10 [11:57:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 79 46 04 01 97 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 2D 00 00 00 F4 03 04 00 DB 35 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A8 C0 00 00 35 04 06 00 D7 F6 D3 BE D4 97 F5 45 32 9E 4A 1D 71 19 [11:57:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 C7 F8 47 00 B0 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A8 C0 00 00 F4 03 04 00 CE E1 B9 65 B6 04 01 00 00 98 77 57 A2 88 DB 8E F1 [11:57:58]CommunicateWithHost err = 0 [11:57:58]CheckOFDResponse [11:57:58]1017 (14) - 77093643461234 [11:57:58]1041 (16) - 0000000000875060 [11:57:58]1040 (4) - 49320 [11:57:58]1012 (4) - 31.01.2024 05:59 [11:57:58]1206 (1) - 0 [11:57:58]OFD Sender: Remove packet 49320 [11:57:58]ProducePacketName [11:57:58]name=ofd_packets/00049320 [11:57:58]NVStorageDeleteData [11:57:58]Write to MH i2c: 01 00 00 0B 98 A3 [11:57:58]Write i2c OK [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: 01 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: 01 07 00 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: 01 07 00 0B 98 00 00 00 00 00 E9 0C 9F [11:57:58]RasterBufferAndPrint [11:57:58]line [11:57:58]line [11:57:58]line [11:57:58]line [11:57:58]line [11:57:58]written 0, free lines is 3312 [11:57:58]MH_Cut [11:57:58]Write to MH i2c: D1 01 00 12 98 01 7C [11:57:58]Write i2c OK [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: D1 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: D1 01 00 [11:57:58]MH_I2C_Read... [11:57:58]Read from MH i2c: D1 01 00 12 98 00 7B [11:57:58]Write to MH i2c: 01 00 00 13 98 AB [11:57:58]Write i2c OK [11:57:58]MH_I2C_Read... [11:57:58]OFD Sender: No OFD packet to send [11:57:59]*** Cut start [11:57:59]*** Partial cut [11:57:59]*** CUTSNS_PIN = 1 [11:57:59]*** CUTSNS_PIN = 0 [11:57:59]*** Brake cut motor [11:57:59]Read from MH i2c: 01 [11:57:59]MH_I2C_Read... [11:57:59]*** Stop cut motor [11:57:59]*** Cut end [11:57:59]Read from MH i2c: 01 07 00 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: 01 07 00 13 98 00 00 00 00 00 FF 0F C0 [11:57:59]process_action close_receipt done [11:57:59]requested_data is exist [11:57:59]produce_requested_data [11:57:59]requested_item fm.sn is exist - process it [11:57:59]wFMCommunicate request_size=4 [11:57:59]MH_SAM_APDU [11:57:59]CAPDU: 80 11 00 00 [11:57:59]Write to MH i2c: E2 08 00 14 98 80 11 00 00 00 00 00 00 26 [11:57:59]Write i2c OK [11:57:59]MH_I2C_Read... [11:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:59]Read from MH i2c: E2 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: E2 17 00 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: E2 17 00 14 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 73 [11:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:57:59]wFMCommunicate OK [11:57:59]requested_item fd.num is exist - process it [11:57:59]SAM_PROTO_GetFieldsCounters [11:57:59]wFMCommunicate request_size=4 [11:57:59]MH_SAM_APDU [11:57:59]CAPDU: 80 13 00 00 [11:57:59]Write to MH i2c: E2 08 00 15 98 80 13 00 00 00 00 00 00 29 [11:57:59]Write i2c OK [11:57:59]MH_I2C_Read... [11:57:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:59]Read from MH i2c: E2 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: E2 62 00 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: E2 62 00 15 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A8 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [11:57: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A8 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:59]wFMCommunicate OK [11:57:59]SAM_PROTO_GetFieldsCounters done [11:57:59]requested_item shift.num is exist - process it [11:57:59]requested_item shift.opened is exist - process it [11:57:59]req_shift_opened [11:57:59]FM_GetShiftState [11:57:59]SAM_PROTO_GetShiftState [11:57:59]wFMCommunicate request_size=4 [11:57:59]MH_SAM_APDU [11:57:59]CAPDU: 80 13 01 00 [11:57:59]Write to MH i2c: E2 08 00 16 98 80 13 01 00 00 00 00 00 2B [11:57:59]Write i2c OK [11:57:59]MH_I2C_Read... [11:57:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:59]Read from MH i2c: E2 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: E2 0E 00 [11:57:59]MH_I2C_Read... [11:57:59]Read from MH i2c: E2 0E 00 16 98 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 81 [11:57:59]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [11:57:59]wFMCommunicate OK [11:57:59]SAM_PROTO_GetShiftState done [11:57:59]FM_GetShiftState done [11:57:59]req_shift_opened done [11:57:59]requested_item shift.open_date is exist - process it [11:57:59]req_shift_open_date [11:57:59]req_shift_open_date done [11:57:59]produce_requested_data done [11:57:59]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49320,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [11:57:59]process_action_free close_receipt [11:57:59]json_value_free [11:57:59]json_value_free done [11:57:59]process_json_proto returns [11:57:59]Send response to host [11:57:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49320,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [11:57:59]free response buf [11:57:59]execute_script done [11:57:59]execute_script returns [11:57:59]free content buf [11:57:59]Sock 9.Close socket [11:57:59]Sock 9.Thread stoped [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:42]accept exits with 7 [11:59:42]New connection [11:59:42]New thread 3066813796 created [11:59:42]Thread 3066670436 joined [11:59:42]Waiting for new connection... [11:59:42] Sock 7.Parse request [11:59:42]Sock 7.Check first char [11:59:42]Sock 7.First char is OK [11:59:42]request: POST /json_proto HTTP/1.0 [11:59:42]Method: POST [11:59:42]URL: /json_proto [11:59:42]Method is POST - this is cgi request [11:59:42]url: /json_proto [11:59:42]query_string will be loaded in cgi processing [11:59:42]execute_cgi json_proto POST (null) [11:59:42]execute_cgi path=json_proto method=POST [11:59:42]POST find Content-Length [11:59:42]Host: 172.17.56.67:8080 [11:59:42]Content-Length: 677 [11:59:42]Content-Type: application/json [11:59:42] [11:59:42]POST finish read [11:59:42]Found Content-Length = 677 [11:59:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:59:42]execute_script... [11:59: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)216424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:59:42]POST & json_proto [11:59:42]process_json_proto [11:59:42]json parsed OK: [11:59:42]protocol is kg_v1.0 [11:59:42]action value=close_receipt [11:59:42]process_action close_receipt [11:59:42]cmd_close_receipt [11:59:42]MH_GetDate [11:59:42]Write to MH i2c: F0 00 00 17 98 9E [11:59:42]Write i2c OK [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: F0 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: F0 09 00 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: F0 09 00 17 98 00 45 36 BA 65 26 5D 9E 65 C7 [11:59:42]GetLastDocTimeStamp 1706702299 [11:59:42]current date 1706702405 [11:59:42]FM_GetShiftState [11:59:42]SAM_PROTO_GetShiftState [11:59:42]wFMCommunicate request_size=4 [11:59:42]MH_SAM_APDU [11:59:42]CAPDU: 80 13 01 00 [11:59:42]Write to MH i2c: E2 08 00 18 98 80 13 01 00 00 00 00 00 2D [11:59:42]Write i2c OK [11:59:42]MH_I2C_Read... [11:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:42]Read from MH i2c: E2 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 0E 00 [11:59:42]MH_I2C_Read... [11:59:42]Read from MH i2c: E2 0E 00 18 98 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 83 [11:59:42]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [11:59:42]wFMCommunicate OK [11:59:42]SAM_PROTO_GetShiftState done [11:59:42]FM_GetShiftState done [11:59:42]opened in 1706659486 [11:59:42]opened+sec_in_day 1706745886 [11:59:42]quantity*price = 30029 [11:59:42]sum+1 = 30030 [11:59:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 46 31.01.2024 12:00 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49321 ФПД: 71520439152010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T120005&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49321&fm=71520439152010&tin=02508201610067®Number=0000000000092723&sum=30000 [11:59:43]StoreToDocumentArchive [11:59:43]shift 247 fd 49321 [11:59:43]save to /storage/0247/doc_00049321 [11:59:43]save last doc name /storage/0247/doc_00049321 to /storage/kkm_last_doc_name [11:59:43]save OK [11:59:43]Clear old archive folders... [11:59:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:43]tlvbuf is 014A8500 [11:59:43]SAM_PROTO_ClearQueue [11:59:43]wFMCommunicate request_size=4 [11:59:43]MH_SAM_APDU [11:59:43]CAPDU: 80 09 00 00 [11:59:43]Write to MH i2c: E2 08 00 25 98 80 09 00 00 00 00 00 00 2F [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:43]Read from MH i2c: E2 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 03 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 03 00 25 98 00 90 00 31 [11:59:43]RAPDU: 90 00 [11:59:43]wFMCommunicate OK [11:59:43]SAM_PROTO_ClearQueue done [11:59:43]KKMCreateOFDPacket [11:59:43]OFDProtocolAddRootSTLVToBuf [11:59:43]FM_MakeSignedData [11:59:43]FM_MakeSignedData [11:59:43]SAM_PROTO_SignData [11:59:43]wFMCommunicate request_size=4 [11:59:43]MH_SAM_APDU [11:59:43]CAPDU: 80 0D 01 02 [11:59:43]Write to MH i2c: E2 08 00 26 98 80 0D 01 02 00 00 00 00 37 [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:43]Read from MH i2c: E2 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 03 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 03 00 26 98 00 90 00 32 [11:59:43]RAPDU: 90 00 [11:59:43]wFMCommunicate OK [11:59:43]wFMCommunicate request_size=255 [11:59:43]MH_SAM_APDU [11:59:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 45 36 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A9 C0 00 00 35 04 06 00 41 [11:59:43]Write to MH i2c: E2 02 01 27 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 45 36 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A9 C0 00 00 35 04 06 00 41 00 00 66 [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:43]Read from MH i2c: E2 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 03 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 03 00 27 98 00 90 00 33 [11:59:43]RAPDU: 90 00 [11:59:43]wFMCommunicate OK [11:59:43]wFMCommunicate request_size=10 [11:59:43]MH_SAM_APDU [11:59:43]CAPDU: 80 0D 02 02 05 0C 26 5E AD 8A [11:59:43]Write to MH i2c: E2 0D 00 28 98 80 0D 02 02 05 00 0C 26 5E AD 8A 00 00 0B [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:43]Read from MH i2c: E2 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 03 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 03 00 28 98 00 90 00 34 [11:59:43]RAPDU: 90 00 [11:59:43]wFMCommunicate OK [11:59:43]wFMCommunicate request_size=4 [11:59:43]MH_SAM_APDU [11:59:43]CAPDU: 80 0D 03 02 [11:59:43]Write to MH i2c: E2 08 00 29 98 80 0D 03 02 00 00 00 00 3C [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:43]Read from MH i2c: E2 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 0B 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 0B 00 29 98 00 86 35 66 18 7D F8 6C BF 90 00 16 [11:59:43]RAPDU: 86 35 66 18 7D F8 6C BF 90 00 [11:59:43]wFMCommunicate OK [11:59:43]SAM_PROTO_SignData done [11:59:43]FM_MakeSignedData done [11:59:43]CreateOFDProtocolMessage [11:59:43]wFMCommunicate request_size=4 [11:59:43]MH_SAM_APDU [11:59:43]CAPDU: 80 11 00 00 [11:59:43]Write to MH i2c: E2 08 00 2A 98 80 11 00 00 00 00 00 00 3C [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:43]Read from MH i2c: E2 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 17 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: E2 17 00 2A 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 89 [11:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:59:43]wFMCommunicate OK [11:59:43]CreateOFDProtocolMessage done [11:59:43]OFDSenderStorePacket 49321 [11:59:43]StoreOFDPacket docnum=49321 [11:59:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 4F B9 07 01 6B 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 45 36 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A9 C0 00 00 35 04 06 00 41 0C 26 5E AD 8A 86 35 66 18 7D F8 6C BF [11:59:43]CheckFolder [11:59:43]dirname=/storage/ofd_packets [11:59:43]CheckFolder done [11:59:43]ProducePacketName [11:59:43]name=ofd_packets/00049321 [11:59:43]NVStorageSaveData ofd_packets/00049321 [11:59:43]File name is /storage/ofd_packets/00049321 [11:59:43]Write 301 bytes [11:59:43]NVStorageSaveData done [11:59:43]OFDSenderStorePacket done [11:59:43]KKMCreateOFDPacket done [11:59:43]NVStorageSaveData kkm_last_timestamp [11:59:43]File name is /storage/kkm_last_timestamp [11:59:43]Write 4 bytes [11:59:43]NVStorageSaveData done [11:59:43]ExternCall_PrintAddStr [11:59:43]wPrintStart [11:59:43]Write to MH i2c: 01 00 00 2B 98 C3 [11:59:43]Write i2c OK [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: 01 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: 01 07 00 [11:59:43]MH_I2C_Read... [11:59:43]Read from MH i2c: 01 07 00 2B 98 00 00 00 00 00 FF 0F D8 [11:59:43]RasterBufferAndPrint [11:59:43]line Счет N : (1)216424 [11:59:43]line ИНН: 02508201610067 [11:59:43]line Контрольно-Кассовый Чек [11:59:43]line ПРОДАЖА [11:59:43]line ТРК (МРК, ГНК) : 12 [11:59:43]line Товар: 2710124130 [11:59:43]line Аи-92-К-5 [11:59:43]line 4.980 * 60.30 [11:59:43]line = 300.29 [11:59:43]line НДС 12% НСП 1% [11:59:43]line > о реализуемом товаре [11:59:43]line ОКРУГЛЕНИЕ: -0.29 [11:59:43]line ИТОГО: 300.00 [11:59:43]line Внесено: 300.00 [11:59:43]line СДАЧА: 0.00 [11:59:43]line НСП 1% : 2.66 [11:59:43]line НДС 12% : 31.89 [11:59:43]line Наличными: 300.00 [11:59:43]line Безнал.: 0.00 [11:59:43]line Место: АЗС № 102 "Партнер Нефть" [11:59:43]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:59:43]line СНО: Общий режим [11:59:43]line Чек 46 31.01.2024 12:00 [11:59:43]line Смена: 247 ФФД: 1.0 [11:59:43]line ЗНМ: 0300000040 [11:59:43]line РНМ: 0000000000092723 [11:59:43]line Версия ККМ: 001 [11:59:43]line ФМ: 0000000000875060 [11:59:43]line ФД: 49321 [11:59:43]line ФПД: 71520439152010 [11:59:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T120005&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49321&fm=71520439152010&tin=02508201610067®Number=0000000000092723&sum=30000 [11:59:44]OFD Sender: Processing packet 49321 [packets to send 12, broken 11] [11:59:44]ProducePacketName [11:59:44]name=ofd_packets/00049321 [11:59:44]OFD Sender: To server: pG, [11:59:44]CommunicateWithHost lk.salyk.kg:30040 [11:59:44]ConnectInit lk.salyk.kg [11:59:44]written 0, free lines is 4095 [11:59:44]Connected sock=10 [11:59:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 4F B9 07 01 6B 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 45 36 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A9 C0 00 00 35 04 06 00 41 0C 26 5E AD 8A 86 35 66 18 7D F8 6C BF [11:59:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 EC 07 47 00 90 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A9 C0 00 00 F4 03 04 00 38 E2 B9 65 B6 04 01 00 00 8B 59 D9 7A 28 1E E2 45 [11:59:44]CommunicateWithHost err = 0 [11:59:44]CheckOFDResponse [11:59:44]1017 (14) - 77093643461234 [11:59:44]1041 (16) - 0000000000875060 [11:59:44]1040 (4) - 49321 [11:59:44]1012 (4) - 31.01.2024 06:01 [11:59:44]1206 (1) - 0 [11:59:44]OFD Sender: Remove packet 49321 [11:59:44]ProducePacketName [11:59:44]name=ofd_packets/00049321 [11:59:44]NVStorageDeleteData [11:59:44]Write to MH i2c: 01 00 00 56 98 EE [11:59:44]Write i2c OK [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: 01 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: 01 07 00 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: 01 07 00 56 98 00 00 00 00 00 F5 0C F6 [11:59:44]RasterBufferAndPrint [11:59:44]line [11:59:44]line [11:59:44]line [11:59:44]line [11:59:44]line [11:59:44]written 0, free lines is 3323 [11:59:44]MH_Cut [11:59:44]Write to MH i2c: D1 01 00 5D 98 01 C7 [11:59:44]Write i2c OK [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: D1 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: D1 01 00 [11:59:44]MH_I2C_Read... [11:59:44]Read from MH i2c: D1 01 00 5D 98 00 C6 [11:59:44]Write to MH i2c: 01 00 00 5E 98 F6 [11:59:44]Write i2c OK [11:59:44]MH_I2C_Read... [11:59:44]OFD Sender: No OFD packet to send [11:59:45]*** Cut start [11:59:45]*** Partial cut [11:59:45]*** CUTSNS_PIN = 1 [11:59:45]*** CUTSNS_PIN = 0 [11:59:45]*** Brake cut motor [11:59:45]Read from MH i2c: 01 [11:59:45]MH_I2C_Read... [11:59:45]*** Stop cut motor [11:59:45]*** Cut end [11:59:45]Read from MH i2c: 01 07 00 [11:59:45]MH_I2C_Read... [11:59:45]Read from MH i2c: 01 07 00 5E 98 00 00 00 00 00 FF 0F 0B [11:59:45]process_action close_receipt done [11:59:45]requested_data is exist [11:59:45]produce_requested_data [11:59:45]requested_item fm.sn is exist - process it [11:59:45]wFMCommunicate request_size=4 [11:59:45]MH_SAM_APDU [11:59:45]CAPDU: 80 11 00 00 [11:59:45]Write to MH i2c: E2 08 00 5F 98 80 11 00 00 00 00 00 00 71 [11:59:45]Write i2c OK [11:59:45]MH_I2C_Read... [11:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:45]Read from MH i2c: E2 [11:59:45]MH_I2C_Read... [11:59:45]Read from MH i2c: E2 17 00 [11:59:45]MH_I2C_Read... [11:59:45]Read from MH i2c: E2 17 00 5F 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BE [11:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:59:45]wFMCommunicate OK [11:59:45]requested_item fd.num is exist - process it [11:59:45]SAM_PROTO_GetFieldsCounters [11:59:45]wFMCommunicate request_size=4 [11:59:45]MH_SAM_APDU [11:59:45]CAPDU: 80 13 00 00 [11:59:45]Write to MH i2c: E2 08 00 60 98 80 13 00 00 00 00 00 00 74 [11:59:45]Write i2c OK [11:59:45]MH_I2C_Read... [11:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:45]Read from MH i2c: E2 [11:59:45]MH_I2C_Read... [11:59:45]Read from MH i2c: E2 62 00 [11:59:45]MH_I2C_Read... [11:59:45]Read from MH i2c: E2 62 00 60 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A9 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [11:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 A9 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:45]wFMCommunicate OK [11:59:45]SAM_PROTO_GetFieldsCounters done [11:59:45]requested_item shift.num is exist - process it [11:59:45]requested_item shift.opened is exist - process it [11:59:45]req_shift_opened [11:59:45]FM_GetShiftState [11:59:45]SAM_PROTO_GetShiftState [11:59:45]wFMCommunicate request_size=4 [11:59:45]MH_SAM_APDU [11:59:45]CAPDU: 80 13 01 00 [11:59:45]Write to MH i2c: E2 08 00 61 98 80 13 01 00 00 00 00 00 76 [11:59:45]Write i2c OK [11:59:45]MH_I2C_Read... [11:59:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:46]Read from MH i2c: E2 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 0E 00 [11:59:46]MH_I2C_Read... [11:59:46]Read from MH i2c: E2 0E 00 61 98 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 CC [11:59:46]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [11:59:46]wFMCommunicate OK [11:59:46]SAM_PROTO_GetShiftState done [11:59:46]FM_GetShiftState done [11:59:46]req_shift_opened done [11:59:46]requested_item shift.open_date is exist - process it [11:59:46]req_shift_open_date [11:59:46]req_shift_open_date done [11:59:46]produce_requested_data done [11:59:46]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49321,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [11:59:46]process_action_free close_receipt [11:59:46]json_value_free [11:59:46]json_value_free done [11:59:46]process_json_proto returns [11:59:46]Send response to host [11:59:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49321,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [11:59:46]free response buf [11:59:46]execute_script done [11:59:46]execute_script returns [11:59:46]free content buf [11:59:46]Sock 7.Close socket [11:59:46]Sock 7.Thread stoped [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:45]OFD Sender: No OFD packet to send [12:01:50]OFD Sender: No OFD packet to send [12:01:55]OFD Sender: No OFD packet to send [12:02:00]OFD Sender: No OFD packet to send [12:02:05]OFD Sender: No OFD packet to send [12:02:10]OFD Sender: No OFD packet to send [12:02:15]OFD Sender: No OFD packet to send [12:02:20]OFD Sender: No OFD packet to send [12:02:25]OFD Sender: No OFD packet to send [12:02:30]OFD Sender: No OFD packet to send [12:02:35]OFD Sender: No OFD packet to send [12:02:40]OFD Sender: No OFD packet to send [12:02:45]OFD Sender: No OFD packet to send [12:02:50]OFD Sender: No OFD packet to send [12:02:55]OFD Sender: No OFD packet to send [12:03:00]OFD Sender: No OFD packet to send [12:03:05]OFD Sender: No OFD packet to send [12:03:10]OFD Sender: No OFD packet to send [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:02]accept exits with 9 [12:06:02]New connection [12:06:02]New thread 3066670436 created [12:06:02]Thread 3066813796 joined [12:06:02]Waiting for new connection... [12:06:02] Sock 9.Parse request [12:06:02]Sock 9.Check first char [12:06:02]Sock 9.First char is OK [12:06:02]request: POST /json_proto HTTP/1.0 [12:06:02]Method: POST [12:06:02]URL: /json_proto [12:06:02]Method is POST - this is cgi request [12:06:02]url: /json_proto [12:06:02]query_string will be loaded in cgi processing [12:06:02]execute_cgi json_proto POST (null) [12:06:02]execute_cgi path=json_proto method=POST [12:06:02]POST find Content-Length [12:06:02]Host: 172.17.56.67:8080 [12:06:02]Content-Length: 682 [12:06:02]Content-Type: application/json [12:06:02] [12:06:02]POST finish read [12:06:02]Found Content-Length = 682 [12:06:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 24.880, "sum" : 1500.26, "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" ] } } [12:06:02]execute_script... [12:06:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 24.880, "sum" : 1500.26, "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" ] } } [12:06:02]POST & json_proto [12:06:02]process_json_proto [12:06:02]json parsed OK: [12:06:02]protocol is kg_v1.0 [12:06:02]action value=close_receipt [12:06:02]process_action close_receipt [12:06:02]cmd_close_receipt [12:06:02]MH_GetDate [12:06:02]Write to MH i2c: F0 00 00 62 98 E9 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: F0 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: F0 09 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: F0 09 00 62 98 00 C2 37 BA 65 26 5D 9E 65 90 [12:06:02]GetLastDocTimeStamp 1706702405 [12:06:02]current date 1706702786 [12:06:02]FM_GetShiftState [12:06:02]SAM_PROTO_GetShiftState [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 13 01 00 [12:06:02]Write to MH i2c: E2 08 00 63 98 80 13 01 00 00 00 00 00 78 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 0E 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 0E 00 63 98 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 CE [12:06:02]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:06:02]wFMCommunicate OK [12:06:02]SAM_PROTO_GetShiftState done [12:06:02]FM_GetShiftState done [12:06:02]opened in 1706659486 [12:06:02]opened+sec_in_day 1706745886 [12:06:02]quantity*price = 150026 [12:06:02]sum+1 = 150027 [12:06:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 47 31.01.2024 12:06 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49322 ФПД: 273685803607496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T120626&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49322&fm=273685803607496&tin=02508201610067®Number=0000000000092723&sum=150000 [12:06:03]StoreToDocumentArchive [12:06:03]shift 247 fd 49322 [12:06:03]save to /storage/0247/doc_00049322 [12:06:03]save last doc name /storage/0247/doc_00049322 to /storage/kkm_last_doc_name [12:06:03]save OK [12:06:03]Clear old archive folders... [12:06:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:03]tlvbuf is 013B88B0 [12:06:03]SAM_PROTO_ClearQueue [12:06:03]wFMCommunicate request_size=4 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 09 00 00 [12:06:03]Write to MH i2c: E2 08 00 70 98 80 09 00 00 00 00 00 00 7A [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 70 98 00 90 00 7C [12:06:03]RAPDU: 90 00 [12:06:03]wFMCommunicate OK [12:06:03]SAM_PROTO_ClearQueue done [12:06:03]KKMCreateOFDPacket [12:06:03]OFDProtocolAddRootSTLVToBuf [12:06:03]FM_MakeSignedData [12:06:03]FM_MakeSignedData [12:06:03]SAM_PROTO_SignData [12:06:03]wFMCommunicate request_size=4 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 0D 01 02 [12:06:03]Write to MH i2c: E2 08 00 71 98 80 0D 01 02 00 00 00 00 82 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 71 98 00 90 00 7D [12:06:03]RAPDU: 90 00 [12:06:03]wFMCommunicate OK [12:06:03]wFMCommunicate request_size=255 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 61 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 0A 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 2F 00 00 00 F4 03 04 00 C2 37 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AA C0 00 00 35 04 06 00 F8 [12:06:03]Write to MH i2c: E2 02 01 72 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 61 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 0A 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 2F 00 00 00 F4 03 04 00 C2 37 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AA C0 00 00 35 04 06 00 F8 00 00 D5 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 72 98 00 90 00 7E [12:06:03]RAPDU: 90 00 [12:06:03]wFMCommunicate OK [12:06:03]wFMCommunicate request_size=10 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 0D 02 02 05 EA 71 1A A5 C8 [12:06:03]Write to MH i2c: E2 0D 00 73 98 80 0D 02 02 05 00 EA 71 1A A5 C8 00 00 71 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 03 00 73 98 00 90 00 7F [12:06:03]RAPDU: 90 00 [12:06:03]wFMCommunicate OK [12:06:03]wFMCommunicate request_size=4 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 0D 03 02 [12:06:03]Write to MH i2c: E2 08 00 74 98 80 0D 03 02 00 00 00 00 87 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 0B 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 0B 00 74 98 00 F3 A1 3E 21 71 45 87 43 90 00 FB [12:06:03]RAPDU: F3 A1 3E 21 71 45 87 43 90 00 [12:06:03]wFMCommunicate OK [12:06:03]SAM_PROTO_SignData done [12:06:03]FM_MakeSignedData done [12:06:03]CreateOFDProtocolMessage [12:06:03]wFMCommunicate request_size=4 [12:06:03]MH_SAM_APDU [12:06:03]CAPDU: 80 11 00 00 [12:06:03]Write to MH i2c: E2 08 00 75 98 80 11 00 00 00 00 00 00 87 [12:06:03]Write i2c OK [12:06:03]MH_I2C_Read... [12:06:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:03]Read from MH i2c: E2 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 17 00 [12:06:03]MH_I2C_Read... [12:06:03]Read from MH i2c: E2 17 00 75 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D4 [12:06:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:06:03]wFMCommunicate OK [12:06:03]CreateOFDProtocolMessage done [12:06:03]OFDSenderStorePacket 49322 [12:06:03]StoreOFDPacket docnum=49322 [12:06:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6F C5 07 01 DA 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 61 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 0A 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 2F 00 00 00 F4 03 04 00 C2 37 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AA C0 00 00 35 04 06 00 F8 EA 71 1A A5 C8 F3 A1 3E 21 71 45 87 43 [12:06:03]CheckFolder [12:06:03]dirname=/storage/ofd_packets [12:06:03]CheckFolder done [12:06:03]ProducePacketName [12:06:03]name=ofd_packets/00049322 [12:06:03]NVStorageSaveData ofd_packets/00049322 [12:06:03]File name is /storage/ofd_packets/00049322 [12:06:03]Write 301 bytes [12:06:03]NVStorageSaveData done [12:06:03]OFDSenderStorePacket done [12:06:03]KKMCreateOFDPacket done [12:06:03]NVStorageSaveData kkm_last_timestamp [12:06:03]File name is /storage/kkm_last_timestamp [12:06:03]Write 4 bytes [12:06:03]NVStorageSaveData done [12:06:03]ExternCall_PrintAddStr [12:06:03]wPrintStart [12:06:03]Write to MH i2c: 01 00 00 76 98 0E [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 76 98 00 00 00 00 00 FF 0F 23 [12:06:03]RasterBufferAndPrint [12:06:03]line Счет N : (1)216425 [12:06:03]line ИНН: 02508201610067 [12:06:03]line Контрольно-Кассовый Чек [12:06:03]line ПРОДАЖА [12:06:03]line ТРК (МРК, ГНК) : 22 [12:06:03]line Товар: 2710124130 [12:06:03]line Аи-92-К-5 [12:06:03]line 24.880 * 60.30 [12:06:03]line = 1500.26 [12:06:03]line НДС 12% НСП 1% [12:06:03]line > о реализуемом товаре [12:06:03]line ОКРУГЛЕНИЕ: -0.26 [12:06:03]line ИТОГО: 1500.00 [12:06:03]line Внесено: 1500.00 [12:06:03]line СДАЧА: 0.00 [12:06:03]line НСП 1% : 13.28 [12:06:03]line НДС 12% : 159.32 [12:06:03]line Наличными: 1500.00 [12:06:03]line Безнал.: 0.00 [12:06:03]line Место: АЗС № 102 "Партнер Нефть" [12:06:03]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:06:03]line СНО: Общий режим [12:06:03]line Чек 47 31.01.2024 12:06 [12:06:03]line Смена: 247 ФФД: 1.0 [12:06:03]line ЗНМ: 0300000040 [12:06:03]line РНМ: 0000000000092723 [12:06:03]line Версия ККМ: 001 [12:06:03]line ФМ: 0000000000875060 [12:06:03]line ФД: 49322 [12:06:03]line ФПД: 273685803607496 [12:06:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T120626&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49322&fm=273685803607496&tin=02508201610067®Number=0000000000092723&sum=150000 [12:06:04]OFD Sender: Processing packet 49322 [packets to send 12, broken 11] [12:06:04]ProducePacketName [12:06:04]name=ofd_packets/00049322 [12:06:04]OFD Sender: To server: pG, [12:06:04]CommunicateWithHost lk.salyk.kg:30040 [12:06:04]ConnectInit lk.salyk.kg [12:06:04]written 0, free lines is 4095 [12:06:04]Connected sock=10 [12:06:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6F C5 07 01 DA 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 61 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 0A 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 2F 00 00 00 F4 03 04 00 C2 37 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AA C0 00 00 35 04 06 00 F8 EA 71 1A A5 C8 F3 A1 3E 21 71 45 87 43 [12:06:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 60 AA 47 00 6D 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AA C0 00 00 F4 03 04 00 B4 E3 B9 65 B6 04 01 00 00 1E 68 96 A8 CA 24 89 34 [12:06:04]CommunicateWithHost err = 0 [12:06:04]CheckOFDResponse [12:06:04]1017 (14) - 77093643461234 [12:06:04]1041 (16) - 0000000000875060 [12:06:04]1040 (4) - 49322 [12:06:04]1012 (4) - 31.01.2024 06:07 [12:06:04]1206 (1) - 0 [12:06:04]OFD Sender: Remove packet 49322 [12:06:04]ProducePacketName [12:06:04]name=ofd_packets/00049322 [12:06:04]NVStorageDeleteData [12:06:04]Write to MH i2c: 01 00 00 A1 98 39 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: 01 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: 01 07 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: 01 07 00 A1 98 00 00 00 00 00 F6 0C 42 [12:06:04]RasterBufferAndPrint [12:06:04]line [12:06:04]line [12:06:04]line [12:06:04]line [12:06:04]line [12:06:04]written 0, free lines is 3324 [12:06:04]MH_Cut [12:06:04]Write to MH i2c: D1 01 00 A8 98 01 12 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: D1 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: D1 01 00 [12:06:04]MH_I2C_Read... [12:06:04]Read from MH i2c: D1 01 00 A8 98 00 11 [12:06:04]Write to MH i2c: 01 00 00 A9 98 41 [12:06:04]Write i2c OK [12:06:04]MH_I2C_Read... [12:06:05]OFD Sender: No OFD packet to send [12:06:05]*** Cut start [12:06:05]*** Partial cut [12:06:05]*** CUTSNS_PIN = 1 [12:06:05]*** CUTSNS_PIN = 0 [12:06:05]*** Brake cut motor [12:06:05]Read from MH i2c: 01 [12:06:06]MH_I2C_Read... [12:06:06]*** Stop cut motor [12:06:06]*** Cut end [12:06:06]Read from MH i2c: 01 07 00 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: 01 07 00 A9 98 00 00 00 00 00 FF 0F 56 [12:06:06]process_action close_receipt done [12:06:06]requested_data is exist [12:06:06]produce_requested_data [12:06:06]requested_item fm.sn is exist - process it [12:06:06]wFMCommunicate request_size=4 [12:06:06]MH_SAM_APDU [12:06:06]CAPDU: 80 11 00 00 [12:06:06]Write to MH i2c: E2 08 00 AA 98 80 11 00 00 00 00 00 00 BC [12:06:06]Write i2c OK [12:06:06]MH_I2C_Read... [12:06:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:06]Read from MH i2c: E2 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: E2 17 00 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: E2 17 00 AA 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 09 [12:06:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:06:06]wFMCommunicate OK [12:06:06]requested_item fd.num is exist - process it [12:06:06]SAM_PROTO_GetFieldsCounters [12:06:06]wFMCommunicate request_size=4 [12:06:06]MH_SAM_APDU [12:06:06]CAPDU: 80 13 00 00 [12:06:06]Write to MH i2c: E2 08 00 AB 98 80 13 00 00 00 00 00 00 BF [12:06:06]Write i2c OK [12:06:06]MH_I2C_Read... [12:06:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:06]Read from MH i2c: E2 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: E2 62 00 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: E2 62 00 AB 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 AA C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [12:06: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 AA C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:06]wFMCommunicate OK [12:06:06]SAM_PROTO_GetFieldsCounters done [12:06:06]requested_item shift.num is exist - process it [12:06:06]requested_item shift.opened is exist - process it [12:06:06]req_shift_opened [12:06:06]FM_GetShiftState [12:06:06]SAM_PROTO_GetShiftState [12:06:06]wFMCommunicate request_size=4 [12:06:06]MH_SAM_APDU [12:06:06]CAPDU: 80 13 01 00 [12:06:06]Write to MH i2c: E2 08 00 AC 98 80 13 01 00 00 00 00 00 C1 [12:06:06]Write i2c OK [12:06:06]MH_I2C_Read... [12:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:06]Read from MH i2c: E2 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: E2 0E 00 [12:06:06]MH_I2C_Read... [12:06:06]Read from MH i2c: E2 0E 00 AC 98 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 17 [12:06:06]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:06:06]wFMCommunicate OK [12:06:06]SAM_PROTO_GetShiftState done [12:06:06]FM_GetShiftState done [12:06:06]req_shift_opened done [12:06:06]requested_item shift.open_date is exist - process it [12:06:06]req_shift_open_date [12:06:06]req_shift_open_date done [12:06:06]produce_requested_data done [12:06:06]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49322,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [12:06:06]process_action_free close_receipt [12:06:06]json_value_free [12:06:06]json_value_free done [12:06:06]process_json_proto returns [12:06:06]Send response to host [12:06:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49322,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [12:06:06]free response buf [12:06:06]execute_script done [12:06:06]execute_script returns [12:06:06]free content buf [12:06:06]Sock 9.Close socket [12:06:06]Sock 9.Thread stoped [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:46]accept exits with 7 [12:11:46]New connection [12:11:46]New thread 3066813796 created [12:11:46]Thread 3066670436 joined [12:11:46]Waiting for new connection... [12:11:46] Sock 7.Parse request [12:11:46]Sock 7.Check first char [12:11:46]Sock 7.First char is OK [12:11:46]request: POST /json_proto HTTP/1.0 [12:11:46]Method: POST [12:11:46]URL: /json_proto [12:11:46]Method is POST - this is cgi request [12:11:46]url: /json_proto [12:11:46]query_string will be loaded in cgi processing [12:11:46]execute_cgi json_proto POST (null) [12:11:46]execute_cgi path=json_proto method=POST [12:11:46]POST find Content-Length [12:11:46]Host: 172.17.56.67:8080 [12:11:46]Content-Length: 677 [12:11:46]Content-Type: application/json [12:11:46] [12:11:46]POST finish read [12:11:46]Found Content-Length = 677 [12:11:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "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:11:46]execute_script... [12:11: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)216426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "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:11:46]POST & json_proto [12:11:46]process_json_proto [12:11:46]json parsed OK: [12:11:46]protocol is kg_v1.0 [12:11:46]action value=close_receipt [12:11:46]process_action close_receipt [12:11:46]cmd_close_receipt [12:11:46]MH_GetDate [12:11:46]Write to MH i2c: F0 00 00 AD 98 34 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: F0 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: F0 09 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: F0 09 00 AD 98 00 19 39 BA 65 26 5D 9E 65 34 [12:11:46]GetLastDocTimeStamp 1706702786 [12:11:46]current date 1706703129 [12:11:46]FM_GetShiftState [12:11:46]SAM_PROTO_GetShiftState [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 13 01 00 [12:11:46]Write to MH i2c: E2 08 00 AE 98 80 13 01 00 00 00 00 00 C3 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 0E 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 0E 00 AE 98 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 19 [12:11:46]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:11:46]wFMCommunicate OK [12:11:46]SAM_PROTO_GetShiftState done [12:11:46]FM_GetShiftState done [12:11:46]opened in 1706659486 [12:11:46]opened+sec_in_day 1706745886 [12:11:46]quantity*price = 60058 [12:11:46]sum+1 = 60060 [12:11:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 48 31.01.2024 12:12 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49323 ФПД: 53410592622509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T121210&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49323&fm=53410592622509&tin=02508201610067®Number=0000000000092723&sum=60000 [12:11:47]StoreToDocumentArchive [12:11:47]shift 247 fd 49323 [12:11:47]save to /storage/0247/doc_00049323 [12:11:47]save last doc name /storage/0247/doc_00049323 to /storage/kkm_last_doc_name [12:11:47]save OK [12:11:47]Clear old archive folders... [12:11:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:47]tlvbuf is 0144F6F0 [12:11:47]SAM_PROTO_ClearQueue [12:11:47]wFMCommunicate request_size=4 [12:11:47]MH_SAM_APDU [12:11:47]CAPDU: 80 09 00 00 [12:11:47]Write to MH i2c: E2 08 00 BB 98 80 09 00 00 00 00 00 00 C5 [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:47]Read from MH i2c: E2 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 03 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 03 00 BB 98 00 90 00 C7 [12:11:47]RAPDU: 90 00 [12:11:47]wFMCommunicate OK [12:11:47]SAM_PROTO_ClearQueue done [12:11:47]KKMCreateOFDPacket [12:11:47]OFDProtocolAddRootSTLVToBuf [12:11:47]FM_MakeSignedData [12:11:47]FM_MakeSignedData [12:11:47]SAM_PROTO_SignData [12:11:47]wFMCommunicate request_size=4 [12:11:47]MH_SAM_APDU [12:11:47]CAPDU: 80 0D 01 02 [12:11:47]Write to MH i2c: E2 08 00 BC 98 80 0D 01 02 00 00 00 00 CD [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:47]Read from MH i2c: E2 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 03 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 03 00 BC 98 00 90 00 C8 [12:11:47]RAPDU: 90 00 [12:11:47]wFMCommunicate OK [12:11:47]wFMCommunicate request_size=255 [12:11:47]MH_SAM_APDU [12:11:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 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 30 00 00 00 F4 03 04 00 1A 39 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AB C0 00 00 35 04 06 00 30 [12:11:47]Write to MH i2c: E2 02 01 BD 98 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 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 30 00 00 00 F4 03 04 00 1A 39 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AB C0 00 00 35 04 06 00 30 00 00 E6 [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:47]Read from MH i2c: E2 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 03 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 03 00 BD 98 00 90 00 C9 [12:11:47]RAPDU: 90 00 [12:11:47]wFMCommunicate OK [12:11:47]wFMCommunicate request_size=10 [12:11:47]MH_SAM_APDU [12:11:47]CAPDU: 80 0D 02 02 05 93 9F 66 87 AD [12:11:47]Write to MH i2c: E2 0D 00 BE 98 80 0D 02 02 05 00 93 9F 66 87 AD 00 00 A6 [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:47]Read from MH i2c: E2 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 03 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 03 00 BE 98 00 90 00 CA [12:11:47]RAPDU: 90 00 [12:11:47]wFMCommunicate OK [12:11:47]wFMCommunicate request_size=4 [12:11:47]MH_SAM_APDU [12:11:47]CAPDU: 80 0D 03 02 [12:11:47]Write to MH i2c: E2 08 00 BF 98 80 0D 03 02 00 00 00 00 D2 [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:47]Read from MH i2c: E2 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 0B 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 0B 00 BF 98 00 1B 0C C6 D0 0B FE D8 4D 90 00 BE [12:11:47]RAPDU: 1B 0C C6 D0 0B FE D8 4D 90 00 [12:11:47]wFMCommunicate OK [12:11:47]SAM_PROTO_SignData done [12:11:47]FM_MakeSignedData done [12:11:47]CreateOFDProtocolMessage [12:11:47]wFMCommunicate request_size=4 [12:11:47]MH_SAM_APDU [12:11:47]CAPDU: 80 11 00 00 [12:11:47]Write to MH i2c: E2 08 00 C0 98 80 11 00 00 00 00 00 00 D2 [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:47]Read from MH i2c: E2 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 17 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 17 00 C0 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1F [12:11:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:11:47]wFMCommunicate OK [12:11:47]CreateOFDProtocolMessage done [12:11:47]OFDSenderStorePacket 49323 [12:11:47]StoreOFDPacket docnum=49323 [12:11:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 72 D7 07 01 EB A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 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 30 00 00 00 F4 03 04 00 1A 39 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AB C0 00 00 35 04 06 00 30 93 9F 66 87 AD 1B 0C C6 D0 0B FE D8 4D [12:11:47]CheckFolder [12:11:47]dirname=/storage/ofd_packets [12:11:47]CheckFolder done [12:11:47]ProducePacketName [12:11:47]name=ofd_packets/00049323 [12:11:47]NVStorageSaveData ofd_packets/00049323 [12:11:47]File name is /storage/ofd_packets/00049323 [12:11:47]Write 301 bytes [12:11:47]NVStorageSaveData done [12:11:47]OFDSenderStorePacket done [12:11:47]KKMCreateOFDPacket done [12:11:47]NVStorageSaveData kkm_last_timestamp [12:11:47]File name is /storage/kkm_last_timestamp [12:11:47]Write 4 bytes [12:11:47]NVStorageSaveData done [12:11:47]ExternCall_PrintAddStr [12:11:47]wPrintStart [12:11:47]Write to MH i2c: 01 00 00 C1 98 59 [12:11:47]Write i2c OK [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: 01 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: 01 07 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: 01 07 00 C1 98 00 00 00 00 00 FF 0F 6E [12:11:47]RasterBufferAndPrint [12:11:47]line Счет N : (1)216426 [12:11:47]line ИНН: 02508201610067 [12:11:47]line Контрольно-Кассовый Чек [12:11:47]line ПРОДАЖА [12:11:47]line ТРК (МРК, ГНК) : 22 [12:11:47]line Товар: 2710124130 [12:11:47]line Аи-92-К-5 [12:11:47]line 9.960 * 60.30 [12:11:47]line = 600.59 [12:11:47]line НДС 12% НСП 1% [12:11:47]line > о реализуемом товаре [12:11:47]line ОКРУГЛЕНИЕ: -0.59 [12:11:47]line ИТОГО: 600.00 [12:11:47]line Внесено: 600.00 [12:11:47]line СДАЧА: 0.00 [12:11:47]line НСП 1% : 5.31 [12:11:47]line НДС 12% : 63.78 [12:11:47]line Наличными: 600.00 [12:11:47]line Безнал.: 0.00 [12:11:47]line Место: АЗС № 102 "Партнер Нефть" [12:11:47]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:11:47]line СНО: Общий режим [12:11:47]line Чек 48 31.01.2024 12:12 [12:11:47]line Смена: 247 ФФД: 1.0 [12:11:47]line ЗНМ: 0300000040 [12:11:47]line РНМ: 0000000000092723 [12:11:47]line Версия ККМ: 001 [12:11:47]line ФМ: 0000000000875060 [12:11:47]line ФД: 49323 [12:11:47]line ФПД: 53410592622509 [12:11:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T121210&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49323&fm=53410592622509&tin=02508201610067®Number=0000000000092723&sum=60000 [12:11:48]OFD Sender: Processing packet 49323 [packets to send 12, broken 11] [12:11:48]ProducePacketName [12:11:48]name=ofd_packets/00049323 [12:11:48]OFD Sender: To server: pG, [12:11:48]CommunicateWithHost lk.salyk.kg:30040 [12:11:48]ConnectInit lk.salyk.kg [12:11:48]written 0, free lines is 4095 [12:11:48]Connected sock=10 [12:11:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 72 D7 07 01 EB A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 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 30 00 00 00 F4 03 04 00 1A 39 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AB C0 00 00 35 04 06 00 30 93 9F 66 87 AD 1B 0C C6 D0 0B FE D8 4D [12:11:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 A4 B6 47 00 E0 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 35 30 36 30 10 04 04 00 AB C0 00 00 F4 03 04 00 0C E5 B9 65 B6 04 01 00 00 1D 28 6C C4 55 66 84 B5 [12:11:48]CommunicateWithHost err = 0 [12:11:48]CheckOFDResponse [12:11:48]1017 (14) - 77093643461234 [12:11:48]1041 (16) - 0000000000875060 [12:11:48]1040 (4) - 49323 [12:11:48]1012 (4) - 31.01.2024 06:13 [12:11:48]1206 (1) - 0 [12:11:48]OFD Sender: Remove packet 49323 [12:11:48]ProducePacketName [12:11:48]name=ofd_packets/00049323 [12:11:48]NVStorageDeleteData [12:11:48]Write to MH i2c: 01 00 00 EC 98 84 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: 01 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: 01 07 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: 01 07 00 EC 98 00 00 00 00 00 EC 0C 83 [12:11:48]RasterBufferAndPrint [12:11:48]line [12:11:48]line [12:11:48]line [12:11:48]line [12:11:48]line [12:11:48]written 0, free lines is 3314 [12:11:48]MH_Cut [12:11:48]Write to MH i2c: D1 01 00 F3 98 01 5D [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: D1 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: D1 01 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: D1 01 00 F3 98 00 5C [12:11:48]Write to MH i2c: 01 00 00 F4 98 8C [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:49]OFD Sender: No OFD packet to send [12:11:49]*** Cut start [12:11:49]*** Partial cut [12:11:49]*** CUTSNS_PIN = 1 [12:11:49]*** CUTSNS_PIN = 0 [12:11:49]*** Brake cut motor [12:11:49]Read from MH i2c: 01 [12:11:49]MH_I2C_Read... [12:11:49]*** Stop cut motor [12:11:49]*** Cut end [12:11:49]Read from MH i2c: 01 07 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: 01 07 00 F4 98 00 00 00 00 00 FF 0F A1 [12:11:49]process_action close_receipt done [12:11:49]requested_data is exist [12:11:49]produce_requested_data [12:11:49]requested_item fm.sn is exist - process it [12:11:49]wFMCommunicate request_size=4 [12:11:49]MH_SAM_APDU [12:11:49]CAPDU: 80 11 00 00 [12:11:49]Write to MH i2c: E2 08 00 F5 98 80 11 00 00 00 00 00 00 07 [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:50]Read from MH i2c: E2 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 17 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 17 00 F5 98 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 54 [12:11:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:11:50]wFMCommunicate OK [12:11:50]requested_item fd.num is exist - process it [12:11:50]SAM_PROTO_GetFieldsCounters [12:11:50]wFMCommunicate request_size=4 [12:11:50]MH_SAM_APDU [12:11:50]CAPDU: 80 13 00 00 [12:11:50]Write to MH i2c: E2 08 00 F6 98 80 13 00 00 00 00 00 00 0A [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:50]Read from MH i2c: E2 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 62 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 62 00 F6 98 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 AB C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [12:11: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 AB C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:50]wFMCommunicate OK [12:11:50]SAM_PROTO_GetFieldsCounters done [12:11:50]requested_item shift.num is exist - process it [12:11:50]requested_item shift.opened is exist - process it [12:11:50]req_shift_opened [12:11:50]FM_GetShiftState [12:11:50]SAM_PROTO_GetShiftState [12:11:50]wFMCommunicate request_size=4 [12:11:50]MH_SAM_APDU [12:11:50]CAPDU: 80 13 01 00 [12:11:50]Write to MH i2c: E2 08 00 F7 98 80 13 01 00 00 00 00 00 0C [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:50]Read from MH i2c: E2 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 0E 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 0E 00 F7 98 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 62 [12:11:50]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:11:50]wFMCommunicate OK [12:11:50]SAM_PROTO_GetShiftState done [12:11:50]FM_GetShiftState done [12:11:50]req_shift_opened done [12:11:50]requested_item shift.open_date is exist - process it [12:11:50]req_shift_open_date [12:11:50]req_shift_open_date done [12:11:50]produce_requested_data done [12:11:50]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49323,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [12:11:50]process_action_free close_receipt [12:11:50]json_value_free [12:11:50]json_value_free done [12:11:50]process_json_proto returns [12:11:50]Send response to host [12:11:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49323,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [12:11:50]free response buf [12:11:50]execute_script done [12:11:50]execute_script returns [12:11:50]free content buf [12:11:50]Sock 7.Close socket [12:11:50]Sock 7.Thread stoped [12:11:54]OFD Sender: No OFD packet to send [12:11:59]OFD Sender: No OFD packet to send [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:14]OFD Sender: No OFD packet to send [12:12:19]OFD Sender: No OFD packet to send [12:12:24]OFD Sender: No OFD packet to send [12:12:29]OFD Sender: No OFD packet to send [12:12:34]OFD Sender: No OFD packet to send [12:12:39]OFD Sender: No OFD packet to send [12:12:44]OFD Sender: No OFD packet to send [12:12:49]OFD Sender: No OFD packet to send [12:12:54]OFD Sender: No OFD packet to send [12:12:59]OFD Sender: No OFD packet to send [12:13:04]OFD Sender: No OFD packet to send [12:13:08]accept exits with 9 [12:13:08]New connection [12:13:08]New thread 3066670436 created [12:13:08]Thread 3066813796 joined [12:13:08]Waiting for new connection... [12:13:08] Sock 9.Parse request [12:13:08]Sock 9.Check first char [12:13:08]Sock 9.First char is OK [12:13:08]request: POST /json_proto HTTP/1.0 [12:13:08]Method: POST [12:13:08]URL: /json_proto [12:13:08]Method is POST - this is cgi request [12:13:08]url: /json_proto [12:13:08]query_string will be loaded in cgi processing [12:13:08]execute_cgi json_proto POST (null) [12:13:08]execute_cgi path=json_proto method=POST [12:13:08]POST find Content-Length [12:13:08]Host: 172.17.56.67:8080 [12:13:08]Content-Length: 677 [12:13:08]Content-Type: application/json [12:13:08] [12:13:08]POST finish read [12:13:08]Found Content-Length = 677 [12:13:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.470, "sum" : 390.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:08]execute_script... [12:13:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.470, "sum" : 390.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 390.00, "total" : 390.00, "payments": [ { "type": 0, "sum" : 390.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:08]POST & json_proto [12:13:08]process_json_proto [12:13:08]json parsed OK: [12:13:08]protocol is kg_v1.0 [12:13:08]action value=close_receipt [12:13:08]process_action close_receipt [12:13:08]cmd_close_receipt [12:13:08]MH_GetDate [12:13:08]Write to MH i2c: F0 00 00 F8 98 7F [12:13:08]Write i2c OK [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: F0 [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: F0 09 00 [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: F0 09 00 F8 98 00 6C 39 BA 65 26 5D 9E 65 D2 [12:13:08]GetLastDocTimeStamp 1706703130 [12:13:08]current date 1706703212 [12:13:08]FM_GetShiftState [12:13:08]SAM_PROTO_GetShiftState [12:13:08]wFMCommunicate request_size=4 [12:13:08]MH_SAM_APDU [12:13:08]CAPDU: 80 13 01 00 [12:13:08]Write to MH i2c: E2 08 00 F9 98 80 13 01 00 00 00 00 00 0E [12:13:08]Write i2c OK [12:13:08]MH_I2C_Read... [12:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:08]Read from MH i2c: E2 [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: E2 0E 00 [12:13:08]MH_I2C_Read... [12:13:08]Read from MH i2c: E2 0E 00 F9 98 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 64 [12:13:08]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:13:08]wFMCommunicate OK [12:13:08]SAM_PROTO_GetShiftState done [12:13:08]FM_GetShiftState done [12:13:08]opened in 1706659486 [12:13:08]opened+sec_in_day 1706745886 [12:13:08]quantity*price = 39014 [12:13:08]sum+1 = 39015 [12:13:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 390.00 Внесено: 390.00 СДАЧА: 0.00 НСП 1% : 3.45 НДС 12% : 41.43 Наличными: 390.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 49 31.01.2024 12:13 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49324 ФПД: 76737042879349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T121332&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49324&fm=76737042879349&tin=02508201610067®Number=0000000000092723&sum=39000 [12:13:09]StoreToDocumentArchive [12:13:09]shift 247 fd 49324 [12:13:09]save to /storage/0247/doc_00049324 [12:13:09]save last doc name /storage/0247/doc_00049324 to /storage/kkm_last_doc_name [12:13:09]save OK [12:13:09]Clear old archive folders... [12:13:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:09]tlvbuf is 0139F500 [12:13:09]SAM_PROTO_ClearQueue [12:13:09]wFMCommunicate request_size=4 [12:13:09]MH_SAM_APDU [12:13:09]CAPDU: 80 09 00 00 [12:13:09]Write to MH i2c: E2 08 00 06 99 80 09 00 00 00 00 00 00 11 [12:13:09]Write i2c OK [12:13:09]MH_I2C_Read... [12:13:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:09]Read from MH i2c: E2 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 03 00 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 03 00 06 99 00 90 00 13 [12:13:09]RAPDU: 90 00 [12:13:09]wFMCommunicate OK [12:13:09]SAM_PROTO_ClearQueue done [12:13:09]KKMCreateOFDPacket [12:13:09]OFDProtocolAddRootSTLVToBuf [12:13:09]FM_MakeSignedData [12:13:09]FM_MakeSignedData [12:13:09]SAM_PROTO_SignData [12:13:09]wFMCommunicate request_size=4 [12:13:09]MH_SAM_APDU [12:13:09]CAPDU: 80 0D 01 02 [12:13:09]Write to MH i2c: E2 08 00 07 99 80 0D 01 02 00 00 00 00 19 [12:13:09]Write i2c OK [12:13:09]MH_I2C_Read... [12:13:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:09]Read from MH i2c: E2 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 03 00 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 03 00 07 99 00 90 00 14 [12:13:09]RAPDU: 90 00 [12:13:09]wFMCommunicate OK [12:13:09]wFMCommunicate request_size=255 [12:13:09]MH_SAM_APDU [12:13:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 66 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 6C 39 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AC C0 00 00 35 04 06 00 45 [12:13:09]Write to MH i2c: E2 02 01 08 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 66 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 6C 39 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AC C0 00 00 35 04 06 00 45 00 00 33 [12:13:09]Write i2c OK [12:13:09]MH_I2C_Read... [12:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:09]Read from MH i2c: E2 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 03 00 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 03 00 08 99 00 90 00 15 [12:13:09]RAPDU: 90 00 [12:13:09]wFMCommunicate OK [12:13:09]wFMCommunicate request_size=10 [12:13:09]MH_SAM_APDU [12:13:09]CAPDU: 80 0D 02 02 05 CA BC 2E 93 75 [12:13:09]Write to MH i2c: E2 0D 00 09 99 80 0D 02 02 05 00 CA BC 2E 93 75 00 00 E2 [12:13:09]Write i2c OK [12:13:09]MH_I2C_Read... [12:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:09]Read from MH i2c: E2 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 03 00 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 03 00 09 99 00 90 00 16 [12:13:09]RAPDU: 90 00 [12:13:09]wFMCommunicate OK [12:13:09]wFMCommunicate request_size=4 [12:13:09]MH_SAM_APDU [12:13:09]CAPDU: 80 0D 03 02 [12:13:09]Write to MH i2c: E2 08 00 0A 99 80 0D 03 02 00 00 00 00 1E [12:13:09]Write i2c OK [12:13:09]MH_I2C_Read... [12:13:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:09]Read from MH i2c: E2 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 0B 00 [12:13:09]MH_I2C_Read... [12:13:09]Read from MH i2c: E2 0B 00 0A 99 00 D3 83 09 3F D7 4E 77 68 90 00 C1 [12:13:09]RAPDU: D3 83 09 3F D7 4E 77 68 90 00 [12:13:09]wFMCommunicate OK [12:13:09]SAM_PROTO_SignData done [12:13:09]FM_MakeSignedData done [12:13:09]CreateOFDProtocolMessage [12:13:09]wFMCommunicate request_size=4 [12:13:09]MH_SAM_APDU [12:13:09]CAPDU: 80 11 00 00 [12:13:09]Write to MH i2c: E2 08 00 0B 99 80 11 00 00 00 00 00 00 1E [12:13:09]Write i2c OK [12:13:09]MH_I2C_Read... [12:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:10]Read from MH i2c: E2 [12:13:10]MH_I2C_Read... [12:13:10]Read from MH i2c: E2 17 00 [12:13:10]MH_I2C_Read... [12:13:10]Read from MH i2c: E2 17 00 0B 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6B [12:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:13:10]wFMCommunicate OK [12:13:10]CreateOFDProtocolMessage done [12:13:10]OFDSenderStorePacket 49324 [12:13:10]StoreOFDPacket docnum=49324 [12:13:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E2 DB 07 01 02 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 66 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 6C 39 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AC C0 00 00 35 04 06 00 45 CA BC 2E 93 75 D3 83 09 3F D7 4E 77 68 [12:13:10]CheckFolder [12:13:10]dirname=/storage/ofd_packets [12:13:10]CheckFolder done [12:13:10]ProducePacketName [12:13:10]name=ofd_packets/00049324 [12:13:10]NVStorageSaveData ofd_packets/00049324 [12:13:10]File name is /storage/ofd_packets/00049324 [12:13:10]Write 301 bytes [12:13:10]NVStorageSaveData done [12:13:10]OFDSenderStorePacket done [12:13:10]KKMCreateOFDPacket done [12:13:10]NVStorageSaveData kkm_last_timestamp [12:13:10]File name is /storage/kkm_last_timestamp [12:13:10]Write 4 bytes [12:13:10]NVStorageSaveData done [12:13:10]ExternCall_PrintAddStr [12:13:10]wPrintStart [12:13:10]Write to MH i2c: 01 00 00 0C 99 A5 [12:13:10]Write i2c OK [12:13:10]MH_I2C_Read... [12:13:10]Read from MH i2c: 01 [12:13:10]MH_I2C_Read... [12:13:10]Read from MH i2c: 01 07 00 [12:13:10]MH_I2C_Read... [12:13:10]Read from MH i2c: 01 07 00 0C 99 00 00 00 00 00 FF 0F BA [12:13:10]RasterBufferAndPrint [12:13:10]line Счет N : (1)216427 [12:13:10]line ИНН: 02508201610067 [12:13:10]line Контрольно-Кассовый Чек [12:13:10]line ПРОДАЖА [12:13:10]line ТРК (МРК, ГНК) : 12 [12:13:10]line Товар: 2710124130 [12:13:10]line Аи-92-К-5 [12:13:10]line 6.470 * 60.30 [12:13:10]line = 390.14 [12:13:10]line НДС 12% НСП 1% [12:13:10]line > о реализуемом товаре [12:13:10]line ОКРУГЛЕНИЕ: -0.14 [12:13:10]line ИТОГО: 390.00 [12:13:10]line Внесено: 390.00 [12:13:10]line СДАЧА: 0.00 [12:13:10]line НСП 1% : 3.45 [12:13:10]line НДС 12% : 41.43 [12:13:10]line Наличными: 390.00 [12:13:10]line Безнал.: 0.00 [12:13:10]line Место: АЗС № 102 "Партнер Нефть" [12:13:10]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:13:10]line СНО: Общий режим [12:13:10]line Чек 49 31.01.2024 12:13 [12:13:10]line Смена: 247 ФФД: 1.0 [12:13:10]line ЗНМ: 0300000040 [12:13:10]line РНМ: 0000000000092723 [12:13:10]line Версия ККМ: 001 [12:13:10]line ФМ: 0000000000875060 [12:13:10]line ФД: 49324 [12:13:10]line ФПД: 76737042879349 [12:13:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T121332&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49324&fm=76737042879349&tin=02508201610067®Number=0000000000092723&sum=39000 [12:13:10]OFD Sender: Processing packet 49324 [packets to send 12, broken 11] [12:13:10]ProducePacketName [12:13:10]name=ofd_packets/00049324 [12:13:10]OFD Sender: To server: pG, [12:13:10]CommunicateWithHost lk.salyk.kg:30040 [12:13:10]ConnectInit lk.salyk.kg [12:13:10]written 0, free lines is 4095 [12:13:10]Connected sock=10 [12:13:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E2 DB 07 01 02 CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 46 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 66 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 98 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 10 00 00 00 00 07 04 06 00 58 98 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 6C 39 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AC C0 00 00 35 04 06 00 45 CA BC 2E 93 75 D3 83 09 3F D7 4E 77 68 [12:13:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 DD F6 47 00 64 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 35 30 36 30 10 04 04 00 AC C0 00 00 F4 03 04 00 5E E5 B9 65 B6 04 01 00 00 EA BC 4E 5F BE F4 C9 06 [12:13:10]CommunicateWithHost err = 0 [12:13:10]CheckOFDResponse [12:13:10]1017 (14) - 77093643461234 [12:13:10]1041 (16) - 0000000000875060 [12:13:10]1040 (4) - 49324 [12:13:10]1012 (4) - 31.01.2024 06:14 [12:13:10]1206 (1) - 0 [12:13:10]OFD Sender: Remove packet 49324 [12:13:10]ProducePacketName [12:13:10]name=ofd_packets/00049324 [12:13:10]NVStorageDeleteData [12:13:10]Write to MH i2c: 01 00 00 37 99 D0 [12:13:10]Write i2c OK [12:13:10]MH_I2C_Read... [12:13:10]Read from MH i2c: 01 [12:13:10]MH_I2C_Read... [12:13:10]Read from MH i2c: 01 07 00 [12:13:10]MH_I2C_Read... [12:13:10]Read from MH i2c: 01 07 00 37 99 00 00 00 00 00 E6 0C C9 [12:13:10]RasterBufferAndPrint [12:13:10]line [12:13:10]line [12:13:10]line [12:13:10]line [12:13:10]line [12:13:10]written 0, free lines is 3308 [12:13:10]MH_Cut [12:13:10]Write to MH i2c: D1 01 00 3E 99 01 A9 [12:13:10]Write i2c OK [12:13:10]MH_I2C_Read... [12:13:10]Read from MH i2c: D1 [12:13:10]MH_I2C_Read... [12:13:10]Read from MH i2c: D1 01 00 [12:13:10]MH_I2C_Read... [12:13:10]Read from MH i2c: D1 01 00 3E 99 00 A8 [12:13:10]Write to MH i2c: 01 00 00 3F 99 D8 [12:13:10]Write i2c OK [12:13:10]MH_I2C_Read... [12:13:11]OFD Sender: No OFD packet to send [12:13:11]*** Cut start [12:13:11]*** Partial cut [12:13:11]*** CUTSNS_PIN = 1 [12:13:11]*** CUTSNS_PIN = 0 [12:13:11]*** Brake cut motor [12:13:12]Read from MH i2c: 01 [12:13:12]MH_I2C_Read... [12:13:12]*** Stop cut motor [12:13:12]*** Cut end [12:13:12]Read from MH i2c: 01 07 00 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: 01 07 00 3F 99 00 00 00 00 00 FF 0F ED [12:13:12]process_action close_receipt done [12:13:12]requested_data is exist [12:13:12]produce_requested_data [12:13:12]requested_item fm.sn is exist - process it [12:13:12]wFMCommunicate request_size=4 [12:13:12]MH_SAM_APDU [12:13:12]CAPDU: 80 11 00 00 [12:13:12]Write to MH i2c: E2 08 00 40 99 80 11 00 00 00 00 00 00 53 [12:13:12]Write i2c OK [12:13:12]MH_I2C_Read... [12:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:12]Read from MH i2c: E2 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: E2 17 00 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: E2 17 00 40 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A0 [12:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:13:12]wFMCommunicate OK [12:13:12]requested_item fd.num is exist - process it [12:13:12]SAM_PROTO_GetFieldsCounters [12:13:12]wFMCommunicate request_size=4 [12:13:12]MH_SAM_APDU [12:13:12]CAPDU: 80 13 00 00 [12:13:12]Write to MH i2c: E2 08 00 41 99 80 13 00 00 00 00 00 00 56 [12:13:12]Write i2c OK [12:13:12]MH_I2C_Read... [12:13:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:12]Read from MH i2c: E2 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: E2 62 00 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: E2 62 00 41 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 AC C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [12:13: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 AC C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:12]wFMCommunicate OK [12:13:12]SAM_PROTO_GetFieldsCounters done [12:13:12]requested_item shift.num is exist - process it [12:13:12]requested_item shift.opened is exist - process it [12:13:12]req_shift_opened [12:13:12]FM_GetShiftState [12:13:12]SAM_PROTO_GetShiftState [12:13:12]wFMCommunicate request_size=4 [12:13:12]MH_SAM_APDU [12:13:12]CAPDU: 80 13 01 00 [12:13:12]Write to MH i2c: E2 08 00 42 99 80 13 01 00 00 00 00 00 58 [12:13:12]Write i2c OK [12:13:12]MH_I2C_Read... [12:13:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:12]Read from MH i2c: E2 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: E2 0E 00 [12:13:12]MH_I2C_Read... [12:13:12]Read from MH i2c: E2 0E 00 42 99 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 AE [12:13:12]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:13:12]wFMCommunicate OK [12:13:12]SAM_PROTO_GetShiftState done [12:13:12]FM_GetShiftState done [12:13:12]req_shift_opened done [12:13:12]requested_item shift.open_date is exist - process it [12:13:12]req_shift_open_date [12:13:12]req_shift_open_date done [12:13:12]produce_requested_data done [12:13:12]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49324,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [12:13:12]process_action_free close_receipt [12:13:12]json_value_free [12:13:12]json_value_free done [12:13:12]process_json_proto returns [12:13:12]Send response to host [12:13:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49324,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [12:13:12]free response buf [12:13:12]execute_script done [12:13:12]execute_script returns [12:13:12]free content buf [12:13:12]Sock 9.Close socket [12:13:12]Sock 9.Thread stoped [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:54]accept exits with 7 [12:17:54]New connection [12:17:54]New thread 3066813796 created [12:17:54]Thread 3066670436 joined [12:17:54]Waiting for new connection... [12:17:54] Sock 7.Parse request [12:17:54]Sock 7.Check first char [12:17:54]Sock 7.First char is OK [12:17:54]request: POST /json_proto HTTP/1.0 [12:17:54]Method: POST [12:17:54]URL: /json_proto [12:17:54]Method is POST - this is cgi request [12:17:54]url: /json_proto [12:17:54]query_string will be loaded in cgi processing [12:17:54]execute_cgi json_proto POST (null) [12:17:54]execute_cgi path=json_proto method=POST [12:17:54]POST find Content-Length [12:17:54]Host: 172.17.56.67:8080 [12:17:54]Content-Length: 677 [12:17:54]Content-Type: application/json [12:17:54] [12:17:54]POST finish read [12:17:54]Found Content-Length = 677 [12:17:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:17:54]execute_script... [12:17: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)216428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:17:54]POST & json_proto [12:17:54]process_json_proto [12:17:54]json parsed OK: [12:17:54]protocol is kg_v1.0 [12:17:54]action value=close_receipt [12:17:54]process_action close_receipt [12:17:54]cmd_close_receipt [12:17:54]MH_GetDate [12:17:54]Write to MH i2c: F0 00 00 43 99 CB [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: F0 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: F0 09 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: F0 09 00 43 99 00 89 3A BA 65 26 5D 9E 65 3C [12:17:54]GetLastDocTimeStamp 1706703212 [12:17:54]current date 1706703497 [12:17:54]FM_GetShiftState [12:17:54]SAM_PROTO_GetShiftState [12:17:54]wFMCommunicate request_size=4 [12:17:54]MH_SAM_APDU [12:17:54]CAPDU: 80 13 01 00 [12:17:54]Write to MH i2c: E2 08 00 44 99 80 13 01 00 00 00 00 00 5A [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:54]Read from MH i2c: E2 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: E2 0E 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: E2 0E 00 44 99 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 B0 [12:17:54]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:17:54]wFMCommunicate OK [12:17:54]SAM_PROTO_GetShiftState done [12:17:54]FM_GetShiftState done [12:17:54]opened in 1706659486 [12:17:54]opened+sec_in_day 1706745886 [12:17:54]quantity*price = 50049 [12:17:54]sum+1 = 50050 [12:17:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 50 31.01.2024 12:18 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49325 ФПД: 226539846298294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T121817&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49325&fm=226539846298294&tin=02508201610067®Number=0000000000092723&sum=50000 [12:17:55]StoreToDocumentArchive [12:17:55]shift 247 fd 49325 [12:17:55]save to /storage/0247/doc_00049325 [12:17:55]save last doc name /storage/0247/doc_00049325 to /storage/kkm_last_doc_name [12:17:55]save OK [12:17:55]Clear old archive folders... [12:17:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:55]tlvbuf is B6EB8970 [12:17:55]SAM_PROTO_ClearQueue [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 09 00 00 [12:17:55]Write to MH i2c: E2 08 00 51 99 80 09 00 00 00 00 00 00 5C [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 51 99 00 90 00 5E [12:17:55]RAPDU: 90 00 [12:17:55]wFMCommunicate OK [12:17:55]SAM_PROTO_ClearQueue done [12:17:55]KKMCreateOFDPacket [12:17:55]OFDProtocolAddRootSTLVToBuf [12:17:55]FM_MakeSignedData [12:17:55]FM_MakeSignedData [12:17:55]SAM_PROTO_SignData [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 0D 01 02 [12:17:55]Write to MH i2c: E2 08 00 52 99 80 0D 01 02 00 00 00 00 64 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 52 99 00 90 00 5F [12:17:55]RAPDU: 90 00 [12:17:55]wFMCommunicate OK [12:17:55]wFMCommunicate request_size=255 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 89 3A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AD C0 00 00 35 04 06 00 CE [12:17:55]Write to MH i2c: E2 02 01 53 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 89 3A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AD C0 00 00 35 04 06 00 CE 00 00 DA [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 53 99 00 90 00 60 [12:17:55]RAPDU: 90 00 [12:17:55]wFMCommunicate OK [12:17:55]wFMCommunicate request_size=10 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 0D 02 02 05 09 6B 10 EA B6 [12:17:55]Write to MH i2c: E2 0D 00 54 99 80 0D 02 02 05 00 09 6B 10 EA B6 00 00 95 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 54 99 00 90 00 61 [12:17:55]RAPDU: 90 00 [12:17:55]wFMCommunicate OK [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 0D 03 02 [12:17:55]Write to MH i2c: E2 08 00 55 99 80 0D 03 02 00 00 00 00 69 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 0B 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 0B 00 55 99 00 AE 6C 8E B8 8B A4 25 AC 90 00 CA [12:17:55]RAPDU: AE 6C 8E B8 8B A4 25 AC 90 00 [12:17:55]wFMCommunicate OK [12:17:55]SAM_PROTO_SignData done [12:17:55]FM_MakeSignedData done [12:17:55]CreateOFDProtocolMessage [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 11 00 00 [12:17:55]Write to MH i2c: E2 08 00 56 99 80 11 00 00 00 00 00 00 69 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 17 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 17 00 56 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B6 [12:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:17:55]wFMCommunicate OK [12:17:55]CreateOFDProtocolMessage done [12:17:55]OFDSenderStorePacket 49325 [12:17:55]StoreOFDPacket docnum=49325 [12:17:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 44 BB 07 01 CE A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 89 3A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AD C0 00 00 35 04 06 00 CE 09 6B 10 EA B6 AE 6C 8E B8 8B A4 25 AC [12:17:55]CheckFolder [12:17:55]dirname=/storage/ofd_packets [12:17:55]CheckFolder done [12:17:55]ProducePacketName [12:17:55]name=ofd_packets/00049325 [12:17:55]NVStorageSaveData ofd_packets/00049325 [12:17:55]File name is /storage/ofd_packets/00049325 [12:17:55]Write 301 bytes [12:17:55]NVStorageSaveData done [12:17:55]OFDSenderStorePacket done [12:17:55]KKMCreateOFDPacket done [12:17:55]NVStorageSaveData kkm_last_timestamp [12:17:55]File name is /storage/kkm_last_timestamp [12:17:55]Write 4 bytes [12:17:55]NVStorageSaveData done [12:17:55]ExternCall_PrintAddStr [12:17:55]wPrintStart [12:17:55]Write to MH i2c: 01 00 00 57 99 F0 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: 01 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: 01 07 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: 01 07 00 57 99 00 00 00 00 00 FF 0F 05 [12:17:55]RasterBufferAndPrint [12:17:55]line Счет N : (1)216428 [12:17:55]line ИНН: 02508201610067 [12:17:55]line Контрольно-Кассовый Чек [12:17:55]line ПРОДАЖА [12:17:55]line ТРК (МРК, ГНК) : 12 [12:17:55]line Товар: 2710124130 [12:17:55]line Аи-92-К-5 [12:17:55]line 8.300 * 60.30 [12:17:55]line = 500.49 [12:17:55]line НДС 12% НСП 1% [12:17:55]line > о реализуемом товаре [12:17:55]line ОКРУГЛЕНИЕ: -0.49 [12:17:55]line ИТОГО: 500.00 [12:17:55]line Внесено: 500.00 [12:17:55]line СДАЧА: 0.00 [12:17:55]line НСП 1% : 4.43 [12:17:55]line НДС 12% : 53.15 [12:17:55]line Наличными: 500.00 [12:17:55]line Безнал.: 0.00 [12:17:55]line Место: АЗС № 102 "Партнер Нефть" [12:17:55]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:17:55]line СНО: Общий режим [12:17:55]line Чек 50 31.01.2024 12:18 [12:17:55]line Смена: 247 ФФД: 1.0 [12:17:55]line ЗНМ: 0300000040 [12:17:55]line РНМ: 0000000000092723 [12:17:55]line Версия ККМ: 001 [12:17:55]line ФМ: 0000000000875060 [12:17:55]line ФД: 49325 [12:17:55]line ФПД: 226539846298294 [12:17:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T121817&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49325&fm=226539846298294&tin=02508201610067®Number=0000000000092723&sum=50000 [12:17:56]OFD Sender: Processing packet 49325 [packets to send 12, broken 11] [12:17:56]ProducePacketName [12:17:56]name=ofd_packets/00049325 [12:17:56]OFD Sender: To server: pG, [12:17:56]CommunicateWithHost lk.salyk.kg:30040 [12:17:56]ConnectInit lk.salyk.kg [12:17:56]written 0, free lines is 4095 [12:17:56]Connected sock=10 [12:17:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 44 BB 07 01 CE A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 89 3A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AD C0 00 00 35 04 06 00 CE 09 6B 10 EA B6 AE 6C 8E B8 8B A4 25 AC [12:17:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 EB 9A 47 00 F7 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 35 30 36 30 10 04 04 00 AD C0 00 00 F4 03 04 00 7C E6 B9 65 B6 04 01 00 00 93 AB 99 9B 73 A2 26 B0 [12:17:56]CommunicateWithHost err = 0 [12:17:56]CheckOFDResponse [12:17:56]1017 (14) - 77093643461234 [12:17:56]1041 (16) - 0000000000875060 [12:17:56]1040 (4) - 49325 [12:17:56]1012 (4) - 31.01.2024 06:19 [12:17:56]1206 (1) - 0 [12:17:56]OFD Sender: Remove packet 49325 [12:17:56]ProducePacketName [12:17:56]name=ofd_packets/00049325 [12:17:56]NVStorageDeleteData [12:17:56]Write to MH i2c: 01 00 00 82 99 1B [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: 01 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: 01 07 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: 01 07 00 82 99 00 00 00 00 00 EC 0C 1A [12:17:56]RasterBufferAndPrint [12:17:56]line [12:17:56]line [12:17:56]line [12:17:56]line [12:17:56]line [12:17:56]written 0, free lines is 3314 [12:17:56]MH_Cut [12:17:56]Write to MH i2c: D1 01 00 89 99 01 F4 [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: D1 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: D1 01 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: D1 01 00 89 99 00 F3 [12:17:56]Write to MH i2c: 01 00 00 8A 99 23 [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]OFD Sender: No OFD packet to send [12:17:57]*** Cut start [12:17:57]*** Partial cut [12:17:57]*** CUTSNS_PIN = 1 [12:17:57]*** CUTSNS_PIN = 0 [12:17:57]*** Brake cut motor [12:17:57]Read from MH i2c: 01 [12:17:57]MH_I2C_Read... [12:17:57]*** Stop cut motor [12:17:57]*** Cut end [12:17:57]Read from MH i2c: 01 07 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: 01 07 00 8A 99 00 00 00 00 00 FF 0F 38 [12:17:57]process_action close_receipt done [12:17:57]requested_data is exist [12:17:57]produce_requested_data [12:17:57]requested_item fm.sn is exist - process it [12:17:57]wFMCommunicate request_size=4 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 11 00 00 [12:17:57]Write to MH i2c: E2 08 00 8B 99 80 11 00 00 00 00 00 00 9E [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 17 00 [12:17:57]MH_I2C_Read... [12:17:57]Read from MH i2c: E2 17 00 8B 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EB [12:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:17:57]wFMCommunicate OK [12:17:57]requested_item fd.num is exist - process it [12:17:57]SAM_PROTO_GetFieldsCounters [12:17:57]wFMCommunicate request_size=4 [12:17:57]MH_SAM_APDU [12:17:57]CAPDU: 80 13 00 00 [12:17:57]Write to MH i2c: E2 08 00 8C 99 80 13 00 00 00 00 00 00 A1 [12:17:57]Write i2c OK [12:17:57]MH_I2C_Read... [12:17:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:57]Read from MH i2c: E2 [12:17:57]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 62 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 62 00 8C 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 AD C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [12:17: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 AD C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:58]wFMCommunicate OK [12:17:58]SAM_PROTO_GetFieldsCounters done [12:17:58]requested_item shift.num is exist - process it [12:17:58]requested_item shift.opened is exist - process it [12:17:58]req_shift_opened [12:17:58]FM_GetShiftState [12:17:58]SAM_PROTO_GetShiftState [12:17:58]wFMCommunicate request_size=4 [12:17:58]MH_SAM_APDU [12:17:58]CAPDU: 80 13 01 00 [12:17:58]Write to MH i2c: E2 08 00 8D 99 80 13 01 00 00 00 00 00 A3 [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:58]Read from MH i2c: E2 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 0E 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 0E 00 8D 99 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 F9 [12:17:58]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:17:58]wFMCommunicate OK [12:17:58]SAM_PROTO_GetShiftState done [12:17:58]FM_GetShiftState done [12:17:58]req_shift_opened done [12:17:58]requested_item shift.open_date is exist - process it [12:17:58]req_shift_open_date [12:17:58]req_shift_open_date done [12:17:58]produce_requested_data done [12:17:58]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49325,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [12:17:58]process_action_free close_receipt [12:17:58]json_value_free [12:17:58]json_value_free done [12:17:58]process_json_proto returns [12:17:58]Send response to host [12:17:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49325,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [12:17:58]free response buf [12:17:58]execute_script done [12:17:58]execute_script returns [12:17:58]free content buf [12:17:58]Sock 7.Close socket [12:17:58]Sock 7.Thread stoped [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:12]OFD Sender: No OFD packet to send [12:23:17]OFD Sender: No OFD packet to send [12:23:22]OFD Sender: No OFD packet to send [12:23:27]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:17]accept exits with 9 [12:25:17]New connection [12:25:17]New thread 3066670436 created [12:25:17]Thread 3066813796 joined [12:25:17]Waiting for new connection... [12:25:17] Sock 9.Parse request [12:25:17]Sock 9.Check first char [12:25:17]Sock 9.First char is OK [12:25:17]request: POST /json_proto HTTP/1.0 [12:25:17]Method: POST [12:25:17]URL: /json_proto [12:25:17]Method is POST - this is cgi request [12:25:17]url: /json_proto [12:25:17]query_string will be loaded in cgi processing [12:25:17]execute_cgi json_proto POST (null) [12:25:17]execute_cgi path=json_proto method=POST [12:25:17]POST find Content-Length [12:25:17]Host: 172.17.56.67:8080 [12:25:17]Content-Length: 677 [12:25:17]Content-Type: application/json [12:25:17] [12:25:17]POST finish read [12:25:17]Found Content-Length = 677 [12:25:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:25:17]execute_script... [12:25: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)216429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:25:17]POST & json_proto [12:25:17]process_json_proto [12:25:17]json parsed OK: [12:25:17]protocol is kg_v1.0 [12:25:17]action value=close_receipt [12:25:17]process_action close_receipt [12:25:17]cmd_close_receipt [12:25:17]MH_GetDate [12:25:17]Write to MH i2c: F0 00 00 8E 99 16 [12:25:17]Write i2c OK [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: F0 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: F0 09 00 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: F0 09 00 8E 99 00 45 3C BA 65 26 5D 9E 65 45 [12:25:17]GetLastDocTimeStamp 1706703497 [12:25:17]current date 1706703941 [12:25:17]FM_GetShiftState [12:25:17]SAM_PROTO_GetShiftState [12:25:17]wFMCommunicate request_size=4 [12:25:17]MH_SAM_APDU [12:25:17]CAPDU: 80 13 01 00 [12:25:17]Write to MH i2c: E2 08 00 8F 99 80 13 01 00 00 00 00 00 A5 [12:25:17]Write i2c OK [12:25:17]MH_I2C_Read... [12:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:17]Read from MH i2c: E2 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 0E 00 [12:25:17]MH_I2C_Read... [12:25:17]Read from MH i2c: E2 0E 00 8F 99 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 FB [12:25:17]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:25:17]wFMCommunicate OK [12:25:17]SAM_PROTO_GetShiftState done [12:25:17]FM_GetShiftState done [12:25:17]opened in 1706659486 [12:25:17]opened+sec_in_day 1706745886 [12:25:17]quantity*price = 30029 [12:25:17]sum+1 = 30030 [12:25:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 51 31.01.2024 12:25 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49326 ФПД: 58775661747400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T122541&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49326&fm=58775661747400&tin=02508201610067®Number=0000000000092723&sum=30000 [12:25:18]StoreToDocumentArchive [12:25:18]shift 247 fd 49326 [12:25:18]save to /storage/0247/doc_00049326 [12:25:18]save last doc name /storage/0247/doc_00049326 to /storage/kkm_last_doc_name [12:25:18]save OK [12:25:18]Clear old archive folders... [12:25:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:18]tlvbuf is 01503820 [12:25:18]SAM_PROTO_ClearQueue [12:25:18]wFMCommunicate request_size=4 [12:25:18]MH_SAM_APDU [12:25:18]CAPDU: 80 09 00 00 [12:25:18]Write to MH i2c: E2 08 00 9C 99 80 09 00 00 00 00 00 00 A7 [12:25:18]Write i2c OK [12:25:18]MH_I2C_Read... [12:25:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:18]Read from MH i2c: E2 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: E2 03 00 [12:25:18]MH_I2C_Read... [12:25:18]Read from MH i2c: E2 03 00 9C 99 00 90 00 A9 [12:25:18]RAPDU: 90 00 [12:25:18]wFMCommunicate OK [12:25:18]SAM_PROTO_ClearQueue done [12:25:18]KKMCreateOFDPacket [12:25:18]OFDProtocolAddRootSTLVToBuf [12:25:18]FM_MakeSignedData [12:25:18]FM_MakeSignedData [12:25:18]SAM_PROTO_SignData [12:25:18]wFMCommunicate request_size=4 [12:25:18]MH_SAM_APDU [12:25:18]CAPDU: 80 0D 01 02 [12:25:18]Write to MH i2c: E2 08 00 9D 99 80 0D 01 02 00 00 00 00 AF [12:25:18]Write i2c OK [12:25:18]MH_I2C_Read... [12:25:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:19]Read from MH i2c: E2 [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: E2 03 00 [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: E2 03 00 9D 99 00 90 00 AA [12:25:19]RAPDU: 90 00 [12:25:19]wFMCommunicate OK [12:25:19]wFMCommunicate request_size=255 [12:25:19]MH_SAM_APDU [12:25:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 45 3C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AE C0 00 00 35 04 06 00 35 [12:25:19]Write to MH i2c: E2 02 01 9E 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 45 3C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AE C0 00 00 35 04 06 00 35 00 00 E2 [12:25:19]Write i2c OK [12:25:19]MH_I2C_Read... [12:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:19]Read from MH i2c: E2 [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: E2 03 00 [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: E2 03 00 9E 99 00 90 00 AB [12:25:19]RAPDU: 90 00 [12:25:19]wFMCommunicate OK [12:25:19]wFMCommunicate request_size=10 [12:25:19]MH_SAM_APDU [12:25:19]CAPDU: 80 0D 02 02 05 74 C6 70 9C C8 [12:25:19]Write to MH i2c: E2 0D 00 9F 99 80 0D 02 02 05 00 74 C6 70 9C C8 00 00 CA [12:25:19]Write i2c OK [12:25:19]MH_I2C_Read... [12:25:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:19]Read from MH i2c: E2 [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: E2 03 00 [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: E2 03 00 9F 99 00 90 00 AC [12:25:19]RAPDU: 90 00 [12:25:19]wFMCommunicate OK [12:25:19]wFMCommunicate request_size=4 [12:25:19]MH_SAM_APDU [12:25:19]CAPDU: 80 0D 03 02 [12:25:19]Write to MH i2c: E2 08 00 A0 99 80 0D 03 02 00 00 00 00 B4 [12:25:19]Write i2c OK [12:25:19]MH_I2C_Read... [12:25:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:19]Read from MH i2c: E2 [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: E2 0B 00 [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: E2 0B 00 A0 99 00 76 22 74 A6 88 5F 2F 98 90 00 15 [12:25:19]RAPDU: 76 22 74 A6 88 5F 2F 98 90 00 [12:25:19]wFMCommunicate OK [12:25:19]SAM_PROTO_SignData done [12:25:19]FM_MakeSignedData done [12:25:19]CreateOFDProtocolMessage [12:25:19]wFMCommunicate request_size=4 [12:25:19]MH_SAM_APDU [12:25:19]CAPDU: 80 11 00 00 [12:25:19]Write to MH i2c: E2 08 00 A1 99 80 11 00 00 00 00 00 00 B4 [12:25:19]Write i2c OK [12:25:19]MH_I2C_Read... [12:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:19]Read from MH i2c: E2 [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: E2 17 00 [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: E2 17 00 A1 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 01 [12:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:25:19]wFMCommunicate OK [12:25:19]CreateOFDProtocolMessage done [12:25:19]OFDSenderStorePacket 49326 [12:25:19]StoreOFDPacket docnum=49326 [12:25:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 3C EB 07 01 28 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 45 3C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AE C0 00 00 35 04 06 00 35 74 C6 70 9C C8 76 22 74 A6 88 5F 2F 98 [12:25:19]CheckFolder [12:25:19]dirname=/storage/ofd_packets [12:25:19]CheckFolder done [12:25:19]ProducePacketName [12:25:19]name=ofd_packets/00049326 [12:25:19]NVStorageSaveData ofd_packets/00049326 [12:25:19]File name is /storage/ofd_packets/00049326 [12:25:19]Write 301 bytes [12:25:19]NVStorageSaveData done [12:25:19]OFDSenderStorePacket done [12:25:19]KKMCreateOFDPacket done [12:25:19]NVStorageSaveData kkm_last_timestamp [12:25:19]File name is /storage/kkm_last_timestamp [12:25:19]Write 4 bytes [12:25:19]NVStorageSaveData done [12:25:19]ExternCall_PrintAddStr [12:25:19]wPrintStart [12:25:19]Write to MH i2c: 01 00 00 A2 99 3B [12:25:19]Write i2c OK [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: 01 [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: 01 07 00 [12:25:19]MH_I2C_Read... [12:25:19]Read from MH i2c: 01 07 00 A2 99 00 00 00 00 00 FF 0F 50 [12:25:19]RasterBufferAndPrint [12:25:19]line Счет N : (1)216429 [12:25:19]line ИНН: 02508201610067 [12:25:19]line Контрольно-Кассовый Чек [12:25:19]line ПРОДАЖА [12:25:19]line ТРК (МРК, ГНК) : 22 [12:25:19]line Товар: 2710124130 [12:25:19]line Аи-92-К-5 [12:25:19]line 4.980 * 60.30 [12:25:19]line = 300.29 [12:25:19]line НДС 12% НСП 1% [12:25:19]line > о реализуемом товаре [12:25:19]line ОКРУГЛЕНИЕ: -0.29 [12:25:19]line ИТОГО: 300.00 [12:25:19]line Внесено: 300.00 [12:25:19]line СДАЧА: 0.00 [12:25:19]line НСП 1% : 2.66 [12:25:19]line НДС 12% : 31.89 [12:25:19]line Наличными: 300.00 [12:25:19]line Безнал.: 0.00 [12:25:19]line Место: АЗС № 102 "Партнер Нефть" [12:25:19]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:25:19]line СНО: Общий режим [12:25:19]line Чек 51 31.01.2024 12:25 [12:25:19]line Смена: 247 ФФД: 1.0 [12:25:19]line ЗНМ: 0300000040 [12:25:19]line РНМ: 0000000000092723 [12:25:19]line Версия ККМ: 001 [12:25:19]line ФМ: 0000000000875060 [12:25:19]line ФД: 49326 [12:25:19]line ФПД: 58775661747400 [12:25:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T122541&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49326&fm=58775661747400&tin=02508201610067®Number=0000000000092723&sum=30000 [12:25:19]OFD Sender: Processing packet 49326 [packets to send 12, broken 11] [12:25:19]ProducePacketName [12:25:19]name=ofd_packets/00049326 [12:25:19]OFD Sender: To server: pG, [12:25:19]CommunicateWithHost lk.salyk.kg:30040 [12:25:19]ConnectInit lk.salyk.kg [12:25:19]written 0, free lines is 4095 [12:25:19]Connected sock=10 [12:25:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 3C EB 07 01 28 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 45 3C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AE C0 00 00 35 04 06 00 35 74 C6 70 9C C8 76 22 74 A6 88 5F 2F 98 [12:25:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 23 76 47 00 37 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 35 30 36 30 10 04 04 00 AE C0 00 00 F4 03 04 00 38 E8 B9 65 B6 04 01 00 00 29 24 DF 40 83 FB 9D E3 [12:25:20]CommunicateWithHost err = 0 [12:25:20]CheckOFDResponse [12:25:20]1017 (14) - 77093643461234 [12:25:20]1041 (16) - 0000000000875060 [12:25:20]1040 (4) - 49326 [12:25:20]1012 (4) - 31.01.2024 06:27 [12:25:20]1206 (1) - 0 [12:25:20]OFD Sender: Remove packet 49326 [12:25:20]ProducePacketName [12:25:20]name=ofd_packets/00049326 [12:25:20]NVStorageDeleteData [12:25:20]Write to MH i2c: 01 00 00 CD 99 66 [12:25:20]Write i2c OK [12:25:20]MH_I2C_Read... [12:25:20]Read from MH i2c: 01 [12:25:20]MH_I2C_Read... [12:25:20]Read from MH i2c: 01 07 00 [12:25:20]MH_I2C_Read... [12:25:20]Read from MH i2c: 01 07 00 CD 99 00 00 00 00 00 EF 0C 68 [12:25:20]RasterBufferAndPrint [12:25:20]line [12:25:20]line [12:25:20]line [12:25:20]line [12:25:20]line [12:25:20]written 0, free lines is 3317 [12:25:20]MH_Cut [12:25:20]Write to MH i2c: D1 01 00 D4 99 01 3F [12:25:20]Write i2c OK [12:25:20]MH_I2C_Read... [12:25:20]Read from MH i2c: D1 [12:25:20]MH_I2C_Read... [12:25:20]Read from MH i2c: D1 01 00 [12:25:20]MH_I2C_Read... [12:25:20]Read from MH i2c: D1 01 00 D4 99 00 3E [12:25:20]Write to MH i2c: 01 00 00 D5 99 6E [12:25:20]Write i2c OK [12:25:20]MH_I2C_Read... [12:25:20]OFD Sender: No OFD packet to send [12:25:20]*** Cut start [12:25:20]*** Partial cut [12:25:20]*** CUTSNS_PIN = 1 [12:25:20]*** CUTSNS_PIN = 0 [12:25:21]*** Brake cut motor [12:25:21]Read from MH i2c: 01 [12:25:21]MH_I2C_Read... [12:25:21]*** Stop cut motor [12:25:21]*** Cut end [12:25:21]Read from MH i2c: 01 07 00 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: 01 07 00 D5 99 00 00 00 00 00 FF 0F 83 [12:25:21]process_action close_receipt done [12:25:21]requested_data is exist [12:25:21]produce_requested_data [12:25:21]requested_item fm.sn is exist - process it [12:25:21]wFMCommunicate request_size=4 [12:25:21]MH_SAM_APDU [12:25:21]CAPDU: 80 11 00 00 [12:25:21]Write to MH i2c: E2 08 00 D6 99 80 11 00 00 00 00 00 00 E9 [12:25:21]Write i2c OK [12:25:21]MH_I2C_Read... [12:25:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:21]Read from MH i2c: E2 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: E2 17 00 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: E2 17 00 D6 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 36 [12:25:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:25:21]wFMCommunicate OK [12:25:21]requested_item fd.num is exist - process it [12:25:21]SAM_PROTO_GetFieldsCounters [12:25:21]wFMCommunicate request_size=4 [12:25:21]MH_SAM_APDU [12:25:21]CAPDU: 80 13 00 00 [12:25:21]Write to MH i2c: E2 08 00 D7 99 80 13 00 00 00 00 00 00 EC [12:25:21]Write i2c OK [12:25:21]MH_I2C_Read... [12:25:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:21]Read from MH i2c: E2 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: E2 62 00 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: E2 62 00 D7 99 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 AE C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [12:25: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 AE C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:21]wFMCommunicate OK [12:25:21]SAM_PROTO_GetFieldsCounters done [12:25:21]requested_item shift.num is exist - process it [12:25:21]requested_item shift.opened is exist - process it [12:25:21]req_shift_opened [12:25:21]FM_GetShiftState [12:25:21]SAM_PROTO_GetShiftState [12:25:21]wFMCommunicate request_size=4 [12:25:21]MH_SAM_APDU [12:25:21]CAPDU: 80 13 01 00 [12:25:21]Write to MH i2c: E2 08 00 D8 99 80 13 01 00 00 00 00 00 EE [12:25:21]Write i2c OK [12:25:21]MH_I2C_Read... [12:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:21]Read from MH i2c: E2 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: E2 0E 00 [12:25:21]MH_I2C_Read... [12:25:21]Read from MH i2c: E2 0E 00 D8 99 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 44 [12:25:21]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:25:21]wFMCommunicate OK [12:25:21]SAM_PROTO_GetShiftState done [12:25:21]FM_GetShiftState done [12:25:21]req_shift_opened done [12:25:21]requested_item shift.open_date is exist - process it [12:25:21]req_shift_open_date [12:25:21]req_shift_open_date done [12:25:21]produce_requested_data done [12:25:21]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49326,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [12:25:21]process_action_free close_receipt [12:25:21]json_value_free [12:25:21]json_value_free done [12:25:21]process_json_proto returns [12:25:21]Send response to host [12:25:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49326,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [12:25:21]free response buf [12:25:21]execute_script done [12:25:21]execute_script returns [12:25:21]free content buf [12:25:21]Sock 9.Close socket [12:25:21]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [12:26:30]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:25]OFD Sender: No OFD packet to send [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:28:00]OFD Sender: No OFD packet to send [12:28:05]OFD Sender: No OFD packet to send [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:31:56]accept exits with 7 [12:31:56]New connection [12:31:56]New thread 3066813796 created [12:31:56]Thread 3066670436 joined [12:31:56]Waiting for new connection... [12:31:56] Sock 7.Parse request [12:31:56]Sock 7.Check first char [12:31:56]Sock 7.First char is OK [12:31:56]request: POST /json_proto HTTP/1.0 [12:31:56]Method: POST [12:31:56]URL: /json_proto [12:31:56]Method is POST - this is cgi request [12:31:56]url: /json_proto [12:31:56]query_string will be loaded in cgi processing [12:31:56]execute_cgi json_proto POST (null) [12:31:56]execute_cgi path=json_proto method=POST [12:31:56]POST find Content-Length [12:31:56]Host: 172.17.56.67:8080 [12:31:56]Content-Length: 677 [12:31:56]Content-Type: application/json [12:31:56] [12:31:56]POST finish read [12:31:56]Found Content-Length = 677 [12:31:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:31:56]execute_script... [12:31: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)216430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:31:56]POST & json_proto [12:31:56]process_json_proto [12:31:56]json parsed OK: [12:31:56]protocol is kg_v1.0 [12:31:56]action value=close_receipt [12:31:56]process_action close_receipt [12:31:56]cmd_close_receipt [12:31:56]MH_GetDate [12:31:56]Write to MH i2c: F0 00 00 D9 99 61 [12:31:56]Write i2c OK [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: F0 [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: F0 09 00 [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: F0 09 00 D9 99 00 D4 3D BA 65 26 5D 9E 65 20 [12:31:56]GetLastDocTimeStamp 1706703941 [12:31:56]current date 1706704340 [12:31:56]FM_GetShiftState [12:31:56]SAM_PROTO_GetShiftState [12:31:56]wFMCommunicate request_size=4 [12:31:56]MH_SAM_APDU [12:31:56]CAPDU: 80 13 01 00 [12:31:56]Write to MH i2c: E2 08 00 DA 99 80 13 01 00 00 00 00 00 F0 [12:31:56]Write i2c OK [12:31:56]MH_I2C_Read... [12:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:56]Read from MH i2c: E2 [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: E2 0E 00 [12:31:56]MH_I2C_Read... [12:31:56]Read from MH i2c: E2 0E 00 DA 99 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 46 [12:31:56]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:31:56]wFMCommunicate OK [12:31:56]SAM_PROTO_GetShiftState done [12:31:56]FM_GetShiftState done [12:31:56]opened in 1706659486 [12:31:56]opened+sec_in_day 1706745886 [12:31:56]quantity*price = 30029 [12:31:56]sum+1 = 30030 [12:31:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 52 31.01.2024 12:32 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49327 ФПД: 90427564854338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T123220&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49327&fm=90427564854338&tin=02508201610067®Number=0000000000092723&sum=30000 [12:31:58]StoreToDocumentArchive [12:31:58]shift 247 fd 49327 [12:31:58]save to /storage/0247/doc_00049327 [12:31:58]save last doc name /storage/0247/doc_00049327 to /storage/kkm_last_doc_name [12:31:58]save OK [12:31:58]Clear old archive folders... [12:31:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:58]tlvbuf is B6F334A0 [12:31:58]SAM_PROTO_ClearQueue [12:31:58]wFMCommunicate request_size=4 [12:31:58]MH_SAM_APDU [12:31:58]CAPDU: 80 09 00 00 [12:31:58]Write to MH i2c: E2 08 00 E7 99 80 09 00 00 00 00 00 00 F2 [12:31:58]Write i2c OK [12:31:58]MH_I2C_Read... [12:31:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:58]Read from MH i2c: E2 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: E2 03 00 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: E2 03 00 E7 99 00 90 00 F4 [12:31:58]RAPDU: 90 00 [12:31:58]wFMCommunicate OK [12:31:58]SAM_PROTO_ClearQueue done [12:31:58]KKMCreateOFDPacket [12:31:58]OFDProtocolAddRootSTLVToBuf [12:31:58]FM_MakeSignedData [12:31:58]FM_MakeSignedData [12:31:58]SAM_PROTO_SignData [12:31:58]wFMCommunicate request_size=4 [12:31:58]MH_SAM_APDU [12:31:58]CAPDU: 80 0D 01 02 [12:31:58]Write to MH i2c: E2 08 00 E8 99 80 0D 01 02 00 00 00 00 FA [12:31:58]Write i2c OK [12:31:58]MH_I2C_Read... [12:31:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:58]Read from MH i2c: E2 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: E2 03 00 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: E2 03 00 E8 99 00 90 00 F5 [12:31:58]RAPDU: 90 00 [12:31:58]wFMCommunicate OK [12:31:58]wFMCommunicate request_size=255 [12:31:58]MH_SAM_APDU [12:31:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 D4 3D BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AF C0 00 00 35 04 06 00 52 [12:31:58]Write to MH i2c: E2 02 01 E9 99 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 D4 3D BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AF C0 00 00 35 04 06 00 52 00 00 DC [12:31:58]Write i2c OK [12:31:58]MH_I2C_Read... [12:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:58]Read from MH i2c: E2 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: E2 03 00 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: E2 03 00 E9 99 00 90 00 F6 [12:31:58]RAPDU: 90 00 [12:31:58]wFMCommunicate OK [12:31:58]wFMCommunicate request_size=10 [12:31:58]MH_SAM_APDU [12:31:58]CAPDU: 80 0D 02 02 05 3E 4E E1 8C 42 [12:31:58]Write to MH i2c: E2 0D 00 EA 99 80 0D 02 02 05 00 3E 4E E1 8C 42 00 00 42 [12:31:58]Write i2c OK [12:31:58]MH_I2C_Read... [12:31:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:58]Read from MH i2c: E2 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: E2 03 00 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: E2 03 00 EA 99 00 90 00 F7 [12:31:58]RAPDU: 90 00 [12:31:58]wFMCommunicate OK [12:31:58]wFMCommunicate request_size=4 [12:31:58]MH_SAM_APDU [12:31:58]CAPDU: 80 0D 03 02 [12:31:58]Write to MH i2c: E2 08 00 EB 99 80 0D 03 02 00 00 00 00 FF [12:31:58]Write i2c OK [12:31:58]MH_I2C_Read... [12:31:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:58]Read from MH i2c: E2 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: E2 0B 00 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: E2 0B 00 EB 99 00 AB A2 B2 A4 9A 1C 08 61 90 00 C2 [12:31:58]RAPDU: AB A2 B2 A4 9A 1C 08 61 90 00 [12:31:58]wFMCommunicate OK [12:31:58]SAM_PROTO_SignData done [12:31:58]FM_MakeSignedData done [12:31:58]CreateOFDProtocolMessage [12:31:58]wFMCommunicate request_size=4 [12:31:58]MH_SAM_APDU [12:31:58]CAPDU: 80 11 00 00 [12:31:58]Write to MH i2c: E2 08 00 EC 99 80 11 00 00 00 00 00 00 FF [12:31:58]Write i2c OK [12:31:58]MH_I2C_Read... [12:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:58]Read from MH i2c: E2 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: E2 17 00 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: E2 17 00 EC 99 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4C [12:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:31:58]wFMCommunicate OK [12:31:58]CreateOFDProtocolMessage done [12:31:58]OFDSenderStorePacket 49327 [12:31:58]StoreOFDPacket docnum=49327 [12:31:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 09 F5 07 01 FE D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 D4 3D BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AF C0 00 00 35 04 06 00 52 3E 4E E1 8C 42 AB A2 B2 A4 9A 1C 08 61 [12:31:58]CheckFolder [12:31:58]dirname=/storage/ofd_packets [12:31:58]CheckFolder done [12:31:58]ProducePacketName [12:31:58]name=ofd_packets/00049327 [12:31:58]NVStorageSaveData ofd_packets/00049327 [12:31:58]File name is /storage/ofd_packets/00049327 [12:31:58]Write 301 bytes [12:31:58]NVStorageSaveData done [12:31:58]OFDSenderStorePacket done [12:31:58]KKMCreateOFDPacket done [12:31:58]NVStorageSaveData kkm_last_timestamp [12:31:58]File name is /storage/kkm_last_timestamp [12:31:58]Write 4 bytes [12:31:58]NVStorageSaveData done [12:31:58]ExternCall_PrintAddStr [12:31:58]wPrintStart [12:31:58]Write to MH i2c: 01 00 00 ED 99 86 [12:31:58]Write i2c OK [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: 01 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: 01 07 00 [12:31:58]MH_I2C_Read... [12:31:58]Read from MH i2c: 01 07 00 ED 99 00 00 00 00 00 FF 0F 9B [12:31:58]RasterBufferAndPrint [12:31:58]line Счет N : (1)216430 [12:31:58]line ИНН: 02508201610067 [12:31:58]line Контрольно-Кассовый Чек [12:31:58]line ПРОДАЖА [12:31:58]line ТРК (МРК, ГНК) : 12 [12:31:58]line Товар: 2710124130 [12:31:58]line Аи-92-К-5 [12:31:58]line 4.980 * 60.30 [12:31:58]line = 300.29 [12:31:58]line НДС 12% НСП 1% [12:31:58]line > о реализуемом товаре [12:31:58]line ОКРУГЛЕНИЕ: -0.29 [12:31:58]line ИТОГО: 300.00 [12:31:58]line Внесено: 300.00 [12:31:58]line СДАЧА: 0.00 [12:31:58]line НСП 1% : 2.66 [12:31:58]line НДС 12% : 31.89 [12:31:58]line Наличными: 300.00 [12:31:58]line Безнал.: 0.00 [12:31:58]line Место: АЗС № 102 "Партнер Нефть" [12:31:58]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:31:58]line СНО: Общий режим [12:31:58]line Чек 52 31.01.2024 12:32 [12:31:58]line Смена: 247 ФФД: 1.0 [12:31:58]line ЗНМ: 0300000040 [12:31:58]line РНМ: 0000000000092723 [12:31:58]line Версия ККМ: 001 [12:31:58]line ФМ: 0000000000875060 [12:31:58]line ФД: 49327 [12:31:58]line ФПД: 90427564854338 [12:31:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T123220&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49327&fm=90427564854338&tin=02508201610067®Number=0000000000092723&sum=30000 [12:31:58]OFD Sender: Processing packet 49327 [packets to send 12, broken 11] [12:31:58]ProducePacketName [12:31:58]name=ofd_packets/00049327 [12:31:58]OFD Sender: To server: pG, [12:31:58]CommunicateWithHost lk.salyk.kg:30040 [12:31:58]ConnectInit lk.salyk.kg [12:31:58]written 0, free lines is 4095 [12:31:59]Connected sock=10 [12:31:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 09 F5 07 01 FE D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 D4 3D BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AF C0 00 00 35 04 06 00 52 3E 4E E1 8C 42 AB A2 B2 A4 9A 1C 08 61 [12:31:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 31 9B 47 00 94 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AF C0 00 00 F4 03 04 00 C7 E9 B9 65 B6 04 01 00 00 5B A7 FE 5F 08 95 A3 8A [12:31:59]CommunicateWithHost err = 0 [12:31:59]CheckOFDResponse [12:31:59]1017 (14) - 77093643461234 [12:31:59]1041 (16) - 0000000000875060 [12:31:59]1040 (4) - 49327 [12:31:59]1012 (4) - 31.01.2024 06:33 [12:31:59]1206 (1) - 0 [12:31:59]OFD Sender: Remove packet 49327 [12:31:59]ProducePacketName [12:31:59]name=ofd_packets/00049327 [12:31:59]NVStorageDeleteData [12:31:59]Write to MH i2c: 01 00 00 18 9A B2 [12:31:59]Write i2c OK [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: 01 [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: 01 07 00 [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: 01 07 00 18 9A 00 00 00 00 00 FA 0C BF [12:31:59]RasterBufferAndPrint [12:31:59]line [12:31:59]line [12:31:59]line [12:31:59]line [12:31:59]line [12:31:59]written 0, free lines is 3328 [12:31:59]MH_Cut [12:31:59]Write to MH i2c: D1 01 00 1F 9A 01 8B [12:31:59]Write i2c OK [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: D1 [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: D1 01 00 [12:31:59]MH_I2C_Read... [12:31:59]Read from MH i2c: D1 01 00 1F 9A 00 8A [12:31:59]Write to MH i2c: 01 00 00 20 9A BA [12:31:59]Write i2c OK [12:31:59]MH_I2C_Read... [12:31:59]OFD Sender: No OFD packet to send [12:32:00]*** Cut start [12:32:00]*** Partial cut [12:32:00]*** CUTSNS_PIN = 1 [12:32:00]*** CUTSNS_PIN = 0 [12:32:00]*** Brake cut motor [12:32:00]Read from MH i2c: 01 [12:32:00]MH_I2C_Read... [12:32:00]*** Stop cut motor [12:32:00]*** Cut end [12:32:00]Read from MH i2c: 01 07 00 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: 01 07 00 20 9A 00 00 00 00 00 FF 0F CF [12:32:00]process_action close_receipt done [12:32:00]requested_data is exist [12:32:00]produce_requested_data [12:32:00]requested_item fm.sn is exist - process it [12:32:00]wFMCommunicate request_size=4 [12:32:00]MH_SAM_APDU [12:32:00]CAPDU: 80 11 00 00 [12:32:00]Write to MH i2c: E2 08 00 21 9A 80 11 00 00 00 00 00 00 35 [12:32:00]Write i2c OK [12:32:00]MH_I2C_Read... [12:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:00]Read from MH i2c: E2 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: E2 17 00 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: E2 17 00 21 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 82 [12:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:32:00]wFMCommunicate OK [12:32:00]requested_item fd.num is exist - process it [12:32:00]SAM_PROTO_GetFieldsCounters [12:32:00]wFMCommunicate request_size=4 [12:32:00]MH_SAM_APDU [12:32:00]CAPDU: 80 13 00 00 [12:32:00]Write to MH i2c: E2 08 00 22 9A 80 13 00 00 00 00 00 00 38 [12:32:00]Write i2c OK [12:32:00]MH_I2C_Read... [12:32:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:00]Read from MH i2c: E2 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: E2 62 00 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: E2 62 00 22 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 AF C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [12:32: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 AF C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:00]wFMCommunicate OK [12:32:00]SAM_PROTO_GetFieldsCounters done [12:32:00]requested_item shift.num is exist - process it [12:32:00]requested_item shift.opened is exist - process it [12:32:00]req_shift_opened [12:32:00]FM_GetShiftState [12:32:00]SAM_PROTO_GetShiftState [12:32:00]wFMCommunicate request_size=4 [12:32:00]MH_SAM_APDU [12:32:00]CAPDU: 80 13 01 00 [12:32:00]Write to MH i2c: E2 08 00 23 9A 80 13 01 00 00 00 00 00 3A [12:32:00]Write i2c OK [12:32:00]MH_I2C_Read... [12:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:00]Read from MH i2c: E2 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: E2 0E 00 [12:32:00]MH_I2C_Read... [12:32:00]Read from MH i2c: E2 0E 00 23 9A 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 90 [12:32:00]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:32:00]wFMCommunicate OK [12:32:00]SAM_PROTO_GetShiftState done [12:32:00]FM_GetShiftState done [12:32:00]req_shift_opened done [12:32:00]requested_item shift.open_date is exist - process it [12:32:00]req_shift_open_date [12:32:00]req_shift_open_date done [12:32:00]produce_requested_data done [12:32:00]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49327,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [12:32:00]process_action_free close_receipt [12:32:00]json_value_free [12:32:00]json_value_free done [12:32:00]process_json_proto returns [12:32:00]Send response to host [12:32:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49327,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [12:32:00]free response buf [12:32:00]execute_script done [12:32:00]execute_script returns [12:32:00]free content buf [12:32:00]Sock 7.Close socket [12:32:00]Sock 7.Thread stoped [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:40]OFD Sender: No OFD packet to send [12:33:45]OFD Sender: No OFD packet to send [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [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:27]accept exits with 9 [12:40:27]New connection [12:40:27]New thread 3066670436 created [12:40:27]Thread 3066813796 joined [12:40:27]Waiting for new connection... [12:40:27] Sock 9.Parse request [12:40:27]Sock 9.Check first char [12:40:27]Sock 9.First char is OK [12:40:27]request: POST /json_proto HTTP/1.0 [12:40:27]Method: POST [12:40:27]URL: /json_proto [12:40:27]Method is POST - this is cgi request [12:40:27]url: /json_proto [12:40:27]query_string will be loaded in cgi processing [12:40:27]execute_cgi json_proto POST (null) [12:40:27]execute_cgi path=json_proto method=POST [12:40:27]POST find Content-Length [12:40:27]Host: 172.17.56.67:8080 [12:40:27]Content-Length: 674 [12:40:27]Content-Type: application/json [12:40:27] [12:40:27]POST finish read [12:40:27]Found Content-Length = 674 [12:40:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:27]execute_script... [12:40: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)216431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:40:27]POST & json_proto [12:40:27]process_json_proto [12:40:27]json parsed OK: [12:40:27]protocol is kg_v1.0 [12:40:27]action value=close_receipt [12:40:27]process_action close_receipt [12:40:27]cmd_close_receipt [12:40:27]MH_GetDate [12:40:27]Write to MH i2c: F0 00 00 24 9A AD [12:40:27]Write i2c OK [12:40:27]MH_I2C_Read... [12:40:27]Read from MH i2c: F0 [12:40:27]MH_I2C_Read... [12:40:27]Read from MH i2c: F0 09 00 [12:40:27]MH_I2C_Read... [12:40:27]Read from MH i2c: F0 09 00 24 9A 00 D3 3F BA 65 26 5D 9E 65 6D [12:40:27]GetLastDocTimeStamp 1706704340 [12:40:27]current date 1706704851 [12:40:27]FM_GetShiftState [12:40:27]SAM_PROTO_GetShiftState [12:40:27]wFMCommunicate request_size=4 [12:40:27]MH_SAM_APDU [12:40:27]CAPDU: 80 13 01 00 [12:40:27]Write to MH i2c: E2 08 00 25 9A 80 13 01 00 00 00 00 00 3C [12:40:27]Write i2c OK [12:40:27]MH_I2C_Read... [12:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:27]Read from MH i2c: E2 [12:40:27]MH_I2C_Read... [12:40:27]Read from MH i2c: E2 0E 00 [12:40:27]MH_I2C_Read... [12:40:27]Read from MH i2c: E2 0E 00 25 9A 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 92 [12:40:27]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:40:27]wFMCommunicate OK [12:40:27]SAM_PROTO_GetShiftState done [12:40:27]FM_GetShiftState done [12:40:27]opened in 1706659486 [12:40:27]opened+sec_in_day 1706745886 [12:40:27]quantity*price = 50048 [12:40:27]sum+1 = 50049 [12:40:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 53 31.01.2024 12:40 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49328 ФПД: 165554401125870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T124051&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49328&fm=165554401125870&tin=02508201610067®Number=0000000000092723&sum=50000 [12:40:28]StoreToDocumentArchive [12:40:28]shift 247 fd 49328 [12:40:28]save to /storage/0247/doc_00049328 [12:40:28]save last doc name /storage/0247/doc_00049328 to /storage/kkm_last_doc_name [12:40:28]save OK [12:40:28]Clear old archive folders... [12:40:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:40:28]tlvbuf is 01284160 [12:40:28]SAM_PROTO_ClearQueue [12:40:28]wFMCommunicate request_size=4 [12:40:28]MH_SAM_APDU [12:40:28]CAPDU: 80 09 00 00 [12:40:28]Write to MH i2c: E2 08 00 32 9A 80 09 00 00 00 00 00 00 3E [12:40:28]Write i2c OK [12:40:28]MH_I2C_Read... [12:40:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:28]Read from MH i2c: E2 [12:40:28]MH_I2C_Read... [12:40:28]Read from MH i2c: E2 03 00 [12:40:28]MH_I2C_Read... [12:40:28]Read from MH i2c: E2 03 00 32 9A 00 90 00 40 [12:40:28]RAPDU: 90 00 [12:40:28]wFMCommunicate OK [12:40:28]SAM_PROTO_ClearQueue done [12:40:28]KKMCreateOFDPacket [12:40:28]OFDProtocolAddRootSTLVToBuf [12:40:28]FM_MakeSignedData [12:40:28]FM_MakeSignedData [12:40:28]SAM_PROTO_SignData [12:40:28]wFMCommunicate request_size=4 [12:40:28]MH_SAM_APDU [12:40:28]CAPDU: 80 0D 01 02 [12:40:28]Write to MH i2c: E2 08 00 33 9A 80 0D 01 02 00 00 00 00 46 [12:40:28]Write i2c OK [12:40:28]MH_I2C_Read... [12:40:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:28]Read from MH i2c: E2 [12:40:28]MH_I2C_Read... [12:40:28]Read from MH i2c: E2 03 00 [12:40:28]MH_I2C_Read... [12:40:28]Read from MH i2c: E2 03 00 33 9A 00 90 00 41 [12:40:28]RAPDU: 90 00 [12:40:28]wFMCommunicate OK [12:40:28]wFMCommunicate request_size=255 [12:40:28]MH_SAM_APDU [12:40:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 D3 3F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B0 C0 00 00 35 04 06 00 96 92 23 45 [12:40:28]Write to MH i2c: E2 02 01 34 9A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 D3 3F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B0 C0 00 00 35 04 06 00 96 92 23 45 00 00 70 [12:40:28]Write i2c OK [12:40:28]MH_I2C_Read... [12:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:29]Read from MH i2c: E2 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: E2 03 00 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: E2 03 00 34 9A 00 90 00 42 [12:40:29]RAPDU: 90 00 [12:40:29]wFMCommunicate OK [12:40:29]wFMCommunicate request_size=7 [12:40:29]MH_SAM_APDU [12:40:29]CAPDU: 80 0D 02 02 02 25 EE [12:40:29]Write to MH i2c: E2 0A 00 35 9A 80 0D 02 02 02 00 25 EE 00 00 60 [12:40:29]Write i2c OK [12:40:29]MH_I2C_Read... [12:40:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:29]Read from MH i2c: E2 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: E2 03 00 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: E2 03 00 35 9A 00 90 00 43 [12:40:29]RAPDU: 90 00 [12:40:29]wFMCommunicate OK [12:40:29]wFMCommunicate request_size=4 [12:40:29]MH_SAM_APDU [12:40:29]CAPDU: 80 0D 03 02 [12:40:29]Write to MH i2c: E2 08 00 36 9A 80 0D 03 02 00 00 00 00 4B [12:40:29]Write i2c OK [12:40:29]MH_I2C_Read... [12:40:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:29]Read from MH i2c: E2 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: E2 0B 00 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: E2 0B 00 36 9A 00 48 07 E0 3F 55 7D 71 43 90 00 40 [12:40:29]RAPDU: 48 07 E0 3F 55 7D 71 43 90 00 [12:40:29]wFMCommunicate OK [12:40:29]SAM_PROTO_SignData done [12:40:29]FM_MakeSignedData done [12:40:29]CreateOFDProtocolMessage [12:40:29]wFMCommunicate request_size=4 [12:40:29]MH_SAM_APDU [12:40:29]CAPDU: 80 11 00 00 [12:40:29]Write to MH i2c: E2 08 00 37 9A 80 11 00 00 00 00 00 00 4B [12:40:29]Write i2c OK [12:40:29]MH_I2C_Read... [12:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:29]Read from MH i2c: E2 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: E2 17 00 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: E2 17 00 37 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 98 [12:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:40:29]wFMCommunicate OK [12:40:29]CreateOFDProtocolMessage done [12:40:29]OFDSenderStorePacket 49328 [12:40:29]StoreOFDPacket docnum=49328 [12:40:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 EC 8F 04 01 64 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 D3 3F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B0 C0 00 00 35 04 06 00 96 92 23 45 25 EE 48 07 E0 3F 55 7D 71 43 [12:40:29]CheckFolder [12:40:29]dirname=/storage/ofd_packets [12:40:29]CheckFolder done [12:40:29]ProducePacketName [12:40:29]name=ofd_packets/00049328 [12:40:29]NVStorageSaveData ofd_packets/00049328 [12:40:29]File name is /storage/ofd_packets/00049328 [12:40:29]Write 298 bytes [12:40:29]NVStorageSaveData done [12:40:29]OFDSenderStorePacket done [12:40:29]KKMCreateOFDPacket done [12:40:29]NVStorageSaveData kkm_last_timestamp [12:40:29]File name is /storage/kkm_last_timestamp [12:40:29]Write 4 bytes [12:40:29]NVStorageSaveData done [12:40:29]ExternCall_PrintAddStr [12:40:29]wPrintStart [12:40:29]Write to MH i2c: 01 00 00 38 9A D2 [12:40:29]Write i2c OK [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: 01 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: 01 07 00 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: 01 07 00 38 9A 00 00 00 00 00 FF 0F E7 [12:40:29]RasterBufferAndPrint [12:40:29]line Счет N : (1)216431 [12:40:29]line ИНН: 02508201610067 [12:40:29]line Контрольно-Кассовый Чек [12:40:29]line ПРОДАЖА [12:40:29]line ТРК (МРК, ГНК) : 11 [12:40:29]line Товар: 2710194210 [12:40:29]line ДТ-К-5 [12:40:29]line 7.160 * 69.90 [12:40:29]line = 500.48 [12:40:29]line НДС 12% НСП 1% [12:40:29]line > о реализуемом товаре [12:40:29]line ОКРУГЛЕНИЕ: -0.48 [12:40:29]line ИТОГО: 500.00 [12:40:29]line Внесено: 500.00 [12:40:29]line СДАЧА: 0.00 [12:40:29]line НСП 1% : 4.43 [12:40:29]line НДС 12% : 53.15 [12:40:29]line Наличными: 500.00 [12:40:29]line Безнал.: 0.00 [12:40:29]line Место: АЗС № 102 "Партнер Нефть" [12:40:29]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:40:29]line СНО: Общий режим [12:40:29]line Чек 53 31.01.2024 12:40 [12:40:29]line Смена: 247 ФФД: 1.0 [12:40:29]line ЗНМ: 0300000040 [12:40:29]line РНМ: 0000000000092723 [12:40:29]line Версия ККМ: 001 [12:40:29]line ФМ: 0000000000875060 [12:40:29]line ФД: 49328 [12:40:29]line ФПД: 165554401125870 [12:40:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T124051&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49328&fm=165554401125870&tin=02508201610067®Number=0000000000092723&sum=50000 [12:40:29]OFD Sender: Processing packet 49328 [packets to send 12, broken 11] [12:40:29]ProducePacketName [12:40:29]name=ofd_packets/00049328 [12:40:29]OFD Sender: To server: pG, [12:40:29]CommunicateWithHost lk.salyk.kg:30040 [12:40:29]ConnectInit lk.salyk.kg [12:40:29]written 0, free lines is 4095 [12:40:29]Connected sock=10 [12:40:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 EC 8F 04 01 64 4B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 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 D3 3F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B0 C0 00 00 35 04 06 00 96 92 23 45 25 EE 48 07 E0 3F 55 7D 71 43 [12:40:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 8C AB 47 00 7D 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 35 30 36 30 10 04 04 00 B0 C0 00 00 F4 03 04 00 C5 EB B9 65 B6 04 01 00 00 4F C9 73 52 59 44 AC 82 [12:40:29]CommunicateWithHost err = 0 [12:40:29]CheckOFDResponse [12:40:29]1017 (14) - 77093643461234 [12:40:29]1041 (16) - 0000000000875060 [12:40:29]1040 (4) - 49328 [12:40:29]1012 (4) - 31.01.2024 06:42 [12:40:29]1206 (1) - 0 [12:40:29]OFD Sender: Remove packet 49328 [12:40:29]ProducePacketName [12:40:29]name=ofd_packets/00049328 [12:40:29]NVStorageDeleteData [12:40:29]Write to MH i2c: 01 00 00 63 9A FD [12:40:29]Write i2c OK [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: 01 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: 01 07 00 [12:40:29]MH_I2C_Read... [12:40:29]Read from MH i2c: 01 07 00 63 9A 00 00 00 00 00 E0 0C F0 [12:40:29]RasterBufferAndPrint [12:40:29]line [12:40:29]line [12:40:29]line [12:40:29]line [12:40:29]line [12:40:30]written 0, free lines is 3302 [12:40:30]MH_Cut [12:40:30]Write to MH i2c: D1 01 00 6A 9A 01 D6 [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: D1 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: D1 01 00 [12:40:30]MH_I2C_Read... [12:40:30]Read from MH i2c: D1 01 00 6A 9A 00 D5 [12:40:30]Write to MH i2c: 01 00 00 6B 9A 05 [12:40:30]Write i2c OK [12:40:30]MH_I2C_Read... [12:40:30]OFD Sender: No OFD packet to send [12:40:30]*** Cut start [12:40:30]*** Partial cut [12:40:30]*** CUTSNS_PIN = 1 [12:40:30]*** CUTSNS_PIN = 0 [12:40:30]*** Brake cut motor [12:40:31]Read from MH i2c: 01 [12:40:31]MH_I2C_Read... [12:40:31]*** Stop cut motor [12:40:31]*** Cut end [12:40:31]Read from MH i2c: 01 07 00 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: 01 07 00 6B 9A 00 00 00 00 00 FF 0F 1A [12:40:31]process_action close_receipt done [12:40:31]requested_data is exist [12:40:31]produce_requested_data [12:40:31]requested_item fm.sn is exist - process it [12:40:31]wFMCommunicate request_size=4 [12:40:31]MH_SAM_APDU [12:40:31]CAPDU: 80 11 00 00 [12:40:31]Write to MH i2c: E2 08 00 6C 9A 80 11 00 00 00 00 00 00 80 [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:31]Read from MH i2c: E2 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: E2 17 00 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: E2 17 00 6C 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CD [12:40:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:40:31]wFMCommunicate OK [12:40:31]requested_item fd.num is exist - process it [12:40:31]SAM_PROTO_GetFieldsCounters [12:40:31]wFMCommunicate request_size=4 [12:40:31]MH_SAM_APDU [12:40:31]CAPDU: 80 13 00 00 [12:40:31]Write to MH i2c: E2 08 00 6D 9A 80 13 00 00 00 00 00 00 83 [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:31]Read from MH i2c: E2 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: E2 62 00 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: E2 62 00 6D 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B0 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [12:40: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B0 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:31]wFMCommunicate OK [12:40:31]SAM_PROTO_GetFieldsCounters done [12:40:31]requested_item shift.num is exist - process it [12:40:31]requested_item shift.opened is exist - process it [12:40:31]req_shift_opened [12:40:31]FM_GetShiftState [12:40:31]SAM_PROTO_GetShiftState [12:40:31]wFMCommunicate request_size=4 [12:40:31]MH_SAM_APDU [12:40:31]CAPDU: 80 13 01 00 [12:40:31]Write to MH i2c: E2 08 00 6E 9A 80 13 01 00 00 00 00 00 85 [12:40:31]Write i2c OK [12:40:31]MH_I2C_Read... [12:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:31]Read from MH i2c: E2 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: E2 0E 00 [12:40:31]MH_I2C_Read... [12:40:31]Read from MH i2c: E2 0E 00 6E 9A 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 DB [12:40:31]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:40:31]wFMCommunicate OK [12:40:31]SAM_PROTO_GetShiftState done [12:40:31]FM_GetShiftState done [12:40:31]req_shift_opened done [12:40:31]requested_item shift.open_date is exist - process it [12:40:31]req_shift_open_date [12:40:31]req_shift_open_date done [12:40:31]produce_requested_data done [12:40:31]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49328,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [12:40:31]process_action_free close_receipt [12:40:31]json_value_free [12:40:31]json_value_free done [12:40:31]process_json_proto returns [12:40:31]Send response to host [12:40:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49328,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [12:40:31]free response buf [12:40:31]execute_script done [12:40:31]execute_script returns [12:40:31]free content buf [12:40:31]Sock 9.Close socket [12:40:31]Sock 9.Thread stoped [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:13]accept exits with 7 [12:46:13]New connection [12:46:13]New thread 3066813796 created [12:46:13]Thread 3066670436 joined [12:46:13]Waiting for new connection... [12:46:13] Sock 7.Parse request [12:46:13]Sock 7.Check first char [12:46:13]Sock 7.First char is OK [12:46:13]request: POST /json_proto HTTP/1.0 [12:46:13]Method: POST [12:46:13]URL: /json_proto [12:46:13]Method is POST - this is cgi request [12:46:13]url: /json_proto [12:46:13]query_string will be loaded in cgi processing [12:46:13]execute_cgi json_proto POST (null) [12:46:13]execute_cgi path=json_proto method=POST [12:46:13]POST find Content-Length [12:46:13]Host: 172.17.56.67:8080 [12:46:13]Content-Length: 675 [12:46:13]Content-Type: application/json [12:46:13] [12:46:13]POST finish read [12:46:13]Found Content-Length = 675 [12:46:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:13]execute_script... [12:46: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)216432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:13]POST & json_proto [12:46:13]process_json_proto [12:46:13]json parsed OK: [12:46:13]protocol is kg_v1.0 [12:46:13]action value=close_receipt [12:46:13]process_action close_receipt [12:46:13]cmd_close_receipt [12:46:13]MH_GetDate [12:46:13]Write to MH i2c: F0 00 00 6F 9A F8 [12:46:13]Write i2c OK [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: F0 [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: F0 09 00 [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: F0 09 00 6F 9A 00 2D 41 BA 65 26 5D 9E 65 14 [12:46:13]GetLastDocTimeStamp 1706704851 [12:46:13]current date 1706705197 [12:46:13]FM_GetShiftState [12:46:13]SAM_PROTO_GetShiftState [12:46:13]wFMCommunicate request_size=4 [12:46:13]MH_SAM_APDU [12:46:13]CAPDU: 80 13 01 00 [12:46:13]Write to MH i2c: E2 08 00 70 9A 80 13 01 00 00 00 00 00 87 [12:46:13]Write i2c OK [12:46:13]MH_I2C_Read... [12:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:13]Read from MH i2c: E2 [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: E2 0E 00 [12:46:13]MH_I2C_Read... [12:46:13]Read from MH i2c: E2 0E 00 70 9A 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 DD [12:46:13]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:46:13]wFMCommunicate OK [12:46:13]SAM_PROTO_GetShiftState done [12:46:13]FM_GetShiftState done [12:46:13]opened in 1706659486 [12:46:13]opened+sec_in_day 1706745886 [12:46:13]quantity*price = 70039 [12:46:13]sum+1 = 70041 [12:46:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 54 31.01.2024 12:46 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49329 ФПД: 43854600249996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T124637&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49329&fm=43854600249996&tin=02508201610067®Number=0000000000092723&sum=70000 [12:46:14]StoreToDocumentArchive [12:46:14]shift 247 fd 49329 [12:46:14]save to /storage/0247/doc_00049329 [12:46:14]save last doc name /storage/0247/doc_00049329 to /storage/kkm_last_doc_name [12:46:14]save OK [12:46:14]Clear old archive folders... [12:46:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:46:14]tlvbuf is 0119A430 [12:46:14]SAM_PROTO_ClearQueue [12:46:14]wFMCommunicate request_size=4 [12:46:14]MH_SAM_APDU [12:46:14]CAPDU: 80 09 00 00 [12:46:14]Write to MH i2c: E2 08 00 7D 9A 80 09 00 00 00 00 00 00 89 [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 03 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 03 00 7D 9A 00 90 00 8B [12:46:14]RAPDU: 90 00 [12:46:14]wFMCommunicate OK [12:46:14]SAM_PROTO_ClearQueue done [12:46:14]KKMCreateOFDPacket [12:46:14]OFDProtocolAddRootSTLVToBuf [12:46:14]FM_MakeSignedData [12:46:14]FM_MakeSignedData [12:46:14]SAM_PROTO_SignData [12:46:14]wFMCommunicate request_size=4 [12:46:14]MH_SAM_APDU [12:46:14]CAPDU: 80 0D 01 02 [12:46:14]Write to MH i2c: E2 08 00 7E 9A 80 0D 01 02 00 00 00 00 91 [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 03 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 03 00 7E 9A 00 90 00 8C [12:46:14]RAPDU: 90 00 [12:46:14]wFMCommunicate OK [12:46:14]wFMCommunicate request_size=255 [12:46:14]MH_SAM_APDU [12:46:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 2D 41 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B1 C0 00 00 35 04 06 00 27 E2 B1 DE [12:46:14]Write to MH i2c: E2 02 01 7F 9A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 2D 41 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B1 C0 00 00 35 04 06 00 27 E2 B1 DE 00 00 A4 [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 03 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 03 00 7F 9A 00 90 00 8D [12:46:14]RAPDU: 90 00 [12:46:14]wFMCommunicate OK [12:46:14]wFMCommunicate request_size=7 [12:46:14]MH_SAM_APDU [12:46:14]CAPDU: 80 0D 02 02 02 A2 8C [12:46:14]Write to MH i2c: E2 0A 00 80 9A 80 0D 02 02 02 00 A2 8C 00 00 C6 [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 03 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 03 00 80 9A 00 90 00 8E [12:46:14]RAPDU: 90 00 [12:46:14]wFMCommunicate OK [12:46:14]wFMCommunicate request_size=4 [12:46:14]MH_SAM_APDU [12:46:14]CAPDU: 80 0D 03 02 [12:46:14]Write to MH i2c: E2 08 00 81 9A 80 0D 03 02 00 00 00 00 96 [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 0B 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 0B 00 81 9A 00 3D 34 C9 7C CE AC 8D 88 90 00 DC [12:46:14]RAPDU: 3D 34 C9 7C CE AC 8D 88 90 00 [12:46:14]wFMCommunicate OK [12:46:14]SAM_PROTO_SignData done [12:46:14]FM_MakeSignedData done [12:46:14]CreateOFDProtocolMessage [12:46:14]wFMCommunicate request_size=4 [12:46:14]MH_SAM_APDU [12:46:14]CAPDU: 80 11 00 00 [12:46:14]Write to MH i2c: E2 08 00 82 9A 80 11 00 00 00 00 00 00 96 [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:14]Read from MH i2c: E2 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 17 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: E2 17 00 82 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E3 [12:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:46:14]wFMCommunicate OK [12:46:14]CreateOFDProtocolMessage done [12:46:14]OFDSenderStorePacket 49329 [12:46:14]StoreOFDPacket docnum=49329 [12:46:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 A7 F2 04 01 9D DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 2D 41 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B1 C0 00 00 35 04 06 00 27 E2 B1 DE A2 8C 3D 34 C9 7C CE AC 8D 88 [12:46:14]CheckFolder [12:46:14]dirname=/storage/ofd_packets [12:46:14]CheckFolder done [12:46:14]ProducePacketName [12:46:14]name=ofd_packets/00049329 [12:46:14]NVStorageSaveData ofd_packets/00049329 [12:46:14]File name is /storage/ofd_packets/00049329 [12:46:14]Write 298 bytes [12:46:14]NVStorageSaveData done [12:46:14]OFDSenderStorePacket done [12:46:14]KKMCreateOFDPacket done [12:46:14]NVStorageSaveData kkm_last_timestamp [12:46:14]File name is /storage/kkm_last_timestamp [12:46:14]Write 4 bytes [12:46:14]NVStorageSaveData done [12:46:14]ExternCall_PrintAddStr [12:46:14]wPrintStart [12:46:14]Write to MH i2c: 01 00 00 83 9A 1D [12:46:14]Write i2c OK [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: 01 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: 01 07 00 [12:46:14]MH_I2C_Read... [12:46:14]Read from MH i2c: 01 07 00 83 9A 00 00 00 00 00 FF 0F 32 [12:46:14]RasterBufferAndPrint [12:46:14]line Счет N : (1)216432 [12:46:14]line ИНН: 02508201610067 [12:46:14]line Контрольно-Кассовый Чек [12:46:14]line ПРОДАЖА [12:46:14]line ТРК (МРК, ГНК) : 21 [12:46:14]line Товар: 2710194210 [12:46:14]line ДТ-К-5 [12:46:14]line 10.020 * 69.90 [12:46:14]line = 700.40 [12:46:14]line НДС 12% НСП 1% [12:46:14]line > о реализуемом товаре [12:46:14]line ОКРУГЛЕНИЕ: -0.40 [12:46:14]line ИТОГО: 700.00 [12:46:14]line Внесено: 700.00 [12:46:14]line СДАЧА: 0.00 [12:46:14]line НСП 1% : 6.20 [12:46:14]line НДС 12% : 74.38 [12:46:14]line Наличными: 700.00 [12:46:14]line Безнал.: 0.00 [12:46:14]line Место: АЗС № 102 "Партнер Нефть" [12:46:14]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:46:14]line СНО: Общий режим [12:46:14]line Чек 54 31.01.2024 12:46 [12:46:14]line Смена: 247 ФФД: 1.0 [12:46:14]line ЗНМ: 0300000040 [12:46:14]line РНМ: 0000000000092723 [12:46:14]line Версия ККМ: 001 [12:46:14]line ФМ: 0000000000875060 [12:46:14]line ФД: 49329 [12:46:14]line ФПД: 43854600249996 [12:46:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T124637&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49329&fm=43854600249996&tin=02508201610067®Number=0000000000092723&sum=70000 [12:46:15]OFD Sender: Processing packet 49329 [packets to send 12, broken 11] [12:46:15]ProducePacketName [12:46:15]name=ofd_packets/00049329 [12:46:15]OFD Sender: To server: pG, [12:46:15]CommunicateWithHost lk.salyk.kg:30040 [12:46:15]ConnectInit lk.salyk.kg [12:46:15]written 0, free lines is 4095 [12:46:15]Connected sock=11 [12:46:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 A7 F2 04 01 9D DD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 2D 41 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B1 C0 00 00 35 04 06 00 27 E2 B1 DE A2 8C 3D 34 C9 7C CE AC 8D 88 [12:46:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 54 0E 47 00 B8 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B1 C0 00 00 F4 03 04 00 1F ED B9 65 B6 04 01 00 00 8A DB 1A 5F 33 E2 FB 21 [12:46:15]CommunicateWithHost err = 0 [12:46:15]CheckOFDResponse [12:46:15]1017 (14) - 77093643461234 [12:46:15]1041 (16) - 0000000000875060 [12:46:15]1040 (4) - 49329 [12:46:15]1012 (4) - 31.01.2024 06:47 [12:46:15]1206 (1) - 0 [12:46:15]OFD Sender: Remove packet 49329 [12:46:15]ProducePacketName [12:46:15]name=ofd_packets/00049329 [12:46:15]NVStorageDeleteData [12:46:15]Write to MH i2c: 01 00 00 AE 9A 48 [12:46:15]Write i2c OK [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: 01 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: 01 07 00 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: 01 07 00 AE 9A 00 00 00 00 00 F1 0C 4C [12:46:15]RasterBufferAndPrint [12:46:15]line [12:46:15]line [12:46:15]line [12:46:15]line [12:46:15]line [12:46:15]written 0, free lines is 3319 [12:46:15]MH_Cut [12:46:15]Write to MH i2c: D1 01 00 B5 9A 01 21 [12:46:15]Write i2c OK [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: D1 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: D1 01 00 [12:46:15]MH_I2C_Read... [12:46:15]Read from MH i2c: D1 01 00 B5 9A 00 20 [12:46:15]Write to MH i2c: 01 00 00 B6 9A 50 [12:46:15]Write i2c OK [12:46:15]MH_I2C_Read... [12:46:16]OFD Sender: No OFD packet to send [12:46:16]*** Cut start [12:46:16]*** Partial cut [12:46:16]*** CUTSNS_PIN = 1 [12:46:16]*** CUTSNS_PIN = 0 [12:46:16]*** Brake cut motor [12:46:16]Read from MH i2c: 01 [12:46:16]MH_I2C_Read... [12:46:16]*** Stop cut motor [12:46:16]*** Cut end [12:46:16]Read from MH i2c: 01 07 00 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: 01 07 00 B6 9A 00 00 00 00 00 FF 0F 65 [12:46:16]process_action close_receipt done [12:46:16]requested_data is exist [12:46:16]produce_requested_data [12:46:16]requested_item fm.sn is exist - process it [12:46:16]wFMCommunicate request_size=4 [12:46:16]MH_SAM_APDU [12:46:16]CAPDU: 80 11 00 00 [12:46:16]Write to MH i2c: E2 08 00 B7 9A 80 11 00 00 00 00 00 00 CB [12:46:16]Write i2c OK [12:46:16]MH_I2C_Read... [12:46:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:16]Read from MH i2c: E2 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: E2 17 00 [12:46:16]MH_I2C_Read... [12:46:16]Read from MH i2c: E2 17 00 B7 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 18 [12:46:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:46:16]wFMCommunicate OK [12:46:16]requested_item fd.num is exist - process it [12:46:16]SAM_PROTO_GetFieldsCounters [12:46:16]wFMCommunicate request_size=4 [12:46:16]MH_SAM_APDU [12:46:16]CAPDU: 80 13 00 00 [12:46:16]Write to MH i2c: E2 08 00 B8 9A 80 13 00 00 00 00 00 00 CE [12:46:16]Write i2c OK [12:46:16]MH_I2C_Read... [12:46:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:17]Read from MH i2c: E2 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: E2 62 00 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: E2 62 00 B8 9A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B1 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [12:46: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B1 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:17]wFMCommunicate OK [12:46:17]SAM_PROTO_GetFieldsCounters done [12:46:17]requested_item shift.num is exist - process it [12:46:17]requested_item shift.opened is exist - process it [12:46:17]req_shift_opened [12:46:17]FM_GetShiftState [12:46:17]SAM_PROTO_GetShiftState [12:46:17]wFMCommunicate request_size=4 [12:46:17]MH_SAM_APDU [12:46:17]CAPDU: 80 13 01 00 [12:46:17]Write to MH i2c: E2 08 00 B9 9A 80 13 01 00 00 00 00 00 D0 [12:46:17]Write i2c OK [12:46:17]MH_I2C_Read... [12:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:17]Read from MH i2c: E2 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: E2 0E 00 [12:46:17]MH_I2C_Read... [12:46:17]Read from MH i2c: E2 0E 00 B9 9A 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 26 [12:46:17]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:46:17]wFMCommunicate OK [12:46:17]SAM_PROTO_GetShiftState done [12:46:17]FM_GetShiftState done [12:46:17]req_shift_opened done [12:46:17]requested_item shift.open_date is exist - process it [12:46:17]req_shift_open_date [12:46:17]req_shift_open_date done [12:46:17]produce_requested_data done [12:46:17]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49329,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [12:46:17]process_action_free close_receipt [12:46:17]json_value_free [12:46:17]json_value_free done [12:46:17]process_json_proto returns [12:46:17]Send response to host [12:46:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49329,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [12:46:17]free response buf [12:46:17]execute_script done [12:46:17]execute_script returns [12:46:17]free content buf [12:46:17]Sock 7.Close socket [12:46:17]Sock 7.Thread stoped [12:46:21]OFD Sender: No OFD packet to send [12:46:26]OFD Sender: No OFD packet to send [12:46:31]OFD Sender: No OFD packet to send [12:46:36]OFD Sender: No OFD packet to send [12:46:41]OFD Sender: No OFD packet to send [12:46:46]OFD Sender: No OFD packet to send [12:46:51]OFD Sender: No OFD packet to send [12:46:56]OFD Sender: No OFD packet to send [12:47:01]OFD Sender: No OFD packet to send [12:47:06]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:56]OFD Sender: No OFD packet to send [12:51:01]OFD Sender: No OFD packet to send [12:51:06]OFD Sender: No OFD packet to send [12:51:11]OFD Sender: No OFD packet to send [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:52:59]accept exits with 9 [12:52:59]New connection [12:52:59]New thread 3066670436 created [12:52:59]Thread 3066813796 joined [12:52:59]Waiting for new connection... [12:52:59] Sock 9.Parse request [12:52:59]Sock 9.Check first char [12:52:59]Sock 9.First char is OK [12:52:59]request: POST /json_proto HTTP/1.0 [12:52:59]Method: POST [12:52:59]URL: /json_proto [12:52:59]Method is POST - this is cgi request [12:52:59]url: /json_proto [12:52:59]query_string will be loaded in cgi processing [12:52:59]execute_cgi json_proto POST (null) [12:52:59]execute_cgi path=json_proto method=POST [12:52:59]POST find Content-Length [12:52:59]Host: 172.17.56.67:8080 [12:52:59]Content-Length: 677 [12:52:59]Content-Type: application/json [12:52:59] [12:52:59]POST finish read [12:52:59]Found Content-Length = 677 [12:52:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:59]execute_script... [12:52: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)216433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:59]POST & json_proto [12:52:59]process_json_proto [12:52:59]json parsed OK: [12:52:59]protocol is kg_v1.0 [12:52:59]action value=close_receipt [12:52:59]process_action close_receipt [12:52:59]cmd_close_receipt [12:52:59]MH_GetDate [12:52:59]Write to MH i2c: F0 00 00 BA 9A 43 [12:52:59]Write i2c OK [12:52:59]MH_I2C_Read... [12:52:59]Read from MH i2c: F0 [12:52:59]MH_I2C_Read... [12:52:59]Read from MH i2c: F0 09 00 [12:52:59]MH_I2C_Read... [12:52:59]Read from MH i2c: F0 09 00 BA 9A 00 C3 42 BA 65 26 5D 9E 65 F6 [12:52:59]GetLastDocTimeStamp 1706705197 [12:52:59]current date 1706705603 [12:52:59]FM_GetShiftState [12:52:59]SAM_PROTO_GetShiftState [12:52:59]wFMCommunicate request_size=4 [12:52:59]MH_SAM_APDU [12:52:59]CAPDU: 80 13 01 00 [12:52:59]Write to MH i2c: E2 08 00 BB 9A 80 13 01 00 00 00 00 00 D2 [12:52:59]Write i2c OK [12:52:59]MH_I2C_Read... [12:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:59]Read from MH i2c: E2 [12:52:59]MH_I2C_Read... [12:52:59]Read from MH i2c: E2 0E 00 [12:52:59]MH_I2C_Read... [12:52:59]Read from MH i2c: E2 0E 00 BB 9A 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 28 [12:52:59]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:52:59]wFMCommunicate OK [12:52:59]SAM_PROTO_GetShiftState done [12:52:59]FM_GetShiftState done [12:52:59]opened in 1706659486 [12:52:59]opened+sec_in_day 1706745886 [12:52:59]quantity*price = 50049 [12:52:59]sum+1 = 50050 [12:52:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 55 31.01.2024 12:53 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49330 ФПД: 7928023170492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T125323&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49330&fm=7928023170492&tin=02508201610067®Number=0000000000092723&sum=50000 [12:53:00]StoreToDocumentArchive [12:53:00]shift 247 fd 49330 [12:53:00]save to /storage/0247/doc_00049330 [12:53:00]save last doc name /storage/0247/doc_00049330 to /storage/kkm_last_doc_name [12:53:00]save OK [12:53:00]Clear old archive folders... [12:53:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:00]tlvbuf is 011E5F10 [12:53:00]SAM_PROTO_ClearQueue [12:53:00]wFMCommunicate request_size=4 [12:53:00]MH_SAM_APDU [12:53:00]CAPDU: 80 09 00 00 [12:53:00]Write to MH i2c: E2 08 00 C8 9A 80 09 00 00 00 00 00 00 D4 [12:53:00]Write i2c OK [12:53:00]MH_I2C_Read... [12:53:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:00]Read from MH i2c: E2 [12:53:00]MH_I2C_Read... [12:53:00]Read from MH i2c: E2 03 00 [12:53:00]MH_I2C_Read... [12:53:00]Read from MH i2c: E2 03 00 C8 9A 00 90 00 D6 [12:53:00]RAPDU: 90 00 [12:53:00]wFMCommunicate OK [12:53:00]SAM_PROTO_ClearQueue done [12:53:00]KKMCreateOFDPacket [12:53:00]OFDProtocolAddRootSTLVToBuf [12:53:00]FM_MakeSignedData [12:53:00]FM_MakeSignedData [12:53:00]SAM_PROTO_SignData [12:53:00]wFMCommunicate request_size=4 [12:53:00]MH_SAM_APDU [12:53:00]CAPDU: 80 0D 01 02 [12:53:00]Write to MH i2c: E2 08 00 C9 9A 80 0D 01 02 00 00 00 00 DC [12:53:00]Write i2c OK [12:53:00]MH_I2C_Read... [12:53:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:00]Read from MH i2c: E2 [12:53:00]MH_I2C_Read... [12:53:00]Read from MH i2c: E2 03 00 [12:53:00]MH_I2C_Read... [12:53:00]Read from MH i2c: E2 03 00 C9 9A 00 90 00 D7 [12:53:00]RAPDU: 90 00 [12:53:00]wFMCommunicate OK [12:53:00]wFMCommunicate request_size=255 [12:53:00]MH_SAM_APDU [12:53:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C3 42 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B2 C0 00 00 35 04 06 00 07 [12:53:00]Write to MH i2c: E2 02 01 CA 9A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C3 42 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B2 C0 00 00 35 04 06 00 07 00 00 D7 [12:53:00]Write i2c OK [12:53:00]MH_I2C_Read... [12:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:01]Read from MH i2c: E2 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 03 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 03 00 CA 9A 00 90 00 D8 [12:53:01]RAPDU: 90 00 [12:53:01]wFMCommunicate OK [12:53:01]wFMCommunicate request_size=10 [12:53:01]MH_SAM_APDU [12:53:01]CAPDU: 80 0D 02 02 05 35 E3 01 3D BC [12:53:01]Write to MH i2c: E2 0D 00 CB 9A 80 0D 02 02 05 00 35 E3 01 3D BC 00 00 FB [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:01]Read from MH i2c: E2 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 03 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 03 00 CB 9A 00 90 00 D9 [12:53:01]RAPDU: 90 00 [12:53:01]wFMCommunicate OK [12:53:01]wFMCommunicate request_size=4 [12:53:01]MH_SAM_APDU [12:53:01]CAPDU: 80 0D 03 02 [12:53:01]Write to MH i2c: E2 08 00 CC 9A 80 0D 03 02 00 00 00 00 E1 [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:01]Read from MH i2c: E2 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 0B 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 0B 00 CC 9A 00 11 77 CB B6 5B 53 B8 98 90 00 E9 [12:53:01]RAPDU: 11 77 CB B6 5B 53 B8 98 90 00 [12:53:01]wFMCommunicate OK [12:53:01]SAM_PROTO_SignData done [12:53:01]FM_MakeSignedData done [12:53:01]CreateOFDProtocolMessage [12:53:01]wFMCommunicate request_size=4 [12:53:01]MH_SAM_APDU [12:53:01]CAPDU: 80 11 00 00 [12:53:01]Write to MH i2c: E2 08 00 CD 9A 80 11 00 00 00 00 00 00 E1 [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]OFD Sender: No OFD packet to send [12:53:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:01]Read from MH i2c: E2 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 17 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: E2 17 00 CD 9A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2E [12:53:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:53:01]wFMCommunicate OK [12:53:01]CreateOFDProtocolMessage done [12:53:01]OFDSenderStorePacket 49330 [12:53:01]StoreOFDPacket docnum=49330 [12:53:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 8C 6D 07 01 0B E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C3 42 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B2 C0 00 00 35 04 06 00 07 35 E3 01 3D BC 11 77 CB B6 5B 53 B8 98 [12:53:01]CheckFolder [12:53:01]dirname=/storage/ofd_packets [12:53:01]CheckFolder done [12:53:01]ProducePacketName [12:53:01]name=ofd_packets/00049330 [12:53:01]NVStorageSaveData ofd_packets/00049330 [12:53:01]File name is /storage/ofd_packets/00049330 [12:53:01]Write 301 bytes [12:53:01]NVStorageSaveData done [12:53:01]OFDSenderStorePacket done [12:53:01]KKMCreateOFDPacket done [12:53:01]NVStorageSaveData kkm_last_timestamp [12:53:01]File name is /storage/kkm_last_timestamp [12:53:01]Write 4 bytes [12:53:01]NVStorageSaveData done [12:53:01]ExternCall_PrintAddStr [12:53:01]wPrintStart [12:53:01]Write to MH i2c: 01 00 00 CE 9A 68 [12:53:01]Write i2c OK [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: 01 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: 01 07 00 [12:53:01]MH_I2C_Read... [12:53:01]Read from MH i2c: 01 07 00 CE 9A 00 00 00 00 00 FF 0F 7D [12:53:01]RasterBufferAndPrint [12:53:01]line Счет N : (1)216433 [12:53:01]line ИНН: 02508201610067 [12:53:01]line Контрольно-Кассовый Чек [12:53:01]line ПРОДАЖА [12:53:01]line ТРК (МРК, ГНК) : 22 [12:53:01]line Товар: 2710124130 [12:53:01]line Аи-92-К-5 [12:53:01]line 8.300 * 60.30 [12:53:01]line = 500.49 [12:53:01]line НДС 12% НСП 1% [12:53:01]line > о реализуемом товаре [12:53:01]line ОКРУГЛЕНИЕ: -0.49 [12:53:01]line ИТОГО: 500.00 [12:53:01]line Внесено: 500.00 [12:53:01]line СДАЧА: 0.00 [12:53:01]line НСП 1% : 4.43 [12:53:01]line НДС 12% : 53.15 [12:53:01]line Наличными: 500.00 [12:53:01]line Безнал.: 0.00 [12:53:01]line Место: АЗС № 102 "Партнер Нефть" [12:53:01]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:53:01]line СНО: Общий режим [12:53:01]line Чек 55 31.01.2024 12:53 [12:53:01]line Смена: 247 ФФД: 1.0 [12:53:01]line ЗНМ: 0300000040 [12:53:01]line РНМ: 0000000000092723 [12:53:01]line Версия ККМ: 001 [12:53:01]line ФМ: 0000000000875060 [12:53:01]line ФД: 49330 [12:53:01]line ФПД: 7928023170492 [12:53:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T125323&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49330&fm=7928023170492&tin=02508201610067®Number=0000000000092723&sum=50000 [12:53:01]OFD Sender: Processing packet 49330 [packets to send 12, broken 11] [12:53:01]ProducePacketName [12:53:01]name=ofd_packets/00049330 [12:53:01]OFD Sender: To server: pG, [12:53:01]CommunicateWithHost lk.salyk.kg:30040 [12:53:01]ConnectInit lk.salyk.kg [12:53:01]written 0, free lines is 4095 [12:53:01]Connected sock=7 [12:53:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 8C 6D 07 01 0B E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C3 42 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B2 C0 00 00 35 04 06 00 07 35 E3 01 3D BC 11 77 CB B6 5B 53 B8 98 [12:53:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 28 BE 47 00 0C 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 35 30 36 30 10 04 04 00 B2 C0 00 00 F4 03 04 00 B6 EE B9 65 B6 04 01 00 00 61 33 52 CD C5 FF 0E 2D [12:53:02]CommunicateWithHost err = 0 [12:53:02]CheckOFDResponse [12:53:02]1017 (14) - 77093643461234 [12:53:02]1041 (16) - 0000000000875060 [12:53:02]1040 (4) - 49330 [12:53:02]1012 (4) - 31.01.2024 06:54 [12:53:02]1206 (1) - 0 [12:53:02]OFD Sender: Remove packet 49330 [12:53:02]ProducePacketName [12:53:02]name=ofd_packets/00049330 [12:53:02]NVStorageDeleteData [12:53:02]Write to MH i2c: 01 00 00 F9 9A 93 [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: 01 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: 01 07 00 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: 01 07 00 F9 9A 00 00 00 00 00 15 0D BC [12:53:02]RasterBufferAndPrint [12:53:02]line [12:53:02]line [12:53:02]line [12:53:02]line [12:53:02]line [12:53:02]written 0, free lines is 3355 [12:53:02]MH_Cut [12:53:02]Write to MH i2c: D1 01 00 00 9B 01 6D [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: D1 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: D1 01 00 [12:53:02]MH_I2C_Read... [12:53:02]Read from MH i2c: D1 01 00 00 9B 00 6C [12:53:02]Write to MH i2c: 01 00 00 01 9B 9C [12:53:02]Write i2c OK [12:53:02]MH_I2C_Read... [12:53:02]OFD Sender: No OFD packet to send [12:53:02]*** Cut start [12:53:02]*** Partial cut [12:53:02]*** CUTSNS_PIN = 1 [12:53:02]*** CUTSNS_PIN = 0 [12:53:03]*** Brake cut motor [12:53:03]Read from MH i2c: 01 [12:53:03]MH_I2C_Read... [12:53:03]*** Stop cut motor [12:53:03]*** Cut end [12:53:03]Read from MH i2c: 01 07 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: 01 07 00 01 9B 00 00 00 00 00 FF 0F B1 [12:53:03]process_action close_receipt done [12:53:03]requested_data is exist [12:53:03]produce_requested_data [12:53:03]requested_item fm.sn is exist - process it [12:53:03]wFMCommunicate request_size=4 [12:53:03]MH_SAM_APDU [12:53:03]CAPDU: 80 11 00 00 [12:53:03]Write to MH i2c: E2 08 00 02 9B 80 11 00 00 00 00 00 00 17 [12:53:03]Write i2c OK [12:53:03]MH_I2C_Read... [12:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:03]Read from MH i2c: E2 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 17 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 17 00 02 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 64 [12:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:53:03]wFMCommunicate OK [12:53:03]requested_item fd.num is exist - process it [12:53:03]SAM_PROTO_GetFieldsCounters [12:53:03]wFMCommunicate request_size=4 [12:53:03]MH_SAM_APDU [12:53:03]CAPDU: 80 13 00 00 [12:53:03]Write to MH i2c: E2 08 00 03 9B 80 13 00 00 00 00 00 00 1A [12:53:03]Write i2c OK [12:53:03]MH_I2C_Read... [12:53:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:03]Read from MH i2c: E2 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 62 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 62 00 03 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [12:53:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:03]wFMCommunicate OK [12:53:03]SAM_PROTO_GetFieldsCounters done [12:53:03]requested_item shift.num is exist - process it [12:53:03]requested_item shift.opened is exist - process it [12:53:03]req_shift_opened [12:53:03]FM_GetShiftState [12:53:03]SAM_PROTO_GetShiftState [12:53:03]wFMCommunicate request_size=4 [12:53:03]MH_SAM_APDU [12:53:03]CAPDU: 80 13 01 00 [12:53:03]Write to MH i2c: E2 08 00 04 9B 80 13 01 00 00 00 00 00 1C [12:53:03]Write i2c OK [12:53:03]MH_I2C_Read... [12:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:03]Read from MH i2c: E2 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 0E 00 [12:53:03]MH_I2C_Read... [12:53:03]Read from MH i2c: E2 0E 00 04 9B 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 72 [12:53:03]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [12:53:03]wFMCommunicate OK [12:53:03]SAM_PROTO_GetShiftState done [12:53:03]FM_GetShiftState done [12:53:03]req_shift_opened done [12:53:03]requested_item shift.open_date is exist - process it [12:53:03]req_shift_open_date [12:53:03]req_shift_open_date done [12:53:03]produce_requested_data done [12:53:03]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49330,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [12:53:03]process_action_free close_receipt [12:53:03]json_value_free [12:53:03]json_value_free done [12:53:03]process_json_proto returns [12:53:03]Send response to host [12:53:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49330,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [12:53:03]free response buf [12:53:03]execute_script done [12:53:03]execute_script returns [12:53:03]free content buf [12:53:03]Sock 9.Close socket [12:53:03]Sock 9.Thread stoped [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:42]OFD Sender: No OFD packet to send [12:58:47]OFD Sender: No OFD packet to send [12:58:52]OFD Sender: No OFD packet to send [12:58:57]OFD Sender: No OFD packet to send [12:59:02]OFD Sender: No OFD packet to send [12:59:07]OFD Sender: No OFD packet to send [12:59:12]OFD Sender: No OFD packet to send [12:59:17]OFD Sender: No OFD packet to send [12:59:22]OFD Sender: No OFD packet to send [12:59:27]OFD Sender: No OFD packet to send [12:59:32]OFD Sender: No OFD packet to send [12:59:37]OFD Sender: No OFD packet to send [12:59:42]OFD Sender: No OFD packet to send [12:59:47]OFD Sender: No OFD packet to send [12:59:52]OFD Sender: No OFD packet to send [12:59:57]OFD Sender: No OFD packet to send [13:00:02]OFD Sender: No OFD packet to send [13:00:07]OFD Sender: No OFD packet to send [13:00:12]OFD Sender: No OFD packet to send [13:00:17]OFD Sender: No OFD packet to send [13:00:22]OFD Sender: No OFD packet to send [13:00:27]OFD Sender: No OFD packet to send [13:00:32]OFD Sender: No OFD packet to send [13:00:37]OFD Sender: No OFD packet to send [13:00:42]OFD Sender: No OFD packet to send [13:00:47]OFD Sender: No OFD packet to send [13:00:52]OFD Sender: No OFD packet to send [13:00:57]OFD Sender: No OFD packet to send [13:01:02]OFD Sender: No OFD packet to send [13:01:07]OFD Sender: No OFD packet to send [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:20]accept exits with 10 [13:05:20]New connection [13:05:20]New thread 3066813796 created [13:05:20]Thread 3066670436 joined [13:05:20]Waiting for new connection... [13:05:20] Sock 10.Parse request [13:05:20]Sock 10.Check first char [13:05:20]Sock 10.First char is OK [13:05:20]request: POST /json_proto HTTP/1.0 [13:05:20]Method: POST [13:05:20]URL: /json_proto [13:05:20]Method is POST - this is cgi request [13:05:20]url: /json_proto [13:05:20]query_string will be loaded in cgi processing [13:05:20]execute_cgi json_proto POST (null) [13:05:20]execute_cgi path=json_proto method=POST [13:05:20]POST find Content-Length [13:05:20]Host: 172.17.56.67:8080 [13:05:20]Content-Length: 679 [13:05:20]Content-Type: application/json [13:05:20] [13:05:20]POST finish read [13:05:20]Found Content-Length = 679 [13:05:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 28.620, "sum" : 2000.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:20]execute_script... [13:05:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 28.620, "sum" : 2000.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:20]POST & json_proto [13:05:20]process_json_proto [13:05:20]json parsed OK: [13:05:20]protocol is kg_v1.0 [13:05:20]action value=close_receipt [13:05:20]process_action close_receipt [13:05:20]cmd_close_receipt [13:05:20]MH_GetDate [13:05:20]Write to MH i2c: F0 00 00 05 9B 8F [13:05:20]Write i2c OK [13:05:20]MH_I2C_Read... [13:05:20]Read from MH i2c: F0 [13:05:20]MH_I2C_Read... [13:05:20]Read from MH i2c: F0 09 00 [13:05:20]MH_I2C_Read... [13:05:20]Read from MH i2c: F0 09 00 05 9B 00 A8 45 BA 65 26 5D 9E 65 2A [13:05:20]GetLastDocTimeStamp 1706705603 [13:05:20]current date 1706706344 [13:05:20]FM_GetShiftState [13:05:20]SAM_PROTO_GetShiftState [13:05:20]wFMCommunicate request_size=4 [13:05:20]MH_SAM_APDU [13:05:20]CAPDU: 80 13 01 00 [13:05:20]Write to MH i2c: E2 08 00 06 9B 80 13 01 00 00 00 00 00 1E [13:05:20]Write i2c OK [13:05:20]MH_I2C_Read... [13:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:20]Read from MH i2c: E2 [13:05:20]MH_I2C_Read... [13:05:20]Read from MH i2c: E2 0E 00 [13:05:20]MH_I2C_Read... [13:05:20]Read from MH i2c: E2 0E 00 06 9B 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 74 [13:05:20]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:05:20]wFMCommunicate OK [13:05:20]SAM_PROTO_GetShiftState done [13:05:20]FM_GetShiftState done [13:05:20]opened in 1706659486 [13:05:20]opened+sec_in_day 1706745886 [13:05:20]quantity*price = 200053 [13:05:20]sum+1 = 200055 [13:05:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 56 31.01.2024 13:05 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49331 ФПД: 95847029314402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T130544&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49331&fm=95847029314402&tin=02508201610067®Number=0000000000092723&sum=200000 [13:05:21]StoreToDocumentArchive [13:05:21]shift 247 fd 49331 [13:05:21]save to /storage/0247/doc_00049331 [13:05:21]save last doc name /storage/0247/doc_00049331 to /storage/kkm_last_doc_name [13:05:21]save OK [13:05:21]Clear old archive folders... [13:05:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:05:21]tlvbuf is 011AD560 [13:05:21]SAM_PROTO_ClearQueue [13:05:21]wFMCommunicate request_size=4 [13:05:21]MH_SAM_APDU [13:05:21]CAPDU: 80 09 00 00 [13:05:21]Write to MH i2c: E2 08 00 13 9B 80 09 00 00 00 00 00 00 20 [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:21]Read from MH i2c: E2 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 13 9B 00 90 00 22 [13:05:21]RAPDU: 90 00 [13:05:21]wFMCommunicate OK [13:05:21]SAM_PROTO_ClearQueue done [13:05:21]KKMCreateOFDPacket [13:05:21]OFDProtocolAddRootSTLVToBuf [13:05:21]FM_MakeSignedData [13:05:21]FM_MakeSignedData [13:05:21]SAM_PROTO_SignData [13:05:21]wFMCommunicate request_size=4 [13:05:21]MH_SAM_APDU [13:05:21]CAPDU: 80 0D 01 02 [13:05:21]Write to MH i2c: E2 08 00 14 9B 80 0D 01 02 00 00 00 00 28 [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:21]Read from MH i2c: E2 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 14 9B 00 90 00 23 [13:05:21]RAPDU: 90 00 [13:05:21]wFMCommunicate OK [13:05:21]wFMCommunicate request_size=255 [13:05:21]MH_SAM_APDU [13:05:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 38 00 00 00 F4 03 04 00 A8 45 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B3 C0 00 00 35 04 06 00 57 2C 20 22 [13:05:21]Write to MH i2c: E2 02 01 15 9B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 38 00 00 00 F4 03 04 00 A8 45 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B3 C0 00 00 35 04 06 00 57 2C 20 22 00 00 F9 [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:21]Read from MH i2c: E2 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 15 9B 00 90 00 24 [13:05:21]RAPDU: 90 00 [13:05:21]wFMCommunicate OK [13:05:21]wFMCommunicate request_size=7 [13:05:21]MH_SAM_APDU [13:05:21]CAPDU: 80 0D 02 02 02 93 62 [13:05:21]Write to MH i2c: E2 0A 00 16 9B 80 0D 02 02 02 00 93 62 00 00 24 [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:21]Read from MH i2c: E2 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 03 00 16 9B 00 90 00 25 [13:05:21]RAPDU: 90 00 [13:05:21]wFMCommunicate OK [13:05:21]wFMCommunicate request_size=4 [13:05:21]MH_SAM_APDU [13:05:21]CAPDU: 80 0D 03 02 [13:05:21]Write to MH i2c: E2 08 00 17 9B 80 0D 03 02 00 00 00 00 2D [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:21]Read from MH i2c: E2 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 0B 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 0B 00 17 9B 00 DA CB 54 E3 3C 32 38 1B 90 00 CB [13:05:21]RAPDU: DA CB 54 E3 3C 32 38 1B 90 00 [13:05:21]wFMCommunicate OK [13:05:21]SAM_PROTO_SignData done [13:05:21]FM_MakeSignedData done [13:05:21]CreateOFDProtocolMessage [13:05:21]wFMCommunicate request_size=4 [13:05:21]MH_SAM_APDU [13:05:21]CAPDU: 80 11 00 00 [13:05:21]Write to MH i2c: E2 08 00 18 9B 80 11 00 00 00 00 00 00 2D [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:21]Read from MH i2c: E2 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 17 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: E2 17 00 18 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7A [13:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:05:21]wFMCommunicate OK [13:05:21]CreateOFDProtocolMessage done [13:05:21]OFDSenderStorePacket 49331 [13:05:21]StoreOFDPacket docnum=49331 [13:05:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 C0 6F 04 01 81 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 38 00 00 00 F4 03 04 00 A8 45 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B3 C0 00 00 35 04 06 00 57 2C 20 22 93 62 DA CB 54 E3 3C 32 38 1B [13:05:21]CheckFolder [13:05:21]dirname=/storage/ofd_packets [13:05:21]CheckFolder done [13:05:21]ProducePacketName [13:05:21]name=ofd_packets/00049331 [13:05:21]NVStorageSaveData ofd_packets/00049331 [13:05:21]File name is /storage/ofd_packets/00049331 [13:05:21]Write 298 bytes [13:05:21]NVStorageSaveData done [13:05:21]OFDSenderStorePacket done [13:05:21]KKMCreateOFDPacket done [13:05:21]NVStorageSaveData kkm_last_timestamp [13:05:21]File name is /storage/kkm_last_timestamp [13:05:21]Write 4 bytes [13:05:21]NVStorageSaveData done [13:05:21]ExternCall_PrintAddStr [13:05:21]wPrintStart [13:05:21]Write to MH i2c: 01 00 00 19 9B B4 [13:05:21]Write i2c OK [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: 01 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: 01 07 00 [13:05:21]MH_I2C_Read... [13:05:21]Read from MH i2c: 01 07 00 19 9B 00 00 00 00 00 FF 0F C9 [13:05:21]RasterBufferAndPrint [13:05:21]line Счет N : (1)216434 [13:05:21]line ИНН: 02508201610067 [13:05:21]line Контрольно-Кассовый Чек [13:05:21]line ПРОДАЖА [13:05:21]line ТРК (МРК, ГНК) : 11 [13:05:21]line Товар: 2710194210 [13:05:21]line ДТ-К-5 [13:05:21]line 28.620 * 69.90 [13:05:21]line = 2000.54 [13:05:21]line НДС 12% НСП 1% [13:05:21]line > о реализуемом товаре [13:05:21]line ОКРУГЛЕНИЕ: -0.54 [13:05:21]line ИТОГО: 2000.00 [13:05:21]line Внесено: 2000.00 [13:05:21]line СДАЧА: 0.00 [13:05:21]line НСП 1% : 17.70 [13:05:21]line НДС 12% : 212.45 [13:05:21]line Наличными: 2000.00 [13:05:21]line Безнал.: 0.00 [13:05:21]line Место: АЗС № 102 "Партнер Нефть" [13:05:21]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:05:21]line СНО: Общий режим [13:05:21]line Чек 56 31.01.2024 13:05 [13:05:21]line Смена: 247 ФФД: 1.0 [13:05:21]line ЗНМ: 0300000040 [13:05:21]line РНМ: 0000000000092723 [13:05:21]line Версия ККМ: 001 [13:05:21]line ФМ: 0000000000875060 [13:05:21]line ФД: 49331 [13:05:21]line ФПД: 95847029314402 [13:05:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T130544&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49331&fm=95847029314402&tin=02508201610067®Number=0000000000092723&sum=200000 [13:05:21]written 0, free lines is 4095 [13:05:21]OFD Sender: Processing packet 49331 [packets to send 12, broken 11] [13:05:21]ProducePacketName [13:05:21]name=ofd_packets/00049331 [13:05:21]OFD Sender: To server: pG, [13:05:21]CommunicateWithHost lk.salyk.kg:30040 [13:05:21]ConnectInit lk.salyk.kg [13:05:21]Connected sock=9 [13:05:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 C0 6F 04 01 81 95 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 6F 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 76 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 38 00 00 00 F4 03 04 00 A8 45 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B3 C0 00 00 35 04 06 00 57 2C 20 22 93 62 DA CB 54 E3 3C 32 38 1B [13:05:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 EC B5 47 00 58 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 35 30 36 30 10 04 04 00 B3 C0 00 00 F4 03 04 00 9A F1 B9 65 B6 04 01 00 00 7B F8 03 4D 12 8F 0B 66 [13:05:22]CommunicateWithHost err = 0 [13:05:22]CheckOFDResponse [13:05:22]1017 (14) - 77093643461234 [13:05:22]1041 (16) - 0000000000875060 [13:05:22]1040 (4) - 49331 [13:05:22]1012 (4) - 31.01.2024 07:07 [13:05:22]1206 (1) - 0 [13:05:22]OFD Sender: Remove packet 49331 [13:05:22]ProducePacketName [13:05:22]name=ofd_packets/00049331 [13:05:22]NVStorageDeleteData [13:05:22]Write to MH i2c: 01 00 00 44 9B DF [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: 01 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: 01 07 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: 01 07 00 44 9B 00 00 00 00 00 F7 0C E9 [13:05:22]RasterBufferAndPrint [13:05:22]line [13:05:22]line [13:05:22]line [13:05:22]line [13:05:22]line [13:05:22]written 0, free lines is 3325 [13:05:22]MH_Cut [13:05:22]Write to MH i2c: D1 01 00 4B 9B 01 B8 [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: D1 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: D1 01 00 [13:05:22]MH_I2C_Read... [13:05:22]Read from MH i2c: D1 01 00 4B 9B 00 B7 [13:05:22]Write to MH i2c: 01 00 00 4C 9B E7 [13:05:22]Write i2c OK [13:05:22]MH_I2C_Read... [13:05:22]OFD Sender: No OFD packet to send [13:05:22]*** Cut start [13:05:22]*** Partial cut [13:05:22]*** CUTSNS_PIN = 1 [13:05:22]*** CUTSNS_PIN = 0 [13:05:23]*** Brake cut motor [13:05:23]Read from MH i2c: 01 [13:05:23]MH_I2C_Read... [13:05:23]*** Stop cut motor [13:05:23]*** Cut end [13:05:23]Read from MH i2c: 01 07 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: 01 07 00 4C 9B 00 00 00 00 00 FF 0F FC [13:05:23]process_action close_receipt done [13:05:23]requested_data is exist [13:05:23]produce_requested_data [13:05:23]requested_item fm.sn is exist - process it [13:05:23]wFMCommunicate request_size=4 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 11 00 00 [13:05:23]Write to MH i2c: E2 08 00 4D 9B 80 11 00 00 00 00 00 00 62 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 17 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 17 00 4D 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AF [13:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:05:23]wFMCommunicate OK [13:05:23]requested_item fd.num is exist - process it [13:05:23]SAM_PROTO_GetFieldsCounters [13:05:23]wFMCommunicate request_size=4 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 13 00 00 [13:05:23]Write to MH i2c: E2 08 00 4E 9B 80 13 00 00 00 00 00 00 65 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 62 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 62 00 4E 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B3 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [13:05: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B3 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:23]wFMCommunicate OK [13:05:23]SAM_PROTO_GetFieldsCounters done [13:05:23]requested_item shift.num is exist - process it [13:05:23]requested_item shift.opened is exist - process it [13:05:23]req_shift_opened [13:05:23]FM_GetShiftState [13:05:23]SAM_PROTO_GetShiftState [13:05:23]wFMCommunicate request_size=4 [13:05:23]MH_SAM_APDU [13:05:23]CAPDU: 80 13 01 00 [13:05:23]Write to MH i2c: E2 08 00 4F 9B 80 13 01 00 00 00 00 00 67 [13:05:23]Write i2c OK [13:05:23]MH_I2C_Read... [13:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:23]Read from MH i2c: E2 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 0E 00 [13:05:23]MH_I2C_Read... [13:05:23]Read from MH i2c: E2 0E 00 4F 9B 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 BD [13:05:23]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:05:23]wFMCommunicate OK [13:05:23]SAM_PROTO_GetShiftState done [13:05:23]FM_GetShiftState done [13:05:23]req_shift_opened done [13:05:23]requested_item shift.open_date is exist - process it [13:05:23]req_shift_open_date [13:05:23]req_shift_open_date done [13:05:23]produce_requested_data done [13:05:23]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49331,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [13:05:23]process_action_free close_receipt [13:05:23]json_value_free [13:05:23]json_value_free done [13:05:23]process_json_proto returns [13:05:23]Send response to host [13:05:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49331,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [13:05:23]free response buf [13:05:23]execute_script done [13:05:23]execute_script returns [13:05:23]free content buf [13:05:23]Sock 10.Close socket [13:05:23]Sock 10.Thread stoped [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]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]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:19]accept exits with 7 [13:18:19]New connection [13:18:19]New thread 3066670436 created [13:18:19]Thread 3066813796 joined [13:18:19]Waiting for new connection... [13:18:19] Sock 7.Parse request [13:18:19]Sock 7.Check first char [13:18:19]Sock 7.First char is OK [13:18:19]request: POST /json_proto HTTP/1.0 [13:18:19]Method: POST [13:18:19]URL: /json_proto [13:18:19]Method is POST - this is cgi request [13:18:19]url: /json_proto [13:18:19]query_string will be loaded in cgi processing [13:18:19]execute_cgi json_proto POST (null) [13:18:19]execute_cgi path=json_proto method=POST [13:18:19]POST find Content-Length [13:18:19]Host: 172.17.56.67:8080 [13:18:19]Content-Length: 677 [13:18:19]Content-Type: application/json [13:18:19] [13:18:19]POST finish read [13:18:19]Found Content-Length = 677 [13:18:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.990, "sum" : 240.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:19]execute_script... [13:18: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)216435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.990, "sum" : 240.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 240.00, "total" : 240.00, "payments": [ { "type": 0, "sum" : 240.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:19]POST & json_proto [13:18:19]process_json_proto [13:18:19]json parsed OK: [13:18:19]protocol is kg_v1.0 [13:18:19]action value=close_receipt [13:18:19]process_action close_receipt [13:18:19]cmd_close_receipt [13:18:19]MH_GetDate [13:18:19]Write to MH i2c: F0 00 00 50 9B DA [13:18:19]Write i2c OK [13:18:19]MH_I2C_Read... [13:18:19]Read from MH i2c: F0 [13:18:19]MH_I2C_Read... [13:18:19]Read from MH i2c: F0 09 00 [13:18:19]MH_I2C_Read... [13:18:19]Read from MH i2c: F0 09 00 50 9B 00 B3 48 BA 65 26 5D 9E 65 83 [13:18:19]GetLastDocTimeStamp 1706706344 [13:18:19]current date 1706707123 [13:18:19]FM_GetShiftState [13:18:19]SAM_PROTO_GetShiftState [13:18:19]wFMCommunicate request_size=4 [13:18:19]MH_SAM_APDU [13:18:19]CAPDU: 80 13 01 00 [13:18:19]Write to MH i2c: E2 08 00 51 9B 80 13 01 00 00 00 00 00 69 [13:18:19]Write i2c OK [13:18:19]MH_I2C_Read... [13:18:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:19]Read from MH i2c: E2 [13:18:19]MH_I2C_Read... [13:18:19]Read from MH i2c: E2 0E 00 [13:18:19]MH_I2C_Read... [13:18:19]Read from MH i2c: E2 0E 00 51 9B 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 BF [13:18:19]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:18:19]wFMCommunicate OK [13:18:19]SAM_PROTO_GetShiftState done [13:18:19]FM_GetShiftState done [13:18:19]opened in 1706659486 [13:18:19]opened+sec_in_day 1706745886 [13:18:19]quantity*price = 24059 [13:18:19]sum+1 = 24061 [13:18:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 240.00 Внесено: 240.00 СДАЧА: 0.00 НСП 1% : 2.13 НДС 12% : 25.55 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 57 31.01.2024 13:18 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49332 ФПД: 87980569943727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T131843&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49332&fm=87980569943727&tin=02508201610067®Number=0000000000092723&sum=24000 [13:18:20]StoreToDocumentArchive [13:18:20]shift 247 fd 49332 [13:18:20]save to /storage/0247/doc_00049332 [13:18:20]save last doc name /storage/0247/doc_00049332 to /storage/kkm_last_doc_name [13:18:20]save OK [13:18:20]Clear old archive folders... [13:18:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:18:20]tlvbuf is 01236820 [13:18:20]SAM_PROTO_ClearQueue [13:18:20]wFMCommunicate request_size=4 [13:18:20]MH_SAM_APDU [13:18:20]CAPDU: 80 09 00 00 [13:18:20]Write to MH i2c: E2 08 00 5E 9B 80 09 00 00 00 00 00 00 6B [13:18:20]Write i2c OK [13:18:20]MH_I2C_Read... [13:18:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:20]Read from MH i2c: E2 [13:18:20]MH_I2C_Read... [13:18:20]Read from MH i2c: E2 03 00 [13:18:20]MH_I2C_Read... [13:18:20]Read from MH i2c: E2 03 00 5E 9B 00 90 00 6D [13:18:20]RAPDU: 90 00 [13:18:20]wFMCommunicate OK [13:18:20]SAM_PROTO_ClearQueue done [13:18:20]KKMCreateOFDPacket [13:18:20]OFDProtocolAddRootSTLVToBuf [13:18:20]FM_MakeSignedData [13:18:20]FM_MakeSignedData [13:18:20]SAM_PROTO_SignData [13:18:20]wFMCommunicate request_size=4 [13:18:20]MH_SAM_APDU [13:18:20]CAPDU: 80 0D 01 02 [13:18:20]Write to MH i2c: E2 08 00 5F 9B 80 0D 01 02 00 00 00 00 73 [13:18:20]Write i2c OK [13:18:20]MH_I2C_Read... [13:18:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:20]Read from MH i2c: E2 [13:18:20]MH_I2C_Read... [13:18:20]Read from MH i2c: E2 03 00 [13:18:20]MH_I2C_Read... [13:18:20]Read from MH i2c: E2 03 00 5F 9B 00 90 00 6E [13:18:20]RAPDU: 90 00 [13:18:20]wFMCommunicate OK [13:18:20]wFMCommunicate request_size=255 [13:18:20]MH_SAM_APDU [13:18:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 FC 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B3 48 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B4 C0 00 00 35 04 06 00 50 [13:18:20]Write to MH i2c: E2 02 01 60 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 FC 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B3 48 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B4 C0 00 00 35 04 06 00 50 00 00 39 [13:18:20]Write i2c OK [13:18:20]MH_I2C_Read... [13:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:21]Read from MH i2c: E2 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: E2 03 00 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: E2 03 00 60 9B 00 90 00 6F [13:18:21]RAPDU: 90 00 [13:18:21]wFMCommunicate OK [13:18:21]wFMCommunicate request_size=10 [13:18:21]MH_SAM_APDU [13:18:21]CAPDU: 80 0D 02 02 05 04 92 9E 5E AF [13:18:21]Write to MH i2c: E2 0D 00 61 9B 80 0D 02 02 05 00 04 92 9E 5E AF 00 00 C1 [13:18:21]Write i2c OK [13:18:21]MH_I2C_Read... [13:18:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:21]Read from MH i2c: E2 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: E2 03 00 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: E2 03 00 61 9B 00 90 00 70 [13:18:21]RAPDU: 90 00 [13:18:21]wFMCommunicate OK [13:18:21]wFMCommunicate request_size=4 [13:18:21]MH_SAM_APDU [13:18:21]CAPDU: 80 0D 03 02 [13:18:21]Write to MH i2c: E2 08 00 62 9B 80 0D 03 02 00 00 00 00 78 [13:18:21]Write i2c OK [13:18:21]MH_I2C_Read... [13:18:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:21]Read from MH i2c: E2 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: E2 0B 00 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: E2 0B 00 62 9B 00 D2 27 4D 3E 85 08 CC C8 90 00 1E [13:18:21]RAPDU: D2 27 4D 3E 85 08 CC C8 90 00 [13:18:21]wFMCommunicate OK [13:18:21]SAM_PROTO_SignData done [13:18:21]FM_MakeSignedData done [13:18:21]CreateOFDProtocolMessage [13:18:21]wFMCommunicate request_size=4 [13:18:21]MH_SAM_APDU [13:18:21]CAPDU: 80 11 00 00 [13:18:21]Write to MH i2c: E2 08 00 63 9B 80 11 00 00 00 00 00 00 78 [13:18:21]Write i2c OK [13:18:21]MH_I2C_Read... [13:18:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:21]Read from MH i2c: E2 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: E2 17 00 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: E2 17 00 63 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C5 [13:18:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:18:21]wFMCommunicate OK [13:18:21]CreateOFDProtocolMessage done [13:18:21]OFDSenderStorePacket 49332 [13:18:21]StoreOFDPacket docnum=49332 [13:18:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E2 EE 07 01 D5 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 FC 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B3 48 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B4 C0 00 00 35 04 06 00 50 04 92 9E 5E AF D2 27 4D 3E 85 08 CC C8 [13:18:21]CheckFolder [13:18:21]dirname=/storage/ofd_packets [13:18:21]CheckFolder done [13:18:21]ProducePacketName [13:18:21]name=ofd_packets/00049332 [13:18:21]NVStorageSaveData ofd_packets/00049332 [13:18:21]File name is /storage/ofd_packets/00049332 [13:18:21]Write 301 bytes [13:18:21]NVStorageSaveData done [13:18:21]OFDSenderStorePacket done [13:18:21]KKMCreateOFDPacket done [13:18:21]NVStorageSaveData kkm_last_timestamp [13:18:21]File name is /storage/kkm_last_timestamp [13:18:21]Write 4 bytes [13:18:21]NVStorageSaveData done [13:18:21]ExternCall_PrintAddStr [13:18:21]wPrintStart [13:18:21]Write to MH i2c: 01 00 00 64 9B FF [13:18:21]Write i2c OK [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: 01 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: 01 07 00 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: 01 07 00 64 9B 00 00 00 00 00 FF 0F 14 [13:18:21]RasterBufferAndPrint [13:18:21]line Счет N : (1)216435 [13:18:21]line ИНН: 02508201610067 [13:18:21]line Контрольно-Кассовый Чек [13:18:21]line ПРОДАЖА [13:18:21]line ТРК (МРК, ГНК) : 22 [13:18:21]line Товар: 2710124130 [13:18:21]line Аи-92-К-5 [13:18:21]line 3.990 * 60.30 [13:18:21]line = 240.60 [13:18:21]line НДС 12% НСП 1% [13:18:21]line > о реализуемом товаре [13:18:21]line ОКРУГЛЕНИЕ: -0.60 [13:18:21]line ИТОГО: 240.00 [13:18:21]line Внесено: 240.00 [13:18:21]line СДАЧА: 0.00 [13:18:21]line НСП 1% : 2.13 [13:18:21]line НДС 12% : 25.55 [13:18:21]line Наличными: 240.00 [13:18:21]line Безнал.: 0.00 [13:18:21]line Место: АЗС № 102 "Партнер Нефть" [13:18:21]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:18:21]line СНО: Общий режим [13:18:21]line Чек 57 31.01.2024 13:18 [13:18:21]line Смена: 247 ФФД: 1.0 [13:18:21]line ЗНМ: 0300000040 [13:18:21]line РНМ: 0000000000092723 [13:18:21]line Версия ККМ: 001 [13:18:21]line ФМ: 0000000000875060 [13:18:21]line ФД: 49332 [13:18:21]line ФПД: 87980569943727 [13:18:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T131843&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49332&fm=87980569943727&tin=02508201610067®Number=0000000000092723&sum=24000 [13:18:21]OFD Sender: Processing packet 49332 [packets to send 12, broken 11] [13:18:21]ProducePacketName [13:18:21]name=ofd_packets/00049332 [13:18:21]OFD Sender: To server: pG, [13:18:21]CommunicateWithHost lk.salyk.kg:30040 [13:18:21]ConnectInit lk.salyk.kg [13:18:21]written 0, free lines is 4095 [13:18:21]Connected sock=9 [13:18:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E2 EE 07 01 D5 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 0F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 FC 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 B3 48 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B4 C0 00 00 35 04 06 00 50 04 92 9E 5E AF D2 27 4D 3E 85 08 CC C8 [13:18:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 56 DE 47 00 EB 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B4 C0 00 00 F4 03 04 00 A5 F4 B9 65 B6 04 01 00 00 36 CE 7C 31 7C F0 CF F5 [13:18:21]CommunicateWithHost err = 0 [13:18:21]CheckOFDResponse [13:18:21]1017 (14) - 77093643461234 [13:18:21]1041 (16) - 0000000000875060 [13:18:21]1040 (4) - 49332 [13:18:21]1012 (4) - 31.01.2024 07:20 [13:18:21]1206 (1) - 0 [13:18:21]OFD Sender: Remove packet 49332 [13:18:21]ProducePacketName [13:18:21]name=ofd_packets/00049332 [13:18:21]NVStorageDeleteData [13:18:21]Write to MH i2c: 01 00 00 8F 9B 2A [13:18:21]Write i2c OK [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: 01 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: 01 07 00 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: 01 07 00 8F 9B 00 00 00 00 00 E7 0C 24 [13:18:21]RasterBufferAndPrint [13:18:21]line [13:18:21]line [13:18:21]line [13:18:21]line [13:18:21]line [13:18:21]written 0, free lines is 3310 [13:18:21]MH_Cut [13:18:21]Write to MH i2c: D1 01 00 96 9B 01 03 [13:18:21]Write i2c OK [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: D1 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: D1 01 00 [13:18:21]MH_I2C_Read... [13:18:21]Read from MH i2c: D1 01 00 96 9B 00 02 [13:18:21]Write to MH i2c: 01 00 00 97 9B 32 [13:18:21]Write i2c OK [13:18:21]MH_I2C_Read... [13:18:22]OFD Sender: No OFD packet to send [13:18:22]*** Cut start [13:18:22]*** Partial cut [13:18:22]*** CUTSNS_PIN = 1 [13:18:22]*** CUTSNS_PIN = 0 [13:18:22]*** Brake cut motor [13:18:23]Read from MH i2c: 01 [13:18:23]MH_I2C_Read... [13:18:23]*** Stop cut motor [13:18:23]*** Cut end [13:18:23]Read from MH i2c: 01 07 00 [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: 01 07 00 97 9B 00 00 00 00 00 FF 0F 47 [13:18:23]process_action close_receipt done [13:18:23]requested_data is exist [13:18:23]produce_requested_data [13:18:23]requested_item fm.sn is exist - process it [13:18:23]wFMCommunicate request_size=4 [13:18:23]MH_SAM_APDU [13:18:23]CAPDU: 80 11 00 00 [13:18:23]Write to MH i2c: E2 08 00 98 9B 80 11 00 00 00 00 00 00 AD [13:18:23]Write i2c OK [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: E2 [13:18:23]MH_I2C_Read... [13:18:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:23]Read from MH i2c: E2 17 00 [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: E2 17 00 98 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FA [13:18:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:18:23]wFMCommunicate OK [13:18:23]requested_item fd.num is exist - process it [13:18:23]SAM_PROTO_GetFieldsCounters [13:18:23]wFMCommunicate request_size=4 [13:18:23]MH_SAM_APDU [13:18:23]CAPDU: 80 13 00 00 [13:18:23]Write to MH i2c: E2 08 00 99 9B 80 13 00 00 00 00 00 00 B0 [13:18:23]Write i2c OK [13:18:23]MH_I2C_Read... [13:18:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:23]Read from MH i2c: E2 [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: E2 62 00 [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: E2 62 00 99 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B4 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [13:18: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B4 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:23]wFMCommunicate OK [13:18:23]SAM_PROTO_GetFieldsCounters done [13:18:23]requested_item shift.num is exist - process it [13:18:23]requested_item shift.opened is exist - process it [13:18:23]req_shift_opened [13:18:23]FM_GetShiftState [13:18:23]SAM_PROTO_GetShiftState [13:18:23]wFMCommunicate request_size=4 [13:18:23]MH_SAM_APDU [13:18:23]CAPDU: 80 13 01 00 [13:18:23]Write to MH i2c: E2 08 00 9A 9B 80 13 01 00 00 00 00 00 B2 [13:18:23]Write i2c OK [13:18:23]MH_I2C_Read... [13:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:23]Read from MH i2c: E2 [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: E2 0E 00 [13:18:23]MH_I2C_Read... [13:18:23]Read from MH i2c: E2 0E 00 9A 9B 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 08 [13:18:23]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:18:23]wFMCommunicate OK [13:18:23]SAM_PROTO_GetShiftState done [13:18:23]FM_GetShiftState done [13:18:23]req_shift_opened done [13:18:23]requested_item shift.open_date is exist - process it [13:18:23]req_shift_open_date [13:18:23]req_shift_open_date done [13:18:23]produce_requested_data done [13:18:23]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49332,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [13:18:23]process_action_free close_receipt [13:18:23]json_value_free [13:18:23]json_value_free done [13:18:23]process_json_proto returns [13:18:23]Send response to host [13:18:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49332,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [13:18:23]free response buf [13:18:23]execute_script done [13:18:23]execute_script returns [13:18:23]free content buf [13:18:23]Sock 7.Close socket [13:18:23]Sock 7.Thread stoped [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:36]int [13:18:36]Write to MH i2c: 01 00 00 9B 9B 36 [13:18:36]*** FLAG_PRN_KEY set [13:18:36]Write i2c OK [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: 01 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: 01 07 00 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: 01 07 00 9B 9B 00 08 00 00 00 FF 0F 53 [13:18:36]state=0 [13:18:36]Key pressed [13:18:36]Feed [13:18:36]Write to MH i2c: D8 00 00 9C 9B 0E [13:18:36]Write i2c OK [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: D8 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: D8 01 00 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: D8 01 00 9C 9B 00 0F [13:18:36]int [13:18:36]Write to MH i2c: 01 00 00 9D 9B 38 [13:18:36]Write i2c OK [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: 01 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: 01 07 00 [13:18:36]MH_I2C_Read... [13:18:36]Read from MH i2c: 01 07 00 9D 9B 00 48 00 00 00 3C 00 C3 [13:18:36]state=2 [13:18:36]Key pressed [13:18:37]OFD Sender: No OFD packet to send [13:18:37]int [13:18:37]Write to MH i2c: 01 00 00 9E 9B 39 [13:18:37]*** FLAG_PRN_KEY reset [13:18:37]Write i2c OK [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: 01 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: 01 07 00 [13:18:37]MH_I2C_Read... [13:18:37]Read from MH i2c: 01 07 00 9E 9B 00 00 00 00 00 F6 0F 45 [13:18:37]state=2 [13:18:37]Stop feed [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:56]accept exits with 10 [13:22:56]New connection [13:22:56]New thread 3066813796 created [13:22:56]Thread 3066670436 joined [13:22:56]Waiting for new connection... [13:22:56] Sock 10.Parse request [13:22:56]Sock 10.Check first char [13:22:56]Sock 10.First char is OK [13:22:56]request: POST /json_proto HTTP/1.0 [13:22:56]Method: POST [13:22:56]URL: /json_proto [13:22:56]Method is POST - this is cgi request [13:22:56]url: /json_proto [13:22:56]query_string will be loaded in cgi processing [13:22:56]execute_cgi json_proto POST (null) [13:22:56]execute_cgi path=json_proto method=POST [13:22:56]POST find Content-Length [13:22:56]Host: 172.17.56.67:8080 [13:22:56]Content-Length: 677 [13:22:56]Content-Type: application/json [13:22:56] [13:22:56]POST finish read [13:22:56]Found Content-Length = 677 [13:22:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:56]execute_script... [13:22: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)216436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:22:56]POST & json_proto [13:22:56]process_json_proto [13:22:56]json parsed OK: [13:22:56]protocol is kg_v1.0 [13:22:56]action value=close_receipt [13:22:56]process_action close_receipt [13:22:56]cmd_close_receipt [13:22:56]MH_GetDate [13:22:56]Write to MH i2c: F0 00 00 9F 9B 29 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: F0 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: F0 09 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: F0 09 00 9F 9B 00 C8 49 BA 65 26 5D 9E 65 E8 [13:22:56]GetLastDocTimeStamp 1706707123 [13:22:56]current date 1706707400 [13:22:56]FM_GetShiftState [13:22:56]SAM_PROTO_GetShiftState [13:22:56]wFMCommunicate request_size=4 [13:22:56]MH_SAM_APDU [13:22:56]CAPDU: 80 13 01 00 [13:22:56]Write to MH i2c: E2 08 00 A0 9B 80 13 01 00 00 00 00 00 B8 [13:22:56]Write i2c OK [13:22:56]MH_I2C_Read... [13:22:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:22:56]Read from MH i2c: E2 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 0E 00 [13:22:56]MH_I2C_Read... [13:22:56]Read from MH i2c: E2 0E 00 A0 9B 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 0E [13:22:56]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:22:56]wFMCommunicate OK [13:22:56]SAM_PROTO_GetShiftState done [13:22:56]FM_GetShiftState done [13:22:56]opened in 1706659486 [13:22:56]opened+sec_in_day 1706745886 [13:22:56]quantity*price = 50049 [13:22:56]sum+1 = 50050 [13:22:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 58 31.01.2024 13:23 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49333 ФПД: 130487002443384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T132320&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49333&fm=130487002443384&tin=02508201610067®Number=0000000000092723&sum=50000 [13:22:57]StoreToDocumentArchive [13:22:57]shift 247 fd 49333 [13:22:57]save to /storage/0247/doc_00049333 [13:22:57]save last doc name /storage/0247/doc_00049333 to /storage/kkm_last_doc_name [13:22:57]save OK [13:22:57]Clear old archive folders... [13:22:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:22:57]tlvbuf is 011E9F30 [13:22:57]SAM_PROTO_ClearQueue [13:22:57]wFMCommunicate request_size=4 [13:22:57]MH_SAM_APDU [13:22:57]CAPDU: 80 09 00 00 [13:22:57]Write to MH i2c: E2 08 00 AD 9B 80 09 00 00 00 00 00 00 BA [13:22:57]Write i2c OK [13:22:57]MH_I2C_Read... [13:22:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:22:57]Read from MH i2c: E2 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 03 00 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 03 00 AD 9B 00 90 00 BC [13:22:57]RAPDU: 90 00 [13:22:57]wFMCommunicate OK [13:22:57]SAM_PROTO_ClearQueue done [13:22:57]KKMCreateOFDPacket [13:22:57]OFDProtocolAddRootSTLVToBuf [13:22:57]FM_MakeSignedData [13:22:57]FM_MakeSignedData [13:22:57]SAM_PROTO_SignData [13:22:57]wFMCommunicate request_size=4 [13:22:57]MH_SAM_APDU [13:22:57]CAPDU: 80 0D 01 02 [13:22:57]Write to MH i2c: E2 08 00 AE 9B 80 0D 01 02 00 00 00 00 C2 [13:22:57]Write i2c OK [13:22:57]MH_I2C_Read... [13:22:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:22:57]Read from MH i2c: E2 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 03 00 [13:22:57]MH_I2C_Read... [13:22:57]Read from MH i2c: E2 03 00 AE 9B 00 90 00 BD [13:22:57]RAPDU: 90 00 [13:22:57]wFMCommunicate OK [13:22:57]wFMCommunicate request_size=255 [13:22:57]MH_SAM_APDU [13:22:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C8 49 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B5 C0 00 00 35 04 06 00 76 [13:22:57]Write to MH i2c: E2 02 01 AF 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C8 49 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B5 C0 00 00 35 04 06 00 76 00 00 3E [13:22:57]Write i2c OK [13:22:57]MH_I2C_Read... [13:22:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:58]Read from MH i2c: E2 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 03 00 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 03 00 AF 9B 00 90 00 BE [13:22:58]RAPDU: 90 00 [13:22:58]wFMCommunicate OK [13:22:58]wFMCommunicate request_size=10 [13:22:58]MH_SAM_APDU [13:22:58]CAPDU: 80 0D 02 02 05 AD 5F 6D AE 78 [13:22:58]Write to MH i2c: E2 0D 00 B0 9B 80 0D 02 02 05 00 AD 5F 6D AE 78 00 00 6E [13:22:58]Write i2c OK [13:22:58]MH_I2C_Read... [13:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:22:58]Read from MH i2c: E2 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 03 00 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 03 00 B0 9B 00 90 00 BF [13:22:58]RAPDU: 90 00 [13:22:58]wFMCommunicate OK [13:22:58]wFMCommunicate request_size=4 [13:22:58]MH_SAM_APDU [13:22:58]CAPDU: 80 0D 03 02 [13:22:58]Write to MH i2c: E2 08 00 B1 9B 80 0D 03 02 00 00 00 00 C7 [13:22:58]Write i2c OK [13:22:58]MH_I2C_Read... [13:22:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:22:58]Read from MH i2c: E2 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 0B 00 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 0B 00 B1 9B 00 A0 E8 AF 32 9F 72 89 D4 90 00 9F [13:22:58]RAPDU: A0 E8 AF 32 9F 72 89 D4 90 00 [13:22:58]wFMCommunicate OK [13:22:58]SAM_PROTO_SignData done [13:22:58]FM_MakeSignedData done [13:22:58]CreateOFDProtocolMessage [13:22:58]wFMCommunicate request_size=4 [13:22:58]MH_SAM_APDU [13:22:58]CAPDU: 80 11 00 00 [13:22:58]Write to MH i2c: E2 08 00 B2 9B 80 11 00 00 00 00 00 00 C7 [13:22:58]Write i2c OK [13:22:58]MH_I2C_Read... [13:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:22:58]Read from MH i2c: E2 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 17 00 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: E2 17 00 B2 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 14 [13:22:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:22:58]wFMCommunicate OK [13:22:58]CreateOFDProtocolMessage done [13:22:58]OFDSenderStorePacket 49333 [13:22:58]StoreOFDPacket docnum=49333 [13:22:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 AA 36 07 01 D2 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C8 49 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B5 C0 00 00 35 04 06 00 76 AD 5F 6D AE 78 A0 E8 AF 32 9F 72 89 D4 [13:22:58]CheckFolder [13:22:58]dirname=/storage/ofd_packets [13:22:58]CheckFolder done [13:22:58]ProducePacketName [13:22:58]name=ofd_packets/00049333 [13:22:58]NVStorageSaveData ofd_packets/00049333 [13:22:58]File name is /storage/ofd_packets/00049333 [13:22:58]Write 301 bytes [13:22:58]NVStorageSaveData done [13:22:58]OFDSenderStorePacket done [13:22:58]KKMCreateOFDPacket done [13:22:58]NVStorageSaveData kkm_last_timestamp [13:22:58]File name is /storage/kkm_last_timestamp [13:22:58]Write 4 bytes [13:22:58]NVStorageSaveData done [13:22:58]ExternCall_PrintAddStr [13:22:58]wPrintStart [13:22:58]Write to MH i2c: 01 00 00 B3 9B 4E [13:22:58]Write i2c OK [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: 01 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: 01 07 00 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: 01 07 00 B3 9B 00 00 00 00 00 FF 0F 63 [13:22:58]RasterBufferAndPrint [13:22:58]line Счет N : (1)216436 [13:22:58]line ИНН: 02508201610067 [13:22:58]line Контрольно-Кассовый Чек [13:22:58]line ПРОДАЖА [13:22:58]line ТРК (МРК, ГНК) : 12 [13:22:58]line Товар: 2710124130 [13:22:58]line Аи-92-К-5 [13:22:58]line 8.300 * 60.30 [13:22:58]line = 500.49 [13:22:58]line НДС 12% НСП 1% [13:22:58]line > о реализуемом товаре [13:22:58]line ОКРУГЛЕНИЕ: -0.49 [13:22:58]line ИТОГО: 500.00 [13:22:58]line Внесено: 500.00 [13:22:58]line СДАЧА: 0.00 [13:22:58]line НСП 1% : 4.43 [13:22:58]line НДС 12% : 53.15 [13:22:58]line Наличными: 500.00 [13:22:58]line Безнал.: 0.00 [13:22:58]line Место: АЗС № 102 "Партнер Нефть" [13:22:58]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:22:58]line СНО: Общий режим [13:22:58]line Чек 58 31.01.2024 13:23 [13:22:58]line Смена: 247 ФФД: 1.0 [13:22:58]line ЗНМ: 0300000040 [13:22:58]line РНМ: 0000000000092723 [13:22:58]line Версия ККМ: 001 [13:22:58]line ФМ: 0000000000875060 [13:22:58]line ФД: 49333 [13:22:58]line ФПД: 130487002443384 [13:22:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T132320&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49333&fm=130487002443384&tin=02508201610067®Number=0000000000092723&sum=50000 [13:22:58]OFD Sender: Processing packet 49333 [packets to send 12, broken 11] [13:22:58]ProducePacketName [13:22:58]name=ofd_packets/00049333 [13:22:58]OFD Sender: To server: pG, [13:22:58]CommunicateWithHost lk.salyk.kg:30040 [13:22:58]ConnectInit lk.salyk.kg [13:22:58]written 0, free lines is 4095 [13:22:58]Connected sock=9 [13:22:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 AA 36 07 01 D2 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 C8 49 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B5 C0 00 00 35 04 06 00 76 AD 5F 6D AE 78 A0 E8 AF 32 9F 72 89 D4 [13:22:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 99 72 47 00 D6 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 35 30 36 30 10 04 04 00 B5 C0 00 00 F4 03 04 00 BA F5 B9 65 B6 04 01 00 00 72 5D 73 73 A3 52 1F A1 [13:22:58]CommunicateWithHost err = 0 [13:22:58]CheckOFDResponse [13:22:58]1017 (14) - 77093643461234 [13:22:58]1041 (16) - 0000000000875060 [13:22:58]1040 (4) - 49333 [13:22:58]1012 (4) - 31.01.2024 07:24 [13:22:58]1206 (1) - 0 [13:22:58]OFD Sender: Remove packet 49333 [13:22:58]ProducePacketName [13:22:58]name=ofd_packets/00049333 [13:22:58]NVStorageDeleteData [13:22:58]Write to MH i2c: 01 00 00 DE 9B 79 [13:22:58]Write i2c OK [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: 01 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: 01 07 00 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: 01 07 00 DE 9B 00 00 00 00 00 ED 0C 79 [13:22:58]RasterBufferAndPrint [13:22:58]line [13:22:58]line [13:22:58]line [13:22:58]line [13:22:58]line [13:22:58]written 0, free lines is 3315 [13:22:58]MH_Cut [13:22:58]Write to MH i2c: D1 01 00 E5 9B 01 52 [13:22:58]Write i2c OK [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: D1 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: D1 01 00 [13:22:58]MH_I2C_Read... [13:22:58]Read from MH i2c: D1 01 00 E5 9B 00 51 [13:22:58]Write to MH i2c: 01 00 00 E6 9B 81 [13:22:58]Write i2c OK [13:22:58]MH_I2C_Read... [13:22:59]OFD Sender: No OFD packet to send [13:22:59]*** Cut start [13:22:59]*** Partial cut [13:22:59]*** CUTSNS_PIN = 1 [13:22:59]*** CUTSNS_PIN = 0 [13:22:59]*** Brake cut motor [13:23:00]Read from MH i2c: 01 [13:23:00]MH_I2C_Read... [13:23:00]*** Stop cut motor [13:23:00]*** Cut end [13:23:00]Read from MH i2c: 01 07 00 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: 01 07 00 E6 9B 00 00 00 00 00 FF 0F 96 [13:23:00]process_action close_receipt done [13:23:00]requested_data is exist [13:23:00]produce_requested_data [13:23:00]requested_item fm.sn is exist - process it [13:23:00]wFMCommunicate request_size=4 [13:23:00]MH_SAM_APDU [13:23:00]CAPDU: 80 11 00 00 [13:23:00]Write to MH i2c: E2 08 00 E7 9B 80 11 00 00 00 00 00 00 FC [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 [13:23:00]MH_I2C_Read... [13:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:00]Read from MH i2c: E2 17 00 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 17 00 E7 9B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 49 [13:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:23:00]wFMCommunicate OK [13:23:00]requested_item fd.num is exist - process it [13:23:00]SAM_PROTO_GetFieldsCounters [13:23:00]wFMCommunicate request_size=4 [13:23:00]MH_SAM_APDU [13:23:00]CAPDU: 80 13 00 00 [13:23:00]Write to MH i2c: E2 08 00 E8 9B 80 13 00 00 00 00 00 00 FF [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:00]Read from MH i2c: E2 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 62 00 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 62 00 E8 9B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B5 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [13:23: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B5 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:00]wFMCommunicate OK [13:23:00]SAM_PROTO_GetFieldsCounters done [13:23:00]requested_item shift.num is exist - process it [13:23:00]requested_item shift.opened is exist - process it [13:23:00]req_shift_opened [13:23:00]FM_GetShiftState [13:23:00]SAM_PROTO_GetShiftState [13:23:00]wFMCommunicate request_size=4 [13:23:00]MH_SAM_APDU [13:23:00]CAPDU: 80 13 01 00 [13:23:00]Write to MH i2c: E2 08 00 E9 9B 80 13 01 00 00 00 00 00 01 [13:23:00]Write i2c OK [13:23:00]MH_I2C_Read... [13:23:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:00]Read from MH i2c: E2 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 0E 00 [13:23:00]MH_I2C_Read... [13:23:00]Read from MH i2c: E2 0E 00 E9 9B 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 57 [13:23:00]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:23:00]wFMCommunicate OK [13:23:00]SAM_PROTO_GetShiftState done [13:23:00]FM_GetShiftState done [13:23:00]req_shift_opened done [13:23:00]requested_item shift.open_date is exist - process it [13:23:00]req_shift_open_date [13:23:00]req_shift_open_date done [13:23:00]produce_requested_data done [13:23:00]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49333,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [13:23:00]process_action_free close_receipt [13:23:00]json_value_free [13:23:00]json_value_free done [13:23:00]process_json_proto returns [13:23:00]Send response to host [13:23:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49333,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [13:23:00]free response buf [13:23:00]execute_script done [13:23:00]execute_script returns [13:23:00]free content buf [13:23:00]Sock 10.Close socket [13:23:00]Sock 10.Thread stoped [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:15]int [13:23:15]Write to MH i2c: 01 00 00 EA 9B 85 [13:23:15]*** FLAG_PRN_KEY set [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: 01 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: 01 07 00 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: 01 07 00 EA 9B 00 08 00 00 00 FF 0F A2 [13:23:15]state=0 [13:23:15]Key pressed [13:23:15]Feed [13:23:15]Write to MH i2c: D8 00 00 EB 9B 5D [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: D8 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: D8 01 00 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: D8 01 00 EB 9B 00 5E [13:23:15]int [13:23:15]Write to MH i2c: 01 00 00 EC 9B 87 [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: 01 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: 01 07 00 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: 01 07 00 EC 9B 00 48 00 00 00 3C 00 12 [13:23:15]state=2 [13:23:15]Key pressed [13:23:15]int [13:23:15]Write to MH i2c: 01 00 00 ED 9B 88 [13:23:15]*** FLAG_PRN_KEY reset [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: 01 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: 01 07 00 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: 01 07 00 ED 9B 00 00 00 00 00 F6 0F 94 [13:23:15]state=2 [13:23:15]Stop feed [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:11]accept exits with 7 [13:24:11]New connection [13:24:11]New thread 3066670436 created [13:24:11]Thread 3066813796 joined [13:24:11]Waiting for new connection... [13:24:11] Sock 7.Parse request [13:24:11]Sock 7.Check first char [13:24:11]Sock 7.First char is OK [13:24:11]request: POST /json_proto HTTP/1.0 [13:24:11]Method: POST [13:24:11]URL: /json_proto [13:24:11]Method is POST - this is cgi request [13:24:11]url: /json_proto [13:24:11]query_string will be loaded in cgi processing [13:24:11]execute_cgi json_proto POST (null) [13:24:11]execute_cgi path=json_proto method=POST [13:24:11]POST find Content-Length [13:24:11]Host: 172.17.56.67:8080 [13:24:11]Content-Length: 677 [13:24:11]Content-Type: application/json [13:24:11] [13:24:11]POST finish read [13:24:11]Found Content-Length = 677 [13:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:11]execute_script... [13:24: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)216437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:11]POST & json_proto [13:24:11]process_json_proto [13:24:11]json parsed OK: [13:24:11]protocol is kg_v1.0 [13:24:11]action value=close_receipt [13:24:11]process_action close_receipt [13:24:11]cmd_close_receipt [13:24:11]MH_GetDate [13:24:11]Write to MH i2c: F0 00 00 EE 9B 78 [13:24:11]Write i2c OK [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: F0 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: F0 09 00 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: F0 09 00 EE 9B 00 13 4A BA 65 26 5D 9E 65 83 [13:24:11]GetLastDocTimeStamp 1706707400 [13:24:11]current date 1706707475 [13:24:11]FM_GetShiftState [13:24:11]SAM_PROTO_GetShiftState [13:24:11]wFMCommunicate request_size=4 [13:24:11]MH_SAM_APDU [13:24:11]CAPDU: 80 13 01 00 [13:24:11]Write to MH i2c: E2 08 00 EF 9B 80 13 01 00 00 00 00 00 07 [13:24:11]Write i2c OK [13:24:11]MH_I2C_Read... [13:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:11]Read from MH i2c: E2 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: E2 0E 00 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: E2 0E 00 EF 9B 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 5D [13:24:11]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:24:11]wFMCommunicate OK [13:24:11]SAM_PROTO_GetShiftState done [13:24:11]FM_GetShiftState done [13:24:11]opened in 1706659486 [13:24:11]opened+sec_in_day 1706745886 [13:24:11]quantity*price = 40039 [13:24:11]sum+1 = 40040 [13:24:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 59 31.01.2024 13:24 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49334 ФПД: 258200853488108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T132435&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49334&fm=258200853488108&tin=02508201610067®Number=0000000000092723&sum=40000 [13:24:12]StoreToDocumentArchive [13:24:12]shift 247 fd 49334 [13:24:12]save to /storage/0247/doc_00049334 [13:24:12]save last doc name /storage/0247/doc_00049334 to /storage/kkm_last_doc_name [13:24:12]save OK [13:24:12]Clear old archive folders... [13:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:12]tlvbuf is 0150C5F0 [13:24:12]SAM_PROTO_ClearQueue [13:24:12]wFMCommunicate request_size=4 [13:24:12]MH_SAM_APDU [13:24:12]CAPDU: 80 09 00 00 [13:24:12]Write to MH i2c: E2 08 00 FC 9B 80 09 00 00 00 00 00 00 09 [13:24:12]Write i2c OK [13:24:12]MH_I2C_Read... [13:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:12]Read from MH i2c: E2 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 03 00 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 03 00 FC 9B 00 90 00 0B [13:24:12]RAPDU: 90 00 [13:24:12]wFMCommunicate OK [13:24:12]SAM_PROTO_ClearQueue done [13:24:12]KKMCreateOFDPacket [13:24:12]OFDProtocolAddRootSTLVToBuf [13:24:12]FM_MakeSignedData [13:24:12]FM_MakeSignedData [13:24:12]SAM_PROTO_SignData [13:24:12]wFMCommunicate request_size=4 [13:24:12]MH_SAM_APDU [13:24:12]CAPDU: 80 0D 01 02 [13:24:12]Write to MH i2c: E2 08 00 FD 9B 80 0D 01 02 00 00 00 00 11 [13:24:12]Write i2c OK [13:24:12]MH_I2C_Read... [13:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:12]Read from MH i2c: E2 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 03 00 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 03 00 FD 9B 00 90 00 0C [13:24:12]RAPDU: 90 00 [13:24:12]wFMCommunicate OK [13:24:12]wFMCommunicate request_size=255 [13:24:12]MH_SAM_APDU [13:24:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 3B 00 00 00 F4 03 04 00 13 4A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B6 C0 00 00 35 04 06 00 EA [13:24:12]Write to MH i2c: E2 02 01 FE 9B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 3B 00 00 00 F4 03 04 00 13 4A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B6 C0 00 00 35 04 06 00 EA 00 00 99 [13:24:12]Write i2c OK [13:24:12]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 [13:24:13]MH_I2C_Read... [13:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:13]Read from MH i2c: E2 03 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 FE 9B 00 90 00 0D [13:24:13]RAPDU: 90 00 [13:24:13]wFMCommunicate OK [13:24:13]wFMCommunicate request_size=10 [13:24:13]MH_SAM_APDU [13:24:13]CAPDU: 80 0D 02 02 05 D5 12 27 21 EC [13:24:13]Write to MH i2c: E2 0D 00 FF 9B 80 0D 02 02 05 00 D5 12 27 21 EC 00 00 39 [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:13]Read from MH i2c: E2 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 FF 9B 00 90 00 0E [13:24:13]RAPDU: 90 00 [13:24:13]wFMCommunicate OK [13:24:13]wFMCommunicate request_size=4 [13:24:13]MH_SAM_APDU [13:24:13]CAPDU: 80 0D 03 02 [13:24:13]Write to MH i2c: E2 08 00 00 9C 80 0D 03 02 00 00 00 00 17 [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:13]Read from MH i2c: E2 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 0B 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 0B 00 00 9C 00 6D 97 05 B3 77 3F 92 1E 90 00 3A [13:24:13]RAPDU: 6D 97 05 B3 77 3F 92 1E 90 00 [13:24:13]wFMCommunicate OK [13:24:13]SAM_PROTO_SignData done [13:24:13]FM_MakeSignedData done [13:24:13]CreateOFDProtocolMessage [13:24:13]wFMCommunicate request_size=4 [13:24:13]MH_SAM_APDU [13:24:13]CAPDU: 80 11 00 00 [13:24:13]Write to MH i2c: E2 08 00 01 9C 80 11 00 00 00 00 00 00 17 [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:13]Read from MH i2c: E2 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 17 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 17 00 01 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 64 [13:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:24:13]wFMCommunicate OK [13:24:13]CreateOFDProtocolMessage done [13:24:13]OFDSenderStorePacket 49334 [13:24:13]StoreOFDPacket docnum=49334 [13:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 91 BA 07 01 AA 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 3B 00 00 00 F4 03 04 00 13 4A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B6 C0 00 00 35 04 06 00 EA D5 12 27 21 EC 6D 97 05 B3 77 3F 92 1E [13:24:13]CheckFolder [13:24:13]dirname=/storage/ofd_packets [13:24:13]CheckFolder done [13:24:13]ProducePacketName [13:24:13]name=ofd_packets/00049334 [13:24:13]NVStorageSaveData ofd_packets/00049334 [13:24:13]File name is /storage/ofd_packets/00049334 [13:24:13]Write 301 bytes [13:24:13]NVStorageSaveData done [13:24:13]OFDSenderStorePacket done [13:24:13]KKMCreateOFDPacket done [13:24:13]NVStorageSaveData kkm_last_timestamp [13:24:13]File name is /storage/kkm_last_timestamp [13:24:13]Write 4 bytes [13:24:13]NVStorageSaveData done [13:24:13]ExternCall_PrintAddStr [13:24:13]wPrintStart [13:24:13]Write to MH i2c: 01 00 00 02 9C 9E [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: 01 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: 01 07 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: 01 07 00 02 9C 00 00 00 00 00 FF 0F B3 [13:24:13]RasterBufferAndPrint [13:24:13]line Счет N : (1)216437 [13:24:13]line ИНН: 02508201610067 [13:24:13]line Контрольно-Кассовый Чек [13:24:13]line ПРОДАЖА [13:24:13]line ТРК (МРК, ГНК) : 22 [13:24:13]line Товар: 2710124130 [13:24:13]line Аи-92-К-5 [13:24:13]line 6.640 * 60.30 [13:24:13]line = 400.39 [13:24:13]line НДС 12% НСП 1% [13:24:13]line > о реализуемом товаре [13:24:13]line ОКРУГЛЕНИЕ: -0.39 [13:24:13]line ИТОГО: 400.00 [13:24:13]line Внесено: 400.00 [13:24:13]line СДАЧА: 0.00 [13:24:13]line НСП 1% : 3.54 [13:24:13]line НДС 12% : 42.52 [13:24:13]line Наличными: 400.00 [13:24:13]line Безнал.: 0.00 [13:24:13]line Место: АЗС № 102 "Партнер Нефть" [13:24:13]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:24:13]line СНО: Общий режим [13:24:13]line Чек 59 31.01.2024 13:24 [13:24:13]line Смена: 247 ФФД: 1.0 [13:24:13]line ЗНМ: 0300000040 [13:24:13]line РНМ: 0000000000092723 [13:24:13]line Версия ККМ: 001 [13:24:13]line ФМ: 0000000000875060 [13:24:13]line ФД: 49334 [13:24:13]line ФПД: 258200853488108 [13:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T132435&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49334&fm=258200853488108&tin=02508201610067®Number=0000000000092723&sum=40000 [13:24:13]OFD Sender: Processing packet 49334 [packets to send 12, broken 11] [13:24:13]ProducePacketName [13:24:13]name=ofd_packets/00049334 [13:24:13]OFD Sender: To server: pG, [13:24:13]CommunicateWithHost lk.salyk.kg:30040 [13:24:13]ConnectInit lk.salyk.kg [13:24:13]written 0, free lines is 4095 [13:24:13]Connected sock=10 [13:24:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 91 BA 07 01 AA 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 3B 00 00 00 F4 03 04 00 13 4A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B6 C0 00 00 35 04 06 00 EA D5 12 27 21 EC 6D 97 05 B3 77 3F 92 1E [13:24:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 6E 64 47 00 71 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 35 30 36 30 10 04 04 00 B6 C0 00 00 F4 03 04 00 06 F6 B9 65 B6 04 01 00 00 98 58 36 DE 5D 71 8F C5 [13:24:13]CommunicateWithHost err = 0 [13:24:13]CheckOFDResponse [13:24:13]1017 (14) - 77093643461234 [13:24:13]1041 (16) - 0000000000875060 [13:24:13]1040 (4) - 49334 [13:24:13]1012 (4) - 31.01.2024 07:25 [13:24:13]1206 (1) - 0 [13:24:13]OFD Sender: Remove packet 49334 [13:24:13]ProducePacketName [13:24:13]name=ofd_packets/00049334 [13:24:13]NVStorageDeleteData [13:24:14]Write to MH i2c: 01 00 00 2D 9C C9 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 07 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 07 00 2D 9C 00 00 00 00 00 EB 0C C7 [13:24:14]RasterBufferAndPrint [13:24:14]line [13:24:14]line [13:24:14]line [13:24:14]line [13:24:14]line [13:24:14]written 0, free lines is 3314 [13:24:14]MH_Cut [13:24:14]Write to MH i2c: D1 01 00 34 9C 01 A2 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: D1 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: D1 01 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: D1 01 00 34 9C 00 A1 [13:24:14]Write to MH i2c: 01 00 00 35 9C D1 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]OFD Sender: No OFD packet to send [13:24:14]*** Cut start [13:24:14]*** Partial cut [13:24:14]*** CUTSNS_PIN = 1 [13:24:14]*** CUTSNS_PIN = 0 [13:24:14]*** Brake cut motor [13:24:15]Read from MH i2c: 01 [13:24:15]MH_I2C_Read... [13:24:15]*** Stop cut motor [13:24:15]*** Cut end [13:24:15]Read from MH i2c: 01 07 00 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: 01 07 00 35 9C 00 00 00 00 00 FF 0F E6 [13:24:15]process_action close_receipt done [13:24:15]requested_data is exist [13:24:15]produce_requested_data [13:24:15]requested_item fm.sn is exist - process it [13:24:15]wFMCommunicate request_size=4 [13:24:15]MH_SAM_APDU [13:24:15]CAPDU: 80 11 00 00 [13:24:15]Write to MH i2c: E2 08 00 36 9C 80 11 00 00 00 00 00 00 4C [13:24:15]Write i2c OK [13:24:15]MH_I2C_Read... [13:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:15]Read from MH i2c: E2 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: E2 17 00 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: E2 17 00 36 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 99 [13:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:24:15]wFMCommunicate OK [13:24:15]requested_item fd.num is exist - process it [13:24:15]SAM_PROTO_GetFieldsCounters [13:24:15]wFMCommunicate request_size=4 [13:24:15]MH_SAM_APDU [13:24:15]CAPDU: 80 13 00 00 [13:24:15]Write to MH i2c: E2 08 00 37 9C 80 13 00 00 00 00 00 00 4F [13:24:15]Write i2c OK [13:24:15]MH_I2C_Read... [13:24:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:15]Read from MH i2c: E2 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: E2 62 00 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: E2 62 00 37 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B6 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [13:24:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B6 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:15]wFMCommunicate OK [13:24:15]SAM_PROTO_GetFieldsCounters done [13:24:15]requested_item shift.num is exist - process it [13:24:15]requested_item shift.opened is exist - process it [13:24:15]req_shift_opened [13:24:15]FM_GetShiftState [13:24:15]SAM_PROTO_GetShiftState [13:24:15]wFMCommunicate request_size=4 [13:24:15]MH_SAM_APDU [13:24:15]CAPDU: 80 13 01 00 [13:24:15]Write to MH i2c: E2 08 00 38 9C 80 13 01 00 00 00 00 00 51 [13:24:15]Write i2c OK [13:24:15]MH_I2C_Read... [13:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:15]Read from MH i2c: E2 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: E2 0E 00 [13:24:15]MH_I2C_Read... [13:24:15]Read from MH i2c: E2 0E 00 38 9C 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 A7 [13:24:15]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:24:15]wFMCommunicate OK [13:24:15]SAM_PROTO_GetShiftState done [13:24:15]FM_GetShiftState done [13:24:15]req_shift_opened done [13:24:15]requested_item shift.open_date is exist - process it [13:24:15]req_shift_open_date [13:24:15]req_shift_open_date done [13:24:15]produce_requested_data done [13:24:15]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49334,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [13:24:15]process_action_free close_receipt [13:24:15]json_value_free [13:24:15]json_value_free done [13:24:15]process_json_proto returns [13:24:15]Send response to host [13:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49334,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [13:24:15]free response buf [13:24:15]execute_script done [13:24:15]execute_script returns [13:24:15]free content buf [13:24:15]Sock 7.Close socket [13:24:15]Sock 7.Thread stoped [13:24:17]int [13:24:17]Write to MH i2c: 01 00 00 39 9C D5 [13:24:17]*** FLAG_PRN_KEY set [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 07 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 07 00 39 9C 00 08 00 00 00 FF 0F F2 [13:24:17]state=0 [13:24:17]Key pressed [13:24:17]Feed [13:24:17]Write to MH i2c: D8 00 00 3A 9C AD [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: D8 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: D8 01 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: D8 01 00 3A 9C 00 AE [13:24:17]int [13:24:17]Write to MH i2c: 01 00 00 3B 9C D7 [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 07 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 07 00 3B 9C 00 48 00 00 00 3C 00 62 [13:24:17]state=2 [13:24:17]Key pressed [13:24:17]int [13:24:17]Write to MH i2c: 01 00 00 3C 9C D8 [13:24:17]*** FLAG_PRN_KEY reset [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 07 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 07 00 3C 9C 00 00 00 00 00 F9 0F E7 [13:24:17]state=2 [13:24:17]Stop feed [13:24:17]int [13:24:17]Write to MH i2c: 01 00 00 3D 9C D9 [13:24:17]*** FLAG_PRN_KEY set [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 07 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 07 00 3D 9C 00 08 00 00 00 FF 0F F6 [13:24:17]state=0 [13:24:17]Key pressed [13:24:17]Feed [13:24:17]Write to MH i2c: D8 00 00 3E 9C B1 [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: D8 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: D8 01 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: D8 01 00 3E 9C 00 B2 [13:24:17]int [13:24:17]Write to MH i2c: 01 00 00 3F 9C DB [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 07 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 07 00 3F 9C 00 48 00 00 00 3C 00 66 [13:24:17]state=2 [13:24:17]Key pressed [13:24:17]int [13:24:17]Write to MH i2c: 01 00 00 40 9C DC [13:24:17]*** FLAG_PRN_KEY reset [13:24:17]Write i2c OK [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 07 00 [13:24:17]MH_I2C_Read... [13:24:17]Read from MH i2c: 01 07 00 40 9C 00 00 00 00 00 F5 0F E7 [13:24:17]state=2 [13:24:17]Stop feed [13:24:18]int [13:24:18]Write to MH i2c: 01 00 00 41 9C DD [13:24:18]*** FLAG_PRN_KEY set [13:24:18]Write i2c OK [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 07 00 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 07 00 41 9C 00 08 00 00 00 FF 0F FA [13:24:18]state=0 [13:24:18]Key pressed [13:24:18]Feed [13:24:18]Write to MH i2c: D8 00 00 42 9C B5 [13:24:18]Write i2c OK [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: D8 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: D8 01 00 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: D8 01 00 42 9C 00 B6 [13:24:18]int [13:24:18]Write to MH i2c: 01 00 00 43 9C DF [13:24:18]Write i2c OK [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 07 00 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 07 00 43 9C 00 48 00 00 00 3C 00 6A [13:24:18]state=2 [13:24:18]Key pressed [13:24:18]int line is 0 - check status [13:24:18]Write to MH i2c: 01 00 00 44 9C E0 [13:24:18]*** FLAG_PRN_KEY reset [13:24:18]Write i2c OK [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 07 00 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 07 00 44 9C 00 00 00 00 00 F7 0F ED [13:24:18]state=2 [13:24:18]Stop feed [13:24:18]int [13:24:18]Write to MH i2c: 01 00 00 45 9C E1 [13:24:18]Write i2c OK [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 07 00 [13:24:18]MH_I2C_Read... [13:24:18]Read from MH i2c: 01 07 00 45 9C 00 00 00 00 00 F8 0F EF [13:24:18]state=0 [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:13]accept exits with 9 [13:25:13]New connection [13:25:13]New thread 3066813796 created [13:25:13]Thread 3066670436 joined [13:25:13]Waiting for new connection... [13:25:13] Sock 9.Parse request [13:25:13]Sock 9.Check first char [13:25:13]Sock 9.First char is OK [13:25:13]request: POST /json_proto HTTP/1.0 [13:25:13]Method: POST [13:25:13]URL: /json_proto [13:25:13]Method is POST - this is cgi request [13:25:13]url: /json_proto [13:25:13]query_string will be loaded in cgi processing [13:25:13]execute_cgi json_proto POST (null) [13:25:13]execute_cgi path=json_proto method=POST [13:25:13]POST find Content-Length [13:25:13]Host: 172.17.56.67:8080 [13:25:13]Content-Length: 682 [13:25:13]Content-Type: application/json [13:25:13] [13:25:13]POST finish read [13:25:13]Found Content-Length = 682 [13:25:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:13]execute_script... [13:25: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)216438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:25:13]POST & json_proto [13:25:13]process_json_proto [13:25:13]json parsed OK: [13:25:13]protocol is kg_v1.0 [13:25:13]action value=close_receipt [13:25:13]process_action close_receipt [13:25:13]cmd_close_receipt [13:25:13]MH_GetDate [13:25:13]Write to MH i2c: F0 00 00 46 9C D1 [13:25:13]Write i2c OK [13:25:13]MH_I2C_Read... [13:25:13]Read from MH i2c: F0 [13:25:13]MH_I2C_Read... [13:25:13]Read from MH i2c: F0 09 00 [13:25:13]MH_I2C_Read... [13:25:13]Read from MH i2c: F0 09 00 46 9C 00 51 4A BA 65 26 5D 9E 65 1A [13:25:13]GetLastDocTimeStamp 1706707475 [13:25:13]current date 1706707537 [13:25:13]FM_GetShiftState [13:25:13]SAM_PROTO_GetShiftState [13:25:13]wFMCommunicate request_size=4 [13:25:13]MH_SAM_APDU [13:25:13]CAPDU: 80 13 01 00 [13:25:13]Write to MH i2c: E2 08 00 47 9C 80 13 01 00 00 00 00 00 60 [13:25:13]Write i2c OK [13:25:13]MH_I2C_Read... [13:25:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:13]Read from MH i2c: E2 [13:25:13]MH_I2C_Read... [13:25:13]Read from MH i2c: E2 0E 00 [13:25:13]MH_I2C_Read... [13:25:13]Read from MH i2c: E2 0E 00 47 9C 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 B6 [13:25:13]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:25:13]wFMCommunicate OK [13:25:13]SAM_PROTO_GetShiftState done [13:25:13]FM_GetShiftState done [13:25:13]opened in 1706659486 [13:25:13]opened+sec_in_day 1706745886 [13:25:13]quantity*price = 100037 [13:25:13]sum+1 = 100039 [13:25:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 60 31.01.2024 13:25 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49335 ФПД: 132234956295884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T132537&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49335&fm=132234956295884&tin=02508201610067®Number=0000000000092723&sum=100000 [13:25:14]StoreToDocumentArchive [13:25:14]shift 247 fd 49335 [13:25:14]save to /storage/0247/doc_00049335 [13:25:14]save last doc name /storage/0247/doc_00049335 to /storage/kkm_last_doc_name [13:25:14]save OK [13:25:14]Clear old archive folders... [13:25:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:25:14]tlvbuf is 011FAAA0 [13:25:14]SAM_PROTO_ClearQueue [13:25:14]wFMCommunicate request_size=4 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 09 00 00 [13:25:14]Write to MH i2c: E2 08 00 54 9C 80 09 00 00 00 00 00 00 62 [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:14]Read from MH i2c: E2 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 03 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 03 00 54 9C 00 90 00 64 [13:25:14]RAPDU: 90 00 [13:25:14]wFMCommunicate OK [13:25:14]SAM_PROTO_ClearQueue done [13:25:14]KKMCreateOFDPacket [13:25:14]OFDProtocolAddRootSTLVToBuf [13:25:14]FM_MakeSignedData [13:25:14]FM_MakeSignedData [13:25:14]SAM_PROTO_SignData [13:25:14]wFMCommunicate request_size=4 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 0D 01 02 [13:25:14]Write to MH i2c: E2 08 00 55 9C 80 0D 01 02 00 00 00 00 6A [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:14]Read from MH i2c: E2 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 03 00 [13:25:14]MH_I2C_Read... [13:25:14]Read from MH i2c: E2 03 00 55 9C 00 90 00 65 [13:25:14]RAPDU: 90 00 [13:25:14]wFMCommunicate OK [13:25:14]wFMCommunicate request_size=255 [13:25:14]MH_SAM_APDU [13:25:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 51 4A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B7 C0 00 00 35 04 06 00 78 [13:25:14]Write to MH i2c: E2 02 01 56 9C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 51 4A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B7 C0 00 00 35 04 06 00 78 00 00 B6 [13:25:14]Write i2c OK [13:25:14]MH_I2C_Read... [13:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:15]Read from MH i2c: E2 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: E2 03 00 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: E2 03 00 56 9C 00 90 00 66 [13:25:15]RAPDU: 90 00 [13:25:15]wFMCommunicate OK [13:25:15]wFMCommunicate request_size=10 [13:25:15]MH_SAM_APDU [13:25:15]CAPDU: 80 0D 02 02 05 44 59 98 CE CC [13:25:15]Write to MH i2c: E2 0D 00 57 9C 80 0D 02 02 05 00 44 59 98 CE CC 00 00 46 [13:25:15]Write i2c OK [13:25:15]MH_I2C_Read... [13:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:15]Read from MH i2c: E2 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: E2 03 00 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: E2 03 00 57 9C 00 90 00 67 [13:25:15]RAPDU: 90 00 [13:25:15]wFMCommunicate OK [13:25:15]wFMCommunicate request_size=4 [13:25:15]MH_SAM_APDU [13:25:15]CAPDU: 80 0D 03 02 [13:25:15]Write to MH i2c: E2 08 00 58 9C 80 0D 03 02 00 00 00 00 6F [13:25:15]Write i2c OK [13:25:15]MH_I2C_Read... [13:25:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:15]Read from MH i2c: E2 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: E2 0B 00 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: E2 0B 00 58 9C 00 B6 5D C2 5A 5B 60 71 47 90 00 12 [13:25:15]RAPDU: B6 5D C2 5A 5B 60 71 47 90 00 [13:25:15]wFMCommunicate OK [13:25:15]SAM_PROTO_SignData done [13:25:15]FM_MakeSignedData done [13:25:15]CreateOFDProtocolMessage [13:25:15]wFMCommunicate request_size=4 [13:25:15]MH_SAM_APDU [13:25:15]CAPDU: 80 11 00 00 [13:25:15]Write to MH i2c: E2 08 00 59 9C 80 11 00 00 00 00 00 00 6F [13:25:15]Write i2c OK [13:25:15]MH_I2C_Read... [13:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:15]Read from MH i2c: E2 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: E2 17 00 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: E2 17 00 59 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BC [13:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:25:15]wFMCommunicate OK [13:25:15]CreateOFDProtocolMessage done [13:25:15]OFDSenderStorePacket 49335 [13:25:15]StoreOFDPacket docnum=49335 [13:25:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 36 CA 07 01 05 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 51 4A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B7 C0 00 00 35 04 06 00 78 44 59 98 CE CC B6 5D C2 5A 5B 60 71 47 [13:25:15]CheckFolder [13:25:15]dirname=/storage/ofd_packets [13:25:15]CheckFolder done [13:25:15]ProducePacketName [13:25:15]name=ofd_packets/00049335 [13:25:15]NVStorageSaveData ofd_packets/00049335 [13:25:15]File name is /storage/ofd_packets/00049335 [13:25:15]Write 301 bytes [13:25:15]NVStorageSaveData done [13:25:15]OFDSenderStorePacket done [13:25:15]KKMCreateOFDPacket done [13:25:15]NVStorageSaveData kkm_last_timestamp [13:25:15]File name is /storage/kkm_last_timestamp [13:25:15]Write 4 bytes [13:25:15]NVStorageSaveData done [13:25:15]ExternCall_PrintAddStr [13:25:15]wPrintStart [13:25:15]Write to MH i2c: 01 00 00 5A 9C F6 [13:25:15]Write i2c OK [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: 01 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: 01 07 00 [13:25:15]MH_I2C_Read... [13:25:15]Read from MH i2c: 01 07 00 5A 9C 00 00 00 00 00 FF 0F 0B [13:25:15]RasterBufferAndPrint [13:25:15]line Счет N : (1)216438 [13:25:15]line ИНН: 02508201610067 [13:25:15]line Контрольно-Кассовый Чек [13:25:15]line ПРОДАЖА [13:25:15]line ТРК (МРК, ГНК) : 12 [13:25:15]line Товар: 2710124130 [13:25:15]line Аи-92-К-5 [13:25:15]line 16.590 * 60.30 [13:25:15]line = 1000.38 [13:25:15]line НДС 12% НСП 1% [13:25:15]line > о реализуемом товаре [13:25:15]line ОКРУГЛЕНИЕ: -0.38 [13:25:15]line ИТОГО: 1000.00 [13:25:15]line Внесено: 1000.00 [13:25:15]line СДАЧА: 0.00 [13:25:15]line НСП 1% : 8.85 [13:25:15]line НДС 12% : 106.23 [13:25:15]line Наличными: 1000.00 [13:25:15]line Безнал.: 0.00 [13:25:15]line Место: АЗС № 102 "Партнер Нефть" [13:25:15]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:25:15]line СНО: Общий режим [13:25:15]line Чек 60 31.01.2024 13:25 [13:25:15]line Смена: 247 ФФД: 1.0 [13:25:15]line ЗНМ: 0300000040 [13:25:15]line РНМ: 0000000000092723 [13:25:15]line Версия ККМ: 001 [13:25:15]line ФМ: 0000000000875060 [13:25:15]line ФД: 49335 [13:25:15]line ФПД: 132234956295884 [13:25:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T132537&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49335&fm=132234956295884&tin=02508201610067®Number=0000000000092723&sum=100000 [13:25:15]OFD Sender: Processing packet 49335 [packets to send 12, broken 11] [13:25:15]ProducePacketName [13:25:15]name=ofd_packets/00049335 [13:25:15]OFD Sender: To server: pG, [13:25:15]CommunicateWithHost lk.salyk.kg:30040 [13:25:15]ConnectInit lk.salyk.kg [13:25:15]written 0, free lines is 4095 [13:25:15]Connected sock=10 [13:25:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 36 CA 07 01 05 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 51 4A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B7 C0 00 00 35 04 06 00 78 44 59 98 CE CC B6 5D C2 5A 5B 60 71 47 [13:25:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 F3 B1 47 00 93 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B7 C0 00 00 F4 03 04 00 44 F6 B9 65 B6 04 01 00 00 0C ED 35 32 AF 1D 97 06 [13:25:15]CommunicateWithHost err = 0 [13:25:15]CheckOFDResponse [13:25:15]1017 (14) - 77093643461234 [13:25:15]1041 (16) - 0000000000875060 [13:25:15]1040 (4) - 49335 [13:25:15]1012 (4) - 31.01.2024 07:27 [13:25:15]1206 (1) - 0 [13:25:15]OFD Sender: Remove packet 49335 [13:25:15]ProducePacketName [13:25:15]name=ofd_packets/00049335 [13:25:15]NVStorageDeleteData [13:25:16]Write to MH i2c: 01 00 00 85 9C 21 [13:25:16]Write i2c OK [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: 01 [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: 01 07 00 [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: 01 07 00 85 9C 00 00 00 00 00 F9 0C 2D [13:25:16]RasterBufferAndPrint [13:25:16]line [13:25:16]line [13:25:16]line [13:25:16]line [13:25:16]line [13:25:16]written 0, free lines is 3328 [13:25:16]MH_Cut [13:25:16]Write to MH i2c: D1 01 00 8C 9C 01 FA [13:25:16]Write i2c OK [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: D1 [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: D1 01 00 [13:25:16]MH_I2C_Read... [13:25:16]Read from MH i2c: D1 01 00 8C 9C 00 F9 [13:25:16]Write to MH i2c: 01 00 00 8D 9C 29 [13:25:16]Write i2c OK [13:25:16]MH_I2C_Read... [13:25:16]OFD Sender: No OFD packet to send [13:25:16]*** Cut start [13:25:16]*** Partial cut [13:25:16]*** CUTSNS_PIN = 1 [13:25:16]*** CUTSNS_PIN = 0 [13:25:16]*** Brake cut motor [13:25:17]Read from MH i2c: 01 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: 01 07 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: 01 07 00 8D 9C 00 00 00 00 00 FF 0F 3E [13:25:17]process_action close_receipt done [13:25:17]requested_data is exist [13:25:17]produce_requested_data [13:25:17]requested_item fm.sn is exist - process it [13:25:17]wFMCommunicate request_size=4 [13:25:17]MH_SAM_APDU [13:25:17]CAPDU: 80 11 00 00 [13:25:17]Write to MH i2c: E2 08 00 8E 9C 80 11 00 00 00 00 00 00 A4 [13:25:17]*** Stop cut motor [13:25:17]*** Cut end [13:25:17]*** FLAG_PRN_KEY set [13:25:17]int [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:17]Read from MH i2c: E2 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 17 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 17 00 8E 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F1 [13:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:25:17]wFMCommunicate OK [13:25:17]requested_item fd.num is exist - process it [13:25:17]SAM_PROTO_GetFieldsCounters [13:25:17]wFMCommunicate request_size=4 [13:25:17]MH_SAM_APDU [13:25:17]CAPDU: 80 13 00 00 [13:25:17]Write to MH i2c: E2 08 00 8F 9C 80 13 00 00 00 00 00 00 A7 [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:17]Read from MH i2c: E2 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 62 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 62 00 8F 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B7 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [13:25: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B7 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:17]wFMCommunicate OK [13:25:17]SAM_PROTO_GetFieldsCounters done [13:25:17]requested_item shift.num is exist - process it [13:25:17]requested_item shift.opened is exist - process it [13:25:17]req_shift_opened [13:25:17]FM_GetShiftState [13:25:17]SAM_PROTO_GetShiftState [13:25:17]wFMCommunicate request_size=4 [13:25:17]MH_SAM_APDU [13:25:17]CAPDU: 80 13 01 00 [13:25:17]Write to MH i2c: 01 00 00 90 9C 2C [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: 01 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: 01 07 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: 01 07 00 90 9C 00 08 00 00 00 FF 0F 49 [13:25:17]state=0 [13:25:17]Key pressed [13:25:17]Feed [13:25:17]Write to MH i2c: D8 00 00 91 9C 04 [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: D8 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: D8 01 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: D8 01 00 91 9C 00 05 [13:25:17]Write to MH i2c: E2 08 00 92 9C 80 13 01 00 00 00 00 00 AB [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]int [13:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:17]Read from MH i2c: E2 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 0E 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: E2 0E 00 92 9C 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 01 [13:25:17]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:25:17]wFMCommunicate OK [13:25:17]SAM_PROTO_GetShiftState done [13:25:17]FM_GetShiftState done [13:25:17]req_shift_opened done [13:25:17]requested_item shift.open_date is exist - process it [13:25:17]req_shift_open_date [13:25:17]req_shift_open_date done [13:25:17]produce_requested_data done [13:25:17]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49335,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [13:25:17]process_action_free close_receipt [13:25:17]json_value_free [13:25:17]json_value_free done [13:25:17]process_json_proto returns [13:25:17]Send response to host [13:25:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49335,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [13:25:17]free response buf [13:25:17]execute_script done [13:25:17]execute_script returns [13:25:17]free content buf [13:25:17]Sock 9.Close socket [13:25:17]Sock 9.Thread stoped [13:25:17]Write to MH i2c: 01 00 00 93 9C 2F [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: 01 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: 01 07 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: 01 07 00 93 9C 00 48 00 00 00 3C 00 BA [13:25:17]state=2 [13:25:17]Key pressed [13:25:17]int [13:25:17]Write to MH i2c: 01 00 00 94 9C 30 [13:25:17]*** FLAG_PRN_KEY reset [13:25:17]Write i2c OK [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: 01 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: 01 07 00 [13:25:17]MH_I2C_Read... [13:25:17]Read from MH i2c: 01 07 00 94 9C 00 00 00 00 00 FF 0F 45 [13:25:17]state=2 [13:25:17]Stop feed [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]OFD Sender: No OFD packet to send [13:26:16]OFD Sender: No OFD packet to send [13:26:21]OFD Sender: No OFD packet to send [13:26:26]OFD Sender: No OFD packet to send [13:26:31]OFD Sender: No OFD packet to send [13:26:36]OFD Sender: No OFD packet to send [13:26:41]OFD Sender: No OFD packet to send [13:26:46]OFD Sender: No OFD packet to send [13:26:51]OFD Sender: No OFD packet to send [13:26:56]OFD Sender: No OFD packet to send [13:27:01]OFD Sender: No OFD packet to send [13:27:02]accept exits with 7 [13:27:02]New connection [13:27:02]New thread 3066670436 created [13:27:02]Thread 3066813796 joined [13:27:02]Waiting for new connection... [13:27:02] Sock 7.Parse request [13:27:02]Sock 7.Check first char [13:27:02]Sock 7.First char is OK [13:27:02]request: POST /json_proto HTTP/1.0 [13:27:02]Method: POST [13:27:02]URL: /json_proto [13:27:02]Method is POST - this is cgi request [13:27:02]url: /json_proto [13:27:02]query_string will be loaded in cgi processing [13:27:02]execute_cgi json_proto POST (null) [13:27:02]execute_cgi path=json_proto method=POST [13:27:02]POST find Content-Length [13:27:02]Host: 172.17.56.67:8080 [13:27:02]Content-Length: 677 [13:27:02]Content-Type: application/json [13:27:02] [13:27:02]POST finish read [13:27:02]Found Content-Length = 677 [13:27:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:02]execute_script... [13:27: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)216439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:02]POST & json_proto [13:27:02]process_json_proto [13:27:02]json parsed OK: [13:27:02]protocol is kg_v1.0 [13:27:02]action value=close_receipt [13:27:02]process_action close_receipt [13:27:02]cmd_close_receipt [13:27:02]MH_GetDate [13:27:02]Write to MH i2c: F0 00 00 95 9C 20 [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: F0 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: F0 09 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: F0 09 00 95 9C 00 BE 4A BA 65 26 5D 9E 65 D6 [13:27:02]GetLastDocTimeStamp 1706707537 [13:27:02]current date 1706707646 [13:27:02]FM_GetShiftState [13:27:02]SAM_PROTO_GetShiftState [13:27:02]wFMCommunicate request_size=4 [13:27:02]MH_SAM_APDU [13:27:02]CAPDU: 80 13 01 00 [13:27:02]Write to MH i2c: E2 08 00 96 9C 80 13 01 00 00 00 00 00 AF [13:27:02]Write i2c OK [13:27:02]MH_I2C_Read... [13:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:02]Read from MH i2c: E2 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 0E 00 [13:27:02]MH_I2C_Read... [13:27:02]Read from MH i2c: E2 0E 00 96 9C 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 05 [13:27:02]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:27:02]wFMCommunicate OK [13:27:02]SAM_PROTO_GetShiftState done [13:27:02]FM_GetShiftState done [13:27:02]opened in 1706659486 [13:27:02]opened+sec_in_day 1706745886 [13:27:02]quantity*price = 60058 [13:27:02]sum+1 = 60060 [13:27:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 61 31.01.2024 13:27 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49336 ФПД: 274723105065981 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T132726&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49336&fm=274723105065981&tin=02508201610067®Number=0000000000092723&sum=60000 [13:27:03]StoreToDocumentArchive [13:27:03]shift 247 fd 49336 [13:27:03]save to /storage/0247/doc_00049336 [13:27:03]save last doc name /storage/0247/doc_00049336 to /storage/kkm_last_doc_name [13:27:03]save OK [13:27:03]Clear old archive folders... [13:27:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:03]tlvbuf is 013CCBC0 [13:27:03]SAM_PROTO_ClearQueue [13:27:03]wFMCommunicate request_size=4 [13:27:03]MH_SAM_APDU [13:27:03]CAPDU: 80 09 00 00 [13:27:03]Write to MH i2c: E2 08 00 A3 9C 80 09 00 00 00 00 00 00 B1 [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:03]Read from MH i2c: E2 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 03 00 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 03 00 A3 9C 00 90 00 B3 [13:27:03]RAPDU: 90 00 [13:27:03]wFMCommunicate OK [13:27:03]SAM_PROTO_ClearQueue done [13:27:03]KKMCreateOFDPacket [13:27:03]OFDProtocolAddRootSTLVToBuf [13:27:03]FM_MakeSignedData [13:27:03]FM_MakeSignedData [13:27:03]SAM_PROTO_SignData [13:27:03]wFMCommunicate request_size=4 [13:27:03]MH_SAM_APDU [13:27:03]CAPDU: 80 0D 01 02 [13:27:03]Write to MH i2c: E2 08 00 A4 9C 80 0D 01 02 00 00 00 00 B9 [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:03]Read from MH i2c: E2 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 03 00 [13:27:03]MH_I2C_Read... [13:27:03]Read from MH i2c: E2 03 00 A4 9C 00 90 00 B4 [13:27:03]RAPDU: 90 00 [13:27:03]wFMCommunicate OK [13:27:03]wFMCommunicate request_size=255 [13:27:03]MH_SAM_APDU [13:27:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 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 3D 00 00 00 F4 03 04 00 BE 4A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B8 C0 00 00 35 04 06 00 F9 [13:27:03]Write to MH i2c: E2 02 01 A5 9C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 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 3D 00 00 00 F4 03 04 00 BE 4A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B8 C0 00 00 35 04 06 00 F9 00 00 6A [13:27:03]Write i2c OK [13:27:03]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 A5 9C 00 90 00 B5 [13:27:04]RAPDU: 90 00 [13:27:04]wFMCommunicate OK [13:27:04]wFMCommunicate request_size=10 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 0D 02 02 05 DB F5 16 CB FD [13:27:04]Write to MH i2c: E2 0D 00 A6 9C 80 0D 02 02 05 00 DB F5 16 CB FD 00 00 74 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 03 00 A6 9C 00 90 00 B6 [13:27:04]RAPDU: 90 00 [13:27:04]wFMCommunicate OK [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 0D 03 02 [13:27:04]Write to MH i2c: E2 08 00 A7 9C 80 0D 03 02 00 00 00 00 BE [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 0B 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 0B 00 A7 9C 00 52 56 61 5E F8 6F BC 70 90 00 B9 [13:27:04]RAPDU: 52 56 61 5E F8 6F BC 70 90 00 [13:27:04]wFMCommunicate OK [13:27:04]SAM_PROTO_SignData done [13:27:04]FM_MakeSignedData done [13:27:04]CreateOFDProtocolMessage [13:27:04]wFMCommunicate request_size=4 [13:27:04]MH_SAM_APDU [13:27:04]CAPDU: 80 11 00 00 [13:27:04]Write to MH i2c: E2 08 00 A8 9C 80 11 00 00 00 00 00 00 BE [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:04]Read from MH i2c: E2 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 17 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: E2 17 00 A8 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0B [13:27:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:27:04]wFMCommunicate OK [13:27:04]CreateOFDProtocolMessage done [13:27:04]OFDSenderStorePacket 49336 [13:27:04]StoreOFDPacket docnum=49336 [13:27:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 CA D2 07 01 40 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 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 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 3D 00 00 00 F4 03 04 00 BE 4A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B8 C0 00 00 35 04 06 00 F9 DB F5 16 CB FD 52 56 61 5E F8 6F BC 70 [13:27:04]CheckFolder [13:27:04]dirname=/storage/ofd_packets [13:27:04]CheckFolder done [13:27:04]ProducePacketName [13:27:04]name=ofd_packets/00049336 [13:27:04]NVStorageSaveData ofd_packets/00049336 [13:27:04]File name is /storage/ofd_packets/00049336 [13:27:04]Write 301 bytes [13:27:04]NVStorageSaveData done [13:27:04]OFDSenderStorePacket done [13:27:04]KKMCreateOFDPacket done [13:27:04]NVStorageSaveData kkm_last_timestamp [13:27:04]File name is /storage/kkm_last_timestamp [13:27:04]Write 4 bytes [13:27:04]NVStorageSaveData done [13:27:04]ExternCall_PrintAddStr [13:27:04]wPrintStart [13:27:04]Write to MH i2c: 01 00 00 A9 9C 45 [13:27:04]Write i2c OK [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 07 00 [13:27:04]MH_I2C_Read... [13:27:04]Read from MH i2c: 01 07 00 A9 9C 00 00 00 00 00 FF 0F 5A [13:27:04]RasterBufferAndPrint [13:27:04]line Счет N : (1)216439 [13:27:04]line ИНН: 02508201610067 [13:27:04]line Контрольно-Кассовый Чек [13:27:04]line ПРОДАЖА [13:27:04]line ТРК (МРК, ГНК) : 22 [13:27:04]line Товар: 2710124130 [13:27:04]line Аи-92-К-5 [13:27:04]line 9.960 * 60.30 [13:27:04]line = 600.59 [13:27:04]line НДС 12% НСП 1% [13:27:04]line > о реализуемом товаре [13:27:04]line ОКРУГЛЕНИЕ: -0.59 [13:27:04]line ИТОГО: 600.00 [13:27:04]line Внесено: 600.00 [13:27:04]line СДАЧА: 0.00 [13:27:04]line НСП 1% : 5.31 [13:27:04]line НДС 12% : 63.78 [13:27:04]line Наличными: 600.00 [13:27:04]line Безнал.: 0.00 [13:27:04]line Место: АЗС № 102 "Партнер Нефть" [13:27:04]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:27:04]line СНО: Общий режим [13:27:04]line Чек 61 31.01.2024 13:27 [13:27:04]line Смена: 247 ФФД: 1.0 [13:27:04]line ЗНМ: 0300000040 [13:27:04]line РНМ: 0000000000092723 [13:27:04]line Версия ККМ: 001 [13:27:04]line ФМ: 0000000000875060 [13:27:04]line ФД: 49336 [13:27:04]line ФПД: 274723105065981 [13:27:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T132726&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49336&fm=274723105065981&tin=02508201610067®Number=0000000000092723&sum=60000 [13:27:04]OFD Sender: Processing packet 49336 [packets to send 12, broken 11] [13:27:04]ProducePacketName [13:27:04]name=ofd_packets/00049336 [13:27:04]OFD Sender: To server: pG, [13:27:04]CommunicateWithHost lk.salyk.kg:30040 [13:27:04]ConnectInit lk.salyk.kg [13:27:04]written 0, free lines is 4095 [13:27:04]Connected sock=10 [13:27:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 CA D2 07 01 40 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 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 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 3D 00 00 00 F4 03 04 00 BE 4A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B8 C0 00 00 35 04 06 00 F9 DB F5 16 CB FD 52 56 61 5E F8 6F BC 70 [13:27:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 CD 6E 47 00 C3 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 35 30 36 30 10 04 04 00 B8 C0 00 00 F4 03 04 00 B1 F6 B9 65 B6 04 01 00 00 BD 65 C9 07 C3 22 C5 81 [13:27:04]CommunicateWithHost err = 0 [13:27:04]CheckOFDResponse [13:27:04]1017 (14) - 77093643461234 [13:27:04]1041 (16) - 0000000000875060 [13:27:04]1040 (4) - 49336 [13:27:04]1012 (4) - 31.01.2024 07:28 [13:27:04]1206 (1) - 0 [13:27:04]OFD Sender: Remove packet 49336 [13:27:04]ProducePacketName [13:27:04]name=ofd_packets/00049336 [13:27:04]NVStorageDeleteData [13:27:05]Write to MH i2c: 01 00 00 D4 9C 70 [13:27:05]Write i2c OK [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: 01 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: 01 07 00 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: 01 07 00 D4 9C 00 00 00 00 00 F1 0C 74 [13:27:05]RasterBufferAndPrint [13:27:05]line [13:27:05]line [13:27:05]line [13:27:05]line [13:27:05]line [13:27:05]written 0, free lines is 3322 [13:27:05]MH_Cut [13:27:05]Write to MH i2c: D1 01 00 DB 9C 01 49 [13:27:05]Write i2c OK [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: D1 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: D1 01 00 [13:27:05]MH_I2C_Read... [13:27:05]Read from MH i2c: D1 01 00 DB 9C 00 48 [13:27:05]Write to MH i2c: 01 00 00 DC 9C 78 [13:27:05]Write i2c OK [13:27:05]MH_I2C_Read... [13:27:05]OFD Sender: No OFD packet to send [13:27:05]*** Cut start [13:27:05]*** Partial cut [13:27:05]*** CUTSNS_PIN = 1 [13:27:05]*** CUTSNS_PIN = 0 [13:27:05]*** Brake cut motor [13:27:06]Read from MH i2c: 01 [13:27:06]MH_I2C_Read... [13:27:06]*** Stop cut motor [13:27:06]*** Cut end [13:27:06]Read from MH i2c: 01 07 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: 01 07 00 DC 9C 00 00 00 00 00 FF 0F 8D [13:27:06]process_action close_receipt done [13:27:06]requested_data is exist [13:27:06]produce_requested_data [13:27:06]requested_item fm.sn is exist - process it [13:27:06]wFMCommunicate request_size=4 [13:27:06]MH_SAM_APDU [13:27:06]CAPDU: 80 11 00 00 [13:27:06]Write to MH i2c: E2 08 00 DD 9C 80 11 00 00 00 00 00 00 F3 [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:06]Read from MH i2c: E2 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 17 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 17 00 DD 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 40 [13:27:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:27:06]wFMCommunicate OK [13:27:06]requested_item fd.num is exist - process it [13:27:06]SAM_PROTO_GetFieldsCounters [13:27:06]wFMCommunicate request_size=4 [13:27:06]MH_SAM_APDU [13:27:06]CAPDU: 80 13 00 00 [13:27:06]Write to MH i2c: E2 08 00 DE 9C 80 13 00 00 00 00 00 00 F6 [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:06]Read from MH i2c: E2 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 62 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 62 00 DE 9C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B8 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [13:27: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B8 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:06]wFMCommunicate OK [13:27:06]SAM_PROTO_GetFieldsCounters done [13:27:06]requested_item shift.num is exist - process it [13:27:06]requested_item shift.opened is exist - process it [13:27:06]req_shift_opened [13:27:06]FM_GetShiftState [13:27:06]SAM_PROTO_GetShiftState [13:27:06]wFMCommunicate request_size=4 [13:27:06]MH_SAM_APDU [13:27:06]CAPDU: 80 13 01 00 [13:27:06]Write to MH i2c: E2 08 00 DF 9C 80 13 01 00 00 00 00 00 F8 [13:27:06]Write i2c OK [13:27:06]MH_I2C_Read... [13:27:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:06]Read from MH i2c: E2 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 0E 00 [13:27:06]MH_I2C_Read... [13:27:06]Read from MH i2c: E2 0E 00 DF 9C 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 4E [13:27:06]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:27:06]wFMCommunicate OK [13:27:06]SAM_PROTO_GetShiftState done [13:27:06]FM_GetShiftState done [13:27:06]req_shift_opened done [13:27:06]requested_item shift.open_date is exist - process it [13:27:06]req_shift_open_date [13:27:06]req_shift_open_date done [13:27:06]produce_requested_data done [13:27:06]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49336,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [13:27:06]process_action_free close_receipt [13:27:06]json_value_free [13:27:06]json_value_free done [13:27:06]process_json_proto returns [13:27:06]Send response to host [13:27:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49336,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [13:27:06]free response buf [13:27:06]execute_script done [13:27:06]execute_script returns [13:27:06]free content buf [13:27:06]Sock 7.Close socket [13:27:06]Sock 7.Thread stoped [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:41]int [13:38:41]Write to MH i2c: 01 00 00 E0 9C 7C [13:38:41]*** FLAG_PRN_KEY set [13:38:41]Write i2c OK [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: 01 [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: 01 07 00 [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: 01 07 00 E0 9C 00 08 00 00 00 FF 0F 99 [13:38:41]state=0 [13:38:41]Key pressed [13:38:41]Feed [13:38:41]Write to MH i2c: D8 00 00 E1 9C 54 [13:38:41]Write i2c OK [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: D8 [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: D8 01 00 [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: D8 01 00 E1 9C 00 55 [13:38:41]int [13:38:41]Write to MH i2c: 01 00 00 E2 9C 7E [13:38:41]Write i2c OK [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: 01 [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: 01 07 00 [13:38:41]MH_I2C_Read... [13:38:41]Read from MH i2c: 01 07 00 E2 9C 00 48 00 00 00 3C 00 09 [13:38:41]state=2 [13:38:41]Key pressed [13:38:44]int [13:38:44]Write to MH i2c: 01 00 00 E3 9C 7F [13:38:44]Write i2c OK [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: 01 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: 01 07 00 [13:38:44]MH_I2C_Read... [13:38:44]Read from MH i2c: 01 07 00 E3 9C 00 08 00 00 00 F6 0F 93 [13:38:44]state=2 [13:38:44]Key pressed [13:38:45]int [13:38:45]Write to MH i2c: 01 00 00 E4 9C 80 [13:38:45]*** FLAG_PRN_KEY reset [13:38:45]Write i2c OK [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: 01 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: 01 07 00 [13:38:45]MH_I2C_Read... [13:38:45]Read from MH i2c: 01 07 00 E4 9C 00 00 00 00 00 FF 0F 95 [13:38:45]state=2 [13:38:45]Stop feed [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]accept exits with 9 [13:39:25]New connection [13:39:25]New thread 3066813796 created [13:39:25]Thread 3066670436 joined [13:39:25]Waiting for new connection... [13:39:25] Sock 9.Parse request [13:39:25]Sock 9.Check first char [13:39:25]Sock 9.First char is OK [13:39:25]request: POST /json_proto HTTP/1.0 [13:39:25]Method: POST [13:39:25]URL: /json_proto [13:39:25]Method is POST - this is cgi request [13:39:25]url: /json_proto [13:39:25]query_string will be loaded in cgi processing [13:39:25]execute_cgi json_proto POST (null) [13:39:25]execute_cgi path=json_proto method=POST [13:39:25]POST find Content-Length [13:39:25]Host: 172.17.56.67:8080 [13:39:25]Content-Length: 674 [13:39:25]Content-Type: application/json [13:39:25] [13:39:25]POST finish read [13:39:25]Found Content-Length = 674 [13:39:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:39:25]execute_script... [13:39: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)216440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:39:25]POST & json_proto [13:39:25]process_json_proto [13:39:25]json parsed OK: [13:39:25]protocol is kg_v1.0 [13:39:25]action value=close_receipt [13:39:25]process_action close_receipt [13:39:25]cmd_close_receipt [13:39:25]MH_GetDate [13:39:25]Write to MH i2c: F0 00 00 E5 9C 70 [13:39:25]Write i2c OK [13:39:25]MH_I2C_Read... [13:39:25]Read from MH i2c: F0 [13:39:25]MH_I2C_Read... [13:39:25]Read from MH i2c: F0 09 00 [13:39:25]MH_I2C_Read... [13:39:25]Read from MH i2c: F0 09 00 E5 9C 00 A5 4D BA 65 26 5D 9E 65 10 [13:39:25]GetLastDocTimeStamp 1706707646 [13:39:25]current date 1706708389 [13:39:25]FM_GetShiftState [13:39:25]SAM_PROTO_GetShiftState [13:39:25]wFMCommunicate request_size=4 [13:39:25]MH_SAM_APDU [13:39:25]CAPDU: 80 13 01 00 [13:39:25]Write to MH i2c: E2 08 00 E6 9C 80 13 01 00 00 00 00 00 FF [13:39:25]Write i2c OK [13:39:25]MH_I2C_Read... [13:39:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:25]Read from MH i2c: E2 [13:39:25]MH_I2C_Read... [13:39:25]Read from MH i2c: E2 0E 00 [13:39:25]MH_I2C_Read... [13:39:25]Read from MH i2c: E2 0E 00 E6 9C 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 55 [13:39:25]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:39:25]wFMCommunicate OK [13:39:25]SAM_PROTO_GetShiftState done [13:39:25]FM_GetShiftState done [13:39:25]opened in 1706659486 [13:39:25]opened+sec_in_day 1706745886 [13:39:25]quantity*price = 50048 [13:39:25]sum+1 = 50049 [13:39:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 62 31.01.2024 13:39 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49337 ФПД: 252493207337772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T133949&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49337&fm=252493207337772&tin=02508201610067®Number=0000000000092723&sum=50000 [13:39:26]StoreToDocumentArchive [13:39:26]shift 247 fd 49337 [13:39:26]save to /storage/0247/doc_00049337 [13:39:26]save last doc name /storage/0247/doc_00049337 to /storage/kkm_last_doc_name [13:39:26]save OK [13:39:26]Clear old archive folders... [13:39:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:39:26]tlvbuf is 0150C3E0 [13:39:26]SAM_PROTO_ClearQueue [13:39:26]wFMCommunicate request_size=4 [13:39:26]MH_SAM_APDU [13:39:26]CAPDU: 80 09 00 00 [13:39:26]Write to MH i2c: E2 08 00 F3 9C 80 09 00 00 00 00 00 00 01 [13:39:26]Write i2c OK [13:39:26]MH_I2C_Read... [13:39:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:26]Read from MH i2c: E2 [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: E2 03 00 [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: E2 03 00 F3 9C 00 90 00 03 [13:39:26]RAPDU: 90 00 [13:39:26]wFMCommunicate OK [13:39:26]SAM_PROTO_ClearQueue done [13:39:26]KKMCreateOFDPacket [13:39:26]OFDProtocolAddRootSTLVToBuf [13:39:26]FM_MakeSignedData [13:39:26]FM_MakeSignedData [13:39:26]SAM_PROTO_SignData [13:39:26]wFMCommunicate request_size=4 [13:39:26]MH_SAM_APDU [13:39:26]CAPDU: 80 0D 01 02 [13:39:26]Write to MH i2c: E2 08 00 F4 9C 80 0D 01 02 00 00 00 00 09 [13:39:26]Write i2c OK [13:39:26]MH_I2C_Read... [13:39:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:26]Read from MH i2c: E2 [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: E2 03 00 [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: E2 03 00 F4 9C 00 90 00 04 [13:39:26]RAPDU: 90 00 [13:39:26]wFMCommunicate OK [13:39:26]wFMCommunicate request_size=255 [13:39:26]MH_SAM_APDU [13:39:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 A5 4D BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B9 C0 00 00 35 04 06 00 E5 A4 27 EE [13:39:26]Write to MH i2c: E2 02 01 F5 9C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 A5 4D BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B9 C0 00 00 35 04 06 00 E5 A4 27 EE 00 00 33 [13:39:26]Write i2c OK [13:39:26]MH_I2C_Read... [13:39:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:26]Read from MH i2c: E2 [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: E2 03 00 [13:39:26]MH_I2C_Read... [13:39:26]Read from MH i2c: E2 03 00 F5 9C 00 90 00 05 [13:39:26]RAPDU: 90 00 [13:39:26]wFMCommunicate OK [13:39:26]wFMCommunicate request_size=7 [13:39:26]MH_SAM_APDU [13:39:26]CAPDU: 80 0D 02 02 02 7B 2C [13:39:26]Write to MH i2c: E2 0A 00 F6 9C 80 0D 02 02 02 00 7B 2C 00 00 B7 [13:39:26]Write i2c OK [13:39:26]MH_I2C_Read... [13:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:27]Read from MH i2c: E2 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: E2 03 00 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: E2 03 00 F6 9C 00 90 00 06 [13:39:27]RAPDU: 90 00 [13:39:27]wFMCommunicate OK [13:39:27]wFMCommunicate request_size=4 [13:39:27]MH_SAM_APDU [13:39:27]CAPDU: 80 0D 03 02 [13:39:27]Write to MH i2c: E2 08 00 F7 9C 80 0D 03 02 00 00 00 00 0E [13:39:27]Write i2c OK [13:39:27]MH_I2C_Read... [13:39:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:27]Read from MH i2c: E2 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: E2 0B 00 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: E2 0B 00 F7 9C 00 A0 14 99 27 22 0C F9 16 90 00 C0 [13:39:27]RAPDU: A0 14 99 27 22 0C F9 16 90 00 [13:39:27]wFMCommunicate OK [13:39:27]SAM_PROTO_SignData done [13:39:27]FM_MakeSignedData done [13:39:27]CreateOFDProtocolMessage [13:39:27]wFMCommunicate request_size=4 [13:39:27]MH_SAM_APDU [13:39:27]CAPDU: 80 11 00 00 [13:39:27]Write to MH i2c: E2 08 00 F8 9C 80 11 00 00 00 00 00 00 0E [13:39:27]Write i2c OK [13:39:27]MH_I2C_Read... [13:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:27]Read from MH i2c: E2 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: E2 17 00 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: E2 17 00 F8 9C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5B [13:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:39:27]wFMCommunicate OK [13:39:27]CreateOFDProtocolMessage done [13:39:27]OFDSenderStorePacket 49337 [13:39:27]StoreOFDPacket docnum=49337 [13:39:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 70 20 04 01 50 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 A5 4D BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B9 C0 00 00 35 04 06 00 E5 A4 27 EE 7B 2C A0 14 99 27 22 0C F9 16 [13:39:27]CheckFolder [13:39:27]dirname=/storage/ofd_packets [13:39:27]CheckFolder done [13:39:27]ProducePacketName [13:39:27]name=ofd_packets/00049337 [13:39:27]NVStorageSaveData ofd_packets/00049337 [13:39:27]File name is /storage/ofd_packets/00049337 [13:39:27]Write 298 bytes [13:39:27]NVStorageSaveData done [13:39:27]OFDSenderStorePacket done [13:39:27]KKMCreateOFDPacket done [13:39:27]NVStorageSaveData kkm_last_timestamp [13:39:27]File name is /storage/kkm_last_timestamp [13:39:27]Write 4 bytes [13:39:27]NVStorageSaveData done [13:39:27]ExternCall_PrintAddStr [13:39:27]wPrintStart [13:39:27]Write to MH i2c: 01 00 00 F9 9C 95 [13:39:27]Write i2c OK [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: 01 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: 01 07 00 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: 01 07 00 F9 9C 00 00 00 00 00 FF 0F AA [13:39:27]RasterBufferAndPrint [13:39:27]line Счет N : (1)216440 [13:39:27]line ИНН: 02508201610067 [13:39:27]line Контрольно-Кассовый Чек [13:39:27]line ПРОДАЖА [13:39:27]line ТРК (МРК, ГНК) : 21 [13:39:27]line Товар: 2710194210 [13:39:27]line ДТ-К-5 [13:39:27]line 7.160 * 69.90 [13:39:27]line = 500.48 [13:39:27]line НДС 12% НСП 1% [13:39:27]line > о реализуемом товаре [13:39:27]line ОКРУГЛЕНИЕ: -0.48 [13:39:27]line ИТОГО: 500.00 [13:39:27]line Внесено: 500.00 [13:39:27]line СДАЧА: 0.00 [13:39:27]line НСП 1% : 4.43 [13:39:27]line НДС 12% : 53.15 [13:39:27]line Наличными: 500.00 [13:39:27]line Безнал.: 0.00 [13:39:27]line Место: АЗС № 102 "Партнер Нефть" [13:39:27]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:39:27]line СНО: Общий режим [13:39:27]line Чек 62 31.01.2024 13:39 [13:39:27]line Смена: 247 ФФД: 1.0 [13:39:27]line ЗНМ: 0300000040 [13:39:27]line РНМ: 0000000000092723 [13:39:27]line Версия ККМ: 001 [13:39:27]line ФМ: 0000000000875060 [13:39:27]line ФД: 49337 [13:39:27]line ФПД: 252493207337772 [13:39:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T133949&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49337&fm=252493207337772&tin=02508201610067®Number=0000000000092723&sum=50000 [13:39:27]OFD Sender: Processing packet 49337 [packets to send 12, broken 11] [13:39:27]ProducePacketName [13:39:27]name=ofd_packets/00049337 [13:39:27]OFD Sender: To server: pG, [13:39:27]CommunicateWithHost lk.salyk.kg:30040 [13:39:27]ConnectInit lk.salyk.kg [13:39:27]written 0, free lines is 4095 [13:39:27]Connected sock=10 [13:39:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 70 20 04 01 50 24 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 A5 4D BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B9 C0 00 00 35 04 06 00 E5 A4 27 EE 7B 2C A0 14 99 27 22 0C F9 16 [13:39:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 8A 2C 47 00 E8 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B9 C0 00 00 F4 03 04 00 97 F9 B9 65 B6 04 01 00 00 6F D6 F9 EF 8C 84 D1 ED [13:39:27]CommunicateWithHost err = 0 [13:39:27]CheckOFDResponse [13:39:27]1017 (14) - 77093643461234 [13:39:27]1041 (16) - 0000000000875060 [13:39:27]1040 (4) - 49337 [13:39:27]1012 (4) - 31.01.2024 07:41 [13:39:27]1206 (1) - 0 [13:39:27]OFD Sender: Remove packet 49337 [13:39:27]ProducePacketName [13:39:27]name=ofd_packets/00049337 [13:39:27]NVStorageDeleteData [13:39:27]Write to MH i2c: 01 00 00 24 9D C1 [13:39:27]Write i2c OK [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: 01 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: 01 07 00 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: 01 07 00 24 9D 00 00 00 00 00 EC 0C C0 [13:39:27]RasterBufferAndPrint [13:39:27]line [13:39:27]line [13:39:27]line [13:39:27]line [13:39:27]line [13:39:27]written 0, free lines is 3314 [13:39:27]MH_Cut [13:39:27]Write to MH i2c: D1 01 00 2B 9D 01 9A [13:39:27]Write i2c OK [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: D1 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: D1 01 00 [13:39:27]MH_I2C_Read... [13:39:27]Read from MH i2c: D1 01 00 2B 9D 00 99 [13:39:27]Write to MH i2c: 01 00 00 2C 9D C9 [13:39:27]Write i2c OK [13:39:27]MH_I2C_Read... [13:39:28]OFD Sender: No OFD packet to send [13:39:28]*** Cut start [13:39:28]*** Partial cut [13:39:28]*** CUTSNS_PIN = 1 [13:39:28]*** CUTSNS_PIN = 0 [13:39:28]*** Brake cut motor [13:39:29]Read from MH i2c: 01 [13:39:29]MH_I2C_Read... [13:39:29]*** Stop cut motor [13:39:29]*** Cut end [13:39:29]Read from MH i2c: 01 07 00 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: 01 07 00 2C 9D 00 00 00 00 00 FF 0F DE [13:39:29]process_action close_receipt done [13:39:29]requested_data is exist [13:39:29]produce_requested_data [13:39:29]requested_item fm.sn is exist - process it [13:39:29]wFMCommunicate request_size=4 [13:39:29]MH_SAM_APDU [13:39:29]CAPDU: 80 11 00 00 [13:39:29]Write to MH i2c: E2 08 00 2D 9D 80 11 00 00 00 00 00 00 44 [13:39:29]Write i2c OK [13:39:29]MH_I2C_Read... [13:39:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:29]Read from MH i2c: E2 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: E2 17 00 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: E2 17 00 2D 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 91 [13:39:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:39:29]wFMCommunicate OK [13:39:29]requested_item fd.num is exist - process it [13:39:29]SAM_PROTO_GetFieldsCounters [13:39:29]wFMCommunicate request_size=4 [13:39:29]MH_SAM_APDU [13:39:29]CAPDU: 80 13 00 00 [13:39:29]Write to MH i2c: E2 08 00 2E 9D 80 13 00 00 00 00 00 00 47 [13:39:29]Write i2c OK [13:39:29]MH_I2C_Read... [13:39:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:29]Read from MH i2c: E2 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: E2 62 00 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: E2 62 00 2E 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B9 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [13:39: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 B9 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:29]wFMCommunicate OK [13:39:29]SAM_PROTO_GetFieldsCounters done [13:39:29]requested_item shift.num is exist - process it [13:39:29]requested_item shift.opened is exist - process it [13:39:29]req_shift_opened [13:39:29]FM_GetShiftState [13:39:29]SAM_PROTO_GetShiftState [13:39:29]wFMCommunicate request_size=4 [13:39:29]MH_SAM_APDU [13:39:29]CAPDU: 80 13 01 00 [13:39:29]Write to MH i2c: E2 08 00 2F 9D 80 13 01 00 00 00 00 00 49 [13:39:29]Write i2c OK [13:39:29]MH_I2C_Read... [13:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:29]Read from MH i2c: E2 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: E2 0E 00 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: E2 0E 00 2F 9D 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 9F [13:39:29]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:39:29]wFMCommunicate OK [13:39:29]SAM_PROTO_GetShiftState done [13:39:29]FM_GetShiftState done [13:39:29]req_shift_opened done [13:39:29]requested_item shift.open_date is exist - process it [13:39:29]req_shift_open_date [13:39:29]req_shift_open_date done [13:39:29]produce_requested_data done [13:39:29]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49337,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [13:39:29]process_action_free close_receipt [13:39:29]json_value_free [13:39:29]json_value_free done [13:39:29]process_json_proto returns [13:39:29]Send response to host [13:39:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49337,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [13:39:29]free response buf [13:39:29]execute_script done [13:39:29]execute_script returns [13:39:29]free content buf [13:39:29]Sock 9.Close socket [13:39:29]Sock 9.Thread stoped [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:52]accept exits with 7 [13:41:52]New connection [13:41:52]New thread 3066670436 created [13:41:52]Thread 3066813796 joined [13:41:52]Waiting for new connection... [13:41:52] Sock 7.Parse request [13:41:52]Sock 7.Check first char [13:41:52]Sock 7.First char is OK [13:41:52]request: POST /json_proto HTTP/1.0 [13:41:52]Method: POST [13:41:52]URL: /json_proto [13:41:52]Method is POST - this is cgi request [13:41:52]url: /json_proto [13:41:52]query_string will be loaded in cgi processing [13:41:52]execute_cgi json_proto POST (null) [13:41:52]execute_cgi path=json_proto method=POST [13:41:52]POST find Content-Length [13:41:52]Host: 172.17.56.67:8080 [13:41:52]Content-Length: 679 [13:41:52]Content-Type: application/json [13:41:52] [13:41:52]POST finish read [13:41:52]Found Content-Length = 679 [13:41:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:52]execute_script... [13:41: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)216441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:52]POST & json_proto [13:41:52]process_json_proto [13:41:52]json parsed OK: [13:41:52]protocol is kg_v1.0 [13:41:52]action value=close_receipt [13:41:52]process_action close_receipt [13:41:52]cmd_close_receipt [13:41:52]MH_GetDate [13:41:52]Write to MH i2c: F0 00 00 30 9D BC [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: F0 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: F0 09 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: F0 09 00 30 9D 00 38 4E BA 65 26 5D 9E 65 F0 [13:41:52]GetLastDocTimeStamp 1706708389 [13:41:52]current date 1706708536 [13:41:52]FM_GetShiftState [13:41:52]SAM_PROTO_GetShiftState [13:41:52]wFMCommunicate request_size=4 [13:41:52]MH_SAM_APDU [13:41:52]CAPDU: 80 13 01 00 [13:41:52]Write to MH i2c: E2 08 00 31 9D 80 13 01 00 00 00 00 00 4B [13:41:52]Write i2c OK [13:41:52]MH_I2C_Read... [13:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:52]Read from MH i2c: E2 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 0E 00 [13:41:52]MH_I2C_Read... [13:41:52]Read from MH i2c: E2 0E 00 31 9D 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 A1 [13:41:52]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:41:52]wFMCommunicate OK [13:41:52]SAM_PROTO_GetShiftState done [13:41:52]FM_GetShiftState done [13:41:52]opened in 1706659486 [13:41:52]opened+sec_in_day 1706745886 [13:41:52]quantity*price = 100026 [13:41:52]sum+1 = 100028 [13:41:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 63 31.01.2024 13:42 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49338 ФПД: 43129801976293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T134216&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49338&fm=43129801976293&tin=02508201610067®Number=0000000000092723&sum=100000 [13:41:53]StoreToDocumentArchive [13:41:53]shift 247 fd 49338 [13:41:53]save to /storage/0247/doc_00049338 [13:41:53]save last doc name /storage/0247/doc_00049338 to /storage/kkm_last_doc_name [13:41:53]save OK [13:41:53]Clear old archive folders... [13:41:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:41:53]tlvbuf is 01284200 [13:41:53]SAM_PROTO_ClearQueue [13:41:53]wFMCommunicate request_size=4 [13:41:53]MH_SAM_APDU [13:41:53]CAPDU: 80 09 00 00 [13:41:53]Write to MH i2c: E2 08 00 3E 9D 80 09 00 00 00 00 00 00 4D [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:53]Read from MH i2c: E2 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 03 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 03 00 3E 9D 00 90 00 4F [13:41:53]RAPDU: 90 00 [13:41:53]wFMCommunicate OK [13:41:53]SAM_PROTO_ClearQueue done [13:41:53]KKMCreateOFDPacket [13:41:53]OFDProtocolAddRootSTLVToBuf [13:41:53]FM_MakeSignedData [13:41:53]FM_MakeSignedData [13:41:53]SAM_PROTO_SignData [13:41:53]wFMCommunicate request_size=4 [13:41:53]MH_SAM_APDU [13:41:53]CAPDU: 80 0D 01 02 [13:41:53]Write to MH i2c: E2 08 00 3F 9D 80 0D 01 02 00 00 00 00 55 [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:53]Read from MH i2c: E2 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 03 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 03 00 3F 9D 00 90 00 50 [13:41:53]RAPDU: 90 00 [13:41:53]wFMCommunicate OK [13:41:53]wFMCommunicate request_size=255 [13:41:53]MH_SAM_APDU [13:41:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3F 00 00 00 F4 03 04 00 38 4E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BA C0 00 00 35 04 06 00 27 39 F0 86 [13:41:53]Write to MH i2c: E2 02 01 40 9D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3F 00 00 00 F4 03 04 00 38 4E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BA C0 00 00 35 04 06 00 27 39 F0 86 00 00 0A [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:53]Read from MH i2c: E2 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 03 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 03 00 40 9D 00 90 00 51 [13:41:53]RAPDU: 90 00 [13:41:53]wFMCommunicate OK [13:41:53]wFMCommunicate request_size=7 [13:41:53]MH_SAM_APDU [13:41:53]CAPDU: 80 0D 02 02 02 A9 E5 [13:41:53]Write to MH i2c: E2 0A 00 41 9D 80 0D 02 02 02 00 A9 E5 00 00 EA [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:53]Read from MH i2c: E2 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 03 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 03 00 41 9D 00 90 00 52 [13:41:53]RAPDU: 90 00 [13:41:53]wFMCommunicate OK [13:41:53]wFMCommunicate request_size=4 [13:41:53]MH_SAM_APDU [13:41:53]CAPDU: 80 0D 03 02 [13:41:53]Write to MH i2c: E2 08 00 42 9D 80 0D 03 02 00 00 00 00 5A [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:53]Read from MH i2c: E2 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 0B 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 0B 00 42 9D 00 9A C2 74 58 E4 0D 89 B9 90 00 B6 [13:41:53]RAPDU: 9A C2 74 58 E4 0D 89 B9 90 00 [13:41:53]wFMCommunicate OK [13:41:53]SAM_PROTO_SignData done [13:41:53]FM_MakeSignedData done [13:41:53]CreateOFDProtocolMessage [13:41:53]wFMCommunicate request_size=4 [13:41:53]MH_SAM_APDU [13:41:53]CAPDU: 80 11 00 00 [13:41:53]Write to MH i2c: E2 08 00 43 9D 80 11 00 00 00 00 00 00 5A [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:53]Read from MH i2c: E2 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 17 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: E2 17 00 43 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A7 [13:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:41:53]wFMCommunicate OK [13:41:53]CreateOFDProtocolMessage done [13:41:53]OFDSenderStorePacket 49338 [13:41:53]StoreOFDPacket docnum=49338 [13:41:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 2B B7 04 01 B4 CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3F 00 00 00 F4 03 04 00 38 4E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BA C0 00 00 35 04 06 00 27 39 F0 86 A9 E5 9A C2 74 58 E4 0D 89 B9 [13:41:53]CheckFolder [13:41:53]dirname=/storage/ofd_packets [13:41:53]CheckFolder done [13:41:53]ProducePacketName [13:41:53]name=ofd_packets/00049338 [13:41:53]NVStorageSaveData ofd_packets/00049338 [13:41:53]File name is /storage/ofd_packets/00049338 [13:41:53]Write 298 bytes [13:41:53]NVStorageSaveData done [13:41:53]OFDSenderStorePacket done [13:41:53]KKMCreateOFDPacket done [13:41:53]NVStorageSaveData kkm_last_timestamp [13:41:53]File name is /storage/kkm_last_timestamp [13:41:53]Write 4 bytes [13:41:53]NVStorageSaveData done [13:41:53]ExternCall_PrintAddStr [13:41:53]wPrintStart [13:41:53]Write to MH i2c: 01 00 00 44 9D E1 [13:41:53]Write i2c OK [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: 01 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: 01 07 00 [13:41:53]MH_I2C_Read... [13:41:53]Read from MH i2c: 01 07 00 44 9D 00 00 00 00 00 FF 0F F6 [13:41:53]RasterBufferAndPrint [13:41:53]line Счет N : (1)216441 [13:41:53]line ИНН: 02508201610067 [13:41:53]line Контрольно-Кассовый Чек [13:41:53]line ПРОДАЖА [13:41:53]line ТРК (МРК, ГНК) : 11 [13:41:53]line Товар: 2710194210 [13:41:53]line ДТ-К-5 [13:41:53]line 14.310 * 69.90 [13:41:53]line = 1000.27 [13:41:53]line НДС 12% НСП 1% [13:41:53]line > о реализуемом товаре [13:41:53]line ОКРУГЛЕНИЕ: -0.27 [13:41:53]line ИТОГО: 1000.00 [13:41:53]line Внесено: 1000.00 [13:41:53]line СДАЧА: 0.00 [13:41:53]line НСП 1% : 8.85 [13:41:53]line НДС 12% : 106.22 [13:41:53]line Наличными: 1000.00 [13:41:53]line Безнал.: 0.00 [13:41:53]line Место: АЗС № 102 "Партнер Нефть" [13:41:53]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:41:53]line СНО: Общий режим [13:41:53]line Чек 63 31.01.2024 13:42 [13:41:53]line Смена: 247 ФФД: 1.0 [13:41:53]line ЗНМ: 0300000040 [13:41:53]line РНМ: 0000000000092723 [13:41:53]line Версия ККМ: 001 [13:41:53]line ФМ: 0000000000875060 [13:41:53]line ФД: 49338 [13:41:53]line ФПД: 43129801976293 [13:41:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T134216&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49338&fm=43129801976293&tin=02508201610067®Number=0000000000092723&sum=100000 [13:41:54]OFD Sender: Processing packet 49338 [packets to send 12, broken 11] [13:41:54]ProducePacketName [13:41:54]name=ofd_packets/00049338 [13:41:54]OFD Sender: To server: pG, [13:41:54]CommunicateWithHost lk.salyk.kg:30040 [13:41:54]ConnectInit lk.salyk.kg [13:41:54]written 0, free lines is 4095 [13:41:54]Connected sock=10 [13:41:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 2B B7 04 01 B4 CF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 3F 00 00 00 F4 03 04 00 38 4E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BA C0 00 00 35 04 06 00 27 39 F0 86 A9 E5 9A C2 74 58 E4 0D 89 B9 [13:41:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 37 3B 47 00 D1 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 35 30 36 30 10 04 04 00 BA C0 00 00 F4 03 04 00 2A FA B9 65 B6 04 01 00 00 E7 8F CC 33 15 24 4B 0A [13:41:54]CommunicateWithHost err = 0 [13:41:54]CheckOFDResponse [13:41:54]1017 (14) - 77093643461234 [13:41:54]1041 (16) - 0000000000875060 [13:41:54]1040 (4) - 49338 [13:41:54]1012 (4) - 31.01.2024 07:43 [13:41:54]1206 (1) - 0 [13:41:54]OFD Sender: Remove packet 49338 [13:41:54]ProducePacketName [13:41:54]name=ofd_packets/00049338 [13:41:54]NVStorageDeleteData [13:41:54]Write to MH i2c: 01 00 00 6F 9D 0C [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: 01 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: 01 07 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: 01 07 00 6F 9D 00 00 00 00 00 F3 0C 12 [13:41:54]RasterBufferAndPrint [13:41:54]line [13:41:54]line [13:41:54]line [13:41:54]line [13:41:54]line [13:41:54]written 0, free lines is 3321 [13:41:54]MH_Cut [13:41:54]Write to MH i2c: D1 01 00 76 9D 01 E5 [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: D1 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: D1 01 00 [13:41:54]MH_I2C_Read... [13:41:54]Read from MH i2c: D1 01 00 76 9D 00 E4 [13:41:54]Write to MH i2c: 01 00 00 77 9D 14 [13:41:54]Write i2c OK [13:41:54]MH_I2C_Read... [13:41:55]OFD Sender: No OFD packet to send [13:41:55]*** Cut start [13:41:55]*** Partial cut [13:41:55]*** CUTSNS_PIN = 1 [13:41:55]*** CUTSNS_PIN = 0 [13:41:55]*** Brake cut motor [13:41:55]Read from MH i2c: 01 [13:41:55]MH_I2C_Read... [13:41:55]*** Stop cut motor [13:41:55]*** Cut end [13:41:55]Read from MH i2c: 01 07 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: 01 07 00 77 9D 00 00 00 00 00 FF 0F 29 [13:41:55]process_action close_receipt done [13:41:55]requested_data is exist [13:41:55]produce_requested_data [13:41:55]requested_item fm.sn is exist - process it [13:41:55]wFMCommunicate request_size=4 [13:41:55]MH_SAM_APDU [13:41:55]CAPDU: 80 11 00 00 [13:41:55]Write to MH i2c: E2 08 00 78 9D 80 11 00 00 00 00 00 00 8F [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:55]Read from MH i2c: E2 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: E2 17 00 [13:41:55]MH_I2C_Read... [13:41:55]Read from MH i2c: E2 17 00 78 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DC [13:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:41:55]wFMCommunicate OK [13:41:55]requested_item fd.num is exist - process it [13:41:55]SAM_PROTO_GetFieldsCounters [13:41:55]wFMCommunicate request_size=4 [13:41:55]MH_SAM_APDU [13:41:55]CAPDU: 80 13 00 00 [13:41:55]Write to MH i2c: E2 08 00 79 9D 80 13 00 00 00 00 00 00 92 [13:41:55]Write i2c OK [13:41:55]MH_I2C_Read... [13:41:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:56]Read from MH i2c: E2 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 62 00 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 62 00 79 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BA C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [13:41: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BA C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:56]wFMCommunicate OK [13:41:56]SAM_PROTO_GetFieldsCounters done [13:41:56]requested_item shift.num is exist - process it [13:41:56]requested_item shift.opened is exist - process it [13:41:56]req_shift_opened [13:41:56]FM_GetShiftState [13:41:56]SAM_PROTO_GetShiftState [13:41:56]wFMCommunicate request_size=4 [13:41:56]MH_SAM_APDU [13:41:56]CAPDU: 80 13 01 00 [13:41:56]Write to MH i2c: E2 08 00 7A 9D 80 13 01 00 00 00 00 00 94 [13:41:56]Write i2c OK [13:41:56]MH_I2C_Read... [13:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:56]Read from MH i2c: E2 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 0E 00 [13:41:56]MH_I2C_Read... [13:41:56]Read from MH i2c: E2 0E 00 7A 9D 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 EA [13:41:56]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:41:56]wFMCommunicate OK [13:41:56]SAM_PROTO_GetShiftState done [13:41:56]FM_GetShiftState done [13:41:56]req_shift_opened done [13:41:56]requested_item shift.open_date is exist - process it [13:41:56]req_shift_open_date [13:41:56]req_shift_open_date done [13:41:56]produce_requested_data done [13:41:56]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49338,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [13:41:56]process_action_free close_receipt [13:41:56]json_value_free [13:41:56]json_value_free done [13:41:56]process_json_proto returns [13:41:56]Send response to host [13:41:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49338,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [13:41:56]free response buf [13:41:56]execute_script done [13:41:56]execute_script returns [13:41:56]free content buf [13:41:56]Sock 7.Close socket [13:41:56]Sock 7.Thread stoped [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:05]OFD Sender: No OFD packet to send [13:43:10]OFD Sender: No OFD packet to send [13:43:15]OFD Sender: No OFD packet to send [13:43:20]OFD Sender: No OFD packet to send [13:43:25]OFD Sender: No OFD packet to send [13:43:30]OFD Sender: No OFD packet to send [13:43:35]OFD Sender: No OFD packet to send [13:43:40]OFD Sender: No OFD packet to send [13:43:45]OFD Sender: No OFD packet to send [13:43:50]OFD Sender: No OFD packet to send [13:43:55]OFD Sender: No OFD packet to send [13:44:00]OFD Sender: No OFD packet to send [13:44:05]OFD Sender: No OFD packet to send [13:44:10]OFD Sender: No OFD packet to send [13:44:15]OFD Sender: No OFD packet to send [13:44:20]OFD Sender: No OFD packet to send [13:44:25]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:05]OFD Sender: No OFD packet to send [13:45:10]OFD Sender: No OFD packet to send [13:45:15]OFD Sender: No OFD packet to send [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]accept exits with 9 [13:49:05]New connection [13:49:05]New thread 3066813796 created [13:49:05]Thread 3066670436 joined [13:49:05]Waiting for new connection... [13:49:05] Sock 9.Parse request [13:49:05]Sock 9.Check first char [13:49:05]Sock 9.First char is OK [13:49:05]request: POST /json_proto HTTP/1.0 [13:49:05]Method: POST [13:49:05]URL: /json_proto [13:49:05]Method is POST - this is cgi request [13:49:05]url: /json_proto [13:49:05]query_string will be loaded in cgi processing [13:49:05]execute_cgi json_proto POST (null) [13:49:05]execute_cgi path=json_proto method=POST [13:49:05]POST find Content-Length [13:49:05]Host: 172.17.56.67:8080 [13:49:05]Content-Length: 640 [13:49:05]Content-Type: application/json [13:49:05] [13:49:05]POST finish read [13:49:05]Found Content-Length = 640 [13:49:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 10.000, "sum" : 603.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 603.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:05]execute_script... [13:49: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)216442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 10.000, "sum" : 603.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 603.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:05]POST & json_proto [13:49:05]process_json_proto [13:49:05]json parsed OK: [13:49:05]protocol is kg_v1.0 [13:49:05]action value=close_receipt [13:49:05]process_action close_receipt [13:49:05]cmd_close_receipt [13:49:05]MH_GetDate [13:49:05]Write to MH i2c: F0 00 00 7B 9D 07 [13:49:05]OFD Sender: No OFD packet to send [13:49:05]Write i2c OK [13:49:05]MH_I2C_Read... [13:49:05]Read from MH i2c: F0 [13:49:05]MH_I2C_Read... [13:49:05]Read from MH i2c: F0 09 00 [13:49:05]MH_I2C_Read... [13:49:05]Read from MH i2c: F0 09 00 7B 9D 00 E9 4F BA 65 26 5D 9E 65 ED [13:49:05]GetLastDocTimeStamp 1706708536 [13:49:05]current date 1706708969 [13:49:05]FM_GetShiftState [13:49:05]SAM_PROTO_GetShiftState [13:49:05]wFMCommunicate request_size=4 [13:49:05]MH_SAM_APDU [13:49:05]CAPDU: 80 13 01 00 [13:49:05]Write to MH i2c: E2 08 00 7C 9D 80 13 01 00 00 00 00 00 96 [13:49:05]Write i2c OK [13:49:05]MH_I2C_Read... [13:49:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:05]Read from MH i2c: E2 [13:49:05]MH_I2C_Read... [13:49:05]Read from MH i2c: E2 0E 00 [13:49:05]MH_I2C_Read... [13:49:05]Read from MH i2c: E2 0E 00 7C 9D 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 EC [13:49:05]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:49:05]wFMCommunicate OK [13:49:05]SAM_PROTO_GetShiftState done [13:49:05]FM_GetShiftState done [13:49:05]opened in 1706659486 [13:49:05]opened+sec_in_day 1706745886 [13:49:05]quantity*price = 60300 [13:49:05]sum+1 = 60301 [13:49:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 603.00 НСП 1% : 5.34 НДС 12% : 64.03 Наличными: 603.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 64 31.01.2024 13:49 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49339 ФПД: 234844938338362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T134929&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49339&fm=234844938338362&tin=02508201610067®Number=0000000000092723&sum=60300 [13:49:06]StoreToDocumentArchive [13:49:06]shift 247 fd 49339 [13:49:06]save to /storage/0247/doc_00049339 [13:49:06]save last doc name /storage/0247/doc_00049339 to /storage/kkm_last_doc_name [13:49:06]save OK [13:49:06]Clear old archive folders... [13:49:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:49:06]tlvbuf is 01503D30 [13:49:06]SAM_PROTO_ClearQueue [13:49:06]wFMCommunicate request_size=4 [13:49:06]MH_SAM_APDU [13:49:06]CAPDU: 80 09 00 00 [13:49:06]Write to MH i2c: E2 08 00 89 9D 80 09 00 00 00 00 00 00 98 [13:49:06]Write i2c OK [13:49:06]MH_I2C_Read... [13:49:06]Read from MH i2c: E2 [13:49:06]MH_I2C_Read... [13:49:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:06]Read from MH i2c: E2 03 00 [13:49:06]MH_I2C_Read... [13:49:06]Read from MH i2c: E2 03 00 89 9D 00 90 00 9A [13:49:06]RAPDU: 90 00 [13:49:06]wFMCommunicate OK [13:49:06]SAM_PROTO_ClearQueue done [13:49:06]KKMCreateOFDPacket [13:49:06]OFDProtocolAddRootSTLVToBuf [13:49:06]FM_MakeSignedData [13:49:06]FM_MakeSignedData [13:49:06]SAM_PROTO_SignData [13:49:06]wFMCommunicate request_size=4 [13:49:06]MH_SAM_APDU [13:49:06]CAPDU: 80 0D 01 02 [13:49:06]Write to MH i2c: E2 08 00 8A 9D 80 0D 01 02 00 00 00 00 A0 [13:49:06]Write i2c OK [13:49:06]MH_I2C_Read... [13:49:06]Read from MH i2c: E2 [13:49:06]MH_I2C_Read... [13:49:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:06]Read from MH i2c: E2 03 00 [13:49:06]MH_I2C_Read... [13:49:06]Read from MH i2c: E2 03 00 8A 9D 00 90 00 9B [13:49:06]RAPDU: 90 00 [13:49:06]wFMCommunicate OK [13:49:06]wFMCommunicate request_size=255 [13:49:06]MH_SAM_APDU [13:49:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 8C EB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 19 00 00 00 00 07 04 06 00 8C EB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 E9 4F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BB C0 00 00 35 04 06 00 D5 [13:49:06]Write to MH i2c: E2 02 01 8B 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 8C EB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 19 00 00 00 00 07 04 06 00 8C EB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 E9 4F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BB C0 00 00 35 04 06 00 D5 00 00 F5 [13:49:06]Write i2c OK [13:49:06]MH_I2C_Read... [13:49:06]Read from MH i2c: E2 [13:49:06]MH_I2C_Read... [13:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:06]Read from MH i2c: E2 03 00 [13:49:06]MH_I2C_Read... [13:49:06]Read from MH i2c: E2 03 00 8B 9D 00 90 00 9C [13:49:06]RAPDU: 90 00 [13:49:06]wFMCommunicate OK [13:49:06]wFMCommunicate request_size=10 [13:49:06]MH_SAM_APDU [13:49:06]CAPDU: 80 0D 02 02 05 97 19 20 80 3A [13:49:06]Write to MH i2c: E2 0D 00 8C 9D 80 0D 02 02 05 00 97 19 20 80 3A 00 00 37 [13:49:06]Write i2c OK [13:49:06]MH_I2C_Read... [13:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:06]Read from MH i2c: E2 [13:49:06]MH_I2C_Read... [13:49:06]Read from MH i2c: E2 03 00 [13:49:06]MH_I2C_Read... [13:49:06]Read from MH i2c: E2 03 00 8C 9D 00 90 00 9D [13:49:06]RAPDU: 90 00 [13:49:06]wFMCommunicate OK [13:49:06]wFMCommunicate request_size=4 [13:49:06]MH_SAM_APDU [13:49:06]CAPDU: 80 0D 03 02 [13:49:06]Write to MH i2c: E2 08 00 8D 9D 80 0D 03 02 00 00 00 00 A5 [13:49:06]Write i2c OK [13:49:06]MH_I2C_Read... [13:49:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:07]Read from MH i2c: E2 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: E2 0B 00 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: E2 0B 00 8D 9D 00 29 46 C4 24 F6 E0 8E 77 90 00 D8 [13:49:07]RAPDU: 29 46 C4 24 F6 E0 8E 77 90 00 [13:49:07]wFMCommunicate OK [13:49:07]SAM_PROTO_SignData done [13:49:07]FM_MakeSignedData done [13:49:07]CreateOFDProtocolMessage [13:49:07]wFMCommunicate request_size=4 [13:49:07]MH_SAM_APDU [13:49:07]CAPDU: 80 11 00 00 [13:49:07]Write to MH i2c: E2 08 00 8E 9D 80 11 00 00 00 00 00 00 A5 [13:49:07]Write i2c OK [13:49:07]MH_I2C_Read... [13:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:07]Read from MH i2c: E2 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: E2 17 00 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: E2 17 00 8E 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F2 [13:49:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:49:07]wFMCommunicate OK [13:49:07]CreateOFDProtocolMessage done [13:49:07]OFDSenderStorePacket 49339 [13:49:07]StoreOFDPacket docnum=49339 [13:49:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 B8 11 07 01 31 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 8C EB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 19 00 00 00 00 07 04 06 00 8C EB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 E9 4F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BB C0 00 00 35 04 06 00 D5 97 19 20 80 3A 29 46 C4 24 F6 E0 8E 77 [13:49:07]CheckFolder [13:49:07]dirname=/storage/ofd_packets [13:49:07]CheckFolder done [13:49:07]ProducePacketName [13:49:07]name=ofd_packets/00049339 [13:49:07]NVStorageSaveData ofd_packets/00049339 [13:49:07]File name is /storage/ofd_packets/00049339 [13:49:07]Write 301 bytes [13:49:07]NVStorageSaveData done [13:49:07]OFDSenderStorePacket done [13:49:07]KKMCreateOFDPacket done [13:49:07]NVStorageSaveData kkm_last_timestamp [13:49:07]File name is /storage/kkm_last_timestamp [13:49:07]Write 4 bytes [13:49:07]NVStorageSaveData done [13:49:07]ExternCall_PrintAddStr [13:49:07]wPrintStart [13:49:07]Write to MH i2c: 01 00 00 8F 9D 2C [13:49:07]Write i2c OK [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: 01 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: 01 07 00 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: 01 07 00 8F 9D 00 00 00 00 00 FF 0F 41 [13:49:07]RasterBufferAndPrint [13:49:07]line Счет N : (1)216442 [13:49:07]line ИНН: 02508201610067 [13:49:07]line Контрольно-Кассовый Чек [13:49:07]line ПРОДАЖА [13:49:07]line ТРК (МРК, ГНК) : 12 [13:49:07]line Товар: 2710124130 [13:49:07]line Аи-92-К-5 [13:49:07]line 10.000 * 60.30 [13:49:07]line = 603.00 [13:49:07]line НДС 12% НСП 1% [13:49:07]line > о реализуемом товаре [13:49:07]line ИТОГО: 603.00 [13:49:07]line НСП 1% : 5.34 [13:49:07]line НДС 12% : 64.03 [13:49:07]line Наличными: 603.00 [13:49:07]line Безнал.: 0.00 [13:49:07]line Место: АЗС № 102 "Партнер Нефть" [13:49:07]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:49:07]line СНО: Общий режим [13:49:07]line Чек 64 31.01.2024 13:49 [13:49:07]line Смена: 247 ФФД: 1.0 [13:49:07]line ЗНМ: 0300000040 [13:49:07]line РНМ: 0000000000092723 [13:49:07]line Версия ККМ: 001 [13:49:07]line ФМ: 0000000000875060 [13:49:07]line ФД: 49339 [13:49:07]line ФПД: 234844938338362 [13:49:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T134929&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49339&fm=234844938338362&tin=02508201610067®Number=0000000000092723&sum=60300 [13:49:07]written 0, free lines is 4095 [13:49:07]OFD Sender: Processing packet 49339 [packets to send 12, broken 11] [13:49:07]ProducePacketName [13:49:07]name=ofd_packets/00049339 [13:49:07]OFD Sender: To server: pG, [13:49:07]CommunicateWithHost lk.salyk.kg:30040 [13:49:07]ConnectInit lk.salyk.kg [13:49:07]Connected sock=11 [13:49:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 B8 11 07 01 31 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 8C EB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C EB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 16 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 19 00 00 00 00 07 04 06 00 8C EB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 E9 4F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BB C0 00 00 35 04 06 00 D5 97 19 20 80 3A 29 46 C4 24 F6 E0 8E 77 [13:49:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 DF 15 47 00 E9 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 35 30 36 30 10 04 04 00 BB C0 00 00 F4 03 04 00 DB FB B9 65 B6 04 01 00 00 D6 67 6A 1B C8 5A 1C F5 [13:49:07]CommunicateWithHost err = 0 [13:49:07]CheckOFDResponse [13:49:07]1017 (14) - 77093643461234 [13:49:07]1041 (16) - 0000000000875060 [13:49:07]1040 (4) - 49339 [13:49:07]1012 (4) - 31.01.2024 07:50 [13:49:07]1206 (1) - 0 [13:49:07]OFD Sender: Remove packet 49339 [13:49:07]ProducePacketName [13:49:07]name=ofd_packets/00049339 [13:49:07]NVStorageDeleteData [13:49:07]Write to MH i2c: 01 00 00 B7 9D 54 [13:49:07]Write i2c OK [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: 01 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: 01 07 00 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: 01 07 00 B7 9D 00 00 00 00 00 24 0D 8C [13:49:07]RasterBufferAndPrint [13:49:07]line [13:49:07]line [13:49:07]line [13:49:07]line [13:49:07]line [13:49:07]written 0, free lines is 3371 [13:49:07]MH_Cut [13:49:07]Write to MH i2c: D1 01 00 BE 9D 01 2D [13:49:07]Write i2c OK [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: D1 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: D1 01 00 [13:49:07]MH_I2C_Read... [13:49:07]Read from MH i2c: D1 01 00 BE 9D 00 2C [13:49:07]Write to MH i2c: 01 00 00 BF 9D 5C [13:49:07]Write i2c OK [13:49:07]MH_I2C_Read... [13:49:07]OFD Sender: No OFD packet to send [13:49:08]*** Cut start [13:49:08]*** Partial cut [13:49:08]*** CUTSNS_PIN = 1 [13:49:08]*** CUTSNS_PIN = 0 [13:49:08]*** Brake cut motor [13:49:08]Read from MH i2c: 01 [13:49:08]MH_I2C_Read... [13:49:08]*** Stop cut motor [13:49:08]*** Cut end [13:49:08]Read from MH i2c: 01 07 00 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: 01 07 00 BF 9D 00 00 00 00 00 FF 0F 71 [13:49:08]process_action close_receipt done [13:49:08]requested_data is exist [13:49:08]produce_requested_data [13:49:08]requested_item fm.sn is exist - process it [13:49:08]wFMCommunicate request_size=4 [13:49:08]MH_SAM_APDU [13:49:08]CAPDU: 80 11 00 00 [13:49:08]Write to MH i2c: E2 08 00 C0 9D 80 11 00 00 00 00 00 00 D7 [13:49:08]Write i2c OK [13:49:08]MH_I2C_Read... [13:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:08]Read from MH i2c: E2 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 17 00 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 17 00 C0 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 24 [13:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:49:08]wFMCommunicate OK [13:49:08]requested_item fd.num is exist - process it [13:49:08]SAM_PROTO_GetFieldsCounters [13:49:08]wFMCommunicate request_size=4 [13:49:08]MH_SAM_APDU [13:49:08]CAPDU: 80 13 00 00 [13:49:08]Write to MH i2c: E2 08 00 C1 9D 80 13 00 00 00 00 00 00 DA [13:49:08]Write i2c OK [13:49:08]MH_I2C_Read... [13:49:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:08]Read from MH i2c: E2 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 62 00 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 62 00 C1 9D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BB C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [13:49: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BB C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:49:08]wFMCommunicate OK [13:49:08]SAM_PROTO_GetFieldsCounters done [13:49:08]requested_item shift.num is exist - process it [13:49:08]requested_item shift.opened is exist - process it [13:49:08]req_shift_opened [13:49:08]FM_GetShiftState [13:49:08]SAM_PROTO_GetShiftState [13:49:08]wFMCommunicate request_size=4 [13:49:08]MH_SAM_APDU [13:49:08]CAPDU: 80 13 01 00 [13:49:08]Write to MH i2c: E2 08 00 C2 9D 80 13 01 00 00 00 00 00 DC [13:49:08]Write i2c OK [13:49:08]MH_I2C_Read... [13:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:08]Read from MH i2c: E2 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 0E 00 [13:49:08]MH_I2C_Read... [13:49:08]Read from MH i2c: E2 0E 00 C2 9D 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 32 [13:49:08]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:49:08]wFMCommunicate OK [13:49:08]SAM_PROTO_GetShiftState done [13:49:08]FM_GetShiftState done [13:49:08]req_shift_opened done [13:49:08]requested_item shift.open_date is exist - process it [13:49:08]req_shift_open_date [13:49:08]req_shift_open_date done [13:49:08]produce_requested_data done [13:49:08]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49339,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [13:49:08]process_action_free close_receipt [13:49:08]json_value_free [13:49:08]json_value_free done [13:49:08]process_json_proto returns [13:49:08]Send response to host [13:49:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49339,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [13:49:08]free response buf [13:49:08]execute_script done [13:49:08]execute_script returns [13:49:08]free content buf [13:49:08]Sock 9.Close socket [13:49:08]Sock 9.Thread stoped [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:13]OFD Sender: No OFD packet to send [13:51:18]OFD Sender: No OFD packet to send [13:51:23]OFD Sender: No OFD packet to send [13:51:28]OFD Sender: No OFD packet to send [13:51:32]accept exits with 7 [13:51:32]New connection [13:51:32]New thread 3066670436 created [13:51:32]Thread 3066813796 joined [13:51:32]Waiting for new connection... [13:51:32] Sock 7.Parse request [13:51:32]Sock 7.Check first char [13:51:32]Sock 7.First char is OK [13:51:32]request: POST /json_proto HTTP/1.0 [13:51:32]Method: POST [13:51:32]URL: /json_proto [13:51:32]Method is POST - this is cgi request [13:51:32]url: /json_proto [13:51:32]query_string will be loaded in cgi processing [13:51:32]execute_cgi json_proto POST (null) [13:51:32]execute_cgi path=json_proto method=POST [13:51:32]POST find Content-Length [13:51:32]Host: 172.17.56.67:8080 [13:51:32]Content-Length: 677 [13:51:32]Content-Type: application/json [13:51:32] [13:51:32]POST finish read [13:51:32]Found Content-Length = 677 [13:51:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:32]execute_script... [13:51: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)216443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:32]POST & json_proto [13:51:32]process_json_proto [13:51:32]json parsed OK: [13:51:32]protocol is kg_v1.0 [13:51:32]action value=close_receipt [13:51:32]process_action close_receipt [13:51:32]cmd_close_receipt [13:51:32]MH_GetDate [13:51:32]Write to MH i2c: F0 00 00 C3 9D 4F [13:51:32]Write i2c OK [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: F0 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: F0 09 00 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: F0 09 00 C3 9D 00 7C 50 BA 65 26 5D 9E 65 C9 [13:51:32]GetLastDocTimeStamp 1706708969 [13:51:32]current date 1706709116 [13:51:32]FM_GetShiftState [13:51:32]SAM_PROTO_GetShiftState [13:51:32]wFMCommunicate request_size=4 [13:51:32]MH_SAM_APDU [13:51:32]CAPDU: 80 13 01 00 [13:51:32]Write to MH i2c: E2 08 00 C4 9D 80 13 01 00 00 00 00 00 DE [13:51:32]Write i2c OK [13:51:32]MH_I2C_Read... [13:51:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:32]Read from MH i2c: E2 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: E2 0E 00 [13:51:32]MH_I2C_Read... [13:51:32]Read from MH i2c: E2 0E 00 C4 9D 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 34 [13:51:32]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:51:32]wFMCommunicate OK [13:51:32]SAM_PROTO_GetShiftState done [13:51:32]FM_GetShiftState done [13:51:32]opened in 1706659486 [13:51:32]opened+sec_in_day 1706745886 [13:51:32]quantity*price = 30029 [13:51:32]sum+1 = 30030 [13:51:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 65 31.01.2024 13:51 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49340 ФПД: 77151485224904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T135156&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49340&fm=77151485224904&tin=02508201610067®Number=0000000000092723&sum=30000 [13:51:33]StoreToDocumentArchive [13:51:33]shift 247 fd 49340 [13:51:33]save to /storage/0247/doc_00049340 [13:51:33]save last doc name /storage/0247/doc_00049340 to /storage/kkm_last_doc_name [13:51:33]save OK [13:51:33]Clear old archive folders... [13:51:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:51:33]tlvbuf is 012369D0 [13:51:33]SAM_PROTO_ClearQueue [13:51:33]wFMCommunicate request_size=4 [13:51:33]MH_SAM_APDU [13:51:33]CAPDU: 80 09 00 00 [13:51:33]Write to MH i2c: E2 08 00 D1 9D 80 09 00 00 00 00 00 00 E0 [13:51:33]Write i2c OK [13:51:33]MH_I2C_Read... [13:51:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:33]Read from MH i2c: E2 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 03 00 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 03 00 D1 9D 00 90 00 E2 [13:51:33]RAPDU: 90 00 [13:51:33]wFMCommunicate OK [13:51:33]SAM_PROTO_ClearQueue done [13:51:33]KKMCreateOFDPacket [13:51:33]OFDProtocolAddRootSTLVToBuf [13:51:33]FM_MakeSignedData [13:51:33]FM_MakeSignedData [13:51:33]SAM_PROTO_SignData [13:51:33]wFMCommunicate request_size=4 [13:51:33]MH_SAM_APDU [13:51:33]CAPDU: 80 0D 01 02 [13:51:33]Write to MH i2c: E2 08 00 D2 9D 80 0D 01 02 00 00 00 00 E8 [13:51:33]Write i2c OK [13:51:33]MH_I2C_Read... [13:51:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:33]Read from MH i2c: E2 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 03 00 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 03 00 D2 9D 00 90 00 E3 [13:51:33]RAPDU: 90 00 [13:51:33]wFMCommunicate OK [13:51:33]wFMCommunicate request_size=255 [13:51:33]MH_SAM_APDU [13:51:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 7C 50 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BC C0 00 00 35 04 06 00 46 [13:51:33]Write to MH i2c: E2 02 01 D3 9D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 7C 50 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BC C0 00 00 35 04 06 00 46 00 00 93 [13:51:33]Write i2c OK [13:51:33]MH_I2C_Read... [13:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:33]Read from MH i2c: E2 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 03 00 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 03 00 D3 9D 00 90 00 E4 [13:51:33]RAPDU: 90 00 [13:51:33]wFMCommunicate OK [13:51:33]wFMCommunicate request_size=10 [13:51:33]MH_SAM_APDU [13:51:33]CAPDU: 80 0D 02 02 05 2B 3A DE E7 C8 [13:51:33]Write to MH i2c: E2 0D 00 D4 9D 80 0D 02 02 05 00 2B 3A DE E7 C8 00 00 E7 [13:51:33]Write i2c OK [13:51:33]MH_I2C_Read... [13:51:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:33]Read from MH i2c: E2 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 03 00 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 03 00 D4 9D 00 90 00 E5 [13:51:33]RAPDU: 90 00 [13:51:33]wFMCommunicate OK [13:51:33]wFMCommunicate request_size=4 [13:51:33]MH_SAM_APDU [13:51:33]CAPDU: 80 0D 03 02 [13:51:33]Write to MH i2c: E2 08 00 D5 9D 80 0D 03 02 00 00 00 00 ED [13:51:33]Write i2c OK [13:51:33]MH_I2C_Read... [13:51:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:33]Read from MH i2c: E2 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 0B 00 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 0B 00 D5 9D 00 2B 71 8E B1 ED 28 AA 48 90 00 D0 [13:51:33]RAPDU: 2B 71 8E B1 ED 28 AA 48 90 00 [13:51:33]wFMCommunicate OK [13:51:33]SAM_PROTO_SignData done [13:51:33]FM_MakeSignedData done [13:51:33]CreateOFDProtocolMessage [13:51:33]wFMCommunicate request_size=4 [13:51:33]MH_SAM_APDU [13:51:33]CAPDU: 80 11 00 00 [13:51:33]Write to MH i2c: E2 08 00 D6 9D 80 11 00 00 00 00 00 00 ED [13:51:33]Write i2c OK [13:51:33]MH_I2C_Read... [13:51:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:33]Read from MH i2c: E2 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 17 00 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: E2 17 00 D6 9D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3A [13:51:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:51:33]wFMCommunicate OK [13:51:33]CreateOFDProtocolMessage done [13:51:33]OFDSenderStorePacket 49340 [13:51:33]StoreOFDPacket docnum=49340 [13:51:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 0F CA 07 01 3E 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 7C 50 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BC C0 00 00 35 04 06 00 46 2B 3A DE E7 C8 2B 71 8E B1 ED 28 AA 48 [13:51:33]CheckFolder [13:51:33]dirname=/storage/ofd_packets [13:51:33]CheckFolder done [13:51:33]ProducePacketName [13:51:33]name=ofd_packets/00049340 [13:51:33]NVStorageSaveData ofd_packets/00049340 [13:51:33]File name is /storage/ofd_packets/00049340 [13:51:33]Write 301 bytes [13:51:33]NVStorageSaveData done [13:51:33]OFDSenderStorePacket done [13:51:33]KKMCreateOFDPacket done [13:51:33]NVStorageSaveData kkm_last_timestamp [13:51:33]File name is /storage/kkm_last_timestamp [13:51:33]Write 4 bytes [13:51:33]NVStorageSaveData done [13:51:33]ExternCall_PrintAddStr [13:51:33]wPrintStart [13:51:33]Write to MH i2c: 01 00 00 D7 9D 74 [13:51:33]Write i2c OK [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: 01 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: 01 07 00 [13:51:33]MH_I2C_Read... [13:51:33]Read from MH i2c: 01 07 00 D7 9D 00 00 00 00 00 FF 0F 89 [13:51:33]RasterBufferAndPrint [13:51:33]line Счет N : (1)216443 [13:51:33]line ИНН: 02508201610067 [13:51:33]line Контрольно-Кассовый Чек [13:51:33]line ПРОДАЖА [13:51:33]line ТРК (МРК, ГНК) : 22 [13:51:33]line Товар: 2710124130 [13:51:33]line Аи-92-К-5 [13:51:33]line 4.980 * 60.30 [13:51:33]line = 300.29 [13:51:33]line НДС 12% НСП 1% [13:51:33]line > о реализуемом товаре [13:51:33]line ОКРУГЛЕНИЕ: -0.29 [13:51:33]line ИТОГО: 300.00 [13:51:33]line Внесено: 300.00 [13:51:33]line СДАЧА: 0.00 [13:51:33]line НСП 1% : 2.66 [13:51:33]line НДС 12% : 31.89 [13:51:33]line Наличными: 300.00 [13:51:33]line Безнал.: 0.00 [13:51:33]line Место: АЗС № 102 "Партнер Нефть" [13:51:33]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:51:33]line СНО: Общий режим [13:51:33]line Чек 65 31.01.2024 13:51 [13:51:33]line Смена: 247 ФФД: 1.0 [13:51:33]line ЗНМ: 0300000040 [13:51:33]line РНМ: 0000000000092723 [13:51:33]line Версия ККМ: 001 [13:51:33]line ФМ: 0000000000875060 [13:51:33]line ФД: 49340 [13:51:33]line ФПД: 77151485224904 [13:51:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T135156&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49340&fm=77151485224904&tin=02508201610067®Number=0000000000092723&sum=30000 [13:51:34]OFD Sender: Processing packet 49340 [packets to send 12, broken 11] [13:51:34]ProducePacketName [13:51:34]name=ofd_packets/00049340 [13:51:34]OFD Sender: To server: pG, [13:51:34]CommunicateWithHost lk.salyk.kg:30040 [13:51:34]ConnectInit lk.salyk.kg [13:51:34]written 0, free lines is 4095 [13:51:34]Connected sock=10 [13:51:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 0F CA 07 01 3E 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 7C 50 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BC C0 00 00 35 04 06 00 46 2B 3A DE E7 C8 2B 71 8E B1 ED 28 AA 48 [13:51:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 74 36 47 00 6F 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BC C0 00 00 F4 03 04 00 6E FC B9 65 B6 04 01 00 00 FF F0 71 A3 5B 89 2C 87 [13:51:34]CommunicateWithHost err = 0 [13:51:34]CheckOFDResponse [13:51:34]1017 (14) - 77093643461234 [13:51:34]1041 (16) - 0000000000875060 [13:51:34]1040 (4) - 49340 [13:51:34]1012 (4) - 31.01.2024 07:53 [13:51:34]1206 (1) - 0 [13:51:34]OFD Sender: Remove packet 49340 [13:51:34]ProducePacketName [13:51:34]name=ofd_packets/00049340 [13:51:34]NVStorageDeleteData [13:51:34]Write to MH i2c: 01 00 00 02 9E A0 [13:51:34]Write i2c OK [13:51:34]MH_I2C_Read... [13:51:34]Read from MH i2c: 01 [13:51:34]MH_I2C_Read... [13:51:34]Read from MH i2c: 01 07 00 [13:51:34]MH_I2C_Read... [13:51:34]Read from MH i2c: 01 07 00 02 9E 00 00 00 00 00 E8 0C 9B [13:51:34]RasterBufferAndPrint [13:51:34]line [13:51:34]line [13:51:34]line [13:51:34]line [13:51:34]line [13:51:34]written 0, free lines is 3310 [13:51:34]MH_Cut [13:51:34]Write to MH i2c: D1 01 00 09 9E 01 79 [13:51:34]Write i2c OK [13:51:34]MH_I2C_Read... [13:51:34]Read from MH i2c: D1 [13:51:34]MH_I2C_Read... [13:51:34]Read from MH i2c: D1 01 00 [13:51:34]MH_I2C_Read... [13:51:34]Read from MH i2c: D1 01 00 09 9E 00 78 [13:51:34]Write to MH i2c: 01 00 00 0A 9E A8 [13:51:34]Write i2c OK [13:51:34]MH_I2C_Read... [13:51:34]OFD Sender: No OFD packet to send [13:51:35]*** Cut start [13:51:35]*** Partial cut [13:51:35]*** CUTSNS_PIN = 1 [13:51:35]*** CUTSNS_PIN = 0 [13:51:35]*** Brake cut motor [13:51:35]Read from MH i2c: 01 [13:51:35]MH_I2C_Read... [13:51:35]*** Stop cut motor [13:51:35]*** Cut end [13:51:35]Read from MH i2c: 01 07 00 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: 01 07 00 0A 9E 00 00 00 00 00 FF 0F BD [13:51:35]process_action close_receipt done [13:51:35]requested_data is exist [13:51:35]produce_requested_data [13:51:35]requested_item fm.sn is exist - process it [13:51:35]wFMCommunicate request_size=4 [13:51:35]MH_SAM_APDU [13:51:35]CAPDU: 80 11 00 00 [13:51:35]Write to MH i2c: E2 08 00 0B 9E 80 11 00 00 00 00 00 00 23 [13:51:35]Write i2c OK [13:51:35]MH_I2C_Read... [13:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:35]Read from MH i2c: E2 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 17 00 [13:51:35]MH_I2C_Read... [13:51:35]Read from MH i2c: E2 17 00 0B 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 70 [13:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:51:35]wFMCommunicate OK [13:51:35]requested_item fd.num is exist - process it [13:51:35]SAM_PROTO_GetFieldsCounters [13:51:35]wFMCommunicate request_size=4 [13:51:35]MH_SAM_APDU [13:51:35]CAPDU: 80 13 00 00 [13:51:35]Write to MH i2c: E2 08 00 0C 9E 80 13 00 00 00 00 00 00 26 [13:51:35]Write i2c OK [13:51:35]MH_I2C_Read... [13:51:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:36]Read from MH i2c: E2 [13:51:36]MH_I2C_Read... [13:51:36]Read from MH i2c: E2 62 00 [13:51:36]MH_I2C_Read... [13:51:36]Read from MH i2c: E2 62 00 0C 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BC C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [13:51: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BC C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:36]wFMCommunicate OK [13:51:36]SAM_PROTO_GetFieldsCounters done [13:51:36]requested_item shift.num is exist - process it [13:51:36]requested_item shift.opened is exist - process it [13:51:36]req_shift_opened [13:51:36]FM_GetShiftState [13:51:36]SAM_PROTO_GetShiftState [13:51:36]wFMCommunicate request_size=4 [13:51:36]MH_SAM_APDU [13:51:36]CAPDU: 80 13 01 00 [13:51:36]Write to MH i2c: E2 08 00 0D 9E 80 13 01 00 00 00 00 00 28 [13:51:36]Write i2c OK [13:51:36]MH_I2C_Read... [13:51:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:36]Read from MH i2c: E2 [13:51:36]MH_I2C_Read... [13:51:36]Read from MH i2c: E2 0E 00 [13:51:36]MH_I2C_Read... [13:51:36]Read from MH i2c: E2 0E 00 0D 9E 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 7E [13:51:36]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:51:36]wFMCommunicate OK [13:51:36]SAM_PROTO_GetShiftState done [13:51:36]FM_GetShiftState done [13:51:36]req_shift_opened done [13:51:36]requested_item shift.open_date is exist - process it [13:51:36]req_shift_open_date [13:51:36]req_shift_open_date done [13:51:36]produce_requested_data done [13:51:36]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49340,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [13:51:36]process_action_free close_receipt [13:51:36]json_value_free [13:51:36]json_value_free done [13:51:36]process_json_proto returns [13:51:36]Send response to host [13:51:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49340,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [13:51:36]free response buf [13:51:36]execute_script done [13:51:36]execute_script returns [13:51:36]free content buf [13:51:36]Sock 7.Close socket [13:51:36]Sock 7.Thread stoped [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:09]accept exits with 9 [13:58:09]New connection [13:58:09]New thread 3066813796 created [13:58:09]Thread 3066670436 joined [13:58:09]Waiting for new connection... [13:58:09] Sock 9.Parse request [13:58:09]Sock 9.Check first char [13:58:09]Sock 9.First char is OK [13:58:09]request: POST /json_proto HTTP/1.0 [13:58:09]Method: POST [13:58:09]URL: /json_proto [13:58:09]Method is POST - this is cgi request [13:58:09]url: /json_proto [13:58:09]query_string will be loaded in cgi processing [13:58:09]execute_cgi json_proto POST (null) [13:58:09]execute_cgi path=json_proto method=POST [13:58:09]POST find Content-Length [13:58:09]Host: 172.17.56.67:8080 [13:58:09]Content-Length: 679 [13:58:09]Content-Type: application/json [13:58:09] [13:58:09]POST finish read [13:58:09]Found Content-Length = 679 [13:58:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:09]execute_script... [13:58: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)216444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:09]POST & json_proto [13:58:09]process_json_proto [13:58:09]json parsed OK: [13:58:09]protocol is kg_v1.0 [13:58:09]action value=close_receipt [13:58:09]process_action close_receipt [13:58:09]cmd_close_receipt [13:58:09]MH_GetDate [13:58:09]Write to MH i2c: F0 00 00 0E 9E 9B [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: F0 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: F0 09 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: F0 09 00 0E 9E 00 09 52 BA 65 26 5D 9E 65 A4 [13:58:09]GetLastDocTimeStamp 1706709116 [13:58:09]current date 1706709513 [13:58:09]FM_GetShiftState [13:58:09]SAM_PROTO_GetShiftState [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 13 01 00 [13:58:09]Write to MH i2c: E2 08 00 0F 9E 80 13 01 00 00 00 00 00 2A [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 0E 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 0E 00 0F 9E 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 80 [13:58:09]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:58:09]wFMCommunicate OK [13:58:09]SAM_PROTO_GetShiftState done [13:58:09]FM_GetShiftState done [13:58:09]opened in 1706659486 [13:58:09]opened+sec_in_day 1706745886 [13:58:09]quantity*price = 100026 [13:58:09]sum+1 = 100028 [13:58:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 66 31.01.2024 13:58 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49341 ФПД: 192042094296933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T135833&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49341&fm=192042094296933&tin=02508201610067®Number=0000000000092723&sum=100000 [13:58:10]StoreToDocumentArchive [13:58:10]shift 247 fd 49341 [13:58:10]save to /storage/0247/doc_00049341 [13:58:10]save last doc name /storage/0247/doc_00049341 to /storage/kkm_last_doc_name [13:58:10]save OK [13:58:10]Clear old archive folders... [13:58:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:58:10]tlvbuf is 01408AA0 [13:58:10]SAM_PROTO_ClearQueue [13:58:10]wFMCommunicate request_size=4 [13:58:10]MH_SAM_APDU [13:58:10]CAPDU: 80 09 00 00 [13:58:10]Write to MH i2c: E2 08 00 1C 9E 80 09 00 00 00 00 00 00 2C [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:10]Read from MH i2c: E2 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 03 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 03 00 1C 9E 00 90 00 2E [13:58:10]RAPDU: 90 00 [13:58:10]wFMCommunicate OK [13:58:10]SAM_PROTO_ClearQueue done [13:58:10]KKMCreateOFDPacket [13:58:10]OFDProtocolAddRootSTLVToBuf [13:58:10]FM_MakeSignedData [13:58:10]FM_MakeSignedData [13:58:10]SAM_PROTO_SignData [13:58:10]wFMCommunicate request_size=4 [13:58:10]MH_SAM_APDU [13:58:10]CAPDU: 80 0D 01 02 [13:58:10]Write to MH i2c: E2 08 00 1D 9E 80 0D 01 02 00 00 00 00 34 [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:10]Read from MH i2c: E2 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 03 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 03 00 1D 9E 00 90 00 2F [13:58:10]RAPDU: 90 00 [13:58:10]wFMCommunicate OK [13:58:10]wFMCommunicate request_size=255 [13:58:10]MH_SAM_APDU [13:58:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 09 52 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BD C0 00 00 35 04 06 00 AE A9 48 CF [13:58:10]Write to MH i2c: E2 02 01 1E 9E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 09 52 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BD C0 00 00 35 04 06 00 AE A9 48 CF 00 00 5C [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]OFD Sender: No OFD packet to send [13:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:10]Read from MH i2c: E2 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 03 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 03 00 1E 9E 00 90 00 30 [13:58:10]RAPDU: 90 00 [13:58:10]wFMCommunicate OK [13:58:10]wFMCommunicate request_size=7 [13:58:10]MH_SAM_APDU [13:58:10]CAPDU: 80 0D 02 02 02 FF 65 [13:58:10]Write to MH i2c: E2 0A 00 1F 9E 80 0D 02 02 02 00 FF 65 00 00 9F [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:10]Read from MH i2c: E2 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 03 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 03 00 1F 9E 00 90 00 31 [13:58:10]RAPDU: 90 00 [13:58:10]wFMCommunicate OK [13:58:10]wFMCommunicate request_size=4 [13:58:10]MH_SAM_APDU [13:58:10]CAPDU: 80 0D 03 02 [13:58:10]Write to MH i2c: E2 08 00 20 9E 80 0D 03 02 00 00 00 00 39 [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:10]Read from MH i2c: E2 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 0B 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 0B 00 20 9E 00 44 6A 87 63 9A FB 50 50 90 00 07 [13:58:10]RAPDU: 44 6A 87 63 9A FB 50 50 90 00 [13:58:10]wFMCommunicate OK [13:58:10]SAM_PROTO_SignData done [13:58:10]FM_MakeSignedData done [13:58:10]CreateOFDProtocolMessage [13:58:10]wFMCommunicate request_size=4 [13:58:10]MH_SAM_APDU [13:58:10]CAPDU: 80 11 00 00 [13:58:10]Write to MH i2c: E2 08 00 21 9E 80 11 00 00 00 00 00 00 39 [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:10]Read from MH i2c: E2 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 17 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: E2 17 00 21 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 86 [13:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:58:10]wFMCommunicate OK [13:58:10]CreateOFDProtocolMessage done [13:58:10]OFDSenderStorePacket 49341 [13:58:10]StoreOFDPacket docnum=49341 [13:58:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 0B D5 04 01 B2 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 09 52 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BD C0 00 00 35 04 06 00 AE A9 48 CF FF 65 44 6A 87 63 9A FB 50 50 [13:58:10]CheckFolder [13:58:10]dirname=/storage/ofd_packets [13:58:10]CheckFolder done [13:58:10]ProducePacketName [13:58:10]name=ofd_packets/00049341 [13:58:10]NVStorageSaveData ofd_packets/00049341 [13:58:10]File name is /storage/ofd_packets/00049341 [13:58:10]Write 298 bytes [13:58:10]NVStorageSaveData done [13:58:10]OFDSenderStorePacket done [13:58:10]KKMCreateOFDPacket done [13:58:10]NVStorageSaveData kkm_last_timestamp [13:58:10]File name is /storage/kkm_last_timestamp [13:58:10]Write 4 bytes [13:58:10]NVStorageSaveData done [13:58:10]ExternCall_PrintAddStr [13:58:10]wPrintStart [13:58:10]Write to MH i2c: 01 00 00 22 9E C0 [13:58:10]Write i2c OK [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: 01 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: 01 07 00 [13:58:10]MH_I2C_Read... [13:58:10]Read from MH i2c: 01 07 00 22 9E 00 00 00 00 00 FF 0F D5 [13:58:10]RasterBufferAndPrint [13:58:10]line Счет N : (1)216444 [13:58:10]line ИНН: 02508201610067 [13:58:10]line Контрольно-Кассовый Чек [13:58:10]line ПРОДАЖА [13:58:10]line ТРК (МРК, ГНК) : 11 [13:58:10]line Товар: 2710194210 [13:58:10]line ДТ-К-5 [13:58:10]line 14.310 * 69.90 [13:58:10]line = 1000.27 [13:58:10]line НДС 12% НСП 1% [13:58:10]line > о реализуемом товаре [13:58:10]line ОКРУГЛЕНИЕ: -0.27 [13:58:10]line ИТОГО: 1000.00 [13:58:10]line Внесено: 1000.00 [13:58:10]line СДАЧА: 0.00 [13:58:10]line НСП 1% : 8.85 [13:58:10]line НДС 12% : 106.22 [13:58:10]line Наличными: 1000.00 [13:58:10]line Безнал.: 0.00 [13:58:10]line Место: АЗС № 102 "Партнер Нефть" [13:58:10]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:58:10]line СНО: Общий режим [13:58:10]line Чек 66 31.01.2024 13:58 [13:58:10]line Смена: 247 ФФД: 1.0 [13:58:10]line ЗНМ: 0300000040 [13:58:10]line РНМ: 0000000000092723 [13:58:10]line Версия ККМ: 001 [13:58:10]line ФМ: 0000000000875060 [13:58:10]line ФД: 49341 [13:58:10]line ФПД: 192042094296933 [13:58:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T135833&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49341&fm=192042094296933&tin=02508201610067®Number=0000000000092723&sum=100000 [13:58:11]OFD Sender: Processing packet 49341 [packets to send 12, broken 11] [13:58:11]ProducePacketName [13:58:11]name=ofd_packets/00049341 [13:58:11]OFD Sender: To server: pG, [13:58:11]CommunicateWithHost lk.salyk.kg:30040 [13:58:11]ConnectInit lk.salyk.kg [13:58:11]written 0, free lines is 4095 [13:58:11]Connected sock=10 [13:58:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 0B D5 04 01 B2 F0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 42 00 00 00 F4 03 04 00 09 52 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BD C0 00 00 35 04 06 00 AE A9 48 CF FF 65 44 6A 87 63 9A FB 50 50 [13:58:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 97 79 47 00 20 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BD C0 00 00 F4 03 04 00 FB FD B9 65 B6 04 01 00 00 07 DD A4 13 93 1E 97 82 [13:58:11]CommunicateWithHost err = 0 [13:58:11]CheckOFDResponse [13:58:11]1017 (14) - 77093643461234 [13:58:11]1041 (16) - 0000000000875060 [13:58:11]1040 (4) - 49341 [13:58:11]1012 (4) - 31.01.2024 07:59 [13:58:11]1206 (1) - 0 [13:58:11]OFD Sender: Remove packet 49341 [13:58:11]ProducePacketName [13:58:11]name=ofd_packets/00049341 [13:58:11]NVStorageDeleteData [13:58:11]Write to MH i2c: 01 00 00 4D 9E EB [13:58:11]Write i2c OK [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: 01 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: 01 07 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: 01 07 00 4D 9E 00 00 00 00 00 EF 0C ED [13:58:11]RasterBufferAndPrint [13:58:11]line [13:58:11]line [13:58:11]line [13:58:11]line [13:58:11]line [13:58:11]written 0, free lines is 3318 [13:58:11]MH_Cut [13:58:11]Write to MH i2c: D1 01 00 54 9E 01 C4 [13:58:11]Write i2c OK [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: D1 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: D1 01 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: D1 01 00 54 9E 00 C3 [13:58:11]Write to MH i2c: 01 00 00 55 9E F3 [13:58:11]Write i2c OK [13:58:11]MH_I2C_Read... [13:58:11]OFD Sender: No OFD packet to send [13:58:12]*** Cut start [13:58:12]*** Partial cut [13:58:12]*** CUTSNS_PIN = 1 [13:58:12]*** CUTSNS_PIN = 0 [13:58:12]*** Brake cut motor [13:58:12]Read from MH i2c: 01 [13:58:12]MH_I2C_Read... [13:58:12]*** Stop cut motor [13:58:12]*** Cut end [13:58:12]Read from MH i2c: 01 07 00 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: 01 07 00 55 9E 00 00 00 00 00 FF 0F 08 [13:58:12]process_action close_receipt done [13:58:12]requested_data is exist [13:58:12]produce_requested_data [13:58:12]requested_item fm.sn is exist - process it [13:58:12]wFMCommunicate request_size=4 [13:58:12]MH_SAM_APDU [13:58:12]CAPDU: 80 11 00 00 [13:58:12]Write to MH i2c: E2 08 00 56 9E 80 11 00 00 00 00 00 00 6E [13:58:12]Write i2c OK [13:58:12]MH_I2C_Read... [13:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:12]Read from MH i2c: E2 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: E2 17 00 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: E2 17 00 56 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BB [13:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:58:12]wFMCommunicate OK [13:58:12]requested_item fd.num is exist - process it [13:58:12]SAM_PROTO_GetFieldsCounters [13:58:12]wFMCommunicate request_size=4 [13:58:12]MH_SAM_APDU [13:58:12]CAPDU: 80 13 00 00 [13:58:12]Write to MH i2c: E2 08 00 57 9E 80 13 00 00 00 00 00 00 71 [13:58:12]Write i2c OK [13:58:12]MH_I2C_Read... [13:58:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:12]Read from MH i2c: E2 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: E2 62 00 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: E2 62 00 57 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BD C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [13:58: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BD C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:12]wFMCommunicate OK [13:58:12]SAM_PROTO_GetFieldsCounters done [13:58:12]requested_item shift.num is exist - process it [13:58:12]requested_item shift.opened is exist - process it [13:58:12]req_shift_opened [13:58:12]FM_GetShiftState [13:58:12]SAM_PROTO_GetShiftState [13:58:12]wFMCommunicate request_size=4 [13:58:12]MH_SAM_APDU [13:58:12]CAPDU: 80 13 01 00 [13:58:12]Write to MH i2c: E2 08 00 58 9E 80 13 01 00 00 00 00 00 73 [13:58:12]Write i2c OK [13:58:12]MH_I2C_Read... [13:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:12]Read from MH i2c: E2 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: E2 0E 00 [13:58:12]MH_I2C_Read... [13:58:12]Read from MH i2c: E2 0E 00 58 9E 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 C9 [13:58:12]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [13:58:12]wFMCommunicate OK [13:58:12]SAM_PROTO_GetShiftState done [13:58:12]FM_GetShiftState done [13:58:12]req_shift_opened done [13:58:12]requested_item shift.open_date is exist - process it [13:58:12]req_shift_open_date [13:58:12]req_shift_open_date done [13:58:12]produce_requested_data done [13:58:12]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49341,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [13:58:12]process_action_free close_receipt [13:58:12]json_value_free [13:58:12]json_value_free done [13:58:12]process_json_proto returns [13:58:12]Send response to host [13:58:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49341,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [13:58:12]free response buf [13:58:12]execute_script done [13:58:12]execute_script returns [13:58:12]free content buf [13:58:12]Sock 9.Close socket [13:58:12]Sock 9.Thread stoped [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]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:36]accept exits with 7 [14:03:36]New connection [14:03:36]New thread 3066670436 created [14:03:36]Thread 3066813796 joined [14:03:36]Waiting for new connection... [14:03:36] Sock 7.Parse request [14:03:36]Sock 7.Check first char [14:03:36]Sock 7.First char is OK [14:03:36]request: POST /json_proto HTTP/1.0 [14:03:36]Method: POST [14:03:36]URL: /json_proto [14:03:36]Method is POST - this is cgi request [14:03:36]url: /json_proto [14:03:36]query_string will be loaded in cgi processing [14:03:36]execute_cgi json_proto POST (null) [14:03:36]execute_cgi path=json_proto method=POST [14:03:36]POST find Content-Length [14:03:36]Host: 172.17.56.67:8080 [14:03:36]Content-Length: 679 [14:03:36]Content-Type: application/json [14:03:36] [14:03:36]POST finish read [14:03:36]Found Content-Length = 679 [14:03:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:03:36]execute_script... [14:03: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)216445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:03:36]POST & json_proto [14:03:36]process_json_proto [14:03:36]json parsed OK: [14:03:36]protocol is kg_v1.0 [14:03:36]action value=close_receipt [14:03:36]process_action close_receipt [14:03:36]cmd_close_receipt [14:03:36]MH_GetDate [14:03:36]Write to MH i2c: F0 00 00 59 9E E6 [14:03:36]Write i2c OK [14:03:36]MH_I2C_Read... [14:03:36]Read from MH i2c: F0 [14:03:36]MH_I2C_Read... [14:03:36]Read from MH i2c: F0 09 00 [14:03:36]MH_I2C_Read... [14:03:36]Read from MH i2c: F0 09 00 59 9E 00 50 53 BA 65 26 5D 9E 65 37 [14:03:36]GetLastDocTimeStamp 1706709513 [14:03:36]current date 1706709840 [14:03:36]FM_GetShiftState [14:03:36]SAM_PROTO_GetShiftState [14:03:36]wFMCommunicate request_size=4 [14:03:36]MH_SAM_APDU [14:03:36]CAPDU: 80 13 01 00 [14:03:36]Write to MH i2c: E2 08 00 5A 9E 80 13 01 00 00 00 00 00 75 [14:03:36]Write i2c OK [14:03:36]MH_I2C_Read... [14:03:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:36]Read from MH i2c: E2 [14:03:36]MH_I2C_Read... [14:03:36]Read from MH i2c: E2 0E 00 [14:03:36]MH_I2C_Read... [14:03:36]Read from MH i2c: E2 0E 00 5A 9E 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 CB [14:03:36]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [14:03:36]wFMCommunicate OK [14:03:36]SAM_PROTO_GetShiftState done [14:03:36]FM_GetShiftState done [14:03:36]opened in 1706659486 [14:03:36]opened+sec_in_day 1706745886 [14:03:36]quantity*price = 100026 [14:03:36]sum+1 = 100028 [14:03:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 67 31.01.2024 14:04 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49342 ФПД: 60456004898614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T140400&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49342&fm=60456004898614&tin=02508201610067®Number=0000000000092723&sum=100000 [14:03:37]StoreToDocumentArchive [14:03:37]shift 247 fd 49342 [14:03:37]save to /storage/0247/doc_00049342 [14:03:37]save last doc name /storage/0247/doc_00049342 to /storage/kkm_last_doc_name [14:03:37]save OK [14:03:37]Clear old archive folders... [14:03:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:03:37]tlvbuf is 0146A8E0 [14:03:37]SAM_PROTO_ClearQueue [14:03:37]wFMCommunicate request_size=4 [14:03:37]MH_SAM_APDU [14:03:37]CAPDU: 80 09 00 00 [14:03:37]Write to MH i2c: E2 08 00 67 9E 80 09 00 00 00 00 00 00 77 [14:03:37]Write i2c OK [14:03:37]MH_I2C_Read... [14:03:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:03:37]Read from MH i2c: E2 [14:03:37]MH_I2C_Read... [14:03:37]Read from MH i2c: E2 03 00 [14:03:37]MH_I2C_Read... [14:03:37]Read from MH i2c: E2 03 00 67 9E 00 90 00 79 [14:03:37]RAPDU: 90 00 [14:03:37]wFMCommunicate OK [14:03:37]SAM_PROTO_ClearQueue done [14:03:37]KKMCreateOFDPacket [14:03:37]OFDProtocolAddRootSTLVToBuf [14:03:37]FM_MakeSignedData [14:03:37]FM_MakeSignedData [14:03:37]SAM_PROTO_SignData [14:03:37]wFMCommunicate request_size=4 [14:03:37]MH_SAM_APDU [14:03:37]CAPDU: 80 0D 01 02 [14:03:37]Write to MH i2c: E2 08 00 68 9E 80 0D 01 02 00 00 00 00 7F [14:03:37]Write i2c OK [14:03:37]MH_I2C_Read... [14:03:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:03:37]Read from MH i2c: E2 [14:03:37]MH_I2C_Read... [14:03:37]Read from MH i2c: E2 03 00 [14:03:37]MH_I2C_Read... [14:03:37]Read from MH i2c: E2 03 00 68 9E 00 90 00 7A [14:03:37]RAPDU: 90 00 [14:03:37]wFMCommunicate OK [14:03:37]wFMCommunicate request_size=255 [14:03:37]MH_SAM_APDU [14:03:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 50 53 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BE C0 00 00 35 04 06 00 36 FC 02 B2 [14:03:37]Write to MH i2c: E2 02 01 69 9E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 50 53 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BE C0 00 00 35 04 06 00 36 FC 02 B2 00 00 69 [14:03:37]Write i2c OK [14:03:37]MH_I2C_Read... [14:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:37]Read from MH i2c: E2 [14:03:37]MH_I2C_Read... [14:03:37]Read from MH i2c: E2 03 00 [14:03:37]MH_I2C_Read... [14:03:37]Read from MH i2c: E2 03 00 69 9E 00 90 00 7B [14:03:37]RAPDU: 90 00 [14:03:37]wFMCommunicate OK [14:03:37]wFMCommunicate request_size=7 [14:03:37]MH_SAM_APDU [14:03:37]CAPDU: 80 0D 02 02 02 4F 36 [14:03:37]Write to MH i2c: E2 0A 00 6A 9E 80 0D 02 02 02 00 4F 36 00 00 0B [14:03:37]Write i2c OK [14:03:37]MH_I2C_Read... [14:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:03:37]Read from MH i2c: E2 [14:03:37]MH_I2C_Read... [14:03:37]Read from MH i2c: E2 03 00 [14:03:37]MH_I2C_Read... [14:03:37]Read from MH i2c: E2 03 00 6A 9E 00 90 00 7C [14:03:37]RAPDU: 90 00 [14:03:37]wFMCommunicate OK [14:03:37]wFMCommunicate request_size=4 [14:03:37]MH_SAM_APDU [14:03:37]CAPDU: 80 0D 03 02 [14:03:37]Write to MH i2c: E2 08 00 6B 9E 80 0D 03 02 00 00 00 00 84 [14:03:37]Write i2c OK [14:03:37]MH_I2C_Read... [14:03:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:03:37]Read from MH i2c: E2 [14:03:37]MH_I2C_Read... [14:03:37]Read from MH i2c: E2 0B 00 [14:03:37]MH_I2C_Read... [14:03:37]Read from MH i2c: E2 0B 00 6B 9E 00 7B EA 3D 4A D5 39 EC 13 90 00 7E [14:03:37]RAPDU: 7B EA 3D 4A D5 39 EC 13 90 00 [14:03:37]wFMCommunicate OK [14:03:37]SAM_PROTO_SignData done [14:03:37]FM_MakeSignedData done [14:03:37]CreateOFDProtocolMessage [14:03:37]wFMCommunicate request_size=4 [14:03:37]MH_SAM_APDU [14:03:37]CAPDU: 80 11 00 00 [14:03:37]Write to MH i2c: E2 08 00 6C 9E 80 11 00 00 00 00 00 00 84 [14:03:37]Write i2c OK [14:03:37]MH_I2C_Read... [14:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:37]Read from MH i2c: E2 [14:03:37]MH_I2C_Read... [14:03:37]Read from MH i2c: E2 17 00 [14:03:37]MH_I2C_Read... [14:03:37]Read from MH i2c: E2 17 00 6C 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D1 [14:03:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:03:37]wFMCommunicate OK [14:03:37]CreateOFDProtocolMessage done [14:03:37]OFDSenderStorePacket 49342 [14:03:37]StoreOFDPacket docnum=49342 [14:03:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 70 A4 04 01 F6 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 50 53 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BE C0 00 00 35 04 06 00 36 FC 02 B2 4F 36 7B EA 3D 4A D5 39 EC 13 [14:03:37]CheckFolder [14:03:37]dirname=/storage/ofd_packets [14:03:37]CheckFolder done [14:03:37]ProducePacketName [14:03:37]name=ofd_packets/00049342 [14:03:37]NVStorageSaveData ofd_packets/00049342 [14:03:37]File name is /storage/ofd_packets/00049342 [14:03:37]Write 298 bytes [14:03:37]NVStorageSaveData done [14:03:37]OFDSenderStorePacket done [14:03:37]KKMCreateOFDPacket done [14:03:37]NVStorageSaveData kkm_last_timestamp [14:03:37]File name is /storage/kkm_last_timestamp [14:03:37]Write 4 bytes [14:03:37]NVStorageSaveData done [14:03:37]ExternCall_PrintAddStr [14:03:37]wPrintStart [14:03:37]Write to MH i2c: 01 00 00 6D 9E 0B [14:03:37]Write i2c OK [14:03:37]MH_I2C_Read... [14:03:37]Read from MH i2c: 01 [14:03:37]MH_I2C_Read... [14:03:37]Read from MH i2c: 01 07 00 [14:03:37]MH_I2C_Read... [14:03:37]Read from MH i2c: 01 07 00 6D 9E 00 00 00 00 00 FF 0F 20 [14:03:37]RasterBufferAndPrint [14:03:37]line Счет N : (1)216445 [14:03:37]line ИНН: 02508201610067 [14:03:37]line Контрольно-Кассовый Чек [14:03:37]line ПРОДАЖА [14:03:37]line ТРК (МРК, ГНК) : 21 [14:03:37]line Товар: 2710194210 [14:03:37]line ДТ-К-5 [14:03:37]line 14.310 * 69.90 [14:03:37]line = 1000.27 [14:03:37]line НДС 12% НСП 1% [14:03:37]line > о реализуемом товаре [14:03:37]line ОКРУГЛЕНИЕ: -0.27 [14:03:37]line ИТОГО: 1000.00 [14:03:37]line Внесено: 1000.00 [14:03:37]line СДАЧА: 0.00 [14:03:37]line НСП 1% : 8.85 [14:03:37]line НДС 12% : 106.22 [14:03:37]line Наличными: 1000.00 [14:03:37]line Безнал.: 0.00 [14:03:37]line Место: АЗС № 102 "Партнер Нефть" [14:03:37]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:03:37]line СНО: Общий режим [14:03:37]line Чек 67 31.01.2024 14:04 [14:03:37]line Смена: 247 ФФД: 1.0 [14:03:37]line ЗНМ: 0300000040 [14:03:38]line РНМ: 0000000000092723 [14:03:38]line Версия ККМ: 001 [14:03:38]line ФМ: 0000000000875060 [14:03:38]line ФД: 49342 [14:03:38]line ФПД: 60456004898614 [14:03:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T140400&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49342&fm=60456004898614&tin=02508201610067®Number=0000000000092723&sum=100000 [14:03:38]OFD Sender: Processing packet 49342 [packets to send 12, broken 11] [14:03:38]ProducePacketName [14:03:38]name=ofd_packets/00049342 [14:03:38]OFD Sender: To server: pG, [14:03:38]CommunicateWithHost lk.salyk.kg:30040 [14:03:38]ConnectInit lk.salyk.kg [14:03:38]written 0, free lines is 4095 [14:03:38]Connected sock=10 [14:03:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 70 A4 04 01 F6 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 50 53 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BE C0 00 00 35 04 06 00 36 FC 02 B2 4F 36 7B EA 3D 4A D5 39 EC 13 [14:03:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 3C 41 47 00 64 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 35 30 36 30 10 04 04 00 BE C0 00 00 F4 03 04 00 42 FF B9 65 B6 04 01 00 00 22 A7 57 B2 57 20 D4 B7 [14:03:38]CommunicateWithHost err = 0 [14:03:38]CheckOFDResponse [14:03:38]1017 (14) - 77093643461234 [14:03:38]1041 (16) - 0000000000875060 [14:03:38]1040 (4) - 49342 [14:03:38]1012 (4) - 31.01.2024 08:05 [14:03:38]1206 (1) - 0 [14:03:38]OFD Sender: Remove packet 49342 [14:03:38]ProducePacketName [14:03:38]name=ofd_packets/00049342 [14:03:38]NVStorageDeleteData [14:03:38]Write to MH i2c: 01 00 00 98 9E 36 [14:03:38]Write i2c OK [14:03:38]MH_I2C_Read... [14:03:38]Read from MH i2c: 01 [14:03:38]MH_I2C_Read... [14:03:38]Read from MH i2c: 01 07 00 [14:03:38]MH_I2C_Read... [14:03:38]Read from MH i2c: 01 07 00 98 9E 00 00 00 00 00 F1 0C 3A [14:03:38]RasterBufferAndPrint [14:03:38]line [14:03:38]line [14:03:38]line [14:03:38]line [14:03:38]line [14:03:38]written 0, free lines is 3319 [14:03:38]MH_Cut [14:03:38]Write to MH i2c: D1 01 00 9F 9E 01 0F [14:03:38]Write i2c OK [14:03:38]MH_I2C_Read... [14:03:38]Read from MH i2c: D1 [14:03:38]MH_I2C_Read... [14:03:38]Read from MH i2c: D1 01 00 [14:03:38]MH_I2C_Read... [14:03:38]Read from MH i2c: D1 01 00 9F 9E 00 0E [14:03:38]Write to MH i2c: 01 00 00 A0 9E 3E [14:03:38]Write i2c OK [14:03:38]MH_I2C_Read... [14:03:38]OFD Sender: No OFD packet to send [14:03:39]*** Cut start [14:03:39]*** Partial cut [14:03:39]*** CUTSNS_PIN = 1 [14:03:39]*** CUTSNS_PIN = 0 [14:03:39]*** Brake cut motor [14:03:39]Read from MH i2c: 01 [14:03:39]MH_I2C_Read... [14:03:39]*** Stop cut motor [14:03:39]*** Cut end [14:03:39]Read from MH i2c: 01 07 00 [14:03:39]MH_I2C_Read... [14:03:39]Read from MH i2c: 01 07 00 A0 9E 00 00 00 00 00 FF 0F 53 [14:03:39]process_action close_receipt done [14:03:39]requested_data is exist [14:03:39]produce_requested_data [14:03:39]requested_item fm.sn is exist - process it [14:03:39]wFMCommunicate request_size=4 [14:03:39]MH_SAM_APDU [14:03:39]CAPDU: 80 11 00 00 [14:03:39]Write to MH i2c: E2 08 00 A1 9E 80 11 00 00 00 00 00 00 B9 [14:03:39]Write i2c OK [14:03:39]MH_I2C_Read... [14:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:03:39]Read from MH i2c: E2 [14:03:39]MH_I2C_Read... [14:03:39]Read from MH i2c: E2 17 00 [14:03:39]MH_I2C_Read... [14:03:39]Read from MH i2c: E2 17 00 A1 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 06 [14:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:03:39]wFMCommunicate OK [14:03:39]requested_item fd.num is exist - process it [14:03:39]SAM_PROTO_GetFieldsCounters [14:03:39]wFMCommunicate request_size=4 [14:03:39]MH_SAM_APDU [14:03:39]CAPDU: 80 13 00 00 [14:03:39]Write to MH i2c: E2 08 00 A2 9E 80 13 00 00 00 00 00 00 BC [14:03:39]Write i2c OK [14:03:39]MH_I2C_Read... [14:03:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:03:40]Read from MH i2c: E2 [14:03:40]MH_I2C_Read... [14:03:40]Read from MH i2c: E2 62 00 [14:03:40]MH_I2C_Read... [14:03:40]Read from MH i2c: E2 62 00 A2 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BE C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [14:03: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BE C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:03:40]wFMCommunicate OK [14:03:40]SAM_PROTO_GetFieldsCounters done [14:03:40]requested_item shift.num is exist - process it [14:03:40]requested_item shift.opened is exist - process it [14:03:40]req_shift_opened [14:03:40]FM_GetShiftState [14:03:40]SAM_PROTO_GetShiftState [14:03:40]wFMCommunicate request_size=4 [14:03:40]MH_SAM_APDU [14:03:40]CAPDU: 80 13 01 00 [14:03:40]Write to MH i2c: E2 08 00 A3 9E 80 13 01 00 00 00 00 00 BE [14:03:40]Write i2c OK [14:03:40]MH_I2C_Read... [14:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:03:40]Read from MH i2c: E2 [14:03:40]MH_I2C_Read... [14:03:40]Read from MH i2c: E2 0E 00 [14:03:40]MH_I2C_Read... [14:03:40]Read from MH i2c: E2 0E 00 A3 9E 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 14 [14:03:40]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [14:03:40]wFMCommunicate OK [14:03:40]SAM_PROTO_GetShiftState done [14:03:40]FM_GetShiftState done [14:03:40]req_shift_opened done [14:03:40]requested_item shift.open_date is exist - process it [14:03:40]req_shift_open_date [14:03:40]req_shift_open_date done [14:03:40]produce_requested_data done [14:03:40]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49342,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [14:03:40]process_action_free close_receipt [14:03:40]json_value_free [14:03:40]json_value_free done [14:03:40]process_json_proto returns [14:03:40]Send response to host [14:03:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49342,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [14:03:40]free response buf [14:03:40]execute_script done [14:03:40]execute_script returns [14:03:40]free content buf [14:03:40]Sock 7.Close socket [14:03:40]Sock 7.Thread stoped [14:03:43]OFD Sender: No OFD packet to send [14:03:48]OFD Sender: No OFD packet to send [14:03:53]OFD Sender: No OFD packet to send [14:03:58]OFD Sender: No OFD packet to send [14:04:03]OFD Sender: No OFD packet to send [14:04:07]accept exits with 9 [14:04:07]New connection [14:04:07]New thread 3066813796 created [14:04:07]Thread 3066670436 joined [14:04:07]Waiting for new connection... [14:04:07] Sock 9.Parse request [14:04:07]Sock 9.Check first char [14:04:07]Sock 9.First char is OK [14:04:07]request: POST /json_proto HTTP/1.0 [14:04:07]Method: POST [14:04:07]URL: /json_proto [14:04:07]Method is POST - this is cgi request [14:04:07]url: /json_proto [14:04:07]query_string will be loaded in cgi processing [14:04:07]execute_cgi json_proto POST (null) [14:04:07]execute_cgi path=json_proto method=POST [14:04:07]POST find Content-Length [14:04:07]Host: 172.17.56.67:8080 [14:04:07]Content-Length: 675 [14:04:07]Content-Type: application/json [14:04:07] [14:04:07]POST finish read [14:04:07]Found Content-Length = 675 [14:04:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "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:04:07]execute_script... [14:04: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)216446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 10.020, "sum" : 700.40, "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:04:07]POST & json_proto [14:04:07]process_json_proto [14:04:07]json parsed OK: [14:04:07]protocol is kg_v1.0 [14:04:07]action value=close_receipt [14:04:07]process_action close_receipt [14:04:07]cmd_close_receipt [14:04:07]MH_GetDate [14:04:07]Write to MH i2c: F0 00 00 A4 9E 31 [14:04:07]Write i2c OK [14:04:07]MH_I2C_Read... [14:04:07]Read from MH i2c: F0 [14:04:07]MH_I2C_Read... [14:04:07]Read from MH i2c: F0 09 00 [14:04:07]MH_I2C_Read... [14:04:07]Read from MH i2c: F0 09 00 A4 9E 00 70 53 BA 65 26 5D 9E 65 A2 [14:04:07]GetLastDocTimeStamp 1706709840 [14:04:07]current date 1706709872 [14:04:07]FM_GetShiftState [14:04:07]SAM_PROTO_GetShiftState [14:04:07]wFMCommunicate request_size=4 [14:04:07]MH_SAM_APDU [14:04:07]CAPDU: 80 13 01 00 [14:04:07]Write to MH i2c: E2 08 00 A5 9E 80 13 01 00 00 00 00 00 C0 [14:04:07]Write i2c OK [14:04:07]MH_I2C_Read... [14:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:07]Read from MH i2c: E2 [14:04:07]MH_I2C_Read... [14:04:07]Read from MH i2c: E2 0E 00 [14:04:07]MH_I2C_Read... [14:04:07]Read from MH i2c: E2 0E 00 A5 9E 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 16 [14:04:07]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [14:04:07]wFMCommunicate OK [14:04:07]SAM_PROTO_GetShiftState done [14:04:07]FM_GetShiftState done [14:04:07]opened in 1706659486 [14:04:07]opened+sec_in_day 1706745886 [14:04:07]quantity*price = 70039 [14:04:07]sum+1 = 70041 [14:04:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 68 31.01.2024 14:04 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49343 ФПД: 177144824544716 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T140432&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49343&fm=177144824544716&tin=02508201610067®Number=0000000000092723&sum=70000 [14:04:09]StoreToDocumentArchive [14:04:09]shift 247 fd 49343 [14:04:09]save to /storage/0247/doc_00049343 [14:04:09]save last doc name /storage/0247/doc_00049343 to /storage/kkm_last_doc_name [14:04:09]save OK [14:04:09]Clear old archive folders... [14:04:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:04:09]tlvbuf is 01236380 [14:04:09]SAM_PROTO_ClearQueue [14:04:09]wFMCommunicate request_size=4 [14:04:09]MH_SAM_APDU [14:04:09]CAPDU: 80 09 00 00 [14:04:09]Write to MH i2c: E2 08 00 B2 9E 80 09 00 00 00 00 00 00 C2 [14:04:09]Write i2c OK [14:04:09]MH_I2C_Read... [14:04:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:09]Read from MH i2c: E2 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 03 00 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 03 00 B2 9E 00 90 00 C4 [14:04:09]RAPDU: 90 00 [14:04:09]wFMCommunicate OK [14:04:09]SAM_PROTO_ClearQueue done [14:04:09]KKMCreateOFDPacket [14:04:09]OFDProtocolAddRootSTLVToBuf [14:04:09]FM_MakeSignedData [14:04:09]FM_MakeSignedData [14:04:09]SAM_PROTO_SignData [14:04:09]wFMCommunicate request_size=4 [14:04:09]MH_SAM_APDU [14:04:09]CAPDU: 80 0D 01 02 [14:04:09]Write to MH i2c: E2 08 00 B3 9E 80 0D 01 02 00 00 00 00 CA [14:04:09]Write i2c OK [14:04:09]MH_I2C_Read... [14:04:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:09]Read from MH i2c: E2 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 03 00 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 03 00 B3 9E 00 90 00 C5 [14:04:09]RAPDU: 90 00 [14:04:09]wFMCommunicate OK [14:04:09]wFMCommunicate request_size=255 [14:04:09]MH_SAM_APDU [14:04:09]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 70 53 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BF C0 00 00 35 04 06 00 A1 1C BE 57 [14:04:09]Write to MH i2c: E2 02 01 B4 9E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 70 53 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BF C0 00 00 35 04 06 00 A1 1C BE 57 00 00 88 [14:04:09]Write i2c OK [14:04:09]MH_I2C_Read... [14:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:09]Read from MH i2c: E2 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 03 00 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 03 00 B4 9E 00 90 00 C6 [14:04:09]RAPDU: 90 00 [14:04:09]wFMCommunicate OK [14:04:09]wFMCommunicate request_size=7 [14:04:09]MH_SAM_APDU [14:04:09]CAPDU: 80 0D 02 02 02 3D CC [14:04:09]Write to MH i2c: E2 0A 00 B5 9E 80 0D 02 02 02 00 3D CC 00 00 DA [14:04:09]Write i2c OK [14:04:09]MH_I2C_Read... [14:04:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:09]Read from MH i2c: E2 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 03 00 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 03 00 B5 9E 00 90 00 C7 [14:04:09]RAPDU: 90 00 [14:04:09]wFMCommunicate OK [14:04:09]wFMCommunicate request_size=4 [14:04:09]MH_SAM_APDU [14:04:09]CAPDU: 80 0D 03 02 [14:04:09]Write to MH i2c: E2 08 00 B6 9E 80 0D 03 02 00 00 00 00 CF [14:04:09]Write i2c OK [14:04:09]MH_I2C_Read... [14:04:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:09]Read from MH i2c: E2 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 0B 00 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 0B 00 B6 9E 00 80 DB B4 85 51 6F F7 88 90 00 A3 [14:04:09]RAPDU: 80 DB B4 85 51 6F F7 88 90 00 [14:04:09]wFMCommunicate OK [14:04:09]SAM_PROTO_SignData done [14:04:09]FM_MakeSignedData done [14:04:09]CreateOFDProtocolMessage [14:04:09]wFMCommunicate request_size=4 [14:04:09]MH_SAM_APDU [14:04:09]CAPDU: 80 11 00 00 [14:04:09]Write to MH i2c: E2 08 00 B7 9E 80 11 00 00 00 00 00 00 CF [14:04:09]Write i2c OK [14:04:09]MH_I2C_Read... [14:04:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:09]Read from MH i2c: E2 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 17 00 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: E2 17 00 B7 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1C [14:04:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:04:09]wFMCommunicate OK [14:04:09]CreateOFDProtocolMessage done [14:04:09]OFDSenderStorePacket 49343 [14:04:09]StoreOFDPacket docnum=49343 [14:04:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 8B 78 04 01 A8 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 70 53 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BF C0 00 00 35 04 06 00 A1 1C BE 57 3D CC 80 DB B4 85 51 6F F7 88 [14:04:09]CheckFolder [14:04:09]dirname=/storage/ofd_packets [14:04:09]CheckFolder done [14:04:09]ProducePacketName [14:04:09]name=ofd_packets/00049343 [14:04:09]NVStorageSaveData ofd_packets/00049343 [14:04:09]File name is /storage/ofd_packets/00049343 [14:04:09]Write 298 bytes [14:04:09]NVStorageSaveData done [14:04:09]OFDSenderStorePacket done [14:04:09]KKMCreateOFDPacket done [14:04:09]NVStorageSaveData kkm_last_timestamp [14:04:09]File name is /storage/kkm_last_timestamp [14:04:09]Write 4 bytes [14:04:09]NVStorageSaveData done [14:04:09]ExternCall_PrintAddStr [14:04:09]wPrintStart [14:04:09]Write to MH i2c: 01 00 00 B8 9E 56 [14:04:09]Write i2c OK [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: 01 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: 01 07 00 [14:04:09]MH_I2C_Read... [14:04:09]Read from MH i2c: 01 07 00 B8 9E 00 00 00 00 00 FF 0F 6B [14:04:09]RasterBufferAndPrint [14:04:09]line Счет N : (1)216446 [14:04:09]line ИНН: 02508201610067 [14:04:09]line Контрольно-Кассовый Чек [14:04:09]line ПРОДАЖА [14:04:09]line ТРК (МРК, ГНК) : 11 [14:04:09]line Товар: 2710194210 [14:04:09]line ДТ-К-5 [14:04:09]line 10.020 * 69.90 [14:04:09]line = 700.40 [14:04:09]line НДС 12% НСП 1% [14:04:09]line > о реализуемом товаре [14:04:09]line ОКРУГЛЕНИЕ: -0.40 [14:04:09]line ИТОГО: 700.00 [14:04:09]line Внесено: 700.00 [14:04:09]line СДАЧА: 0.00 [14:04:09]line НСП 1% : 6.20 [14:04:09]line НДС 12% : 74.38 [14:04:09]line Наличными: 700.00 [14:04:09]line Безнал.: 0.00 [14:04:09]line Место: АЗС № 102 "Партнер Нефть" [14:04:09]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:04:09]line СНО: Общий режим [14:04:09]line Чек 68 31.01.2024 14:04 [14:04:09]line Смена: 247 ФФД: 1.0 [14:04:09]line ЗНМ: 0300000040 [14:04:09]line РНМ: 0000000000092723 [14:04:09]line Версия ККМ: 001 [14:04:09]line ФМ: 0000000000875060 [14:04:09]line ФД: 49343 [14:04:09]line ФПД: 177144824544716 [14:04:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T140432&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49343&fm=177144824544716&tin=02508201610067®Number=0000000000092723&sum=70000 [14:04:09]OFD Sender: Processing packet 49343 [packets to send 12, broken 11] [14:04:09]ProducePacketName [14:04:09]name=ofd_packets/00049343 [14:04:09]OFD Sender: To server: pG, [14:04:09]CommunicateWithHost lk.salyk.kg:30040 [14:04:09]ConnectInit lk.salyk.kg [14:04:09]written 0, free lines is 4095 [14:04:09]Connected sock=10 [14:04:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 8B 78 04 01 A8 90 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 98 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 70 53 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BF C0 00 00 35 04 06 00 A1 1C BE 57 3D CC 80 DB B4 85 51 6F F7 88 [14:04:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 C8 67 47 00 0B 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BF C0 00 00 F4 03 04 00 62 FF B9 65 B6 04 01 00 00 49 6F 9C 70 73 3F C3 A0 [14:04:10]CommunicateWithHost err = 0 [14:04:10]CheckOFDResponse [14:04:10]1017 (14) - 77093643461234 [14:04:10]1041 (16) - 0000000000875060 [14:04:10]1040 (4) - 49343 [14:04:10]1012 (4) - 31.01.2024 08:05 [14:04:10]1206 (1) - 0 [14:04:10]OFD Sender: Remove packet 49343 [14:04:10]ProducePacketName [14:04:10]name=ofd_packets/00049343 [14:04:10]NVStorageDeleteData [14:04:10]Write to MH i2c: 01 00 00 E3 9E 81 [14:04:10]Write i2c OK [14:04:10]MH_I2C_Read... [14:04:10]Read from MH i2c: 01 [14:04:10]MH_I2C_Read... [14:04:10]Read from MH i2c: 01 07 00 [14:04:10]MH_I2C_Read... [14:04:10]Read from MH i2c: 01 07 00 E3 9E 00 00 00 00 00 E0 0C 74 [14:04:10]RasterBufferAndPrint [14:04:10]line [14:04:10]line [14:04:10]line [14:04:10]line [14:04:10]line [14:04:10]written 0, free lines is 3302 [14:04:10]MH_Cut [14:04:10]Write to MH i2c: D1 01 00 EA 9E 01 5A [14:04:10]Write i2c OK [14:04:10]MH_I2C_Read... [14:04:10]Read from MH i2c: D1 [14:04:10]MH_I2C_Read... [14:04:10]Read from MH i2c: D1 01 00 [14:04:10]MH_I2C_Read... [14:04:10]Read from MH i2c: D1 01 00 EA 9E 00 59 [14:04:10]Write to MH i2c: 01 00 00 EB 9E 89 [14:04:10]Write i2c OK [14:04:10]MH_I2C_Read... [14:04:10]OFD Sender: No OFD packet to send [14:04:10]*** Cut start [14:04:10]*** Partial cut [14:04:10]*** CUTSNS_PIN = 1 [14:04:11]*** CUTSNS_PIN = 0 [14:04:11]*** Brake cut motor [14:04:11]Read from MH i2c: 01 [14:04:11]MH_I2C_Read... [14:04:11]*** Stop cut motor [14:04:11]*** Cut end [14:04:11]Read from MH i2c: 01 07 00 [14:04:11]MH_I2C_Read... [14:04:11]Read from MH i2c: 01 07 00 EB 9E 00 00 00 00 00 FF 0F 9E [14:04:11]process_action close_receipt done [14:04:11]requested_data is exist [14:04:11]produce_requested_data [14:04:11]requested_item fm.sn is exist - process it [14:04:11]wFMCommunicate request_size=4 [14:04:11]MH_SAM_APDU [14:04:11]CAPDU: 80 11 00 00 [14:04:11]Write to MH i2c: E2 08 00 EC 9E 80 11 00 00 00 00 00 00 04 [14:04:11]Write i2c OK [14:04:11]MH_I2C_Read... [14:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:11]Read from MH i2c: E2 [14:04:11]MH_I2C_Read... [14:04:11]Read from MH i2c: E2 17 00 [14:04:11]MH_I2C_Read... [14:04:11]Read from MH i2c: E2 17 00 EC 9E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 51 [14:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:04:11]wFMCommunicate OK [14:04:11]requested_item fd.num is exist - process it [14:04:11]SAM_PROTO_GetFieldsCounters [14:04:11]wFMCommunicate request_size=4 [14:04:11]MH_SAM_APDU [14:04:11]CAPDU: 80 13 00 00 [14:04:11]Write to MH i2c: E2 08 00 ED 9E 80 13 00 00 00 00 00 00 07 [14:04:11]Write i2c OK [14:04:11]MH_I2C_Read... [14:04:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:11]Read from MH i2c: E2 [14:04:11]MH_I2C_Read... [14:04:11]Read from MH i2c: E2 62 00 [14:04:11]MH_I2C_Read... [14:04:11]Read from MH i2c: E2 62 00 ED 9E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BF C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [14:04: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 BF C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:04:11]wFMCommunicate OK [14:04:11]SAM_PROTO_GetFieldsCounters done [14:04:11]requested_item shift.num is exist - process it [14:04:11]requested_item shift.opened is exist - process it [14:04:11]req_shift_opened [14:04:11]FM_GetShiftState [14:04:11]SAM_PROTO_GetShiftState [14:04:11]wFMCommunicate request_size=4 [14:04:11]MH_SAM_APDU [14:04:11]CAPDU: 80 13 01 00 [14:04:11]Write to MH i2c: E2 08 00 EE 9E 80 13 01 00 00 00 00 00 09 [14:04:11]Write i2c OK [14:04:11]MH_I2C_Read... [14:04:11]Read from MH i2c: E2 [14:04:11]MH_I2C_Read... [14:04:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:11]Read from MH i2c: E2 0E 00 [14:04:11]MH_I2C_Read... [14:04:11]Read from MH i2c: E2 0E 00 EE 9E 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 5F [14:04:11]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [14:04:11]wFMCommunicate OK [14:04:11]SAM_PROTO_GetShiftState done [14:04:11]FM_GetShiftState done [14:04:11]req_shift_opened done [14:04:11]requested_item shift.open_date is exist - process it [14:04:11]req_shift_open_date [14:04:11]req_shift_open_date done [14:04:11]produce_requested_data done [14:04:11]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49343,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [14:04:11]process_action_free close_receipt [14:04:11]json_value_free [14:04:11]json_value_free done [14:04:11]process_json_proto returns [14:04:11]Send response to host [14:04:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49343,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [14:04:11]free response buf [14:04:11]execute_script done [14:04:11]execute_script returns [14:04:11]free content buf [14:04:11]Sock 9.Close socket [14:04:11]Sock 9.Thread stoped [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]OFD Sender: No OFD packet to send [14:08:30]OFD Sender: No OFD packet to send [14:08:35]OFD Sender: No OFD packet to send [14:08:40]OFD Sender: No OFD packet to send [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:05]OFD Sender: No OFD packet to send [14:10:10]OFD Sender: No OFD packet to send [14:10:15]OFD Sender: No OFD packet to send [14:10:20]OFD Sender: No OFD packet to send [14:10:25]OFD Sender: No OFD packet to send [14:10:30]OFD Sender: No OFD packet to send [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:14:01]OFD Sender: No OFD packet to send [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]OFD Sender: No OFD packet to send [14:14:26]OFD Sender: No OFD packet to send [14:14:31]OFD Sender: No OFD packet to send [14:14:36]OFD Sender: No OFD packet to send [14:14:41]OFD Sender: No OFD packet to send [14:14:46]OFD Sender: No OFD packet to send [14:14:51]OFD Sender: No OFD packet to send [14:14:56]OFD Sender: No OFD packet to send [14:15:01]OFD Sender: No OFD packet to send [14:15:06]OFD Sender: No OFD packet to send [14:15:11]OFD Sender: No OFD packet to send [14:15:16]OFD Sender: No OFD packet to send [14:15:21]OFD Sender: No OFD packet to send [14:15:26]OFD Sender: No OFD packet to send [14:15:31]OFD Sender: No OFD packet to send [14:15:36]OFD Sender: No OFD packet to send [14:15:41]OFD Sender: No OFD packet to send [14:15:46]OFD Sender: No OFD packet to send [14:15:51]OFD Sender: No OFD packet to send [14:15:56]OFD Sender: No OFD packet to send [14:16:01]OFD Sender: No OFD packet to send [14:16:06]OFD Sender: No OFD packet to send [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:50]accept exits with 7 [14:17:50]New connection [14:17:50]New thread 3066670436 created [14:17:50]Thread 3066813796 joined [14:17:50]Waiting for new connection... [14:17:50] Sock 7.Parse request [14:17:50]Sock 7.Check first char [14:17:50]Sock 7.First char is OK [14:17:50]request: POST /json_proto HTTP/1.0 [14:17:50]Method: POST [14:17:50]URL: /json_proto [14:17:50]Method is POST - this is cgi request [14:17:50]url: /json_proto [14:17:50]query_string will be loaded in cgi processing [14:17:50]execute_cgi json_proto POST (null) [14:17:50]execute_cgi path=json_proto method=POST [14:17:50]POST find Content-Length [14:17:50]Host: 172.17.56.67:8080 [14:17:50]Content-Length: 677 [14:17:50]Content-Type: application/json [14:17:50] [14:17:50]POST finish read [14:17:50]Found Content-Length = 677 [14:17:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:50]execute_script... [14:17: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)216447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:50]POST & json_proto [14:17:50]process_json_proto [14:17:50]json parsed OK: [14:17:50]protocol is kg_v1.0 [14:17:50]action value=close_receipt [14:17:50]process_action close_receipt [14:17:50]cmd_close_receipt [14:17:50]MH_GetDate [14:17:50]Write to MH i2c: F0 00 00 EF 9E 7C [14:17:50]Write i2c OK [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: F0 [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: F0 09 00 [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: F0 09 00 EF 9E 00 A7 56 BA 65 26 5D 9E 65 27 [14:17:50]GetLastDocTimeStamp 1706709872 [14:17:50]current date 1706710695 [14:17:50]FM_GetShiftState [14:17:50]SAM_PROTO_GetShiftState [14:17:50]wFMCommunicate request_size=4 [14:17:50]MH_SAM_APDU [14:17:50]CAPDU: 80 13 01 00 [14:17:50]Write to MH i2c: E2 08 00 F0 9E 80 13 01 00 00 00 00 00 0B [14:17:50]Write i2c OK [14:17:50]MH_I2C_Read... [14:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:50]Read from MH i2c: E2 [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: E2 0E 00 [14:17:50]MH_I2C_Read... [14:17:50]Read from MH i2c: E2 0E 00 F0 9E 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 61 [14:17:50]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [14:17:50]wFMCommunicate OK [14:17:50]SAM_PROTO_GetShiftState done [14:17:50]FM_GetShiftState done [14:17:50]opened in 1706659486 [14:17:50]opened+sec_in_day 1706745886 [14:17:50]quantity*price = 20019 [14:17:50]sum+1 = 20021 [14:17:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 69 31.01.2024 14:18 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49344 ФПД: 75827055212897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T141815&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49344&fm=75827055212897&tin=02508201610067®Number=0000000000092723&sum=20000 [14:17:52]StoreToDocumentArchive [14:17:52]shift 247 fd 49344 [14:17:52]save to /storage/0247/doc_00049344 [14:17:52]save last doc name /storage/0247/doc_00049344 to /storage/kkm_last_doc_name [14:17:52]save OK [14:17:52]Clear old archive folders... [14:17:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:52]tlvbuf is 01232860 [14:17:52]SAM_PROTO_ClearQueue [14:17:52]wFMCommunicate request_size=4 [14:17:52]MH_SAM_APDU [14:17:52]CAPDU: 80 09 00 00 [14:17:52]Write to MH i2c: E2 08 00 FD 9E 80 09 00 00 00 00 00 00 0D [14:17:52]Write i2c OK [14:17:52]MH_I2C_Read... [14:17:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:52]Read from MH i2c: E2 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 03 00 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 03 00 FD 9E 00 90 00 0F [14:17:52]RAPDU: 90 00 [14:17:52]wFMCommunicate OK [14:17:52]SAM_PROTO_ClearQueue done [14:17:52]KKMCreateOFDPacket [14:17:52]OFDProtocolAddRootSTLVToBuf [14:17:52]FM_MakeSignedData [14:17:52]FM_MakeSignedData [14:17:52]SAM_PROTO_SignData [14:17:52]wFMCommunicate request_size=4 [14:17:52]MH_SAM_APDU [14:17:52]CAPDU: 80 0D 01 02 [14:17:52]Write to MH i2c: E2 08 00 FE 9E 80 0D 01 02 00 00 00 00 15 [14:17:52]Write i2c OK [14:17:52]MH_I2C_Read... [14:17:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:52]Read from MH i2c: E2 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 03 00 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 03 00 FE 9E 00 90 00 10 [14:17:52]RAPDU: 90 00 [14:17:52]wFMCommunicate OK [14:17:52]wFMCommunicate request_size=255 [14:17:52]MH_SAM_APDU [14:17:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 45 00 00 00 F4 03 04 00 A7 56 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C0 C0 00 00 35 04 06 00 44 [14:17:52]Write to MH i2c: E2 02 01 FF 9E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 45 00 00 00 F4 03 04 00 A7 56 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C0 C0 00 00 35 04 06 00 44 00 00 41 [14:17:52]Write i2c OK [14:17:52]MH_I2C_Read... [14:17:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:52]Read from MH i2c: E2 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 03 00 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 03 00 FF 9E 00 90 00 11 [14:17:52]RAPDU: 90 00 [14:17:52]wFMCommunicate OK [14:17:52]wFMCommunicate request_size=10 [14:17:52]MH_SAM_APDU [14:17:52]CAPDU: 80 0D 02 02 05 F6 DC B0 B9 61 [14:17:52]Write to MH i2c: E2 0D 00 00 9F 80 0D 02 02 05 00 F6 DC B0 B9 61 00 00 BF [14:17:52]Write i2c OK [14:17:52]MH_I2C_Read... [14:17:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:52]Read from MH i2c: E2 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 03 00 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 03 00 00 9F 00 90 00 13 [14:17:52]RAPDU: 90 00 [14:17:52]wFMCommunicate OK [14:17:52]wFMCommunicate request_size=4 [14:17:52]MH_SAM_APDU [14:17:52]CAPDU: 80 0D 03 02 [14:17:52]Write to MH i2c: E2 08 00 01 9F 80 0D 03 02 00 00 00 00 1B [14:17:52]Write i2c OK [14:17:52]MH_I2C_Read... [14:17:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:52]Read from MH i2c: E2 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 0B 00 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 0B 00 01 9F 00 D3 11 8F 5B 77 15 4D D6 90 00 99 [14:17:52]RAPDU: D3 11 8F 5B 77 15 4D D6 90 00 [14:17:52]wFMCommunicate OK [14:17:52]SAM_PROTO_SignData done [14:17:52]FM_MakeSignedData done [14:17:52]CreateOFDProtocolMessage [14:17:52]wFMCommunicate request_size=4 [14:17:52]MH_SAM_APDU [14:17:52]CAPDU: 80 11 00 00 [14:17:52]Write to MH i2c: E2 08 00 02 9F 80 11 00 00 00 00 00 00 1B [14:17:52]Write i2c OK [14:17:52]MH_I2C_Read... [14:17:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:52]Read from MH i2c: E2 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 17 00 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: E2 17 00 02 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 68 [14:17:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:17:52]wFMCommunicate OK [14:17:52]CreateOFDProtocolMessage done [14:17:52]OFDSenderStorePacket 49344 [14:17:52]StoreOFDPacket docnum=49344 [14:17:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 2A 37 07 01 DD AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 45 00 00 00 F4 03 04 00 A7 56 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C0 C0 00 00 35 04 06 00 44 F6 DC B0 B9 61 D3 11 8F 5B 77 15 4D D6 [14:17:52]CheckFolder [14:17:52]dirname=/storage/ofd_packets [14:17:52]CheckFolder done [14:17:52]ProducePacketName [14:17:52]name=ofd_packets/00049344 [14:17:52]NVStorageSaveData ofd_packets/00049344 [14:17:52]File name is /storage/ofd_packets/00049344 [14:17:52]Write 301 bytes [14:17:52]NVStorageSaveData done [14:17:52]OFDSenderStorePacket done [14:17:52]KKMCreateOFDPacket done [14:17:52]NVStorageSaveData kkm_last_timestamp [14:17:52]File name is /storage/kkm_last_timestamp [14:17:52]Write 4 bytes [14:17:52]NVStorageSaveData done [14:17:52]ExternCall_PrintAddStr [14:17:52]wPrintStart [14:17:52]Write to MH i2c: 01 00 00 03 9F A2 [14:17:52]Write i2c OK [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: 01 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: 01 07 00 [14:17:52]MH_I2C_Read... [14:17:52]Read from MH i2c: 01 07 00 03 9F 00 00 00 00 00 FF 0F B7 [14:17:52]RasterBufferAndPrint [14:17:52]line Счет N : (1)216447 [14:17:52]line ИНН: 02508201610067 [14:17:52]line Контрольно-Кассовый Чек [14:17:52]line ПРОДАЖА [14:17:52]line ТРК (МРК, ГНК) : 22 [14:17:52]line Товар: 2710124130 [14:17:52]line Аи-92-К-5 [14:17:52]line 3.320 * 60.30 [14:17:52]line = 200.20 [14:17:52]line НДС 12% НСП 1% [14:17:52]line > о реализуемом товаре [14:17:52]line ОКРУГЛЕНИЕ: -0.20 [14:17:52]line ИТОГО: 200.00 [14:17:52]line Внесено: 200.00 [14:17:52]line СДАЧА: 0.00 [14:17:52]line НСП 1% : 1.77 [14:17:52]line НДС 12% : 21.26 [14:17:52]line Наличными: 200.00 [14:17:52]line Безнал.: 0.00 [14:17:52]line Место: АЗС № 102 "Партнер Нефть" [14:17:52]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:17:52]line СНО: Общий режим [14:17:52]line Чек 69 31.01.2024 14:18 [14:17:52]line Смена: 247 ФФД: 1.0 [14:17:52]line ЗНМ: 0300000040 [14:17:52]line РНМ: 0000000000092723 [14:17:52]line Версия ККМ: 001 [14:17:52]line ФМ: 0000000000875060 [14:17:52]line ФД: 49344 [14:17:52]line ФПД: 75827055212897 [14:17:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T141815&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49344&fm=75827055212897&tin=02508201610067®Number=0000000000092723&sum=20000 [14:17:52]OFD Sender: Processing packet 49344 [packets to send 12, broken 11] [14:17:52]ProducePacketName [14:17:52]name=ofd_packets/00049344 [14:17:52]OFD Sender: To server: pG, [14:17:52]CommunicateWithHost lk.salyk.kg:30040 [14:17:52]ConnectInit lk.salyk.kg [14:17:52]written 0, free lines is 4095 [14:17:53]Connected sock=10 [14:17:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 2A 37 07 01 DD AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 45 00 00 00 F4 03 04 00 A7 56 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C0 C0 00 00 35 04 06 00 44 F6 DC B0 B9 61 D3 11 8F 5B 77 15 4D D6 [14:17:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 42 E4 47 00 2F 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C0 C0 00 00 F4 03 04 00 99 02 BA 65 B6 04 01 00 00 FC F3 2F 1D BB 71 17 1C [14:17:53]CommunicateWithHost err = 0 [14:17:53]CheckOFDResponse [14:17:53]1017 (14) - 77093643461234 [14:17:53]1041 (16) - 0000000000875060 [14:17:53]1040 (4) - 49344 [14:17:53]1012 (4) - 31.01.2024 08:19 [14:17:53]1206 (1) - 0 [14:17:53]OFD Sender: Remove packet 49344 [14:17:53]ProducePacketName [14:17:53]name=ofd_packets/00049344 [14:17:53]NVStorageDeleteData [14:17:53]Write to MH i2c: 01 00 00 2E 9F CD [14:17:53]Write i2c OK [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: 01 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: 01 07 00 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: 01 07 00 2E 9F 00 00 00 00 00 E6 0C C6 [14:17:53]RasterBufferAndPrint [14:17:53]line [14:17:53]line [14:17:53]line [14:17:53]line [14:17:53]line [14:17:53]written 0, free lines is 3308 [14:17:53]MH_Cut [14:17:53]Write to MH i2c: D1 01 00 35 9F 01 A6 [14:17:53]Write i2c OK [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: D1 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: D1 01 00 [14:17:53]MH_I2C_Read... [14:17:53]Read from MH i2c: D1 01 00 35 9F 00 A5 [14:17:53]Write to MH i2c: 01 00 00 36 9F D5 [14:17:53]Write i2c OK [14:17:53]MH_I2C_Read... [14:17:53]OFD Sender: No OFD packet to send [14:17:54]*** Cut start [14:17:54]*** Partial cut [14:17:54]*** CUTSNS_PIN = 1 [14:17:54]*** CUTSNS_PIN = 0 [14:17:54]*** Brake cut motor [14:17:54]Read from MH i2c: 01 [14:17:54]MH_I2C_Read... [14:17:54]*** Stop cut motor [14:17:54]*** Cut end [14:17:54]Read from MH i2c: 01 07 00 [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: 01 07 00 36 9F 00 00 00 00 00 FF 0F EA [14:17:54]process_action close_receipt done [14:17:54]requested_data is exist [14:17:54]produce_requested_data [14:17:54]requested_item fm.sn is exist - process it [14:17:54]wFMCommunicate request_size=4 [14:17:54]MH_SAM_APDU [14:17:54]CAPDU: 80 11 00 00 [14:17:54]Write to MH i2c: E2 08 00 37 9F 80 11 00 00 00 00 00 00 50 [14:17:54]Write i2c OK [14:17:54]MH_I2C_Read... [14:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:54]Read from MH i2c: E2 [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: E2 17 00 [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: E2 17 00 37 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9D [14:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:17:54]wFMCommunicate OK [14:17:54]requested_item fd.num is exist - process it [14:17:54]SAM_PROTO_GetFieldsCounters [14:17:54]wFMCommunicate request_size=4 [14:17:54]MH_SAM_APDU [14:17:54]CAPDU: 80 13 00 00 [14:17:54]Write to MH i2c: E2 08 00 38 9F 80 13 00 00 00 00 00 00 53 [14:17:54]Write i2c OK [14:17:54]MH_I2C_Read... [14:17:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:54]Read from MH i2c: E2 [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: E2 62 00 [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: E2 62 00 38 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C0 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [14:17: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C0 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:17:54]wFMCommunicate OK [14:17:54]SAM_PROTO_GetFieldsCounters done [14:17:54]requested_item shift.num is exist - process it [14:17:54]requested_item shift.opened is exist - process it [14:17:54]req_shift_opened [14:17:54]FM_GetShiftState [14:17:54]SAM_PROTO_GetShiftState [14:17:54]wFMCommunicate request_size=4 [14:17:54]MH_SAM_APDU [14:17:54]CAPDU: 80 13 01 00 [14:17:54]Write to MH i2c: E2 08 00 39 9F 80 13 01 00 00 00 00 00 55 [14:17:54]Write i2c OK [14:17:54]MH_I2C_Read... [14:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:54]Read from MH i2c: E2 [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: E2 0E 00 [14:17:54]MH_I2C_Read... [14:17:54]Read from MH i2c: E2 0E 00 39 9F 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 AB [14:17:54]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [14:17:54]wFMCommunicate OK [14:17:54]SAM_PROTO_GetShiftState done [14:17:54]FM_GetShiftState done [14:17:54]req_shift_opened done [14:17:54]requested_item shift.open_date is exist - process it [14:17:54]req_shift_open_date [14:17:54]req_shift_open_date done [14:17:54]produce_requested_data done [14:17:54]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49344,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [14:17:54]process_action_free close_receipt [14:17:54]json_value_free [14:17:54]json_value_free done [14:17:54]process_json_proto returns [14:17:54]Send response to host [14:17:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49344,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [14:17:54]free response buf [14:17:54]execute_script done [14:17:54]execute_script returns [14:17:54]free content buf [14:17:54]Sock 7.Close socket [14:17:54]Sock 7.Thread stoped [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:36]accept exits with 9 [14:18:36]New connection [14:18:36]New thread 3066813796 created [14:18:36]Thread 3066670436 joined [14:18:36]Waiting for new connection... [14:18:36] Sock 9.Parse request [14:18:36]Sock 9.Check first char [14:18:36]Sock 9.First char is OK [14:18:36]request: POST /json_proto HTTP/1.0 [14:18:36]Method: POST [14:18:36]URL: /json_proto [14:18:36]Method is POST - this is cgi request [14:18:36]url: /json_proto [14:18:36]query_string will be loaded in cgi processing [14:18:36]execute_cgi json_proto POST (null) [14:18:36]execute_cgi path=json_proto method=POST [14:18:36]POST find Content-Length [14:18:36]Host: 172.17.56.67:8080 [14:18:36]Content-Length: 677 [14:18:36]Content-Type: application/json [14:18:36] [14:18:36]POST finish read [14:18:36]Found Content-Length = 677 [14:18:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.660, "sum" : 100.10, "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" ] } } [14:18:36]execute_script... [14: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)216448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.660, "sum" : 100.10, "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" ] } } [14:18:36]POST & json_proto [14:18:36]process_json_proto [14:18:36]json parsed OK: [14:18:36]protocol is kg_v1.0 [14:18:36]action value=close_receipt [14:18:36]process_action close_receipt [14:18:36]cmd_close_receipt [14:18:36]MH_GetDate [14:18:36]Write to MH i2c: F0 00 00 3A 9F C8 [14:18:36]Write i2c OK [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: F0 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: F0 09 00 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: F0 09 00 3A 9F 00 D4 56 BA 65 26 5D 9E 65 A0 [14:18:36]GetLastDocTimeStamp 1706710695 [14:18:36]current date 1706710740 [14:18:36]FM_GetShiftState [14:18:36]SAM_PROTO_GetShiftState [14:18:36]wFMCommunicate request_size=4 [14:18:36]MH_SAM_APDU [14:18:36]CAPDU: 80 13 01 00 [14:18:36]Write to MH i2c: E2 08 00 3B 9F 80 13 01 00 00 00 00 00 57 [14:18:36]Write i2c OK [14:18:36]MH_I2C_Read... [14:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:36]Read from MH i2c: E2 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: E2 0E 00 [14:18:36]MH_I2C_Read... [14:18:36]Read from MH i2c: E2 0E 00 3B 9F 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 AD [14:18:36]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [14:18:36]wFMCommunicate OK [14:18:36]SAM_PROTO_GetShiftState done [14:18:36]FM_GetShiftState done [14:18:36]opened in 1706659486 [14:18:36]opened+sec_in_day 1706745886 [14:18:36]quantity*price = 10009 [14:18:36]sum+1 = 10011 [14:18:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.63 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 70 31.01.2024 14:19 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49345 ФПД: 65539830646548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T141900&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49345&fm=65539830646548&tin=02508201610067®Number=0000000000092723&sum=10000 [14:18:37]StoreToDocumentArchive [14:18:37]shift 247 fd 49345 [14:18:37]save to /storage/0247/doc_00049345 [14:18:37]save last doc name /storage/0247/doc_00049345 to /storage/kkm_last_doc_name [14:18:37]save OK [14:18:37]Clear old archive folders... [14:18:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:37]tlvbuf is 0144FA90 [14:18:37]SAM_PROTO_ClearQueue [14:18:37]wFMCommunicate request_size=4 [14:18:37]MH_SAM_APDU [14:18:37]CAPDU: 80 09 00 00 [14:18:37]Write to MH i2c: E2 08 00 48 9F 80 09 00 00 00 00 00 00 59 [14:18:37]Write i2c OK [14:18:37]MH_I2C_Read... [14:18:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:37]Read from MH i2c: E2 [14:18:37]MH_I2C_Read... [14:18:37]Read from MH i2c: E2 03 00 [14:18:37]MH_I2C_Read... [14:18:37]Read from MH i2c: E2 03 00 48 9F 00 90 00 5B [14:18:37]RAPDU: 90 00 [14:18:37]wFMCommunicate OK [14:18:37]SAM_PROTO_ClearQueue done [14:18:37]KKMCreateOFDPacket [14:18:37]OFDProtocolAddRootSTLVToBuf [14:18:37]FM_MakeSignedData [14:18:37]FM_MakeSignedData [14:18:37]SAM_PROTO_SignData [14:18:37]wFMCommunicate request_size=4 [14:18:37]MH_SAM_APDU [14:18:37]CAPDU: 80 0D 01 02 [14:18:37]Write to MH i2c: E2 08 00 49 9F 80 0D 01 02 00 00 00 00 61 [14:18:37]Write i2c OK [14:18:37]MH_I2C_Read... [14:18:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:38]Read from MH i2c: E2 [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: E2 03 00 [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: E2 03 00 49 9F 00 90 00 5C [14:18:38]RAPDU: 90 00 [14:18:38]wFMCommunicate OK [14:18:38]wFMCommunicate request_size=255 [14:18:38]MH_SAM_APDU [14: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 35 FF 03 08 00 03 7C 06 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 1A 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 27 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 46 00 00 00 F4 03 04 00 D4 56 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C1 C0 00 00 35 04 06 00 3B [14:18:38]Write to MH i2c: E2 02 01 4A 9F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 06 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 1A 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 27 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 46 00 00 00 F4 03 04 00 D4 56 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C1 C0 00 00 35 04 06 00 3B 00 00 FF [14:18:38]Write i2c OK [14:18:38]MH_I2C_Read... [14:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:38]Read from MH i2c: E2 [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: E2 03 00 [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: E2 03 00 4A 9F 00 90 00 5D [14:18:38]RAPDU: 90 00 [14:18:38]wFMCommunicate OK [14:18:38]wFMCommunicate request_size=10 [14:18:38]MH_SAM_APDU [14:18:38]CAPDU: 80 0D 02 02 05 9B AE 53 07 14 [14:18:38]Write to MH i2c: E2 0D 00 4B 9F 80 0D 02 02 05 00 9B AE 53 07 14 00 00 25 [14:18:38]Write i2c OK [14:18:38]MH_I2C_Read... [14:18:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:38]Read from MH i2c: E2 [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: E2 03 00 [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: E2 03 00 4B 9F 00 90 00 5E [14:18:38]RAPDU: 90 00 [14:18:38]wFMCommunicate OK [14:18:38]wFMCommunicate request_size=4 [14:18:38]MH_SAM_APDU [14:18:38]CAPDU: 80 0D 03 02 [14:18:38]Write to MH i2c: E2 08 00 4C 9F 80 0D 03 02 00 00 00 00 66 [14:18:38]Write i2c OK [14:18:38]MH_I2C_Read... [14:18:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:38]Read from MH i2c: E2 [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: E2 0B 00 [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: E2 0B 00 4C 9F 00 D6 B1 E9 9A BA 25 BA 92 90 00 9C [14:18:38]RAPDU: D6 B1 E9 9A BA 25 BA 92 90 00 [14:18:38]wFMCommunicate OK [14:18:38]SAM_PROTO_SignData done [14:18:38]FM_MakeSignedData done [14:18:38]CreateOFDProtocolMessage [14:18:38]wFMCommunicate request_size=4 [14:18:38]MH_SAM_APDU [14:18:38]CAPDU: 80 11 00 00 [14:18:38]Write to MH i2c: E2 08 00 4D 9F 80 11 00 00 00 00 00 00 66 [14:18:38]Write i2c OK [14:18:38]MH_I2C_Read... [14:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:38]Read from MH i2c: E2 [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: E2 17 00 [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: E2 17 00 4D 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B3 [14:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:18:38]wFMCommunicate OK [14:18:38]CreateOFDProtocolMessage done [14:18:38]OFDSenderStorePacket 49345 [14:18:38]StoreOFDPacket docnum=49345 [14:18:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 ED B2 07 01 3E C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 06 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 1A 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 27 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 46 00 00 00 F4 03 04 00 D4 56 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C1 C0 00 00 35 04 06 00 3B 9B AE 53 07 14 D6 B1 E9 9A BA 25 BA 92 [14:18:38]CheckFolder [14:18:38]dirname=/storage/ofd_packets [14:18:38]CheckFolder done [14:18:38]ProducePacketName [14:18:38]name=ofd_packets/00049345 [14:18:38]NVStorageSaveData ofd_packets/00049345 [14:18:38]File name is /storage/ofd_packets/00049345 [14:18:38]Write 301 bytes [14:18:38]NVStorageSaveData done [14:18:38]OFDSenderStorePacket done [14:18:38]KKMCreateOFDPacket done [14:18:38]NVStorageSaveData kkm_last_timestamp [14:18:38]File name is /storage/kkm_last_timestamp [14:18:38]Write 4 bytes [14:18:38]NVStorageSaveData done [14:18:38]ExternCall_PrintAddStr [14:18:38]wPrintStart [14:18:38]Write to MH i2c: 01 00 00 4E 9F ED [14:18:38]Write i2c OK [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: 01 [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: 01 07 00 [14:18:38]MH_I2C_Read... [14:18:38]Read from MH i2c: 01 07 00 4E 9F 00 00 00 00 00 FF 0F 02 [14:18:38]RasterBufferAndPrint [14:18:38]line Счет N : (1)216448 [14:18:38]line ИНН: 02508201610067 [14:18:38]line Контрольно-Кассовый Чек [14:18:38]line ПРОДАЖА [14:18:38]line ТРК (МРК, ГНК) : 22 [14:18:38]line Товар: 2710124130 [14:18:38]line Аи-92-К-5 [14:18:38]line 1.660 * 60.30 [14:18:38]line = 100.10 [14:18:38]line НДС 12% НСП 1% [14:18:38]line > о реализуемом товаре [14:18:38]line ОКРУГЛЕНИЕ: -0.10 [14:18:38]line ИТОГО: 100.00 [14:18:38]line Внесено: 100.00 [14:18:38]line СДАЧА: 0.00 [14:18:38]line НСП 1% : 0.89 [14:18:38]line НДС 12% : 10.63 [14:18:38]line Наличными: 100.00 [14:18:38]line Безнал.: 0.00 [14:18:38]line Место: АЗС № 102 "Партнер Нефть" [14:18:38]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:18:38]line СНО: Общий режим [14:18:38]line Чек 70 31.01.2024 14:19 [14:18:38]line Смена: 247 ФФД: 1.0 [14:18:38]line ЗНМ: 0300000040 [14:18:38]line РНМ: 0000000000092723 [14:18:38]line Версия ККМ: 001 [14:18:38]line ФМ: 0000000000875060 [14:18:38]line ФД: 49345 [14:18:38]line ФПД: 65539830646548 [14:18:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T141900&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49345&fm=65539830646548&tin=02508201610067®Number=0000000000092723&sum=10000 [14:18:38]OFD Sender: Processing packet 49345 [packets to send 12, broken 11] [14:18:38]ProducePacketName [14:18:38]name=ofd_packets/00049345 [14:18:38]OFD Sender: To server: pG, [14:18:38]CommunicateWithHost lk.salyk.kg:30040 [14:18:38]ConnectInit lk.salyk.kg [14:18:38]written 0, free lines is 4095 [14:18:38]Connected sock=7 [14: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 35 30 36 30 0F 01 00 00 ED B2 07 01 3E C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 06 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 1A 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 27 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 46 00 00 00 F4 03 04 00 D4 56 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C1 C0 00 00 35 04 06 00 3B 9B AE 53 07 14 D6 B1 E9 9A BA 25 BA 92 [14:18:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 E6 E9 47 00 2E 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 35 30 36 30 10 04 04 00 C1 C0 00 00 F4 03 04 00 C7 02 BA 65 B6 04 01 00 00 91 AA 48 E0 19 1A 73 E7 [14:18:39]CommunicateWithHost err = 0 [14:18:39]CheckOFDResponse [14:18:39]1017 (14) - 77093643461234 [14:18:39]1041 (16) - 0000000000875060 [14:18:39]1040 (4) - 49345 [14:18:39]1012 (4) - 31.01.2024 08:20 [14:18:39]1206 (1) - 0 [14:18:39]OFD Sender: Remove packet 49345 [14:18:39]ProducePacketName [14:18:39]name=ofd_packets/00049345 [14:18:39]NVStorageDeleteData [14:18:39]Write to MH i2c: 01 00 00 79 9F 18 [14:18:39]Write i2c OK [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: 01 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: 01 07 00 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: 01 07 00 79 9F 00 00 00 00 00 E4 0C 0F [14:18:39]RasterBufferAndPrint [14:18:39]line [14:18:39]line [14:18:39]line [14:18:39]line [14:18:39]line [14:18:39]written 0, free lines is 3306 [14:18:39]MH_Cut [14:18:39]Write to MH i2c: D1 01 00 80 9F 01 F1 [14:18:39]Write i2c OK [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: D1 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: D1 01 00 [14:18:39]MH_I2C_Read... [14:18:39]Read from MH i2c: D1 01 00 80 9F 00 F0 [14:18:39]Write to MH i2c: 01 00 00 81 9F 20 [14:18:39]Write i2c OK [14:18:39]MH_I2C_Read... [14:18:39]OFD Sender: No OFD packet to send [14:18:39]*** Cut start [14:18:39]*** Partial cut [14:18:39]*** CUTSNS_PIN = 1 [14:18:39]*** CUTSNS_PIN = 0 [14:18:40]*** Brake cut motor [14:18:40]Read from MH i2c: 01 [14:18:40]MH_I2C_Read... [14:18:40]*** Stop cut motor [14:18:40]*** Cut end [14:18:40]Read from MH i2c: 01 07 00 [14:18:40]MH_I2C_Read... [14:18:40]Read from MH i2c: 01 07 00 81 9F 00 00 00 00 00 FF 0F 35 [14:18:40]process_action close_receipt done [14:18:40]requested_data is exist [14:18:40]produce_requested_data [14:18:40]requested_item fm.sn is exist - process it [14:18:40]wFMCommunicate request_size=4 [14:18:40]MH_SAM_APDU [14:18:40]CAPDU: 80 11 00 00 [14:18:40]Write to MH i2c: E2 08 00 82 9F 80 11 00 00 00 00 00 00 9B [14:18:40]Write i2c OK [14:18:40]MH_I2C_Read... [14:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:40]Read from MH i2c: E2 [14:18:40]MH_I2C_Read... [14:18:40]Read from MH i2c: E2 17 00 [14:18:40]MH_I2C_Read... [14:18:40]Read from MH i2c: E2 17 00 82 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E8 [14:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:18:40]wFMCommunicate OK [14:18:40]requested_item fd.num is exist - process it [14:18:40]SAM_PROTO_GetFieldsCounters [14:18:40]wFMCommunicate request_size=4 [14:18:40]MH_SAM_APDU [14:18:40]CAPDU: 80 13 00 00 [14:18:40]Write to MH i2c: E2 08 00 83 9F 80 13 00 00 00 00 00 00 9E [14:18:40]Write i2c OK [14:18:40]MH_I2C_Read... [14:18:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:40]Read from MH i2c: E2 [14:18:40]MH_I2C_Read... [14:18:40]Read from MH i2c: E2 62 00 [14:18:40]MH_I2C_Read... [14:18:40]Read from MH i2c: E2 62 00 83 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C1 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [14:18: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C1 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:40]wFMCommunicate OK [14:18:40]SAM_PROTO_GetFieldsCounters done [14:18:40]requested_item shift.num is exist - process it [14:18:40]requested_item shift.opened is exist - process it [14:18:40]req_shift_opened [14:18:40]FM_GetShiftState [14:18:40]SAM_PROTO_GetShiftState [14:18:40]wFMCommunicate request_size=4 [14:18:40]MH_SAM_APDU [14:18:40]CAPDU: 80 13 01 00 [14:18:40]Write to MH i2c: E2 08 00 84 9F 80 13 01 00 00 00 00 00 A0 [14:18:40]Write i2c OK [14:18:40]MH_I2C_Read... [14:18:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:40]Read from MH i2c: E2 [14:18:40]MH_I2C_Read... [14:18:40]Read from MH i2c: E2 0E 00 [14:18:40]MH_I2C_Read... [14:18:40]Read from MH i2c: E2 0E 00 84 9F 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 F6 [14:18:40]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [14:18:40]wFMCommunicate OK [14:18:40]SAM_PROTO_GetShiftState done [14:18:40]FM_GetShiftState done [14:18:40]req_shift_opened done [14:18:40]requested_item shift.open_date is exist - process it [14:18:40]req_shift_open_date [14:18:40]req_shift_open_date done [14:18:40]produce_requested_data done [14:18:40]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49345,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [14:18:40]process_action_free close_receipt [14:18:40]json_value_free [14:18:40]json_value_free done [14:18:40]process_json_proto returns [14:18:40]Send response to host [14:18:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49345,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [14:18:40]free response buf [14:18:40]execute_script done [14:18:40]execute_script returns [14:18:40]free content buf [14:18:40]Sock 9.Close socket [14:18:40]Sock 9.Thread stoped [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:54]OFD Sender: No OFD packet to send [14:21:59]OFD Sender: No OFD packet to send [14:22:04]OFD Sender: No OFD packet to send [14:22:09]OFD Sender: No OFD packet to send [14:22:14]OFD Sender: No OFD packet to send [14:22:19]OFD Sender: No OFD packet to send [14:22:24]OFD Sender: No OFD packet to send [14:22:29]OFD Sender: No OFD packet to send [14:22:34]OFD Sender: No OFD packet to send [14:22:39]OFD Sender: No OFD packet to send [14:22:44]OFD Sender: No OFD packet to send [14:22:49]OFD Sender: No OFD packet to send [14:22:54]OFD Sender: No OFD packet to send [14:22:59]OFD Sender: No OFD packet to send [14:23:04]OFD Sender: No OFD packet to send [14:23:09]OFD Sender: No OFD packet to send [14:23:14]OFD Sender: No OFD packet to send [14:23:19]OFD Sender: No OFD packet to send [14:23:24]OFD Sender: No OFD packet to send [14:23:29]OFD Sender: No OFD packet to send [14:23:34]OFD Sender: No OFD packet to send [14:23:39]OFD Sender: No OFD packet to send [14:23:44]OFD Sender: No OFD packet to send [14:23:49]OFD Sender: No OFD packet to send [14:23:54]OFD Sender: No OFD packet to send [14:23:59]OFD Sender: No OFD packet to send [14:24:04]OFD Sender: No OFD packet to send [14:24:09]OFD Sender: No OFD packet to send [14:24:14]OFD Sender: No OFD packet to send [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]OFD Sender: No OFD packet to send [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:14]OFD Sender: No OFD packet to send [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26: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:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:20]OFD Sender: No OFD packet to send [14:28:25]OFD Sender: No OFD packet to send [14:28:30]OFD Sender: No OFD packet to send [14:28:35]OFD Sender: No OFD packet to send [14:28:40]OFD Sender: No OFD packet to send [14:28:45]OFD Sender: No OFD packet to send [14:28:50]OFD Sender: No OFD packet to send [14:28:55]OFD Sender: No OFD packet to send [14:29:00]OFD Sender: No OFD packet to send [14:29:05]OFD Sender: No OFD packet to send [14:29:10]OFD Sender: No OFD packet to send [14:29:15]OFD Sender: No OFD packet to send [14:29:20]OFD Sender: No OFD packet to send [14:29:25]OFD Sender: No OFD packet to send [14:29:30]OFD Sender: No OFD packet to send [14:29:35]OFD Sender: No OFD packet to send [14:29:40]OFD Sender: No OFD packet to send [14:29:45]OFD Sender: No OFD packet to send [14:29:50]OFD Sender: No OFD packet to send [14:29:55]OFD Sender: No OFD packet to send [14:30:00]OFD Sender: No OFD packet to send [14:30:05]OFD Sender: No OFD packet to send [14:30:10]OFD Sender: No OFD packet to send [14:30:15]OFD Sender: No OFD packet to send [14:30:15]accept exits with 10 [14:30:15]New connection [14:30:15]New thread 3066670436 created [14:30:15]Thread 3066813796 joined [14:30:15]Waiting for new connection... [14:30:15] Sock 10.Parse request [14:30:15]Sock 10.Check first char [14:30:15]Sock 10.First char is OK [14:30:15]request: POST /json_proto HTTP/1.0 [14:30:15]Method: POST [14:30:15]URL: /json_proto [14:30:15]Method is POST - this is cgi request [14:30:15]url: /json_proto [14:30:15]query_string will be loaded in cgi processing [14:30:15]execute_cgi json_proto POST (null) [14:30:15]execute_cgi path=json_proto method=POST [14:30:15]POST find Content-Length [14:30:15]Host: 172.17.56.67:8080 [14:30:15]Content-Length: 674 [14:30:15]Content-Type: application/json [14:30:15] [14:30:15]POST finish read [14:30:15]Found Content-Length = 674 [14:30:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:15]execute_script... [14:30: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)216449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 7.160, "sum" : 500.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:15]POST & json_proto [14:30:15]process_json_proto [14:30:15]json parsed OK: [14:30:15]protocol is kg_v1.0 [14:30:15]action value=close_receipt [14:30:15]process_action close_receipt [14:30:15]cmd_close_receipt [14:30:15]MH_GetDate [14:30:15]Write to MH i2c: F0 00 00 85 9F 13 [14:30:15]Write i2c OK [14:30:15]MH_I2C_Read... [14:30:15]Read from MH i2c: F0 [14:30:15]MH_I2C_Read... [14:30:15]Read from MH i2c: F0 09 00 [14:30:15]MH_I2C_Read... [14:30:15]Read from MH i2c: F0 09 00 85 9F 00 8F 59 BA 65 26 5D 9E 65 A9 [14:30:15]GetLastDocTimeStamp 1706710740 [14:30:15]current date 1706711439 [14:30:15]FM_GetShiftState [14:30:15]SAM_PROTO_GetShiftState [14:30:15]wFMCommunicate request_size=4 [14:30:15]MH_SAM_APDU [14:30:15]CAPDU: 80 13 01 00 [14:30:15]Write to MH i2c: E2 08 00 86 9F 80 13 01 00 00 00 00 00 A2 [14:30:15]Write i2c OK [14:30:15]MH_I2C_Read... [14:30:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:15]Read from MH i2c: E2 [14:30:15]MH_I2C_Read... [14:30:15]Read from MH i2c: E2 0E 00 [14:30:15]MH_I2C_Read... [14:30:15]Read from MH i2c: E2 0E 00 86 9F 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 F8 [14:30:15]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [14:30:15]wFMCommunicate OK [14:30:15]SAM_PROTO_GetShiftState done [14:30:15]FM_GetShiftState done [14:30:15]opened in 1706659486 [14:30:15]opened+sec_in_day 1706745886 [14:30:15]quantity*price = 50048 [14:30:15]sum+1 = 50049 [14:30:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 71 31.01.2024 14:30 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49346 ФПД: 249371959851914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T143040&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49346&fm=249371959851914&tin=02508201610067®Number=0000000000092723&sum=50000 [14:30:16]StoreToDocumentArchive [14:30:16]shift 247 fd 49346 [14:30:16]save to /storage/0247/doc_00049346 [14:30:16]save last doc name /storage/0247/doc_00049346 to /storage/kkm_last_doc_name [14:30:16]save OK [14:30:16]Clear old archive folders... [14:30:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:30:16]tlvbuf is 01384A30 [14:30:16]SAM_PROTO_ClearQueue [14:30:16]wFMCommunicate request_size=4 [14:30:16]MH_SAM_APDU [14:30:16]CAPDU: 80 09 00 00 [14:30:16]Write to MH i2c: E2 08 00 93 9F 80 09 00 00 00 00 00 00 A4 [14:30:16]Write i2c OK [14:30:16]MH_I2C_Read... [14:30:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:16]Read from MH i2c: E2 [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: E2 03 00 [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: E2 03 00 93 9F 00 90 00 A6 [14:30:16]RAPDU: 90 00 [14:30:16]wFMCommunicate OK [14:30:16]SAM_PROTO_ClearQueue done [14:30:16]KKMCreateOFDPacket [14:30:16]OFDProtocolAddRootSTLVToBuf [14:30:16]FM_MakeSignedData [14:30:16]FM_MakeSignedData [14:30:16]SAM_PROTO_SignData [14:30:16]wFMCommunicate request_size=4 [14:30:16]MH_SAM_APDU [14:30:16]CAPDU: 80 0D 01 02 [14:30:16]Write to MH i2c: E2 08 00 94 9F 80 0D 01 02 00 00 00 00 AC [14:30:16]Write i2c OK [14:30:16]MH_I2C_Read... [14:30:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:16]Read from MH i2c: E2 [14:30:16]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 94 9F 00 90 00 A7 [14:30:17]RAPDU: 90 00 [14:30:17]wFMCommunicate OK [14:30:17]wFMCommunicate request_size=255 [14:30:17]MH_SAM_APDU [14:30:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 90 59 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C2 C0 00 00 35 04 06 00 E2 CD 6F 15 [14:30:17]Write to MH i2c: E2 02 01 95 9F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 90 59 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C2 C0 00 00 35 04 06 00 E2 CD 6F 15 00 00 74 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:17]Read from MH i2c: E2 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 95 9F 00 90 00 A8 [14:30:17]RAPDU: 90 00 [14:30:17]wFMCommunicate OK [14:30:17]wFMCommunicate request_size=7 [14:30:17]MH_SAM_APDU [14:30:17]CAPDU: 80 0D 02 02 02 7B 8A [14:30:17]Write to MH i2c: E2 0A 00 96 9F 80 0D 02 02 02 00 7B 8A 00 00 B8 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:17]Read from MH i2c: E2 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 96 9F 00 90 00 A9 [14:30:17]RAPDU: 90 00 [14:30:17]wFMCommunicate OK [14:30:17]wFMCommunicate request_size=4 [14:30:17]MH_SAM_APDU [14:30:17]CAPDU: 80 0D 03 02 [14:30:17]Write to MH i2c: E2 08 00 97 9F 80 0D 03 02 00 00 00 00 B1 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:17]Read from MH i2c: E2 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 0B 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 0B 00 97 9F 00 6D FE E7 B8 30 57 66 32 90 00 DB [14:30:17]RAPDU: 6D FE E7 B8 30 57 66 32 90 00 [14:30:17]wFMCommunicate OK [14:30:17]SAM_PROTO_SignData done [14:30:17]FM_MakeSignedData done [14:30:17]CreateOFDProtocolMessage [14:30:17]wFMCommunicate request_size=4 [14:30:17]MH_SAM_APDU [14:30:17]CAPDU: 80 11 00 00 [14:30:17]Write to MH i2c: E2 08 00 98 9F 80 11 00 00 00 00 00 00 B1 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:17]Read from MH i2c: E2 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 17 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 17 00 98 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FE [14:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:30:17]wFMCommunicate OK [14:30:17]CreateOFDProtocolMessage done [14:30:17]OFDSenderStorePacket 49346 [14:30:17]StoreOFDPacket docnum=49346 [14:30:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 74 3F 04 01 16 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 90 59 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C2 C0 00 00 35 04 06 00 E2 CD 6F 15 7B 8A 6D FE E7 B8 30 57 66 32 [14:30:17]CheckFolder [14:30:17]dirname=/storage/ofd_packets [14:30:17]CheckFolder done [14:30:17]ProducePacketName [14:30:17]name=ofd_packets/00049346 [14:30:17]NVStorageSaveData ofd_packets/00049346 [14:30:17]File name is /storage/ofd_packets/00049346 [14:30:17]Write 298 bytes [14:30:17]NVStorageSaveData done [14:30:17]OFDSenderStorePacket done [14:30:17]KKMCreateOFDPacket done [14:30:17]NVStorageSaveData kkm_last_timestamp [14:30:17]File name is /storage/kkm_last_timestamp [14:30:17]Write 4 bytes [14:30:17]NVStorageSaveData done [14:30:17]ExternCall_PrintAddStr [14:30:17]wPrintStart [14:30:17]Write to MH i2c: 01 00 00 99 9F 38 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: 01 [14:30:17]MH_I2C_Read... [14:30:17]OFD Sender: Processing packet 49346 [packets to send 12, broken 11] [14:30:17]ProducePacketName [14:30:17]name=ofd_packets/00049346 [14:30:17]OFD Sender: To server: pG, [14:30:17]CommunicateWithHost lk.salyk.kg:30040 [14:30:17]ConnectInit lk.salyk.kg [14:30:17]Read from MH i2c: 01 07 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: 01 07 00 99 9F 00 00 00 00 00 FF 0F 4D [14:30:17]RasterBufferAndPrint [14:30:17]line Счет N : (1)216449 [14:30:17]line ИНН: 02508201610067 [14:30:17]line Контрольно-Кассовый Чек [14:30:17]line ПРОДАЖА [14:30:17]line ТРК (МРК, ГНК) : 11 [14:30:17]line Товар: 2710194210 [14:30:17]line ДТ-К-5 [14:30:17]line 7.160 * 69.90 [14:30:17]line = 500.48 [14:30:17]line НДС 12% НСП 1% [14:30:17]line > о реализуемом товаре [14:30:17]line ОКРУГЛЕНИЕ: -0.48 [14:30:17]line ИТОГО: 500.00 [14:30:17]line Внесено: 500.00 [14:30:17]line СДАЧА: 0.00 [14:30:17]line НСП 1% : 4.43 [14:30:17]line НДС 12% : 53.15 [14:30:17]line Наличными: 500.00 [14:30:17]line Безнал.: 0.00 [14:30:17]line Место: АЗС № 102 "Партнер Нефть" [14:30:17]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:30:17]line СНО: Общий режим [14:30:17]line Чек 71 31.01.2024 14:30 [14:30:17]line Смена: 247 ФФД: 1.0 [14:30:17]line ЗНМ: 0300000040 [14:30:17]line РНМ: 0000000000092723 [14:30:17]line Версия ККМ: 001 [14:30:17]line ФМ: 0000000000875060 [14:30:17]line ФД: 49346 [14:30:17]line ФПД: 249371959851914 [14:30:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T143040&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49346&fm=249371959851914&tin=02508201610067®Number=0000000000092723&sum=50000 [14:30:17]written 0, free lines is 4095 [14:30:17]Connected sock=9 [14:30:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 74 3F 04 01 16 AE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F8 1B 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 80 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 90 59 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C2 C0 00 00 35 04 06 00 E2 CD 6F 15 7B 8A 6D FE E7 B8 30 57 66 32 [14:30:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 69 50 47 00 79 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 35 30 36 30 10 04 04 00 C2 C0 00 00 F4 03 04 00 82 05 BA 65 B6 04 01 00 00 60 A9 45 05 A1 A5 3F 4E [14:30:17]CommunicateWithHost err = 0 [14:30:17]CheckOFDResponse [14:30:17]1017 (14) - 77093643461234 [14:30:17]1041 (16) - 0000000000875060 [14:30:17]1040 (4) - 49346 [14:30:17]1012 (4) - 31.01.2024 08:32 [14:30:17]1206 (1) - 0 [14:30:17]OFD Sender: Remove packet 49346 [14:30:17]ProducePacketName [14:30:17]name=ofd_packets/00049346 [14:30:17]NVStorageDeleteData [14:30:17]Write to MH i2c: 01 00 00 C4 9F 63 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: 01 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: 01 07 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: 01 07 00 C4 9F 00 00 00 00 00 E1 0C 57 [14:30:17]RasterBufferAndPrint [14:30:17]line [14:30:17]line [14:30:17]line [14:30:17]line [14:30:17]line [14:30:17]written 0, free lines is 3303 [14:30:17]MH_Cut [14:30:17]Write to MH i2c: D1 01 00 CB 9F 01 3C [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: D1 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: D1 01 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: D1 01 00 CB 9F 00 3B [14:30:17]Write to MH i2c: 01 00 00 CC 9F 6B [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:18]OFD Sender: No OFD packet to send [14:30:18]*** Cut start [14:30:18]*** Partial cut [14:30:18]*** CUTSNS_PIN = 1 [14:30:18]*** CUTSNS_PIN = 0 [14:30:18]*** Brake cut motor [14:30:19]Read from MH i2c: 01 [14:30:19]MH_I2C_Read... [14:30:19]*** Stop cut motor [14:30:19]*** Cut end [14:30:19]Read from MH i2c: 01 07 00 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: 01 07 00 CC 9F 00 00 00 00 00 FF 0F 80 [14:30:19]process_action close_receipt done [14:30:19]requested_data is exist [14:30:19]produce_requested_data [14:30:19]requested_item fm.sn is exist - process it [14:30:19]wFMCommunicate request_size=4 [14:30:19]MH_SAM_APDU [14:30:19]CAPDU: 80 11 00 00 [14:30:19]Write to MH i2c: E2 08 00 CD 9F 80 11 00 00 00 00 00 00 E6 [14:30:19]Write i2c OK [14:30:19]MH_I2C_Read... [14:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:19]Read from MH i2c: E2 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: E2 17 00 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: E2 17 00 CD 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 33 [14:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:30:19]wFMCommunicate OK [14:30:19]requested_item fd.num is exist - process it [14:30:19]SAM_PROTO_GetFieldsCounters [14:30:19]wFMCommunicate request_size=4 [14:30:19]MH_SAM_APDU [14:30:19]CAPDU: 80 13 00 00 [14:30:19]Write to MH i2c: E2 08 00 CE 9F 80 13 00 00 00 00 00 00 E9 [14:30:19]Write i2c OK [14:30:19]MH_I2C_Read... [14:30:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:19]Read from MH i2c: E2 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: E2 62 00 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: E2 62 00 CE 9F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [14:30: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:19]wFMCommunicate OK [14:30:19]SAM_PROTO_GetFieldsCounters done [14:30:19]requested_item shift.num is exist - process it [14:30:19]requested_item shift.opened is exist - process it [14:30:19]req_shift_opened [14:30:19]FM_GetShiftState [14:30:19]SAM_PROTO_GetShiftState [14:30:19]wFMCommunicate request_size=4 [14:30:19]MH_SAM_APDU [14:30:19]CAPDU: 80 13 01 00 [14:30:19]Write to MH i2c: E2 08 00 CF 9F 80 13 01 00 00 00 00 00 EB [14:30:19]Write i2c OK [14:30:19]MH_I2C_Read... [14:30:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:19]Read from MH i2c: E2 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: E2 0E 00 [14:30:19]MH_I2C_Read... [14:30:19]Read from MH i2c: E2 0E 00 CF 9F 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 41 [14:30:19]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [14:30:19]wFMCommunicate OK [14:30:19]SAM_PROTO_GetShiftState done [14:30:19]FM_GetShiftState done [14:30:19]req_shift_opened done [14:30:19]requested_item shift.open_date is exist - process it [14:30:19]req_shift_open_date [14:30:19]req_shift_open_date done [14:30:19]produce_requested_data done [14:30:19]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49346,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [14:30:19]process_action_free close_receipt [14:30:19]json_value_free [14:30:19]json_value_free done [14:30:19]process_json_proto returns [14:30:19]Send response to host [14:30:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49346,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [14:30:19]free response buf [14:30:19]execute_script done [14:30:19]execute_script returns [14:30:19]free content buf [14:30:19]Sock 10.Close socket [14:30:19]Sock 10.Thread stoped [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:38]OFD Sender: No OFD packet to send [14:30:43]OFD Sender: No OFD packet to send [14:30:48]OFD Sender: No OFD packet to send [14:30:53]OFD Sender: No OFD packet to send [14:30:58]OFD Sender: No OFD packet to send [14:31:03]OFD Sender: No OFD packet to send [14:31:08]OFD Sender: No OFD packet to send [14:31:13]OFD Sender: No OFD packet to send [14:31:18]OFD Sender: No OFD packet to send [14:31:23]OFD Sender: No OFD packet to send [14:31:28]OFD Sender: No OFD packet to send [14:31:33]OFD Sender: No OFD packet to send [14:31:38]OFD Sender: No OFD packet to send [14:31:43]OFD Sender: No OFD packet to send [14:31:48]OFD Sender: No OFD packet to send [14:31:53]OFD Sender: No OFD packet to send [14:31:58]OFD Sender: No OFD packet to send [14:32:03]OFD Sender: No OFD packet to send [14:32:08]OFD Sender: No OFD packet to send [14:32:13]OFD Sender: No OFD packet to send [14:32:18]OFD Sender: No OFD packet to send [14:32:23]OFD Sender: No OFD packet to send [14:32:28]OFD Sender: No OFD packet to send [14:32:33]OFD Sender: No OFD packet to send [14:32:38]OFD Sender: No OFD packet to send [14:32:43]OFD Sender: No OFD packet to send [14:32:48]OFD Sender: No OFD packet to send [14:32:53]OFD Sender: No OFD packet to send [14:32:58]OFD Sender: No OFD packet to send [14:33:03]OFD Sender: No OFD packet to send [14:33:08]OFD Sender: No OFD packet to send [14:33:13]OFD Sender: No OFD packet to send [14:33:18]OFD Sender: No OFD packet to send [14:33:23]OFD Sender: No OFD packet to send [14:33:28]OFD Sender: No OFD packet to send [14:33:33]OFD Sender: No OFD packet to send [14:33:38]OFD Sender: No OFD packet to send [14:33:43]OFD Sender: No OFD packet to send [14:33:48]OFD Sender: No OFD packet to send [14:33:53]OFD Sender: No OFD packet to send [14:33:55]accept exits with 7 [14:33:55]New connection [14:33:55]New thread 3066813796 created [14:33:55]Thread 3066670436 joined [14:33:55]Waiting for new connection... [14:33:55] Sock 7.Parse request [14:33:55]Sock 7.Check first char [14:33:55]Sock 7.First char is OK [14:33:55]request: POST /json_proto HTTP/1.0 [14:33:55]Method: POST [14:33:55]URL: /json_proto [14:33:55]Method is POST - this is cgi request [14:33:55]url: /json_proto [14:33:55]query_string will be loaded in cgi processing [14:33:55]execute_cgi json_proto POST (null) [14:33:55]execute_cgi path=json_proto method=POST [14:33:55]POST find Content-Length [14:33:55]Host: 172.17.56.67:8080 [14:33:55]Content-Length: 679 [14:33:55]Content-Type: application/json [14:33:55] [14:33:55]POST finish read [14:33:55]Found Content-Length = 679 [14:33:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:55]execute_script... [14:33:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 14.310, "sum" : 1000.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:33:55]POST & json_proto [14:33:55]process_json_proto [14:33:55]json parsed OK: [14:33:55]protocol is kg_v1.0 [14:33:55]action value=close_receipt [14:33:55]process_action close_receipt [14:33:55]cmd_close_receipt [14:33:55]MH_GetDate [14:33:55]Write to MH i2c: F0 00 00 D0 9F 5E [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: F0 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: F0 09 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: F0 09 00 D0 9F 00 6C 5A BA 65 26 5D 9E 65 D2 [14:33:55]GetLastDocTimeStamp 1706711440 [14:33:55]current date 1706711660 [14:33:55]FM_GetShiftState [14:33:55]SAM_PROTO_GetShiftState [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 13 01 00 [14:33:55]Write to MH i2c: E2 08 00 D1 9F 80 13 01 00 00 00 00 00 ED [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 0E 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 0E 00 D1 9F 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 43 [14:33:55]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [14:33:55]wFMCommunicate OK [14:33:55]SAM_PROTO_GetShiftState done [14:33:55]FM_GetShiftState done [14:33:55]opened in 1706659486 [14:33:55]opened+sec_in_day 1706745886 [14:33:55]quantity*price = 100026 [14:33:55]sum+1 = 100028 [14:33:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 72 31.01.2024 14:34 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49347 ФПД: 165503495352672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T143420&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49347&fm=165503495352672&tin=02508201610067®Number=0000000000092723&sum=100000 [14:33:56]StoreToDocumentArchive [14:33:56]shift 247 fd 49347 [14:33:56]save to /storage/0247/doc_00049347 [14:33:56]save last doc name /storage/0247/doc_00049347 to /storage/kkm_last_doc_name [14:33:56]save OK [14:33:56]Clear old archive folders... [14:33:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:33:56]tlvbuf is 01210900 [14:33:56]SAM_PROTO_ClearQueue [14:33:56]wFMCommunicate request_size=4 [14:33:56]MH_SAM_APDU [14:33:56]CAPDU: 80 09 00 00 [14:33:56]Write to MH i2c: E2 08 00 DE 9F 80 09 00 00 00 00 00 00 EF [14:33:56]Write i2c OK [14:33:56]MH_I2C_Read... [14:33:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:57]Read from MH i2c: E2 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 03 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 03 00 DE 9F 00 90 00 F1 [14:33:57]RAPDU: 90 00 [14:33:57]wFMCommunicate OK [14:33:57]SAM_PROTO_ClearQueue done [14:33:57]KKMCreateOFDPacket [14:33:57]OFDProtocolAddRootSTLVToBuf [14:33:57]FM_MakeSignedData [14:33:57]FM_MakeSignedData [14:33:57]SAM_PROTO_SignData [14:33:57]wFMCommunicate request_size=4 [14:33:57]MH_SAM_APDU [14:33:57]CAPDU: 80 0D 01 02 [14:33:57]Write to MH i2c: E2 08 00 DF 9F 80 0D 01 02 00 00 00 00 F7 [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:57]Read from MH i2c: E2 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 03 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 03 00 DF 9F 00 90 00 F2 [14:33:57]RAPDU: 90 00 [14:33:57]wFMCommunicate OK [14:33:57]wFMCommunicate request_size=255 [14:33:57]MH_SAM_APDU [14:33:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 5A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C3 C0 00 00 35 04 06 00 96 86 49 0C [14:33:57]Write to MH i2c: E2 02 01 E0 9F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 5A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C3 C0 00 00 35 04 06 00 96 86 49 0C 00 00 99 [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:57]Read from MH i2c: E2 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 03 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 03 00 E0 9F 00 90 00 F3 [14:33:57]RAPDU: 90 00 [14:33:57]wFMCommunicate OK [14:33:57]wFMCommunicate request_size=7 [14:33:57]MH_SAM_APDU [14:33:57]CAPDU: 80 0D 02 02 02 B1 60 [14:33:57]Write to MH i2c: E2 0A 00 E1 9F 80 0D 02 02 02 00 B1 60 00 00 0F [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:57]Read from MH i2c: E2 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 03 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 03 00 E1 9F 00 90 00 F4 [14:33:57]RAPDU: 90 00 [14:33:57]wFMCommunicate OK [14:33:57]wFMCommunicate request_size=4 [14:33:57]MH_SAM_APDU [14:33:57]CAPDU: 80 0D 03 02 [14:33:57]Write to MH i2c: E2 08 00 E2 9F 80 0D 03 02 00 00 00 00 FC [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:57]Read from MH i2c: E2 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 0B 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 0B 00 E2 9F 00 E8 2B 44 35 BC 25 3E 6E 90 00 16 [14:33:57]RAPDU: E8 2B 44 35 BC 25 3E 6E 90 00 [14:33:57]wFMCommunicate OK [14:33:57]SAM_PROTO_SignData done [14:33:57]FM_MakeSignedData done [14:33:57]CreateOFDProtocolMessage [14:33:57]wFMCommunicate request_size=4 [14:33:57]MH_SAM_APDU [14:33:57]CAPDU: 80 11 00 00 [14:33:57]Write to MH i2c: E2 08 00 E3 9F 80 11 00 00 00 00 00 00 FC [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:57]Read from MH i2c: E2 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 17 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: E2 17 00 E3 9F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 49 [14:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:33:57]wFMCommunicate OK [14:33:57]CreateOFDProtocolMessage done [14:33:57]OFDSenderStorePacket 49347 [14:33:57]StoreOFDPacket docnum=49347 [14:33:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 27 F6 04 01 E5 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 5A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C3 C0 00 00 35 04 06 00 96 86 49 0C B1 60 E8 2B 44 35 BC 25 3E 6E [14:33:57]CheckFolder [14:33:57]dirname=/storage/ofd_packets [14:33:57]CheckFolder done [14:33:57]ProducePacketName [14:33:57]name=ofd_packets/00049347 [14:33:57]NVStorageSaveData ofd_packets/00049347 [14:33:57]File name is /storage/ofd_packets/00049347 [14:33:57]Write 298 bytes [14:33:57]NVStorageSaveData done [14:33:57]OFDSenderStorePacket done [14:33:57]KKMCreateOFDPacket done [14:33:57]NVStorageSaveData kkm_last_timestamp [14:33:57]File name is /storage/kkm_last_timestamp [14:33:57]Write 4 bytes [14:33:57]NVStorageSaveData done [14:33:57]ExternCall_PrintAddStr [14:33:57]wPrintStart [14:33:57]Write to MH i2c: 01 00 00 E4 9F 83 [14:33:57]Write i2c OK [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: 01 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: 01 07 00 [14:33:57]MH_I2C_Read... [14:33:57]Read from MH i2c: 01 07 00 E4 9F 00 00 00 00 00 FF 0F 98 [14:33:57]RasterBufferAndPrint [14:33:57]line Счет N : (1)216450 [14:33:57]line ИНН: 02508201610067 [14:33:57]line Контрольно-Кассовый Чек [14:33:57]line ПРОДАЖА [14:33:57]line ТРК (МРК, ГНК) : 21 [14:33:57]line Товар: 2710194210 [14:33:57]line ДТ-К-5 [14:33:57]line 14.310 * 69.90 [14:33:57]line = 1000.27 [14:33:57]line НДС 12% НСП 1% [14:33:57]line > о реализуемом товаре [14:33:57]line ОКРУГЛЕНИЕ: -0.27 [14:33:57]line ИТОГО: 1000.00 [14:33:57]line Внесено: 1000.00 [14:33:57]line СДАЧА: 0.00 [14:33:57]line НСП 1% : 8.85 [14:33:57]line НДС 12% : 106.22 [14:33:57]line Наличными: 1000.00 [14:33:57]line Безнал.: 0.00 [14:33:57]line Место: АЗС № 102 "Партнер Нефть" [14:33:57]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:33:57]line СНО: Общий режим [14:33:57]line Чек 72 31.01.2024 14:34 [14:33:57]line Смена: 247 ФФД: 1.0 [14:33:57]line ЗНМ: 0300000040 [14:33:57]line РНМ: 0000000000092723 [14:33:57]line Версия ККМ: 001 [14:33:57]line ФМ: 0000000000875060 [14:33:57]line ФД: 49347 [14:33:57]line ФПД: 165503495352672 [14:33:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T143420&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49347&fm=165503495352672&tin=02508201610067®Number=0000000000092723&sum=100000 [14:33:57]OFD Sender: Processing packet 49347 [packets to send 12, broken 11] [14:33:57]ProducePacketName [14:33:57]name=ofd_packets/00049347 [14:33:57]OFD Sender: To server: pG, [14:33:57]CommunicateWithHost lk.salyk.kg:30040 [14:33:57]ConnectInit lk.salyk.kg [14:33:57]written 0, free lines is 4095 [14:33:57]Connected sock=10 [14:33:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 27 F6 04 01 E5 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 37 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 BB 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 6C 5A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C3 C0 00 00 35 04 06 00 96 86 49 0C B1 60 E8 2B 44 35 BC 25 3E 6E [14:33:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 97 EC 47 00 38 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C3 C0 00 00 F4 03 04 00 5E 06 BA 65 B6 04 01 00 00 D0 7C 70 A4 EB 9F 18 09 [14:33:58]CommunicateWithHost err = 0 [14:33:58]CheckOFDResponse [14:33:58]1017 (14) - 77093643461234 [14:33:58]1041 (16) - 0000000000875060 [14:33:58]1040 (4) - 49347 [14:33:58]1012 (4) - 31.01.2024 08:35 [14:33:58]1206 (1) - 0 [14:33:58]OFD Sender: Remove packet 49347 [14:33:58]ProducePacketName [14:33:58]name=ofd_packets/00049347 [14:33:58]NVStorageDeleteData [14:33:58]Write to MH i2c: 01 00 00 0F A0 AF [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 07 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: 01 07 00 0F A0 00 00 00 00 00 ED 0C AF [14:33:58]RasterBufferAndPrint [14:33:58]line [14:33:58]line [14:33:58]line [14:33:58]line [14:33:58]line [14:33:58]written 0, free lines is 3315 [14:33:58]MH_Cut [14:33:58]Write to MH i2c: D1 01 00 16 A0 01 88 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: D1 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: D1 01 00 [14:33:58]MH_I2C_Read... [14:33:58]Read from MH i2c: D1 01 00 16 A0 00 87 [14:33:58]Write to MH i2c: 01 00 00 17 A0 B7 [14:33:58]Write i2c OK [14:33:58]MH_I2C_Read... [14:33:58]OFD Sender: No OFD packet to send [14:33:58]*** Cut start [14:33:58]*** Partial cut [14:33:58]*** CUTSNS_PIN = 1 [14:33:58]*** CUTSNS_PIN = 0 [14:33:59]*** Brake cut motor [14:33:59]Read from MH i2c: 01 [14:33:59]MH_I2C_Read... [14:33:59]*** Stop cut motor [14:33:59]*** Cut end [14:33:59]Read from MH i2c: 01 07 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: 01 07 00 17 A0 00 00 00 00 00 FF 0F CC [14:33:59]process_action close_receipt done [14:33:59]requested_data is exist [14:33:59]produce_requested_data [14:33:59]requested_item fm.sn is exist - process it [14:33:59]wFMCommunicate request_size=4 [14:33:59]MH_SAM_APDU [14:33:59]CAPDU: 80 11 00 00 [14:33:59]Write to MH i2c: E2 08 00 18 A0 80 11 00 00 00 00 00 00 32 [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:59]Read from MH i2c: E2 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 17 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 17 00 18 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7F [14:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:33:59]wFMCommunicate OK [14:33:59]requested_item fd.num is exist - process it [14:33:59]SAM_PROTO_GetFieldsCounters [14:33:59]wFMCommunicate request_size=4 [14:33:59]MH_SAM_APDU [14:33:59]CAPDU: 80 13 00 00 [14:33:59]Write to MH i2c: E2 08 00 19 A0 80 13 00 00 00 00 00 00 35 [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:59]Read from MH i2c: E2 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 62 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 62 00 19 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C3 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [14: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C3 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:59]wFMCommunicate OK [14:33:59]SAM_PROTO_GetFieldsCounters done [14:33:59]requested_item shift.num is exist - process it [14:33:59]requested_item shift.opened is exist - process it [14:33:59]req_shift_opened [14:33:59]FM_GetShiftState [14:33:59]SAM_PROTO_GetShiftState [14:33:59]wFMCommunicate request_size=4 [14:33:59]MH_SAM_APDU [14:33:59]CAPDU: 80 13 01 00 [14:33:59]Write to MH i2c: E2 08 00 1A A0 80 13 01 00 00 00 00 00 37 [14:33:59]Write i2c OK [14:33:59]MH_I2C_Read... [14:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:59]Read from MH i2c: E2 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 0E 00 [14:33:59]MH_I2C_Read... [14:33:59]Read from MH i2c: E2 0E 00 1A A0 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 8D [14:33:59]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [14:33:59]wFMCommunicate OK [14:33:59]SAM_PROTO_GetShiftState done [14:33:59]FM_GetShiftState done [14:33:59]req_shift_opened done [14:33:59]requested_item shift.open_date is exist - process it [14:33:59]req_shift_open_date [14:33:59]req_shift_open_date done [14:33:59]produce_requested_data done [14:33:59]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49347,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [14:33:59]process_action_free close_receipt [14:33:59]json_value_free [14:33:59]json_value_free done [14:33:59]process_json_proto returns [14:33:59]Send response to host [14:33:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49347,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [14:33:59]free response buf [14:33:59]execute_script done [14:33:59]execute_script returns [14:33:59]free content buf [14:33:59]Sock 7.Close socket [14:33:59]Sock 7.Thread stoped [14:34:03]OFD Sender: No OFD packet to send [14:34:08]OFD Sender: No OFD packet to send [14:34:13]OFD Sender: No OFD packet to send [14:34:18]OFD Sender: No OFD packet to send [14:34:23]OFD Sender: No OFD packet to send [14:34:28]OFD Sender: No OFD packet to send [14:34:33]OFD Sender: No OFD packet to send [14:34:38]OFD Sender: No OFD packet to send [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]OFD Sender: No OFD packet to send [14:35:53]OFD Sender: No OFD packet to send [14:35:58]OFD Sender: No OFD packet to send [14:36:03]OFD Sender: No OFD packet to send [14:36:08]OFD Sender: No OFD packet to send [14:36:13]OFD Sender: No OFD packet to send [14:36:18]OFD Sender: No OFD packet to send [14:36:23]OFD Sender: No OFD packet to send [14:36:28]OFD Sender: No OFD packet to send [14:36:33]OFD Sender: No OFD packet to send [14:36:38]OFD Sender: No OFD packet to send [14:36:43]OFD Sender: No OFD packet to send [14:36:48]OFD Sender: No OFD packet to send [14:36:53]OFD Sender: No OFD packet to send [14:36:58]OFD Sender: No OFD packet to send [14:37:03]OFD Sender: No OFD packet to send [14:37:08]OFD Sender: No OFD packet to send [14:37:13]OFD Sender: No OFD packet to send [14:37:18]OFD Sender: No OFD packet to send [14:37:23]OFD Sender: No OFD packet to send [14:37:28]OFD Sender: No OFD packet to send [14:37:33]OFD Sender: No OFD packet to send [14:37:38]OFD Sender: No OFD packet to send [14:37:43]OFD Sender: No OFD packet to send [14:37:48]OFD Sender: No OFD packet to send [14:37:53]OFD Sender: No OFD packet to send [14:37:58]OFD Sender: No OFD packet to send [14:38:03]OFD Sender: No OFD packet to send [14:38:08]OFD Sender: No OFD packet to send [14:38:13]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [14:39:33]OFD Sender: No OFD packet to send [14:39:38]OFD Sender: No OFD packet to send [14:39:43]OFD Sender: No OFD packet to send [14:39:48]OFD Sender: No OFD packet to send [14:39:53]OFD Sender: No OFD packet to send [14:39:58]OFD Sender: No OFD packet to send [14:40:03]OFD Sender: No OFD packet to send [14:40:08]OFD Sender: No OFD packet to send [14:40:13]OFD Sender: No OFD packet to send [14:40:18]OFD Sender: No OFD packet to send [14:40:23]OFD Sender: No OFD packet to send [14:40:28]OFD Sender: No OFD packet to send [14:40:33]OFD Sender: No OFD packet to send [14:40:38]OFD Sender: No OFD packet to send [14:40:43]OFD Sender: No OFD packet to send [14:40:48]OFD Sender: No OFD packet to send [14:40:53]OFD Sender: No OFD packet to send [14:40:58]OFD Sender: No OFD packet to send [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:38]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [14:43:24]OFD Sender: No OFD packet to send [14:43:29]OFD Sender: No OFD packet to send [14:43:34]OFD Sender: No OFD packet to send [14:43:39]OFD Sender: No OFD packet to send [14:43:44]OFD Sender: No OFD packet to send [14:43:49]OFD Sender: No OFD packet to send [14:43:54]OFD Sender: No OFD packet to send [14:43:59]OFD Sender: No OFD packet to send [14:44:04]OFD Sender: No OFD packet to send [14:44:09]OFD Sender: No OFD packet to send [14:44:14]OFD Sender: No OFD packet to send [14:44:19]OFD Sender: No OFD packet to send [14:44:24]OFD Sender: No OFD packet to send [14:44:29]OFD Sender: No OFD packet to send [14:44:34]OFD Sender: No OFD packet to send [14:44:39]OFD Sender: No OFD packet to send [14:44:44]OFD Sender: No OFD packet to send [14:44:49]OFD Sender: No OFD packet to send [14:44:54]OFD Sender: No OFD packet to send [14:44:59]OFD Sender: No OFD packet to send [14:45:04]OFD Sender: No OFD packet to send [14:45:09]OFD Sender: No OFD packet to send [14:45:14]OFD Sender: No OFD packet to send [14:45:19]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:04]OFD Sender: No OFD packet to send [14:46:09]OFD Sender: No OFD packet to send [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:39]OFD Sender: No OFD packet to send [14:48:44]OFD Sender: No OFD packet to send [14:48:49]OFD Sender: No OFD packet to send [14:48:54]OFD Sender: No OFD packet to send [14:48:59]OFD Sender: No OFD packet to send [14:49:04]OFD Sender: No OFD packet to send [14:49:09]OFD Sender: No OFD packet to send [14:49:14]OFD Sender: No OFD packet to send [14:49:19]OFD Sender: No OFD packet to send [14:49:24]OFD Sender: No OFD packet to send [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:26]accept exits with 9 [14:51:26]New connection [14:51:26]New thread 3066670436 created [14:51:26]Thread 3066813796 joined [14:51:26]Waiting for new connection... [14:51:26] Sock 9.Parse request [14:51:26]Sock 9.Check first char [14:51:26]Sock 9.First char is OK [14:51:26]request: POST /json_proto HTTP/1.0 [14:51:26]Method: POST [14:51:26]URL: /json_proto [14:51:26]Method is POST - this is cgi request [14:51:26]url: /json_proto [14:51:26]query_string will be loaded in cgi processing [14:51:26]execute_cgi json_proto POST (null) [14:51:26]execute_cgi path=json_proto method=POST [14:51:26]POST find Content-Length [14:51:26]Host: 172.17.56.67:8080 [14:51:26]Content-Length: 677 [14:51:26]Content-Type: application/json [14:51:26] [14:51:26]POST finish read [14:51:26]Found Content-Length = 677 [14:51:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:26]execute_script... [14:51:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:26]POST & json_proto [14:51:26]process_json_proto [14:51:26]json parsed OK: [14:51:26]protocol is kg_v1.0 [14:51:26]action value=close_receipt [14:51:26]process_action close_receipt [14:51:26]cmd_close_receipt [14:51:26]MH_GetDate [14:51:26]Write to MH i2c: F0 00 00 1B A0 AA [14:51:26]Write i2c OK [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: F0 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: F0 09 00 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: F0 09 00 1B A0 00 86 5E BA 65 26 5D 9E 65 3C [14:51:26]GetLastDocTimeStamp 1706711660 [14:51:26]current date 1706712710 [14:51:26]FM_GetShiftState [14:51:26]SAM_PROTO_GetShiftState [14:51:26]wFMCommunicate request_size=4 [14:51:26]MH_SAM_APDU [14:51:26]CAPDU: 80 13 01 00 [14:51:26]Write to MH i2c: E2 08 00 1C A0 80 13 01 00 00 00 00 00 39 [14:51:26]Write i2c OK [14:51:26]MH_I2C_Read... [14:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:26]Read from MH i2c: E2 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 0E 00 [14:51:26]MH_I2C_Read... [14:51:26]Read from MH i2c: E2 0E 00 1C A0 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 8F [14:51:26]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [14:51:26]wFMCommunicate OK [14:51:26]SAM_PROTO_GetShiftState done [14:51:26]FM_GetShiftState done [14:51:26]opened in 1706659486 [14:51:26]opened+sec_in_day 1706745886 [14:51:26]quantity*price = 30029 [14:51:26]sum+1 = 30030 [14:51:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 73 31.01.2024 14:51 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49348 ФПД: 238491482238461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T145150&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49348&fm=238491482238461&tin=02508201610067®Number=0000000000092723&sum=30000 [14:51:27]StoreToDocumentArchive [14:51:27]shift 247 fd 49348 [14:51:27]save to /storage/0247/doc_00049348 [14:51:27]save last doc name /storage/0247/doc_00049348 to /storage/kkm_last_doc_name [14:51:27]save OK [14:51:27]Clear old archive folders... [14:51:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:51:27]tlvbuf is 0139F5F0 [14:51:27]SAM_PROTO_ClearQueue [14:51:27]wFMCommunicate request_size=4 [14:51:27]MH_SAM_APDU [14:51:27]CAPDU: 80 09 00 00 [14:51:27]Write to MH i2c: E2 08 00 29 A0 80 09 00 00 00 00 00 00 3B [14:51:27]Write i2c OK [14:51:27]MH_I2C_Read... [14:51:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:27]Read from MH i2c: E2 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: E2 03 00 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: E2 03 00 29 A0 00 90 00 3D [14:51:27]RAPDU: 90 00 [14:51:27]wFMCommunicate OK [14:51:27]SAM_PROTO_ClearQueue done [14:51:27]KKMCreateOFDPacket [14:51:27]OFDProtocolAddRootSTLVToBuf [14:51:27]FM_MakeSignedData [14:51:27]FM_MakeSignedData [14:51:27]SAM_PROTO_SignData [14:51:27]wFMCommunicate request_size=4 [14:51:27]MH_SAM_APDU [14:51:27]CAPDU: 80 0D 01 02 [14:51:27]Write to MH i2c: E2 08 00 2A A0 80 0D 01 02 00 00 00 00 43 [14:51:27]Write i2c OK [14:51:27]MH_I2C_Read... [14:51:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:27]Read from MH i2c: E2 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: E2 03 00 [14:51:27]MH_I2C_Read... [14:51:27]Read from MH i2c: E2 03 00 2A A0 00 90 00 3E [14:51:27]RAPDU: 90 00 [14:51:27]wFMCommunicate OK [14:51:27]wFMCommunicate request_size=255 [14:51:27]MH_SAM_APDU [14:51:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 86 5E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C4 C0 00 00 35 04 06 00 D8 [14:51:27]Write to MH i2c: E2 02 01 2B A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 86 5E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C4 C0 00 00 35 04 06 00 D8 00 00 A8 [14:51:27]Write i2c OK [14:51:27]MH_I2C_Read... [14:51:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:28]Read from MH i2c: E2 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 03 00 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 03 00 2B A0 00 90 00 3F [14:51:28]RAPDU: 90 00 [14:51:28]wFMCommunicate OK [14:51:28]wFMCommunicate request_size=10 [14:51:28]MH_SAM_APDU [14:51:28]CAPDU: 80 0D 02 02 05 E8 20 14 AD FD [14:51:28]Write to MH i2c: E2 0D 00 2C A0 80 0D 02 02 05 00 E8 20 14 AD FD 00 00 16 [14:51:28]Write i2c OK [14:51:28]MH_I2C_Read... [14:51:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:28]Read from MH i2c: E2 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 03 00 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 03 00 2C A0 00 90 00 40 [14:51:28]RAPDU: 90 00 [14:51:28]wFMCommunicate OK [14:51:28]wFMCommunicate request_size=4 [14:51:28]MH_SAM_APDU [14:51:28]CAPDU: 80 0D 03 02 [14:51:28]Write to MH i2c: E2 08 00 2D A0 80 0D 03 02 00 00 00 00 48 [14:51:28]Write i2c OK [14:51:28]MH_I2C_Read... [14:51:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:28]Read from MH i2c: E2 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 0B 00 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 0B 00 2D A0 00 36 49 57 26 3D 68 9A 3B 90 00 BF [14:51:28]RAPDU: 36 49 57 26 3D 68 9A 3B 90 00 [14:51:28]wFMCommunicate OK [14:51:28]SAM_PROTO_SignData done [14:51:28]FM_MakeSignedData done [14:51:28]CreateOFDProtocolMessage [14:51:28]wFMCommunicate request_size=4 [14:51:28]MH_SAM_APDU [14:51:28]CAPDU: 80 11 00 00 [14:51:28]Write to MH i2c: E2 08 00 2E A0 80 11 00 00 00 00 00 00 48 [14:51:28]Write i2c OK [14:51:28]MH_I2C_Read... [14:51:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:28]Read from MH i2c: E2 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 17 00 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: E2 17 00 2E A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 95 [14:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:51:28]wFMCommunicate OK [14:51:28]CreateOFDProtocolMessage done [14:51:28]OFDSenderStorePacket 49348 [14:51:28]StoreOFDPacket docnum=49348 [14:51:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 92 5D 07 01 F4 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 86 5E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C4 C0 00 00 35 04 06 00 D8 E8 20 14 AD FD 36 49 57 26 3D 68 9A 3B [14:51:28]CheckFolder [14:51:28]dirname=/storage/ofd_packets [14:51:28]CheckFolder done [14:51:28]ProducePacketName [14:51:28]name=ofd_packets/00049348 [14:51:28]NVStorageSaveData ofd_packets/00049348 [14:51:28]File name is /storage/ofd_packets/00049348 [14:51:28]Write 301 bytes [14:51:28]NVStorageSaveData done [14:51:28]OFDSenderStorePacket done [14:51:28]KKMCreateOFDPacket done [14:51:28]NVStorageSaveData kkm_last_timestamp [14:51:28]File name is /storage/kkm_last_timestamp [14:51:28]Write 4 bytes [14:51:28]NVStorageSaveData done [14:51:28]ExternCall_PrintAddStr [14:51:28]wPrintStart [14:51:28]Write to MH i2c: 01 00 00 2F A0 CF [14:51:28]Write i2c OK [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: 01 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: 01 07 00 [14:51:28]MH_I2C_Read... [14:51:28]Read from MH i2c: 01 07 00 2F A0 00 00 00 00 00 FF 0F E4 [14:51:28]RasterBufferAndPrint [14:51:28]line Счет N : (1)216451 [14:51:28]line ИНН: 02508201610067 [14:51:28]line Контрольно-Кассовый Чек [14:51:28]line ПРОДАЖА [14:51:28]line ТРК (МРК, ГНК) : 22 [14:51:28]line Товар: 2710124130 [14:51:28]line Аи-92-К-5 [14:51:28]line 4.980 * 60.30 [14:51:28]line = 300.29 [14:51:28]line НДС 12% НСП 1% [14:51:28]line > о реализуемом товаре [14:51:28]line ОКРУГЛЕНИЕ: -0.29 [14:51:28]line ИТОГО: 300.00 [14:51:28]line Внесено: 300.00 [14:51:28]line СДАЧА: 0.00 [14:51:28]line НСП 1% : 2.66 [14:51:28]line НДС 12% : 31.89 [14:51:28]line Наличными: 300.00 [14:51:28]line Безнал.: 0.00 [14:51:28]line Место: АЗС № 102 "Партнер Нефть" [14:51:28]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:51:28]line СНО: Общий режим [14:51:28]line Чек 73 31.01.2024 14:51 [14:51:28]line Смена: 247 ФФД: 1.0 [14:51:28]line ЗНМ: 0300000040 [14:51:28]line РНМ: 0000000000092723 [14:51:28]line Версия ККМ: 001 [14:51:28]line ФМ: 0000000000875060 [14:51:28]line ФД: 49348 [14:51:28]line ФПД: 238491482238461 [14:51:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T145150&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49348&fm=238491482238461&tin=02508201610067®Number=0000000000092723&sum=30000 [14:51:28]OFD Sender: Processing packet 49348 [packets to send 12, broken 11] [14:51:28]ProducePacketName [14:51:28]name=ofd_packets/00049348 [14:51:28]OFD Sender: To server: pG, [14:51:28]CommunicateWithHost lk.salyk.kg:30040 [14:51:28]ConnectInit lk.salyk.kg [14:51:28]written 0, free lines is 4095 [14:51:28]Connected sock=10 [14:51:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 92 5D 07 01 F4 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 86 5E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C4 C0 00 00 35 04 06 00 D8 E8 20 14 AD FD 36 49 57 26 3D 68 9A 3B [14:51:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 95 53 47 00 5C A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C4 C0 00 00 F4 03 04 00 79 0A BA 65 B6 04 01 00 00 6C 05 CA CC 3D CA E8 24 [14:51:28]CommunicateWithHost err = 0 [14:51:28]CheckOFDResponse [14:51:28]1017 (14) - 77093643461234 [14:51:28]1041 (16) - 0000000000875060 [14:51:28]1040 (4) - 49348 [14:51:28]1012 (4) - 31.01.2024 08:53 [14:51:28]1206 (1) - 0 [14:51:28]OFD Sender: Remove packet 49348 [14:51:28]ProducePacketName [14:51:28]name=ofd_packets/00049348 [14:51:28]NVStorageDeleteData [14:51:29]Write to MH i2c: 01 00 00 5A A0 FA [14:51:29]Write i2c OK [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: 01 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: 01 07 00 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: 01 07 00 5A A0 00 00 00 00 00 F9 0C 06 [14:51:29]RasterBufferAndPrint [14:51:29]line [14:51:29]line [14:51:29]line [14:51:29]line [14:51:29]line [14:51:29]written 0, free lines is 3328 [14:51:29]MH_Cut [14:51:29]Write to MH i2c: D1 01 00 61 A0 01 D3 [14:51:29]Write i2c OK [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: D1 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: D1 01 00 [14:51:29]MH_I2C_Read... [14:51:29]Read from MH i2c: D1 01 00 61 A0 00 D2 [14:51:29]Write to MH i2c: 01 00 00 62 A0 02 [14:51:29]Write i2c OK [14:51:29]MH_I2C_Read... [14:51:29]OFD Sender: No OFD packet to send [14:51:29]*** Cut start [14:51:29]*** Partial cut [14:51:29]*** CUTSNS_PIN = 1 [14:51:29]*** CUTSNS_PIN = 0 [14:51:29]*** Brake cut motor [14:51:30]Read from MH i2c: 01 [14:51:30]MH_I2C_Read... [14:51:30]*** Stop cut motor [14:51:30]*** Cut end [14:51:30]Read from MH i2c: 01 07 00 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: 01 07 00 62 A0 00 00 00 00 00 FF 0F 17 [14:51:30]process_action close_receipt done [14:51:30]requested_data is exist [14:51:30]produce_requested_data [14:51:30]requested_item fm.sn is exist - process it [14:51:30]wFMCommunicate request_size=4 [14:51:30]MH_SAM_APDU [14:51:30]CAPDU: 80 11 00 00 [14:51:30]Write to MH i2c: E2 08 00 63 A0 80 11 00 00 00 00 00 00 7D [14:51:30]Write i2c OK [14:51:30]MH_I2C_Read... [14:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:30]Read from MH i2c: E2 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: E2 17 00 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: E2 17 00 63 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CA [14:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:51:30]wFMCommunicate OK [14:51:30]requested_item fd.num is exist - process it [14:51:30]SAM_PROTO_GetFieldsCounters [14:51:30]wFMCommunicate request_size=4 [14:51:30]MH_SAM_APDU [14:51:30]CAPDU: 80 13 00 00 [14:51:30]Write to MH i2c: E2 08 00 64 A0 80 13 00 00 00 00 00 00 80 [14:51:30]Write i2c OK [14:51:30]MH_I2C_Read... [14:51:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:30]Read from MH i2c: E2 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: E2 62 00 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: E2 62 00 64 A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C4 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [14:51: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C4 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:30]wFMCommunicate OK [14:51:30]SAM_PROTO_GetFieldsCounters done [14:51:30]requested_item shift.num is exist - process it [14:51:30]requested_item shift.opened is exist - process it [14:51:30]req_shift_opened [14:51:30]FM_GetShiftState [14:51:30]SAM_PROTO_GetShiftState [14:51:30]wFMCommunicate request_size=4 [14:51:30]MH_SAM_APDU [14:51:30]CAPDU: 80 13 01 00 [14:51:30]Write to MH i2c: E2 08 00 65 A0 80 13 01 00 00 00 00 00 82 [14:51:30]Write i2c OK [14:51:30]MH_I2C_Read... [14:51:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:30]Read from MH i2c: E2 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: E2 0E 00 [14:51:30]MH_I2C_Read... [14:51:30]Read from MH i2c: E2 0E 00 65 A0 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 D8 [14:51:30]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [14:51:30]wFMCommunicate OK [14:51:30]SAM_PROTO_GetShiftState done [14:51:30]FM_GetShiftState done [14:51:30]req_shift_opened done [14:51:30]requested_item shift.open_date is exist - process it [14:51:30]req_shift_open_date [14:51:30]req_shift_open_date done [14:51:30]produce_requested_data done [14:51:30]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49348,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [14:51:30]process_action_free close_receipt [14:51:30]json_value_free [14:51:30]json_value_free done [14:51:30]process_json_proto returns [14:51:30]Send response to host [14:51:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49348,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [14:51:30]free response buf [14:51:30]execute_script done [14:51:30]execute_script returns [14:51:30]free content buf [14:51:30]Sock 9.Close socket [14:51:30]Sock 9.Thread stoped [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:55:04]OFD Sender: No OFD packet to send [14:55:09]OFD Sender: No OFD packet to send [14:55:14]OFD Sender: No OFD packet to send [14:55:19]OFD Sender: No OFD packet to send [14:55:24]OFD Sender: No OFD packet to send [14:55:29]OFD Sender: No OFD packet to send [14:55:34]OFD Sender: No OFD packet to send [14:55:39]OFD Sender: No OFD packet to send [14:55:44]OFD Sender: No OFD packet to send [14:55:49]OFD Sender: No OFD packet to send [14:55:54]OFD Sender: No OFD packet to send [14:55:59]OFD Sender: No OFD packet to send [14:56:04]OFD Sender: No OFD packet to send [14:56:09]OFD Sender: No OFD packet to send [14:56:14]OFD Sender: No OFD packet to send [14:56:19]OFD Sender: No OFD packet to send [14:56:24]OFD Sender: No OFD packet to send [14:56:29]OFD Sender: No OFD packet to send [14:56:34]OFD Sender: No OFD packet to send [14:56:39]OFD Sender: No OFD packet to send [14:56:44]OFD Sender: No OFD packet to send [14:56:49]OFD Sender: No OFD packet to send [14:56:54]OFD Sender: No OFD packet to send [14:56:59]OFD Sender: No OFD packet to send [14:57:04]OFD Sender: No OFD packet to send [14:57:09]OFD Sender: No OFD packet to send [14:57:14]OFD Sender: No OFD packet to send [14:57:19]OFD Sender: No OFD packet to send [14:57:24]OFD Sender: No OFD packet to send [14:57:29]OFD Sender: No OFD packet to send [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:39]OFD Sender: No OFD packet to send [14:59:44]OFD Sender: No OFD packet to send [14:59:49]OFD Sender: No OFD packet to send [14:59:54]OFD Sender: No OFD packet to send [14:59:59]OFD Sender: No OFD packet to send [15:00:04]OFD Sender: No OFD packet to send [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]OFD Sender: No OFD packet to send [15:00:59]OFD Sender: No OFD packet to send [15:01:04]OFD Sender: No OFD packet to send [15:01:09]OFD Sender: No OFD packet to send [15:01:14]OFD Sender: No OFD packet to send [15:01:19]OFD Sender: No OFD packet to send [15:01:24]OFD Sender: No OFD packet to send [15:01:29]OFD Sender: No OFD packet to send [15:01:34]OFD Sender: No OFD packet to send [15:01:39]OFD Sender: No OFD packet to send [15:01:44]OFD Sender: No OFD packet to send [15:01:49]OFD Sender: No OFD packet to send [15:01:54]OFD Sender: No OFD packet to send [15:01:59]OFD Sender: No OFD packet to send [15:02:04]OFD Sender: No OFD packet to send [15:02:09]OFD Sender: No OFD packet to send [15:02:14]OFD Sender: No OFD packet to send [15:02:19]OFD Sender: No OFD packet to send [15:02:24]OFD Sender: No OFD packet to send [15:02:29]OFD Sender: No OFD packet to send [15:02:34]OFD Sender: No OFD packet to send [15:02:39]OFD Sender: No OFD packet to send [15:02:44]OFD Sender: No OFD packet to send [15:02:49]OFD Sender: No OFD packet to send [15:02:54]OFD Sender: No OFD packet to send [15:02:59]OFD Sender: No OFD packet to send [15:03:04]OFD Sender: No OFD packet to send [15:03:09]OFD Sender: No OFD packet to send [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:09]OFD Sender: No OFD packet to send [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]OFD Sender: No OFD packet to send [15:04:59]OFD Sender: No OFD packet to send [15:05:04]OFD Sender: No OFD packet to send [15:05:09]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:05]accept exits with 7 [15:07:05]New connection [15:07:05]New thread 3066813796 created [15:07:05]Thread 3066670436 joined [15:07:05]Waiting for new connection... [15:07:05] Sock 7.Parse request [15:07:05]Sock 7.Check first char [15:07:05]Sock 7.First char is OK [15:07:05]request: POST /json_proto HTTP/1.0 [15:07:05]Method: POST [15:07:05]URL: /json_proto [15:07:05]Method is POST - this is cgi request [15:07:05]url: /json_proto [15:07:05]query_string will be loaded in cgi processing [15:07:05]execute_cgi json_proto POST (null) [15:07:05]execute_cgi path=json_proto method=POST [15:07:05]POST find Content-Length [15:07:05]Host: 172.17.56.67:8080 [15:07:05]Content-Length: 677 [15:07:05]Content-Type: application/json [15:07:05] [15:07:05]POST finish read [15:07:05]Found Content-Length = 677 [15:07:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:05]execute_script... [15:07: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)216453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:05]POST & json_proto [15:07:05]process_json_proto [15:07:05]json parsed OK: [15:07:05]protocol is kg_v1.0 [15:07:05]action value=close_receipt [15:07:05]process_action close_receipt [15:07:05]cmd_close_receipt [15:07:05]MH_GetDate [15:07:05]Write to MH i2c: F0 00 00 66 A0 F5 [15:07:05]Write i2c OK [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: F0 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: F0 09 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: F0 09 00 66 A0 00 32 62 BA 65 26 5D 9E 65 37 [15:07:05]GetLastDocTimeStamp 1706712710 [15:07:05]current date 1706713650 [15:07:05]FM_GetShiftState [15:07:05]SAM_PROTO_GetShiftState [15:07:05]wFMCommunicate request_size=4 [15:07:05]MH_SAM_APDU [15:07:05]CAPDU: 80 13 01 00 [15:07:05]Write to MH i2c: E2 08 00 67 A0 80 13 01 00 00 00 00 00 84 [15:07:05]Write i2c OK [15:07:05]MH_I2C_Read... [15:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:05]Read from MH i2c: E2 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 0E 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 0E 00 67 A0 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 DA [15:07:05]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [15:07:05]wFMCommunicate OK [15:07:05]SAM_PROTO_GetShiftState done [15:07:05]FM_GetShiftState done [15:07:05]opened in 1706659486 [15:07:05]opened+sec_in_day 1706745886 [15:07:05]quantity*price = 20019 [15:07:05]sum+1 = 20021 [15:07:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 74 31.01.2024 15:07 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49349 ФПД: 204111339537763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T150730&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49349&fm=204111339537763&tin=02508201610067®Number=0000000000092723&sum=20000 [15:07:06]StoreToDocumentArchive [15:07:06]shift 247 fd 49349 [15:07:06]save to /storage/0247/doc_00049349 [15:07:06]save last doc name /storage/0247/doc_00049349 to /storage/kkm_last_doc_name [15:07:06]save OK [15:07:06]Clear old archive folders... [15:07:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:06]tlvbuf is 0128CF70 [15:07:06]SAM_PROTO_ClearQueue [15:07:06]wFMCommunicate request_size=4 [15:07:06]MH_SAM_APDU [15:07:06]CAPDU: 80 09 00 00 [15:07:06]Write to MH i2c: E2 08 00 74 A0 80 09 00 00 00 00 00 00 86 [15:07:06]Write i2c OK [15:07:06]MH_I2C_Read... [15:07:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:06]Read from MH i2c: E2 [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: E2 03 00 [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: E2 03 00 74 A0 00 90 00 88 [15:07:06]RAPDU: 90 00 [15:07:06]wFMCommunicate OK [15:07:06]SAM_PROTO_ClearQueue done [15:07:06]KKMCreateOFDPacket [15:07:06]OFDProtocolAddRootSTLVToBuf [15:07:06]FM_MakeSignedData [15:07:06]FM_MakeSignedData [15:07:06]SAM_PROTO_SignData [15:07:06]wFMCommunicate request_size=4 [15:07:06]MH_SAM_APDU [15:07:06]CAPDU: 80 0D 01 02 [15:07:06]Write to MH i2c: E2 08 00 75 A0 80 0D 01 02 00 00 00 00 8E [15:07:06]Write i2c OK [15:07:06]MH_I2C_Read... [15:07:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:06]Read from MH i2c: E2 [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: E2 03 00 [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: E2 03 00 75 A0 00 90 00 89 [15:07:06]RAPDU: 90 00 [15:07:06]wFMCommunicate OK [15:07:06]wFMCommunicate request_size=255 [15:07:06]MH_SAM_APDU [15:07:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 4A 00 00 00 F4 03 04 00 32 62 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C5 C0 00 00 35 04 06 00 B9 [15:07:06]Write to MH i2c: E2 02 01 76 A0 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 4A 00 00 00 F4 03 04 00 32 62 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C5 C0 00 00 35 04 06 00 B9 00 00 D0 [15:07:07]Write i2c OK [15:07:07]MH_I2C_Read... [15:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:07]Read from MH i2c: E2 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 03 00 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 03 00 76 A0 00 90 00 8A [15:07:07]RAPDU: 90 00 [15:07:07]wFMCommunicate OK [15:07:07]wFMCommunicate request_size=10 [15:07:07]MH_SAM_APDU [15:07:07]CAPDU: 80 0D 02 02 05 A3 5F E3 45 63 [15:07:07]Write to MH i2c: E2 0D 00 77 A0 80 0D 02 02 05 00 A3 5F E3 45 63 00 00 28 [15:07:07]Write i2c OK [15:07:07]MH_I2C_Read... [15:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:07]Read from MH i2c: E2 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 03 00 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 03 00 77 A0 00 90 00 8B [15:07:07]RAPDU: 90 00 [15:07:07]wFMCommunicate OK [15:07:07]wFMCommunicate request_size=4 [15:07:07]MH_SAM_APDU [15:07:07]CAPDU: 80 0D 03 02 [15:07:07]Write to MH i2c: E2 08 00 78 A0 80 0D 03 02 00 00 00 00 93 [15:07:07]Write i2c OK [15:07:07]MH_I2C_Read... [15:07:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:07]Read from MH i2c: E2 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 0B 00 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 0B 00 78 A0 00 ED D5 5C 1B B4 D7 92 0F 90 00 F9 [15:07:07]RAPDU: ED D5 5C 1B B4 D7 92 0F 90 00 [15:07:07]wFMCommunicate OK [15:07:07]SAM_PROTO_SignData done [15:07:07]FM_MakeSignedData done [15:07:07]CreateOFDProtocolMessage [15:07:07]wFMCommunicate request_size=4 [15:07:07]MH_SAM_APDU [15:07:07]CAPDU: 80 11 00 00 [15:07:07]Write to MH i2c: E2 08 00 79 A0 80 11 00 00 00 00 00 00 93 [15:07:07]Write i2c OK [15:07:07]MH_I2C_Read... [15:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:07]Read from MH i2c: E2 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 17 00 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 17 00 79 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E0 [15:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:07:07]wFMCommunicate OK [15:07:07]CreateOFDProtocolMessage done [15:07:07]OFDSenderStorePacket 49349 [15:07:07]StoreOFDPacket docnum=49349 [15:07:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 0F 2B 07 01 20 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 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 4A 00 00 00 F4 03 04 00 32 62 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C5 C0 00 00 35 04 06 00 B9 A3 5F E3 45 63 ED D5 5C 1B B4 D7 92 0F [15:07:07]CheckFolder [15:07:07]dirname=/storage/ofd_packets [15:07:07]CheckFolder done [15:07:07]ProducePacketName [15:07:07]name=ofd_packets/00049349 [15:07:07]NVStorageSaveData ofd_packets/00049349 [15:07:07]File name is /storage/ofd_packets/00049349 [15:07:07]Write 301 bytes [15:07:07]NVStorageSaveData done [15:07:07]OFDSenderStorePacket done [15:07:07]KKMCreateOFDPacket done [15:07:07]NVStorageSaveData kkm_last_timestamp [15:07:07]File name is /storage/kkm_last_timestamp [15:07:07]Write 4 bytes [15:07:07]NVStorageSaveData done [15:07:07]ExternCall_PrintAddStr [15:07:07]wPrintStart [15:07:07]Write to MH i2c: 01 00 00 7A A0 1A [15:07:07]Write i2c OK [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: 01 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: 01 07 00 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: 01 07 00 7A A0 00 00 00 00 00 FF 0F 2F [15:07:07]RasterBufferAndPrint [15:07:07]line Счет N : (1)216453 [15:07:07]line ИНН: 02508201610067 [15:07:07]line Контрольно-Кассовый Чек [15:07:07]line ПРОДАЖА [15:07:07]line ТРК (МРК, ГНК) : 22 [15:07:07]line Товар: 2710124130 [15:07:07]line Аи-92-К-5 [15:07:07]line 3.320 * 60.30 [15:07:07]line = 200.20 [15:07:07]line НДС 12% НСП 1% [15:07:07]line > о реализуемом товаре [15:07:07]line ОКРУГЛЕНИЕ: -0.20 [15:07:07]line ИТОГО: 200.00 [15:07:07]line Внесено: 200.00 [15:07:07]line СДАЧА: 0.00 [15:07:07]line НСП 1% : 1.77 [15:07:07]line НДС 12% : 21.26 [15:07:07]line Наличными: 200.00 [15:07:07]line Безнал.: 0.00 [15:07:07]line Место: АЗС № 102 "Партнер Нефть" [15:07:07]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:07:07]line СНО: Общий режим [15:07:07]line Чек 74 31.01.2024 15:07 [15:07:07]line Смена: 247 ФФД: 1.0 [15:07:07]line ЗНМ: 0300000040 [15:07:07]line РНМ: 0000000000092723 [15:07:07]line Версия ККМ: 001 [15:07:07]line ФМ: 0000000000875060 [15:07:07]line ФД: 49349 [15:07:07]line ФПД: 204111339537763 [15:07:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T150730&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49349&fm=204111339537763&tin=02508201610067®Number=0000000000092723&sum=20000 [15:07:07]OFD Sender: Processing packet 49349 [packets to send 12, broken 11] [15:07:07]ProducePacketName [15:07:07]name=ofd_packets/00049349 [15:07:07]OFD Sender: To server: pG, [15:07:07]CommunicateWithHost lk.salyk.kg:30040 [15:07:07]ConnectInit lk.salyk.kg [15:07:07]written 0, free lines is 4095 [15:07:07]Connected sock=10 [15:07:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 0F 2B 07 01 20 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 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 4A 00 00 00 F4 03 04 00 32 62 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C5 C0 00 00 35 04 06 00 B9 A3 5F E3 45 63 ED D5 5C 1B B4 D7 92 0F [15:07:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 99 7E 47 00 A8 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C5 C0 00 00 F4 03 04 00 24 0E BA 65 B6 04 01 00 00 68 C1 17 86 29 29 1C 71 [15:07:08]CommunicateWithHost err = 0 [15:07:08]CheckOFDResponse [15:07:08]1017 (14) - 77093643461234 [15:07:08]1041 (16) - 0000000000875060 [15:07:08]1040 (4) - 49349 [15:07:08]1012 (4) - 31.01.2024 09:08 [15:07:08]1206 (1) - 0 [15:07:08]OFD Sender: Remove packet 49349 [15:07:08]ProducePacketName [15:07:08]name=ofd_packets/00049349 [15:07:08]NVStorageDeleteData [15:07:08]Write to MH i2c: 01 00 00 A5 A0 45 [15:07:08]Write i2c OK [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: 01 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: 01 07 00 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: 01 07 00 A5 A0 00 00 00 00 00 F0 0C 48 [15:07:08]RasterBufferAndPrint [15:07:08]line [15:07:08]line [15:07:08]line [15:07:08]line [15:07:08]line [15:07:08]written 0, free lines is 3318 [15:07:08]MH_Cut [15:07:08]Write to MH i2c: D1 01 00 AC A0 01 1E [15:07:08]Write i2c OK [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: D1 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: D1 01 00 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: D1 01 00 AC A0 00 1D [15:07:08]Write to MH i2c: 01 00 00 AD A0 4D [15:07:08]Write i2c OK [15:07:08]MH_I2C_Read... [15:07:08]OFD Sender: No OFD packet to send [15:07:08]*** Cut start [15:07:08]*** Partial cut [15:07:08]*** CUTSNS_PIN = 1 [15:07:08]*** CUTSNS_PIN = 0 [15:07:09]*** Brake cut motor [15:07:09]Read from MH i2c: 01 [15:07:09]MH_I2C_Read... [15:07:09]*** Stop cut motor [15:07:09]*** Cut end [15:07:09]Read from MH i2c: 01 07 00 [15:07:09]MH_I2C_Read... [15:07:09]Read from MH i2c: 01 07 00 AD A0 00 00 00 00 00 FF 0F 62 [15:07:09]process_action close_receipt done [15:07:09]requested_data is exist [15:07:09]produce_requested_data [15:07:09]requested_item fm.sn is exist - process it [15:07:09]wFMCommunicate request_size=4 [15:07:09]MH_SAM_APDU [15:07:09]CAPDU: 80 11 00 00 [15:07:09]Write to MH i2c: E2 08 00 AE A0 80 11 00 00 00 00 00 00 C8 [15:07:09]Write i2c OK [15:07:09]MH_I2C_Read... [15:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:09]Read from MH i2c: E2 [15:07:09]MH_I2C_Read... [15:07:09]Read from MH i2c: E2 17 00 [15:07:09]MH_I2C_Read... [15:07:09]Read from MH i2c: E2 17 00 AE A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 15 [15:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:07:09]wFMCommunicate OK [15:07:09]requested_item fd.num is exist - process it [15:07:09]SAM_PROTO_GetFieldsCounters [15:07:09]wFMCommunicate request_size=4 [15:07:09]MH_SAM_APDU [15:07:09]CAPDU: 80 13 00 00 [15:07:09]Write to MH i2c: E2 08 00 AF A0 80 13 00 00 00 00 00 00 CB [15:07:09]Write i2c OK [15:07:09]MH_I2C_Read... [15:07:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:09]Read from MH i2c: E2 [15:07:09]MH_I2C_Read... [15:07:09]Read from MH i2c: E2 62 00 [15:07:09]MH_I2C_Read... [15:07:09]Read from MH i2c: E2 62 00 AF A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C5 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [15:07:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C5 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:09]wFMCommunicate OK [15:07:09]SAM_PROTO_GetFieldsCounters done [15:07:09]requested_item shift.num is exist - process it [15:07:09]requested_item shift.opened is exist - process it [15:07:09]req_shift_opened [15:07:09]FM_GetShiftState [15:07:09]SAM_PROTO_GetShiftState [15:07:09]wFMCommunicate request_size=4 [15:07:09]MH_SAM_APDU [15:07:09]CAPDU: 80 13 01 00 [15:07:09]Write to MH i2c: E2 08 00 B0 A0 80 13 01 00 00 00 00 00 CD [15:07:09]Write i2c OK [15:07:09]MH_I2C_Read... [15:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:09]Read from MH i2c: E2 [15:07:09]MH_I2C_Read... [15:07:09]Read from MH i2c: E2 0E 00 [15:07:09]MH_I2C_Read... [15:07:09]Read from MH i2c: E2 0E 00 B0 A0 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 23 [15:07:09]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [15:07:09]wFMCommunicate OK [15:07:09]SAM_PROTO_GetShiftState done [15:07:09]FM_GetShiftState done [15:07:09]req_shift_opened done [15:07:09]requested_item shift.open_date is exist - process it [15:07:09]req_shift_open_date [15:07:09]req_shift_open_date done [15:07:09]produce_requested_data done [15:07:09]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49349,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [15:07:09]process_action_free close_receipt [15:07:09]json_value_free [15:07:09]json_value_free done [15:07:09]process_json_proto returns [15:07:09]Send response to host [15:07:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49349,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [15:07:09]free response buf [15:07:09]execute_script done [15:07:09]execute_script returns [15:07:09]free content buf [15:07:09]Sock 7.Close socket [15:07:09]Sock 7.Thread stoped [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:25]accept exits with 9 [15:07:25]New connection [15:07:25]New thread 3066670436 created [15:07:25]Thread 3066813796 joined [15:07:25]Waiting for new connection... [15:07:25] Sock 9.Parse request [15:07:25]Sock 9.Check first char [15:07:25]Sock 9.First char is OK [15:07:25]request: POST /json_proto HTTP/1.0 [15:07:25]Method: POST [15:07:25]URL: /json_proto [15:07:25]Method is POST - this is cgi request [15:07:25]url: /json_proto [15:07:25]query_string will be loaded in cgi processing [15:07:25]execute_cgi json_proto POST (null) [15:07:25]execute_cgi path=json_proto method=POST [15:07:25]POST find Content-Length [15:07:25]Host: 172.17.56.67:8080 [15:07:25]Content-Length: 679 [15:07:25]Content-Type: application/json [15:07:25] [15:07:25]POST finish read [15:07:25]Found Content-Length = 679 [15:07:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 40.280, "sum" : 2815.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5522.00, "total" : 2815.00, "payments": [ { "type": 0, "sum" : 2815.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:25]execute_script... [15:07: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)216452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 69.90, "quantity" : 40.280, "sum" : 2815.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5522.00, "total" : 2815.00, "payments": [ { "type": 0, "sum" : 2815.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:25]POST & json_proto [15:07:25]process_json_proto [15:07:25]json parsed OK: [15:07:25]protocol is kg_v1.0 [15:07:25]action value=close_receipt [15:07:25]process_action close_receipt [15:07:25]cmd_close_receipt [15:07:25]MH_GetDate [15:07:25]Write to MH i2c: F0 00 00 B1 A0 40 [15:07:25]Write i2c OK [15:07:25]MH_I2C_Read... [15:07:25]Read from MH i2c: F0 [15:07:25]MH_I2C_Read... [15:07:25]Read from MH i2c: F0 09 00 [15:07:25]MH_I2C_Read... [15:07:25]Read from MH i2c: F0 09 00 B1 A0 00 46 62 BA 65 26 5D 9E 65 96 [15:07:25]GetLastDocTimeStamp 1706713650 [15:07:25]current date 1706713670 [15:07:25]FM_GetShiftState [15:07:25]SAM_PROTO_GetShiftState [15:07:25]wFMCommunicate request_size=4 [15:07:25]MH_SAM_APDU [15:07:25]CAPDU: 80 13 01 00 [15:07:25]Write to MH i2c: E2 08 00 B2 A0 80 13 01 00 00 00 00 00 CF [15:07:25]Write i2c OK [15:07:25]MH_I2C_Read... [15:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:25]Read from MH i2c: E2 [15:07:25]MH_I2C_Read... [15:07:25]Read from MH i2c: E2 0E 00 [15:07:25]MH_I2C_Read... [15:07:25]Read from MH i2c: E2 0E 00 B2 A0 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 25 [15:07:25]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [15:07:25]wFMCommunicate OK [15:07:25]SAM_PROTO_GetShiftState done [15:07:25]FM_GetShiftState done [15:07:25]opened in 1706659486 [15:07:25]opened+sec_in_day 1706745886 [15:07:25]quantity*price = 281557 [15:07:25]sum+1 = 281558 [15:07:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 2815.00 Внесено: 5522.00 СДАЧА: 2707.00 НСП 1% : 24.92 НДС 12% : 299.00 Наличными: 2815.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 75 31.01.2024 15:07 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49350 ФПД: 110675263607381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T150750&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49350&fm=110675263607381&tin=02508201610067®Number=0000000000092723&sum=281500 [15:07:27]StoreToDocumentArchive [15:07:27]shift 247 fd 49350 [15:07:27]save to /storage/0247/doc_00049350 [15:07:27]save last doc name /storage/0247/doc_00049350 to /storage/kkm_last_doc_name [15:07:27]save OK [15:07:27]Clear old archive folders... [15:07:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:07:27]tlvbuf is 0150C7C0 [15:07:27]SAM_PROTO_ClearQueue [15:07:27]wFMCommunicate request_size=4 [15:07:27]MH_SAM_APDU [15:07:27]CAPDU: 80 09 00 00 [15:07:27]Write to MH i2c: E2 08 00 BF A0 80 09 00 00 00 00 00 00 D1 [15:07:27]Write i2c OK [15:07:27]MH_I2C_Read... [15:07:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:27]Read from MH i2c: E2 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: E2 03 00 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: E2 03 00 BF A0 00 90 00 D3 [15:07:27]RAPDU: 90 00 [15:07:27]wFMCommunicate OK [15:07:27]SAM_PROTO_ClearQueue done [15:07:27]KKMCreateOFDPacket [15:07:27]OFDProtocolAddRootSTLVToBuf [15:07:27]FM_MakeSignedData [15:07:27]FM_MakeSignedData [15:07:27]SAM_PROTO_SignData [15:07:27]wFMCommunicate request_size=4 [15:07:27]MH_SAM_APDU [15:07:27]CAPDU: 80 0D 01 02 [15:07:27]Write to MH i2c: E2 08 00 C0 A0 80 0D 01 02 00 00 00 00 D9 [15:07:27]Write i2c OK [15:07:27]MH_I2C_Read... [15:07:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:27]Read from MH i2c: E2 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: E2 03 00 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: E2 03 00 C0 A0 00 90 00 D4 [15:07:27]RAPDU: 90 00 [15:07:27]wFMCommunicate OK [15:07:27]wFMCommunicate request_size=255 [15:07:27]MH_SAM_APDU [15:07:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 9D 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 D5 4B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 4B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 74 00 00 00 00 07 04 06 00 9C 4B 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 46 62 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C6 C0 00 00 35 04 06 00 64 A8 97 C5 [15:07:27]Write to MH i2c: E2 02 01 C1 A0 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 9D 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 D5 4B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 4B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 74 00 00 00 00 07 04 06 00 9C 4B 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 46 62 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C6 C0 00 00 35 04 06 00 64 A8 97 C5 00 00 82 [15:07:27]Write i2c OK [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: E2 [15:07:27]MH_I2C_Read... [15:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:27]Read from MH i2c: E2 03 00 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: E2 03 00 C1 A0 00 90 00 D5 [15:07:27]RAPDU: 90 00 [15:07:27]wFMCommunicate OK [15:07:27]wFMCommunicate request_size=7 [15:07:27]MH_SAM_APDU [15:07:27]CAPDU: 80 0D 02 02 02 D2 55 [15:07:27]Write to MH i2c: E2 0A 00 C2 A0 80 0D 02 02 02 00 D2 55 00 00 07 [15:07:27]Write i2c OK [15:07:27]MH_I2C_Read... [15:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:27]Read from MH i2c: E2 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: E2 03 00 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: E2 03 00 C2 A0 00 90 00 D6 [15:07:27]RAPDU: 90 00 [15:07:27]wFMCommunicate OK [15:07:27]wFMCommunicate request_size=4 [15:07:27]MH_SAM_APDU [15:07:27]CAPDU: 80 0D 03 02 [15:07:27]Write to MH i2c: E2 08 00 C3 A0 80 0D 03 02 00 00 00 00 DE [15:07:27]Write i2c OK [15:07:27]MH_I2C_Read... [15:07:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:27]Read from MH i2c: E2 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: E2 0B 00 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: E2 0B 00 C3 A0 00 EE A9 47 92 8C FB 18 C4 90 00 B2 [15:07:27]RAPDU: EE A9 47 92 8C FB 18 C4 90 00 [15:07:27]wFMCommunicate OK [15:07:27]SAM_PROTO_SignData done [15:07:27]FM_MakeSignedData done [15:07:27]CreateOFDProtocolMessage [15:07:27]wFMCommunicate request_size=4 [15:07:27]MH_SAM_APDU [15:07:27]CAPDU: 80 11 00 00 [15:07:27]Write to MH i2c: E2 08 00 C4 A0 80 11 00 00 00 00 00 00 DE [15:07:27]Write i2c OK [15:07:27]MH_I2C_Read... [15:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:27]Read from MH i2c: E2 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: E2 17 00 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: E2 17 00 C4 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2B [15:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:07:27]wFMCommunicate OK [15:07:27]CreateOFDProtocolMessage done [15:07:27]OFDSenderStorePacket 49350 [15:07:27]StoreOFDPacket docnum=49350 [15:07:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 1C BA 04 01 00 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 9D 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 D5 4B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 4B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 74 00 00 00 00 07 04 06 00 9C 4B 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 46 62 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C6 C0 00 00 35 04 06 00 64 A8 97 C5 D2 55 EE A9 47 92 8C FB 18 C4 [15:07:27]CheckFolder [15:07:27]dirname=/storage/ofd_packets [15:07:27]CheckFolder done [15:07:27]ProducePacketName [15:07:27]name=ofd_packets/00049350 [15:07:27]NVStorageSaveData ofd_packets/00049350 [15:07:27]File name is /storage/ofd_packets/00049350 [15:07:27]Write 298 bytes [15:07:27]NVStorageSaveData done [15:07:27]OFDSenderStorePacket done [15:07:27]KKMCreateOFDPacket done [15:07:27]NVStorageSaveData kkm_last_timestamp [15:07:27]File name is /storage/kkm_last_timestamp [15:07:27]Write 4 bytes [15:07:27]NVStorageSaveData done [15:07:27]ExternCall_PrintAddStr [15:07:27]wPrintStart [15:07:27]Write to MH i2c: 01 00 00 C5 A0 65 [15:07:27]Write i2c OK [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: 01 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: 01 07 00 [15:07:27]MH_I2C_Read... [15:07:27]Read from MH i2c: 01 07 00 C5 A0 00 00 00 00 00 FF 0F 7A [15:07:27]RasterBufferAndPrint [15:07:27]line Счет N : (1)216452 [15:07:27]line ИНН: 02508201610067 [15:07:27]line Контрольно-Кассовый Чек [15:07:27]line ПРОДАЖА [15:07:27]line ТРК (МРК, ГНК) : 11 [15:07:27]line Товар: 2710194210 [15:07:27]line ДТ-К-5 [15:07:27]line 40.280 * 69.90 [15:07:27]line = 2815.57 [15:07:27]line НДС 12% НСП 1% [15:07:27]line > о реализуемом товаре [15:07:27]line ОКРУГЛЕНИЕ: -0.57 [15:07:27]line ИТОГО: 2815.00 [15:07:27]line Внесено: 5522.00 [15:07:27]line СДАЧА: 2707.00 [15:07:27]line НСП 1% : 24.92 [15:07:27]line НДС 12% : 299.00 [15:07:27]line Наличными: 2815.00 [15:07:27]line Безнал.: 0.00 [15:07:27]line Место: АЗС № 102 "Партнер Нефть" [15:07:27]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:07:27]line СНО: Общий режим [15:07:27]line Чек 75 31.01.2024 15:07 [15:07:27]line Смена: 247 ФФД: 1.0 [15:07:27]line ЗНМ: 0300000040 [15:07:27]line РНМ: 0000000000092723 [15:07:27]line Версия ККМ: 001 [15:07:27]line ФМ: 0000000000875060 [15:07:27]line ФД: 49350 [15:07:27]line ФПД: 110675263607381 [15:07:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T150750&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49350&fm=110675263607381&tin=02508201610067®Number=0000000000092723&sum=281500 [15:07:27]OFD Sender: Processing packet 49350 [packets to send 12, broken 11] [15:07:27]ProducePacketName [15:07:27]name=ofd_packets/00049350 [15:07:27]OFD Sender: To server: pG, [15:07:27]CommunicateWithHost lk.salyk.kg:30040 [15:07:27]ConnectInit lk.salyk.kg [15:07:27]written 0, free lines is 4095 [15:07:28]Connected sock=10 [15:07:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 1C BA 04 01 00 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 9D 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 D5 4B 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 4B 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 74 00 00 00 00 07 04 06 00 9C 4B 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 46 62 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C6 C0 00 00 35 04 06 00 64 A8 97 C5 D2 55 EE A9 47 92 8C FB 18 C4 [15:07:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 CD 51 47 00 63 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 35 30 36 30 10 04 04 00 C6 C0 00 00 F4 03 04 00 38 0E BA 65 B6 04 01 00 00 91 44 E5 1F 8C A4 8C 5E [15:07:28]CommunicateWithHost err = 0 [15:07:28]CheckOFDResponse [15:07:28]1017 (14) - 77093643461234 [15:07:28]1041 (16) - 0000000000875060 [15:07:28]1040 (4) - 49350 [15:07:28]1012 (4) - 31.01.2024 09:09 [15:07:28]1206 (1) - 0 [15:07:28]OFD Sender: Remove packet 49350 [15:07:28]ProducePacketName [15:07:28]name=ofd_packets/00049350 [15:07:28]NVStorageDeleteData [15:07:28]Write to MH i2c: 01 00 00 F0 A0 90 [15:07:28]Write i2c OK [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: 01 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: 01 07 00 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: 01 07 00 F0 A0 00 00 00 00 00 F8 0C 9B [15:07:28]RasterBufferAndPrint [15:07:28]line [15:07:28]line [15:07:28]line [15:07:28]line [15:07:28]line [15:07:28]written 0, free lines is 3326 [15:07:28]MH_Cut [15:07:28]Write to MH i2c: D1 01 00 F7 A0 01 69 [15:07:28]Write i2c OK [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: D1 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: D1 01 00 [15:07:28]MH_I2C_Read... [15:07:28]Read from MH i2c: D1 01 00 F7 A0 00 68 [15:07:28]Write to MH i2c: 01 00 00 F8 A0 98 [15:07:28]Write i2c OK [15:07:28]MH_I2C_Read... [15:07:28]OFD Sender: No OFD packet to send [15:07:29]*** Cut start [15:07:29]*** Partial cut [15:07:29]*** CUTSNS_PIN = 1 [15:07:29]*** CUTSNS_PIN = 0 [15:07:29]*** Brake cut motor [15:07:29]Read from MH i2c: 01 [15:07:29]MH_I2C_Read... [15:07:29]*** Stop cut motor [15:07:29]*** Cut end [15:07:29]Read from MH i2c: 01 07 00 [15:07:29]MH_I2C_Read... [15:07:29]Read from MH i2c: 01 07 00 F8 A0 00 00 00 00 00 FF 0F AD [15:07:29]process_action close_receipt done [15:07:29]requested_data is exist [15:07:29]produce_requested_data [15:07:29]requested_item fm.sn is exist - process it [15:07:29]wFMCommunicate request_size=4 [15:07:29]MH_SAM_APDU [15:07:29]CAPDU: 80 11 00 00 [15:07:29]Write to MH i2c: E2 08 00 F9 A0 80 11 00 00 00 00 00 00 13 [15:07:29]Write i2c OK [15:07:29]MH_I2C_Read... [15:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:29]Read from MH i2c: E2 [15:07:29]MH_I2C_Read... [15:07:29]Read from MH i2c: E2 17 00 [15:07:29]MH_I2C_Read... [15:07:29]Read from MH i2c: E2 17 00 F9 A0 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 60 [15:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:07:29]wFMCommunicate OK [15:07:29]requested_item fd.num is exist - process it [15:07:29]SAM_PROTO_GetFieldsCounters [15:07:29]wFMCommunicate request_size=4 [15:07:29]MH_SAM_APDU [15:07:29]CAPDU: 80 13 00 00 [15:07:29]Write to MH i2c: E2 08 00 FA A0 80 13 00 00 00 00 00 00 16 [15:07:29]Write i2c OK [15:07:29]MH_I2C_Read... [15:07:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:29]Read from MH i2c: E2 [15:07:29]MH_I2C_Read... [15:07:29]Read from MH i2c: E2 62 00 [15:07:29]MH_I2C_Read... [15:07:29]Read from MH i2c: E2 62 00 FA A0 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C6 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [15:07: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C6 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:29]wFMCommunicate OK [15:07:29]SAM_PROTO_GetFieldsCounters done [15:07:29]requested_item shift.num is exist - process it [15:07:29]requested_item shift.opened is exist - process it [15:07:29]req_shift_opened [15:07:29]FM_GetShiftState [15:07:29]SAM_PROTO_GetShiftState [15:07:29]wFMCommunicate request_size=4 [15:07:29]MH_SAM_APDU [15:07:29]CAPDU: 80 13 01 00 [15:07:29]Write to MH i2c: E2 08 00 FB A0 80 13 01 00 00 00 00 00 18 [15:07:29]Write i2c OK [15:07:29]MH_I2C_Read... [15:07:29]Read from MH i2c: E2 [15:07:29]MH_I2C_Read... [15:07:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:29]Read from MH i2c: E2 0E 00 [15:07:29]MH_I2C_Read... [15:07:29]Read from MH i2c: E2 0E 00 FB A0 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 6E [15:07:29]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [15:07:29]wFMCommunicate OK [15:07:29]SAM_PROTO_GetShiftState done [15:07:29]FM_GetShiftState done [15:07:29]req_shift_opened done [15:07:29]requested_item shift.open_date is exist - process it [15:07:29]req_shift_open_date [15:07:29]req_shift_open_date done [15:07:29]produce_requested_data done [15:07:29]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49350,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [15:07:29]process_action_free close_receipt [15:07:29]json_value_free [15:07:29]json_value_free done [15:07:29]process_json_proto returns [15:07:29]Send response to host [15:07:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49350,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [15:07:29]free response buf [15:07:29]execute_script done [15:07:29]execute_script returns [15:07:29]free content buf [15:07:29]Sock 9.Close socket [15:07:29]Sock 9.Thread stoped [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:13]OFD Sender: No OFD packet to send [15:08:18]OFD Sender: No OFD packet to send [15:08:23]OFD Sender: No OFD packet to send [15:08:28]OFD Sender: No OFD packet to send [15:08:33]OFD Sender: No OFD packet to send [15:08:38]OFD Sender: No OFD packet to send [15:08:43]OFD Sender: No OFD packet to send [15:08:48]OFD Sender: No OFD packet to send [15:08:53]OFD Sender: No OFD packet to send [15:08:58]OFD Sender: No OFD packet to send [15:09:03]OFD Sender: No OFD packet to send [15:09:08]OFD Sender: No OFD packet to send [15:09:13]OFD Sender: No OFD packet to send [15:09:18]OFD Sender: No OFD packet to send [15:09:23]OFD Sender: No OFD packet to send [15:09:28]OFD Sender: No OFD packet to send [15:09:33]OFD Sender: No OFD packet to send [15:09:38]OFD Sender: No OFD packet to send [15:09:43]OFD Sender: No OFD packet to send [15:09:48]OFD Sender: No OFD packet to send [15:09:53]OFD Sender: No OFD packet to send [15:09:58]OFD Sender: No OFD packet to send [15:10:03]OFD Sender: No OFD packet to send [15:10:08]OFD Sender: No OFD packet to send [15:10:13]OFD Sender: No OFD packet to send [15:10:18]OFD Sender: No OFD packet to send [15:10:23]OFD Sender: No OFD packet to send [15:10:28]OFD Sender: No OFD packet to send [15:10:33]OFD Sender: No OFD packet to send [15:10:38]OFD Sender: No OFD packet to send [15:10:43]OFD Sender: No OFD packet to send [15:10:48]OFD Sender: No OFD packet to send [15:10:53]OFD Sender: No OFD packet to send [15:10:58]OFD Sender: No OFD packet to send [15:11:03]OFD Sender: No OFD packet to send [15:11:08]OFD Sender: No OFD packet to send [15:11:13]OFD Sender: No OFD packet to send [15:11:18]OFD Sender: No OFD packet to send [15:11:23]OFD Sender: No OFD packet to send [15:11:28]OFD Sender: No OFD packet to send [15:11:33]OFD Sender: No OFD packet to send [15:11:38]OFD Sender: No OFD packet to send [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:13]OFD Sender: No OFD packet to send [15:12:18]OFD Sender: No OFD packet to send [15:12:23]OFD Sender: No OFD packet to send [15:12:28]OFD Sender: No OFD packet to send [15:12:33]OFD Sender: No OFD packet to send [15:12:38]OFD Sender: No OFD packet to send [15:12:43]OFD Sender: No OFD packet to send [15:12:48]OFD Sender: No OFD packet to send [15:12:53]OFD Sender: No OFD packet to send [15:12:58]OFD Sender: No OFD packet to send [15:13:03]OFD Sender: No OFD packet to send [15:13:08]OFD Sender: No OFD packet to send [15:13:13]OFD Sender: No OFD packet to send [15:13:18]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:04]OFD Sender: No OFD packet to send [15:22:09]OFD Sender: No OFD packet to send [15:22:14]OFD Sender: No OFD packet to send [15:22:19]OFD Sender: No OFD packet to send [15:22:24]OFD Sender: No OFD packet to send [15:22:29]OFD Sender: No OFD packet to send [15:22:34]OFD Sender: No OFD packet to send [15:22:39]OFD Sender: No OFD packet to send [15:22:44]OFD Sender: No OFD packet to send [15:22:49]OFD Sender: No OFD packet to send [15:22:54]OFD Sender: No OFD packet to send [15:22:59]OFD Sender: No OFD packet to send [15:23:04]OFD Sender: No OFD packet to send [15:23:09]OFD Sender: No OFD packet to send [15:23:14]OFD Sender: No OFD packet to send [15:23:19]OFD Sender: No OFD packet to send [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24:04]OFD Sender: No OFD packet to send [15:24:09]OFD Sender: No OFD packet to send [15:24:14]OFD Sender: No OFD packet to send [15:24:19]OFD Sender: No OFD packet to send [15:24:24]OFD Sender: No OFD packet to send [15:24:29]OFD Sender: No OFD packet to send [15:24:34]OFD Sender: No OFD packet to send [15:24:39]OFD Sender: No OFD packet to send [15:24:44]OFD Sender: No OFD packet to send [15:24:49]OFD Sender: No OFD packet to send [15:24:54]OFD Sender: No OFD packet to send [15:24:59]OFD Sender: No OFD packet to send [15:25:04]OFD Sender: No OFD packet to send [15:25:09]OFD Sender: No OFD packet to send [15:25:14]OFD Sender: No OFD packet to send [15:25:19]OFD Sender: No OFD packet to send [15:25:24]OFD Sender: No OFD packet to send [15:25:29]OFD Sender: No OFD packet to send [15:25:34]OFD Sender: No OFD packet to send [15:25:39]OFD Sender: No OFD packet to send [15:25:44]OFD Sender: No OFD packet to send [15:25:49]OFD Sender: No OFD packet to send [15:25:54]OFD Sender: No OFD packet to send [15:25:59]OFD Sender: No OFD packet to send [15:26:04]OFD Sender: No OFD packet to send [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:59]OFD Sender: No OFD packet to send [15:27:04]OFD Sender: No OFD packet to send [15:27:09]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:39]OFD Sender: No OFD packet to send [15:29:44]OFD Sender: No OFD packet to send [15:29:49]OFD Sender: No OFD packet to send [15:29:54]OFD Sender: No OFD packet to send [15:29:59]OFD Sender: No OFD packet to send [15:30:04]OFD Sender: No OFD packet to send [15:30:09]OFD Sender: No OFD packet to send [15:30:14]OFD Sender: No OFD packet to send [15:30:19]OFD Sender: No OFD packet to send [15:30:24]OFD Sender: No OFD packet to send [15:30:29]OFD Sender: No OFD packet to send [15:30:34]OFD Sender: No OFD packet to send [15:30:39]OFD Sender: No OFD packet to send [15:30:44]OFD Sender: No OFD packet to send [15:30:49]OFD Sender: No OFD packet to send [15:30:54]OFD Sender: No OFD packet to send [15:30:59]OFD Sender: No OFD packet to send [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:35:57]accept exits with 7 [15:35:57]New connection [15:35:57]New thread 3066813796 created [15:35:57]Thread 3066670436 joined [15:35:57]Waiting for new connection... [15:35:57] Sock 7.Parse request [15:35:57]Sock 7.Check first char [15:35:57]Sock 7.First char is OK [15:35:57]request: POST /json_proto HTTP/1.0 [15:35:57]Method: POST [15:35:57]URL: /json_proto [15:35:57]Method is POST - this is cgi request [15:35:57]url: /json_proto [15:35:57]query_string will be loaded in cgi processing [15:35:57]execute_cgi json_proto POST (null) [15:35:57]execute_cgi path=json_proto method=POST [15:35:57]POST find Content-Length [15:35:57]Host: 172.17.56.67:8080 [15:35:57]Content-Length: 677 [15:35:57]Content-Type: application/json [15:35:57] [15:35:57]POST finish read [15:35:57]Found Content-Length = 677 [15:35:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:57]execute_script... [15:35: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)216455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:57]POST & json_proto [15:35:57]process_json_proto [15:35:57]json parsed OK: [15:35:57]protocol is kg_v1.0 [15:35:57]action value=close_receipt [15:35:57]process_action close_receipt [15:35:57]cmd_close_receipt [15:35:57]MH_GetDate [15:35:57]Write to MH i2c: F0 00 00 FC A0 8B [15:35:57]Write i2c OK [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: F0 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: F0 09 00 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: F0 09 00 FC A0 00 F6 68 BA 65 26 5D 9E 65 97 [15:35:57]GetLastDocTimeStamp 1706713670 [15:35:57]current date 1706715382 [15:35:57]FM_GetShiftState [15:35:57]SAM_PROTO_GetShiftState [15:35:57]wFMCommunicate request_size=4 [15:35:57]MH_SAM_APDU [15:35:57]CAPDU: 80 13 01 00 [15:35:57]Write to MH i2c: E2 08 00 FD A0 80 13 01 00 00 00 00 00 1A [15:35:57]Write i2c OK [15:35:57]MH_I2C_Read... [15:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:57]Read from MH i2c: E2 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 0E 00 [15:35:57]MH_I2C_Read... [15:35:57]Read from MH i2c: E2 0E 00 FD A0 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 70 [15:35:57]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [15:35:57]wFMCommunicate OK [15:35:57]SAM_PROTO_GetShiftState done [15:35:57]FM_GetShiftState done [15:35:57]opened in 1706659486 [15:35:57]opened+sec_in_day 1706745886 [15:35:57]quantity*price = 20019 [15:35:57]sum+1 = 20021 [15:35:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 76 31.01.2024 15:36 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49351 ФПД: 90394757979161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T153622&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49351&fm=90394757979161&tin=02508201610067®Number=0000000000092723&sum=20000 [15:35:58]StoreToDocumentArchive [15:35:58]shift 247 fd 49351 [15:35:58]save to /storage/0247/doc_00049351 [15:35:58]save last doc name /storage/0247/doc_00049351 to /storage/kkm_last_doc_name [15:35:58]save OK [15:35:58]Clear old archive folders... [15:35:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:35:58]tlvbuf is 013EDE10 [15:35:58]SAM_PROTO_ClearQueue [15:35:58]wFMCommunicate request_size=4 [15:35:58]MH_SAM_APDU [15:35:58]CAPDU: 80 09 00 00 [15:35:58]Write to MH i2c: E2 08 00 0A A1 80 09 00 00 00 00 00 00 1D [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:58]Read from MH i2c: E2 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 03 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 03 00 0A A1 00 90 00 1F [15:35:58]RAPDU: 90 00 [15:35:58]wFMCommunicate OK [15:35:58]SAM_PROTO_ClearQueue done [15:35:58]KKMCreateOFDPacket [15:35:58]OFDProtocolAddRootSTLVToBuf [15:35:58]FM_MakeSignedData [15:35:58]FM_MakeSignedData [15:35:58]SAM_PROTO_SignData [15:35:58]wFMCommunicate request_size=4 [15:35:58]MH_SAM_APDU [15:35:58]CAPDU: 80 0D 01 02 [15:35:58]Write to MH i2c: E2 08 00 0B A1 80 0D 01 02 00 00 00 00 25 [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:58]Read from MH i2c: E2 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 03 00 [15:35:58]MH_I2C_Read... [15:35:58]Read from MH i2c: E2 03 00 0B A1 00 90 00 20 [15:35:58]RAPDU: 90 00 [15:35:58]wFMCommunicate OK [15:35:58]wFMCommunicate request_size=255 [15:35:58]MH_SAM_APDU [15:35:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 4C 00 00 00 F4 03 04 00 F6 68 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C7 C0 00 00 35 04 06 00 52 [15:35:58]Write to MH i2c: E2 02 01 0C A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 4C 00 00 00 F4 03 04 00 F6 68 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C7 C0 00 00 35 04 06 00 52 00 00 CE [15:35:58]Write i2c OK [15:35:58]MH_I2C_Read... [15:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:59]Read from MH i2c: E2 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 03 00 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 03 00 0C A1 00 90 00 21 [15:35:59]RAPDU: 90 00 [15:35:59]wFMCommunicate OK [15:35:59]wFMCommunicate request_size=10 [15:35:59]MH_SAM_APDU [15:35:59]CAPDU: 80 0D 02 02 05 36 AB 70 5C 19 [15:35:59]Write to MH i2c: E2 0D 00 0D A1 80 0D 02 02 05 00 36 AB 70 5C 19 00 00 F8 [15:35:59]Write i2c OK [15:35:59]MH_I2C_Read... [15:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:59]Read from MH i2c: E2 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 03 00 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 03 00 0D A1 00 90 00 22 [15:35:59]RAPDU: 90 00 [15:35:59]wFMCommunicate OK [15:35:59]wFMCommunicate request_size=4 [15:35:59]MH_SAM_APDU [15:35:59]CAPDU: 80 0D 03 02 [15:35:59]Write to MH i2c: E2 08 00 0E A1 80 0D 03 02 00 00 00 00 2A [15:35:59]Write i2c OK [15:35:59]MH_I2C_Read... [15:35:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:59]Read from MH i2c: E2 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 0B 00 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 0B 00 0E A1 00 BF 77 E0 E5 5B D2 FA 46 90 00 93 [15:35:59]RAPDU: BF 77 E0 E5 5B D2 FA 46 90 00 [15:35:59]wFMCommunicate OK [15:35:59]SAM_PROTO_SignData done [15:35:59]FM_MakeSignedData done [15:35:59]CreateOFDProtocolMessage [15:35:59]wFMCommunicate request_size=4 [15:35:59]MH_SAM_APDU [15:35:59]CAPDU: 80 11 00 00 [15:35:59]Write to MH i2c: E2 08 00 0F A1 80 11 00 00 00 00 00 00 2A [15:35:59]Write i2c OK [15:35:59]MH_I2C_Read... [15:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:59]Read from MH i2c: E2 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 17 00 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: E2 17 00 0F A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 77 [15:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:35:59]wFMCommunicate OK [15:35:59]CreateOFDProtocolMessage done [15:35:59]OFDSenderStorePacket 49351 [15:35:59]StoreOFDPacket docnum=49351 [15:35:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 B8 71 07 01 F9 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 4C 00 00 00 F4 03 04 00 F6 68 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C7 C0 00 00 35 04 06 00 52 36 AB 70 5C 19 BF 77 E0 E5 5B D2 FA 46 [15:35:59]CheckFolder [15:35:59]dirname=/storage/ofd_packets [15:35:59]CheckFolder done [15:35:59]ProducePacketName [15:35:59]name=ofd_packets/00049351 [15:35:59]NVStorageSaveData ofd_packets/00049351 [15:35:59]File name is /storage/ofd_packets/00049351 [15:35:59]Write 301 bytes [15:35:59]NVStorageSaveData done [15:35:59]OFDSenderStorePacket done [15:35:59]KKMCreateOFDPacket done [15:35:59]NVStorageSaveData kkm_last_timestamp [15:35:59]File name is /storage/kkm_last_timestamp [15:35:59]Write 4 bytes [15:35:59]NVStorageSaveData done [15:35:59]ExternCall_PrintAddStr [15:35:59]wPrintStart [15:35:59]Write to MH i2c: 01 00 00 10 A1 B1 [15:35:59]Write i2c OK [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: 01 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: 01 07 00 [15:35:59]MH_I2C_Read... [15:35:59]Read from MH i2c: 01 07 00 10 A1 00 00 00 00 00 FF 0F C6 [15:35:59]RasterBufferAndPrint [15:35:59]line Счет N : (1)216455 [15:35:59]line ИНН: 02508201610067 [15:35:59]line Контрольно-Кассовый Чек [15:35:59]line ПРОДАЖА [15:35:59]line ТРК (МРК, ГНК) : 22 [15:35:59]line Товар: 2710124130 [15:35:59]line Аи-92-К-5 [15:35:59]line 3.320 * 60.30 [15:35:59]line = 200.20 [15:35:59]line НДС 12% НСП 1% [15:35:59]line > о реализуемом товаре [15:35:59]line ОКРУГЛЕНИЕ: -0.20 [15:35:59]line ИТОГО: 200.00 [15:35:59]line Внесено: 200.00 [15:35:59]line СДАЧА: 0.00 [15:35:59]line НСП 1% : 1.77 [15:35:59]line НДС 12% : 21.26 [15:35:59]line Наличными: 200.00 [15:35:59]line Безнал.: 0.00 [15:35:59]line Место: АЗС № 102 "Партнер Нефть" [15:35:59]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:35:59]line СНО: Общий режим [15:35:59]line Чек 76 31.01.2024 15:36 [15:35:59]line Смена: 247 ФФД: 1.0 [15:35:59]line ЗНМ: 0300000040 [15:35:59]line РНМ: 0000000000092723 [15:35:59]line Версия ККМ: 001 [15:35:59]line ФМ: 0000000000875060 [15:35:59]line ФД: 49351 [15:35:59]line ФПД: 90394757979161 [15:35:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T153622&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49351&fm=90394757979161&tin=02508201610067®Number=0000000000092723&sum=20000 [15:35:59]OFD Sender: Processing packet 49351 [packets to send 12, broken 11] [15:35:59]ProducePacketName [15:35:59]name=ofd_packets/00049351 [15:35:59]OFD Sender: To server: pG, [15:35:59]CommunicateWithHost lk.salyk.kg:30040 [15:35:59]ConnectInit lk.salyk.kg [15:35:59]written 0, free lines is 4095 [15:35:59]Connected sock=10 [15:35:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 B8 71 07 01 F9 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 4C 00 00 00 F4 03 04 00 F6 68 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C7 C0 00 00 35 04 06 00 52 36 AB 70 5C 19 BF 77 E0 E5 5B D2 FA 46 [15:35:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 09 D7 47 00 7C 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C7 C0 00 00 F4 03 04 00 E8 14 BA 65 B6 04 01 00 00 04 98 24 1F 9A 67 56 11 [15:35:59]CommunicateWithHost err = 0 [15:35:59]CheckOFDResponse [15:35:59]1017 (14) - 77093643461234 [15:35:59]1041 (16) - 0000000000875060 [15:35:59]1040 (4) - 49351 [15:35:59]1012 (4) - 31.01.2024 09:37 [15:35:59]1206 (1) - 0 [15:35:59]OFD Sender: Remove packet 49351 [15:35:59]ProducePacketName [15:35:59]name=ofd_packets/00049351 [15:35:59]NVStorageDeleteData [15:36:00]Write to MH i2c: 01 00 00 3B A1 DC [15:36:00]Write i2c OK [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: 01 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: 01 07 00 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: 01 07 00 3B A1 00 00 00 00 00 ED 0C DC [15:36:00]RasterBufferAndPrint [15:36:00]line [15:36:00]line [15:36:00]line [15:36:00]line [15:36:00]line [15:36:00]written 0, free lines is 3318 [15:36:00]MH_Cut [15:36:00]Write to MH i2c: D1 01 00 42 A1 01 B5 [15:36:00]Write i2c OK [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: D1 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: D1 01 00 [15:36:00]MH_I2C_Read... [15:36:00]Read from MH i2c: D1 01 00 42 A1 00 B4 [15:36:00]Write to MH i2c: 01 00 00 43 A1 E4 [15:36:00]Write i2c OK [15:36:00]MH_I2C_Read... [15:36:00]OFD Sender: No OFD packet to send [15:36:00]*** Cut start [15:36:00]*** Partial cut [15:36:00]*** CUTSNS_PIN = 1 [15:36:00]*** CUTSNS_PIN = 0 [15:36:00]*** Brake cut motor [15:36:01]Read from MH i2c: 01 [15:36:01]MH_I2C_Read... [15:36:01]*** Stop cut motor [15:36:01]*** Cut end [15:36:01]Read from MH i2c: 01 07 00 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: 01 07 00 43 A1 00 00 00 00 00 FF 0F F9 [15:36:01]process_action close_receipt done [15:36:01]requested_data is exist [15:36:01]produce_requested_data [15:36:01]requested_item fm.sn is exist - process it [15:36:01]wFMCommunicate request_size=4 [15:36:01]MH_SAM_APDU [15:36:01]CAPDU: 80 11 00 00 [15:36:01]Write to MH i2c: E2 08 00 44 A1 80 11 00 00 00 00 00 00 5F [15:36:01]Write i2c OK [15:36:01]MH_I2C_Read... [15:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:01]Read from MH i2c: E2 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 17 00 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 17 00 44 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AC [15:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:36:01]wFMCommunicate OK [15:36:01]requested_item fd.num is exist - process it [15:36:01]SAM_PROTO_GetFieldsCounters [15:36:01]wFMCommunicate request_size=4 [15:36:01]MH_SAM_APDU [15:36:01]CAPDU: 80 13 00 00 [15:36:01]Write to MH i2c: E2 08 00 45 A1 80 13 00 00 00 00 00 00 62 [15:36:01]Write i2c OK [15:36:01]MH_I2C_Read... [15:36:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:01]Read from MH i2c: E2 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 62 00 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 62 00 45 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C7 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [15:36: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C7 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:01]wFMCommunicate OK [15:36:01]SAM_PROTO_GetFieldsCounters done [15:36:01]requested_item shift.num is exist - process it [15:36:01]requested_item shift.opened is exist - process it [15:36:01]req_shift_opened [15:36:01]FM_GetShiftState [15:36:01]SAM_PROTO_GetShiftState [15:36:01]wFMCommunicate request_size=4 [15:36:01]MH_SAM_APDU [15:36:01]CAPDU: 80 13 01 00 [15:36:01]Write to MH i2c: E2 08 00 46 A1 80 13 01 00 00 00 00 00 64 [15:36:01]Write i2c OK [15:36:01]MH_I2C_Read... [15:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:01]Read from MH i2c: E2 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 0E 00 [15:36:01]MH_I2C_Read... [15:36:01]Read from MH i2c: E2 0E 00 46 A1 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 BA [15:36:01]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [15:36:01]wFMCommunicate OK [15:36:01]SAM_PROTO_GetShiftState done [15:36:01]FM_GetShiftState done [15:36:01]req_shift_opened done [15:36:01]requested_item shift.open_date is exist - process it [15:36:01]req_shift_open_date [15:36:01]req_shift_open_date done [15:36:01]produce_requested_data done [15:36:01]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49351,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [15:36:01]process_action_free close_receipt [15:36:01]json_value_free [15:36:01]json_value_free done [15:36:01]process_json_proto returns [15:36:01]Send response to host [15:36:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49351,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [15:36:01]free response buf [15:36:01]execute_script done [15:36:01]execute_script returns [15:36:01]free content buf [15:36:01]Sock 7.Close socket [15:36:01]Sock 7.Thread stoped [15:36:05]OFD Sender: No OFD packet to send [15:36:10]OFD Sender: No OFD packet to send [15:36:15]OFD Sender: No OFD packet to send [15:36:20]OFD Sender: No OFD packet to send [15:36:25]OFD Sender: No OFD packet to send [15:36:30]OFD Sender: No OFD packet to send [15:36:35]OFD Sender: No OFD packet to send [15:36:40]OFD Sender: No OFD packet to send [15:36:45]OFD Sender: No OFD packet to send [15:36:50]OFD Sender: No OFD packet to send [15:36:55]OFD Sender: No OFD packet to send [15:37:00]OFD Sender: No OFD packet to send [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37:20]OFD Sender: No OFD packet to send [15:37:25]OFD Sender: No OFD packet to send [15:37:30]OFD Sender: No OFD packet to send [15:37:35]OFD Sender: No OFD packet to send [15:37:40]OFD Sender: No OFD packet to send [15:37:45]OFD Sender: No OFD packet to send [15:37:47]accept exits with 9 [15:37:47]New connection [15:37:47]New thread 3066670436 created [15:37:47]Thread 3066813796 joined [15:37:47]Waiting for new connection... [15:37:47] Sock 9.Parse request [15:37:47]Sock 9.Check first char [15:37:47]Sock 9.First char is OK [15:37:47]request: POST /json_proto HTTP/1.0 [15:37:47]Method: POST [15:37:47]URL: /json_proto [15:37:47]Method is POST - this is cgi request [15:37:47]url: /json_proto [15:37:47]query_string will be loaded in cgi processing [15:37:47]execute_cgi json_proto POST (null) [15:37:47]execute_cgi path=json_proto method=POST [15:37:47]POST find Content-Length [15:37:47]Host: 172.17.56.67:8080 [15:37:47]Content-Length: 677 [15:37:47]Content-Type: application/json [15:37:47] [15:37:47]POST finish read [15:37:47]Found Content-Length = 677 [15:37:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.150, "sum" : 310.55, "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" ] } } [15:37:47]execute_script... [15: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)216456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.150, "sum" : 310.55, "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" ] } } [15:37:47]POST & json_proto [15:37:47]process_json_proto [15:37:47]json parsed OK: [15:37:47]protocol is kg_v1.0 [15:37:47]action value=close_receipt [15:37:47]process_action close_receipt [15:37:47]cmd_close_receipt [15:37:47]MH_GetDate [15:37:47]Write to MH i2c: F0 00 00 47 A1 D7 [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: F0 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: F0 09 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: F0 09 00 47 A1 00 63 69 BA 65 26 5D 9E 65 51 [15:37:47]GetLastDocTimeStamp 1706715382 [15:37:47]current date 1706715491 [15:37:47]FM_GetShiftState [15:37:47]SAM_PROTO_GetShiftState [15:37:47]wFMCommunicate request_size=4 [15:37:47]MH_SAM_APDU [15:37:47]CAPDU: 80 13 01 00 [15:37:47]Write to MH i2c: E2 08 00 48 A1 80 13 01 00 00 00 00 00 66 [15:37:47]Write i2c OK [15:37:47]MH_I2C_Read... [15:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:47]Read from MH i2c: E2 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 0E 00 [15:37:47]MH_I2C_Read... [15:37:47]Read from MH i2c: E2 0E 00 48 A1 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 BC [15:37:47]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [15:37:47]wFMCommunicate OK [15:37:47]SAM_PROTO_GetShiftState done [15:37:47]FM_GetShiftState done [15:37:47]opened in 1706659486 [15:37:47]opened+sec_in_day 1706745886 [15:37:47]quantity*price = 31054 [15:37:47]sum+1 = 31056 [15:37:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 310.00 Внесено: 310.00 СДАЧА: 0.00 НСП 1% : 2.75 НДС 12% : 32.98 Наличными: 310.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 77 31.01.2024 15:38 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49352 ФПД: 97755518022766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T153811&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49352&fm=97755518022766&tin=02508201610067®Number=0000000000092723&sum=31000 [15:37:48]StoreToDocumentArchive [15:37:48]shift 247 fd 49352 [15:37:48]save to /storage/0247/doc_00049352 [15:37:48]save last doc name /storage/0247/doc_00049352 to /storage/kkm_last_doc_name [15:37:48]save OK [15:37:48]Clear old archive folders... [15:37:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:48]tlvbuf is B6D86200 [15:37:48]SAM_PROTO_ClearQueue [15:37:48]wFMCommunicate request_size=4 [15:37:48]MH_SAM_APDU [15:37:48]CAPDU: 80 09 00 00 [15:37:48]Write to MH i2c: E2 08 00 55 A1 80 09 00 00 00 00 00 00 68 [15:37:48]Write i2c OK [15:37:48]MH_I2C_Read... [15:37:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:48]Read from MH i2c: E2 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: E2 03 00 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: E2 03 00 55 A1 00 90 00 6A [15:37:48]RAPDU: 90 00 [15:37:48]wFMCommunicate OK [15:37:48]SAM_PROTO_ClearQueue done [15:37:48]KKMCreateOFDPacket [15:37:48]OFDProtocolAddRootSTLVToBuf [15:37:48]FM_MakeSignedData [15:37:48]FM_MakeSignedData [15:37:48]SAM_PROTO_SignData [15:37:48]wFMCommunicate request_size=4 [15:37:48]MH_SAM_APDU [15:37:48]CAPDU: 80 0D 01 02 [15:37:48]Write to MH i2c: E2 08 00 56 A1 80 0D 01 02 00 00 00 00 70 [15:37:48]Write i2c OK [15:37:48]MH_I2C_Read... [15:37:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:48]Read from MH i2c: E2 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: E2 03 00 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: E2 03 00 56 A1 00 90 00 6B [15:37:48]RAPDU: 90 00 [15:37:48]wFMCommunicate OK [15:37:48]wFMCommunicate request_size=255 [15:37:48]MH_SAM_APDU [15:37: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 35 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 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 4D 00 00 00 F4 03 04 00 63 69 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C8 C0 00 00 35 04 06 00 58 [15:37:48]Write to MH i2c: E2 02 01 57 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 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 4D 00 00 00 F4 03 04 00 63 69 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C8 C0 00 00 35 04 06 00 58 00 00 44 [15:37:48]Write i2c OK [15:37:48]MH_I2C_Read... [15:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:48]Read from MH i2c: E2 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: E2 03 00 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: E2 03 00 57 A1 00 90 00 6C [15:37:48]RAPDU: 90 00 [15:37:48]wFMCommunicate OK [15:37:48]wFMCommunicate request_size=10 [15:37:48]MH_SAM_APDU [15:37:48]CAPDU: 80 0D 02 02 05 E8 7A ED 34 6E [15:37:48]Write to MH i2c: E2 0D 00 58 A1 80 0D 02 02 05 00 E8 7A ED 34 6E 00 00 6E [15:37:48]Write i2c OK [15:37:48]MH_I2C_Read... [15:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:48]Read from MH i2c: E2 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: E2 03 00 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: E2 03 00 58 A1 00 90 00 6D [15:37:48]RAPDU: 90 00 [15:37:48]wFMCommunicate OK [15:37:48]wFMCommunicate request_size=4 [15:37:48]MH_SAM_APDU [15:37:48]CAPDU: 80 0D 03 02 [15:37:48]Write to MH i2c: E2 08 00 59 A1 80 0D 03 02 00 00 00 00 75 [15:37:48]Write i2c OK [15:37:48]MH_I2C_Read... [15:37:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:48]Read from MH i2c: E2 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: E2 0B 00 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: E2 0B 00 59 A1 00 45 41 A6 26 91 DA DA CB 90 00 D8 [15:37:48]RAPDU: 45 41 A6 26 91 DA DA CB 90 00 [15:37:48]wFMCommunicate OK [15:37:48]SAM_PROTO_SignData done [15:37:48]FM_MakeSignedData done [15:37:48]CreateOFDProtocolMessage [15:37:48]wFMCommunicate request_size=4 [15:37:48]MH_SAM_APDU [15:37:48]CAPDU: 80 11 00 00 [15:37:48]Write to MH i2c: E2 08 00 5A A1 80 11 00 00 00 00 00 00 75 [15:37:48]Write i2c OK [15:37:48]MH_I2C_Read... [15:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:48]Read from MH i2c: E2 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: E2 17 00 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: E2 17 00 5A A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C2 [15:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:37:48]wFMCommunicate OK [15:37:48]CreateOFDProtocolMessage done [15:37:48]OFDSenderStorePacket 49352 [15:37:48]StoreOFDPacket docnum=49352 [15:37:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D6 AD 07 01 D7 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 35 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 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 4D 00 00 00 F4 03 04 00 63 69 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C8 C0 00 00 35 04 06 00 58 E8 7A ED 34 6E 45 41 A6 26 91 DA DA CB [15:37:48]CheckFolder [15:37:48]dirname=/storage/ofd_packets [15:37:48]CheckFolder done [15:37:48]ProducePacketName [15:37:48]name=ofd_packets/00049352 [15:37:48]NVStorageSaveData ofd_packets/00049352 [15:37:48]File name is /storage/ofd_packets/00049352 [15:37:48]Write 301 bytes [15:37:48]NVStorageSaveData done [15:37:48]OFDSenderStorePacket done [15:37:48]KKMCreateOFDPacket done [15:37:48]NVStorageSaveData kkm_last_timestamp [15:37:48]File name is /storage/kkm_last_timestamp [15:37:48]Write 4 bytes [15:37:48]NVStorageSaveData done [15:37:48]ExternCall_PrintAddStr [15:37:48]wPrintStart [15:37:48]Write to MH i2c: 01 00 00 5B A1 FC [15:37:48]Write i2c OK [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: 01 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: 01 07 00 [15:37:48]MH_I2C_Read... [15:37:48]Read from MH i2c: 01 07 00 5B A1 00 00 00 00 00 FF 0F 11 [15:37:48]RasterBufferAndPrint [15:37:48]line Счет N : (1)216456 [15:37:48]line ИНН: 02508201610067 [15:37:48]line Контрольно-Кассовый Чек [15:37:48]line ПРОДАЖА [15:37:48]line ТРК (МРК, ГНК) : 12 [15:37:48]line Товар: 2710124130 [15:37:48]line Аи-92-К-5 [15:37:48]line 5.150 * 60.30 [15:37:48]line = 310.55 [15:37:48]line НДС 12% НСП 1% [15:37:48]line > о реализуемом товаре [15:37:48]line ОКРУГЛЕНИЕ: -0.55 [15:37:48]line ИТОГО: 310.00 [15:37:48]line Внесено: 310.00 [15:37:48]line СДАЧА: 0.00 [15:37:48]line НСП 1% : 2.75 [15:37:48]line НДС 12% : 32.98 [15:37:48]line Наличными: 310.00 [15:37:48]line Безнал.: 0.00 [15:37:48]line Место: АЗС № 102 "Партнер Нефть" [15:37:48]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:37:48]line СНО: Общий режим [15:37:48]line Чек 77 31.01.2024 15:38 [15:37:48]line Смена: 247 ФФД: 1.0 [15:37:48]line ЗНМ: 0300000040 [15:37:48]line РНМ: 0000000000092723 [15:37:48]line Версия ККМ: 001 [15:37:48]line ФМ: 0000000000875060 [15:37:48]line ФД: 49352 [15:37:48]line ФПД: 97755518022766 [15:37:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T153811&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49352&fm=97755518022766&tin=02508201610067®Number=0000000000092723&sum=31000 [15:37:49]OFD Sender: Processing packet 49352 [packets to send 12, broken 11] [15:37:49]ProducePacketName [15:37:49]name=ofd_packets/00049352 [15:37:49]OFD Sender: To server: pG, [15:37:49]CommunicateWithHost lk.salyk.kg:30040 [15:37:49]ConnectInit lk.salyk.kg [15:37:49]written 0, free lines is 4095 [15:37:49]Connected sock=10 [15:37:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D6 AD 07 01 D7 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 35 FF 03 08 00 03 1E 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 79 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 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 4D 00 00 00 F4 03 04 00 63 69 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C8 C0 00 00 35 04 06 00 58 E8 7A ED 34 6E 45 41 A6 26 91 DA DA CB [15:37:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 39 24 47 00 29 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C8 C0 00 00 F4 03 04 00 55 15 BA 65 B6 04 01 00 00 67 AA 9B 11 80 6D 0C 8A [15:37:49]CommunicateWithHost err = 0 [15:37:49]CheckOFDResponse [15:37:49]1017 (14) - 77093643461234 [15:37:49]1041 (16) - 0000000000875060 [15:37:49]1040 (4) - 49352 [15:37:49]1012 (4) - 31.01.2024 09:39 [15:37:49]1206 (1) - 0 [15:37:49]OFD Sender: Remove packet 49352 [15:37:49]ProducePacketName [15:37:49]name=ofd_packets/00049352 [15:37:49]NVStorageDeleteData [15:37:49]Write to MH i2c: 01 00 00 86 A1 27 [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: 01 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: 01 07 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: 01 07 00 86 A1 00 00 00 00 00 EF 0C 29 [15:37:49]RasterBufferAndPrint [15:37:49]line [15:37:49]line [15:37:49]line [15:37:49]line [15:37:49]line [15:37:49]written 0, free lines is 3317 [15:37:49]MH_Cut [15:37:49]Write to MH i2c: D1 01 00 8D A1 01 00 [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: D1 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: D1 01 00 [15:37:49]MH_I2C_Read... [15:37:49]Read from MH i2c: D1 01 00 8D A1 00 FF [15:37:49]Write to MH i2c: 01 00 00 8E A1 2F [15:37:49]Write i2c OK [15:37:49]MH_I2C_Read... [15:37:50]OFD Sender: No OFD packet to send [15:37:50]*** Cut start [15:37:50]*** Partial cut [15:37:50]*** CUTSNS_PIN = 1 [15:37:50]*** CUTSNS_PIN = 0 [15:37:50]*** Brake cut motor [15:37:50]Read from MH i2c: 01 [15:37:50]MH_I2C_Read... [15:37:50]*** Stop cut motor [15:37:50]*** Cut end [15:37:50]Read from MH i2c: 01 07 00 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: 01 07 00 8E A1 00 00 00 00 00 FF 0F 44 [15:37:50]process_action close_receipt done [15:37:50]requested_data is exist [15:37:50]produce_requested_data [15:37:50]requested_item fm.sn is exist - process it [15:37:50]wFMCommunicate request_size=4 [15:37:50]MH_SAM_APDU [15:37:50]CAPDU: 80 11 00 00 [15:37:50]Write to MH i2c: E2 08 00 8F A1 80 11 00 00 00 00 00 00 AA [15:37:50]Write i2c OK [15:37:50]MH_I2C_Read... [15:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:50]Read from MH i2c: E2 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 17 00 [15:37:50]MH_I2C_Read... [15:37:50]Read from MH i2c: E2 17 00 8F A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F7 [15:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:37:51]wFMCommunicate OK [15:37:51]requested_item fd.num is exist - process it [15:37:51]SAM_PROTO_GetFieldsCounters [15:37:51]wFMCommunicate request_size=4 [15:37:51]MH_SAM_APDU [15:37:51]CAPDU: 80 13 00 00 [15:37:51]Write to MH i2c: E2 08 00 90 A1 80 13 00 00 00 00 00 00 AD [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:51]Read from MH i2c: E2 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 62 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 62 00 90 A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C8 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [15:37: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C8 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:51]wFMCommunicate OK [15:37:51]SAM_PROTO_GetFieldsCounters done [15:37:51]requested_item shift.num is exist - process it [15:37:51]requested_item shift.opened is exist - process it [15:37:51]req_shift_opened [15:37:51]FM_GetShiftState [15:37:51]SAM_PROTO_GetShiftState [15:37:51]wFMCommunicate request_size=4 [15:37:51]MH_SAM_APDU [15:37:51]CAPDU: 80 13 01 00 [15:37:51]Write to MH i2c: E2 08 00 91 A1 80 13 01 00 00 00 00 00 AF [15:37:51]Write i2c OK [15:37:51]MH_I2C_Read... [15:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:51]Read from MH i2c: E2 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 0E 00 [15:37:51]MH_I2C_Read... [15:37:51]Read from MH i2c: E2 0E 00 91 A1 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 05 [15:37:51]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [15:37:51]wFMCommunicate OK [15:37:51]SAM_PROTO_GetShiftState done [15:37:51]FM_GetShiftState done [15:37:51]req_shift_opened done [15:37:51]requested_item shift.open_date is exist - process it [15:37:51]req_shift_open_date [15:37:51]req_shift_open_date done [15:37:51]produce_requested_data done [15:37:51]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49352,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [15:37:51]process_action_free close_receipt [15:37:51]json_value_free [15:37:51]json_value_free done [15:37:51]process_json_proto returns [15:37:51]Send response to host [15:37:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49352,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [15:37:51]free response buf [15:37:51]execute_script done [15:37:51]execute_script returns [15:37:51]free content buf [15:37:51]Sock 9.Close socket [15:37:51]Sock 9.Thread stoped [15:37:55]OFD Sender: No OFD packet to send [15:38:00]OFD Sender: No OFD packet to send [15:38:05]OFD Sender: No OFD packet to send [15:38:10]OFD Sender: No OFD packet to send [15:38:15]OFD Sender: No OFD packet to send [15:38:20]OFD Sender: No OFD packet to send [15:38:25]OFD Sender: No OFD packet to send [15:38:30]OFD Sender: No OFD packet to send [15:38:35]OFD Sender: No OFD packet to send [15:38:40]OFD Sender: No OFD packet to send [15:38:45]OFD Sender: No OFD packet to send [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:40:00]OFD Sender: No OFD packet to send [15:40:05]OFD Sender: No OFD packet to send [15:40:10]OFD Sender: No OFD packet to send [15:40:15]OFD Sender: No OFD packet to send [15:40:20]OFD Sender: No OFD packet to send [15:40:25]OFD Sender: No OFD packet to send [15:40:30]OFD Sender: No OFD packet to send [15:40:35]OFD Sender: No OFD packet to send [15:40:40]OFD Sender: No OFD packet to send [15:40:45]OFD Sender: No OFD packet to send [15:40:50]OFD Sender: No OFD packet to send [15:40:55]OFD Sender: No OFD packet to send [15:41:00]OFD Sender: No OFD packet to send [15:41:05]OFD Sender: No OFD packet to send [15:41:10]OFD Sender: No OFD packet to send [15:41:15]OFD Sender: No OFD packet to send [15:41:20]OFD Sender: No OFD packet to send [15:41:25]OFD Sender: No OFD packet to send [15:41:30]OFD Sender: No OFD packet to send [15:41:35]OFD Sender: No OFD packet to send [15:41:40]OFD Sender: No OFD packet to send [15:41:45]OFD Sender: No OFD packet to send [15:41:50]OFD Sender: No OFD packet to send [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:55]OFD Sender: No OFD packet to send [15:43:00]OFD Sender: No OFD packet to send [15:43:05]OFD Sender: No OFD packet to send [15:43:10]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:45]OFD Sender: No OFD packet to send [15:43:50]OFD Sender: No OFD packet to send [15:43:55]OFD Sender: No OFD packet to send [15:44:00]OFD Sender: No OFD packet to send [15:44:05]OFD Sender: No OFD packet to send [15:44:10]OFD Sender: No OFD packet to send [15:44:15]OFD Sender: No OFD packet to send [15:44:20]OFD Sender: No OFD packet to send [15:44:25]OFD Sender: No OFD packet to send [15:44:30]OFD Sender: No OFD packet to send [15:44:35]OFD Sender: No OFD packet to send [15:44:40]OFD Sender: No OFD packet to send [15:44:45]OFD Sender: No OFD packet to send [15:44:50]OFD Sender: No OFD packet to send [15:44:55]OFD Sender: No OFD packet to send [15:45:00]OFD Sender: No OFD packet to send [15:45:05]OFD Sender: No OFD packet to send [15:45:10]OFD Sender: No OFD packet to send [15:45:15]OFD Sender: No OFD packet to send [15:45:20]OFD Sender: No OFD packet to send [15:45:25]OFD Sender: No OFD packet to send [15:45:30]OFD Sender: No OFD packet to send [15:45:35]OFD Sender: No OFD packet to send [15:45:40]OFD Sender: No OFD packet to send [15:45:45]OFD Sender: No OFD packet to send [15:45:50]OFD Sender: No OFD packet to send [15:45:55]OFD Sender: No OFD packet to send [15:46:00]OFD Sender: No OFD packet to send [15:46:05]OFD Sender: No OFD packet to send [15:46:10]OFD Sender: No OFD packet to send [15:46:15]OFD Sender: No OFD packet to send [15:46:20]OFD Sender: No OFD packet to send [15:46:25]OFD Sender: No OFD packet to send [15:46:30]OFD Sender: No OFD packet to send [15:46:35]OFD Sender: No OFD packet to send [15:46:40]OFD Sender: No OFD packet to send [15:46:45]OFD Sender: No OFD packet to send [15:46:50]OFD Sender: No OFD packet to send [15:46:55]OFD Sender: No OFD packet to send [15:47:00]OFD Sender: No OFD packet to send [15:47:05]OFD Sender: No OFD packet to send [15:47:10]OFD Sender: No OFD packet to send [15:47:15]OFD Sender: No OFD packet to send [15:47:20]OFD Sender: No OFD packet to send [15:47:25]OFD Sender: No OFD packet to send [15:47:30]OFD Sender: No OFD packet to send [15:47:35]OFD Sender: No OFD packet to send [15:47:40]OFD Sender: No OFD packet to send [15:47:45]OFD Sender: No OFD packet to send [15:47:50]OFD Sender: No OFD packet to send [15:47:55]OFD Sender: No OFD packet to send [15:48:00]OFD Sender: No OFD packet to send [15:48:05]OFD Sender: No OFD packet to send [15:48:10]OFD Sender: No OFD packet to send [15:48:15]OFD Sender: No OFD packet to send [15:48:20]OFD Sender: No OFD packet to send [15:48:25]OFD Sender: No OFD packet to send [15:48:30]OFD Sender: No OFD packet to send [15:48:35]OFD Sender: No OFD packet to send [15:48:40]OFD Sender: No OFD packet to send [15:48:45]OFD Sender: No OFD packet to send [15:48:50]OFD Sender: No OFD packet to send [15:48:55]OFD Sender: No OFD packet to send [15:49:00]OFD Sender: No OFD packet to send [15:49:05]OFD Sender: No OFD packet to send [15:49:10]OFD Sender: No OFD packet to send [15:49:15]OFD Sender: No OFD packet to send [15:49:20]OFD Sender: No OFD packet to send [15:49:25]OFD Sender: No OFD packet to send [15:49:30]OFD Sender: No OFD packet to send [15:49:35]OFD Sender: No OFD packet to send [15:49:40]OFD Sender: No OFD packet to send [15:49:45]OFD Sender: No OFD packet to send [15:49:50]OFD Sender: No OFD packet to send [15:49:55]OFD Sender: No OFD packet to send [15:50:00]OFD Sender: No OFD packet to send [15:50:05]OFD Sender: No OFD packet to send [15:50:09]accept exits with 7 [15:50:09]New connection [15:50:09]New thread 3066813796 created [15:50:09]Thread 3066670436 joined [15:50:09]Waiting for new connection... [15:50:09] Sock 7.Parse request [15:50:09]Sock 7.Check first char [15:50:09]Sock 7.First char is OK [15:50:09]request: POST /json_proto HTTP/1.0 [15:50:09]Method: POST [15:50:09]URL: /json_proto [15:50:09]Method is POST - this is cgi request [15:50:09]url: /json_proto [15:50:09]query_string will be loaded in cgi processing [15:50:09]execute_cgi json_proto POST (null) [15:50:09]execute_cgi path=json_proto method=POST [15:50:09]POST find Content-Length [15:50:09]Host: 172.17.56.67:8080 [15:50:09]Content-Length: 677 [15:50:09]Content-Type: application/json [15:50:09] [15:50:09]POST finish read [15:50:09]Found Content-Length = 677 [15:50:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:09]execute_script... [15:50: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)216457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:09]POST & json_proto [15:50:09]process_json_proto [15:50:09]json parsed OK: [15:50:09]protocol is kg_v1.0 [15:50:09]action value=close_receipt [15:50:09]process_action close_receipt [15:50:09]cmd_close_receipt [15:50:09]MH_GetDate [15:50:09]Write to MH i2c: F0 00 00 92 A1 22 [15:50:09]Write i2c OK [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: F0 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: F0 09 00 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: F0 09 00 92 A1 00 4A 6C BA 65 26 5D 9E 65 86 [15:50:09]GetLastDocTimeStamp 1706715491 [15:50:09]current date 1706716234 [15:50:09]FM_GetShiftState [15:50:09]SAM_PROTO_GetShiftState [15:50:09]wFMCommunicate request_size=4 [15:50:09]MH_SAM_APDU [15:50:09]CAPDU: 80 13 01 00 [15:50:09]Write to MH i2c: E2 08 00 93 A1 80 13 01 00 00 00 00 00 B1 [15:50:09]Write i2c OK [15:50:09]MH_I2C_Read... [15:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:09]Read from MH i2c: E2 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 0E 00 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 0E 00 93 A1 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 07 [15:50:09]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [15:50:09]wFMCommunicate OK [15:50:09]SAM_PROTO_GetShiftState done [15:50:09]FM_GetShiftState done [15:50:09]opened in 1706659486 [15:50:09]opened+sec_in_day 1706745886 [15:50:09]quantity*price = 30029 [15:50:09]sum+1 = 30030 [15:50:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 78 31.01.2024 15:50 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49353 ФПД: 98124941844049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T155034&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49353&fm=98124941844049&tin=02508201610067®Number=0000000000092723&sum=30000 [15:50:10]StoreToDocumentArchive [15:50:10]shift 247 fd 49353 [15:50:10]save to /storage/0247/doc_00049353 [15:50:10]save last doc name /storage/0247/doc_00049353 to /storage/kkm_last_doc_name [15:50:10]save OK [15:50:10]Clear old archive folders... [15:50:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:50:10]tlvbuf is 0144F730 [15:50:10]SAM_PROTO_ClearQueue [15:50:10]wFMCommunicate request_size=4 [15:50:10]MH_SAM_APDU [15:50:10]CAPDU: 80 09 00 00 [15:50:10]Write to MH i2c: E2 08 00 A0 A1 80 09 00 00 00 00 00 00 B3 [15:50:10]Write i2c OK [15:50:10]MH_I2C_Read... [15:50:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:10]Read from MH i2c: E2 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: E2 03 00 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: E2 03 00 A0 A1 00 90 00 B5 [15:50:10]RAPDU: 90 00 [15:50:10]wFMCommunicate OK [15:50:10]SAM_PROTO_ClearQueue done [15:50:10]KKMCreateOFDPacket [15:50:10]OFDProtocolAddRootSTLVToBuf [15:50:10]FM_MakeSignedData [15:50:10]FM_MakeSignedData [15:50:10]SAM_PROTO_SignData [15:50:10]wFMCommunicate request_size=4 [15:50:10]MH_SAM_APDU [15:50:10]CAPDU: 80 0D 01 02 [15:50:10]Write to MH i2c: E2 08 00 A1 A1 80 0D 01 02 00 00 00 00 BB [15:50:10]Write i2c OK [15:50:10]MH_I2C_Read... [15:50:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:10]Read from MH i2c: E2 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: E2 03 00 [15:50:10]MH_I2C_Read... [15:50:10]Read from MH i2c: E2 03 00 A1 A1 00 90 00 B6 [15:50:10]RAPDU: 90 00 [15:50:10]wFMCommunicate OK [15:50:10]wFMCommunicate request_size=255 [15:50:10]MH_SAM_APDU [15:50:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 4A 6C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C9 C0 00 00 35 04 06 00 59 [15:50:10]Write to MH i2c: E2 02 01 A2 A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 4A 6C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C9 C0 00 00 35 04 06 00 59 00 00 7D [15:50:10]Write i2c OK [15:50:10]MH_I2C_Read... [15:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:11]Read from MH i2c: E2 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 03 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 03 00 A2 A1 00 90 00 B7 [15:50:11]RAPDU: 90 00 [15:50:11]wFMCommunicate OK [15:50:11]wFMCommunicate request_size=10 [15:50:11]MH_SAM_APDU [15:50:11]CAPDU: 80 0D 02 02 05 3E 7E 4D 5E 51 [15:50:11]Write to MH i2c: E2 0D 00 A3 A1 80 0D 02 02 05 00 3E 7E 4D 5E 51 00 00 80 [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:11]Read from MH i2c: E2 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 03 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 03 00 A3 A1 00 90 00 B8 [15:50:11]RAPDU: 90 00 [15:50:11]wFMCommunicate OK [15:50:11]wFMCommunicate request_size=4 [15:50:11]MH_SAM_APDU [15:50:11]CAPDU: 80 0D 03 02 [15:50:11]Write to MH i2c: E2 08 00 A4 A1 80 0D 03 02 00 00 00 00 C0 [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:11]Read from MH i2c: E2 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 0B 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 0B 00 A4 A1 00 90 83 EA 9C BF CF 83 3D 90 00 A8 [15:50:11]RAPDU: 90 83 EA 9C BF CF 83 3D 90 00 [15:50:11]wFMCommunicate OK [15:50:11]SAM_PROTO_SignData done [15:50:11]FM_MakeSignedData done [15:50:11]CreateOFDProtocolMessage [15:50:11]wFMCommunicate request_size=4 [15:50:11]MH_SAM_APDU [15:50:11]CAPDU: 80 11 00 00 [15:50:11]Write to MH i2c: E2 08 00 A5 A1 80 11 00 00 00 00 00 00 C0 [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:11]Read from MH i2c: E2 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 17 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: E2 17 00 A5 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0D [15:50:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:50:11]wFMCommunicate OK [15:50:11]CreateOFDProtocolMessage done [15:50:11]OFDSenderStorePacket 49353 [15:50:11]StoreOFDPacket docnum=49353 [15:50:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 C4 D0 07 01 E6 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 4A 6C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C9 C0 00 00 35 04 06 00 59 3E 7E 4D 5E 51 90 83 EA 9C BF CF 83 3D [15:50:11]CheckFolder [15:50:11]dirname=/storage/ofd_packets [15:50:11]CheckFolder done [15:50:11]ProducePacketName [15:50:11]name=ofd_packets/00049353 [15:50:11]NVStorageSaveData ofd_packets/00049353 [15:50:11]File name is /storage/ofd_packets/00049353 [15:50:11]Write 301 bytes [15:50:11]NVStorageSaveData done [15:50:11]OFDSenderStorePacket done [15:50:11]KKMCreateOFDPacket done [15:50:11]NVStorageSaveData kkm_last_timestamp [15:50:11]File name is /storage/kkm_last_timestamp [15:50:11]Write 4 bytes [15:50:11]NVStorageSaveData done [15:50:11]ExternCall_PrintAddStr [15:50:11]wPrintStart [15:50:11]Write to MH i2c: 01 00 00 A6 A1 47 [15:50:11]Write i2c OK [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: 01 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: 01 07 00 [15:50:11]MH_I2C_Read... [15:50:11]Read from MH i2c: 01 07 00 A6 A1 00 00 00 00 00 FF 0F 5C [15:50:11]RasterBufferAndPrint [15:50:11]line Счет N : (1)216457 [15:50:11]line ИНН: 02508201610067 [15:50:11]line Контрольно-Кассовый Чек [15:50:11]line ПРОДАЖА [15:50:11]line ТРК (МРК, ГНК) : 22 [15:50:11]line Товар: 2710124130 [15:50:11]line Аи-92-К-5 [15:50:11]line 4.980 * 60.30 [15:50:11]line = 300.29 [15:50:11]line НДС 12% НСП 1% [15:50:11]line > о реализуемом товаре [15:50:11]line ОКРУГЛЕНИЕ: -0.29 [15:50:11]line ИТОГО: 300.00 [15:50:11]line Внесено: 300.00 [15:50:11]line СДАЧА: 0.00 [15:50:11]line НСП 1% : 2.66 [15:50:11]line НДС 12% : 31.89 [15:50:11]line Наличными: 300.00 [15:50:11]line Безнал.: 0.00 [15:50:11]line Место: АЗС № 102 "Партнер Нефть" [15:50:11]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:50:11]line СНО: Общий режим [15:50:11]line Чек 78 31.01.2024 15:50 [15:50:11]line Смена: 247 ФФД: 1.0 [15:50:11]line ЗНМ: 0300000040 [15:50:11]line РНМ: 0000000000092723 [15:50:11]line Версия ККМ: 001 [15:50:11]line ФМ: 0000000000875060 [15:50:11]line ФД: 49353 [15:50:11]line ФПД: 98124941844049 [15:50:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T155034&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49353&fm=98124941844049&tin=02508201610067®Number=0000000000092723&sum=30000 [15:50:11]OFD Sender: Processing packet 49353 [packets to send 12, broken 11] [15:50:11]ProducePacketName [15:50:11]name=ofd_packets/00049353 [15:50:11]OFD Sender: To server: pG, [15:50:11]CommunicateWithHost lk.salyk.kg:30040 [15:50:11]ConnectInit lk.salyk.kg [15:50:11]written 0, free lines is 4095 [15:50:11]Connected sock=10 [15:50:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 C4 D0 07 01 E6 A1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 4A 6C BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C9 C0 00 00 35 04 06 00 59 3E 7E 4D 5E 51 90 83 EA 9C BF CF 83 3D [15:50:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 C1 0B 47 00 96 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 35 30 36 30 10 04 04 00 C9 C0 00 00 F4 03 04 00 3C 18 BA 65 B6 04 01 00 00 26 C7 E6 EC 2C CA C4 7C [15:50:12]CommunicateWithHost err = 0 [15:50:12]CheckOFDResponse [15:50:12]1017 (14) - 77093643461234 [15:50:12]1041 (16) - 0000000000875060 [15:50:12]1040 (4) - 49353 [15:50:12]1012 (4) - 31.01.2024 09:51 [15:50:12]1206 (1) - 0 [15:50:12]OFD Sender: Remove packet 49353 [15:50:12]ProducePacketName [15:50:12]name=ofd_packets/00049353 [15:50:12]NVStorageDeleteData [15:50:12]Write to MH i2c: 01 00 00 D1 A1 72 [15:50:12]Write i2c OK [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: 01 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: 01 07 00 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: 01 07 00 D1 A1 00 00 00 00 00 EF 0C 74 [15:50:12]RasterBufferAndPrint [15:50:12]line [15:50:12]line [15:50:12]line [15:50:12]line [15:50:12]line [15:50:12]written 0, free lines is 3317 [15:50:12]MH_Cut [15:50:12]Write to MH i2c: D1 01 00 D8 A1 01 4B [15:50:12]Write i2c OK [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: D1 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: D1 01 00 [15:50:12]MH_I2C_Read... [15:50:12]Read from MH i2c: D1 01 00 D8 A1 00 4A [15:50:12]Write to MH i2c: 01 00 00 D9 A1 7A [15:50:12]Write i2c OK [15:50:12]MH_I2C_Read... [15:50:12]OFD Sender: No OFD packet to send [15:50:12]*** Cut start [15:50:12]*** Partial cut [15:50:12]*** CUTSNS_PIN = 1 [15:50:12]*** CUTSNS_PIN = 0 [15:50:13]*** Brake cut motor [15:50:13]Read from MH i2c: 01 [15:50:13]MH_I2C_Read... [15:50:13]*** Stop cut motor [15:50:13]*** Cut end [15:50:13]Read from MH i2c: 01 07 00 [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: 01 07 00 D9 A1 00 00 00 00 00 FF 0F 8F [15:50:13]process_action close_receipt done [15:50:13]requested_data is exist [15:50:13]produce_requested_data [15:50:13]requested_item fm.sn is exist - process it [15:50:13]wFMCommunicate request_size=4 [15:50:13]MH_SAM_APDU [15:50:13]CAPDU: 80 11 00 00 [15:50:13]Write to MH i2c: E2 08 00 DA A1 80 11 00 00 00 00 00 00 F5 [15:50:13]Write i2c OK [15:50:13]MH_I2C_Read... [15:50:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:13]Read from MH i2c: E2 [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: E2 17 00 [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: E2 17 00 DA A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 42 [15:50:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:50:13]wFMCommunicate OK [15:50:13]requested_item fd.num is exist - process it [15:50:13]SAM_PROTO_GetFieldsCounters [15:50:13]wFMCommunicate request_size=4 [15:50:13]MH_SAM_APDU [15:50:13]CAPDU: 80 13 00 00 [15:50:13]Write to MH i2c: E2 08 00 DB A1 80 13 00 00 00 00 00 00 F8 [15:50:13]Write i2c OK [15:50:13]MH_I2C_Read... [15:50:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:13]Read from MH i2c: E2 [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: E2 62 00 [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: E2 62 00 DB A1 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C9 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [15:50: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 C9 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:13]wFMCommunicate OK [15:50:13]SAM_PROTO_GetFieldsCounters done [15:50:13]requested_item shift.num is exist - process it [15:50:13]requested_item shift.opened is exist - process it [15:50:13]req_shift_opened [15:50:13]FM_GetShiftState [15:50:13]SAM_PROTO_GetShiftState [15:50:13]wFMCommunicate request_size=4 [15:50:13]MH_SAM_APDU [15:50:13]CAPDU: 80 13 01 00 [15:50:13]Write to MH i2c: E2 08 00 DC A1 80 13 01 00 00 00 00 00 FA [15:50:13]Write i2c OK [15:50:13]MH_I2C_Read... [15:50:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:13]Read from MH i2c: E2 [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: E2 0E 00 [15:50:13]MH_I2C_Read... [15:50:13]Read from MH i2c: E2 0E 00 DC A1 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 50 [15:50:13]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [15:50:13]wFMCommunicate OK [15:50:13]SAM_PROTO_GetShiftState done [15:50:13]FM_GetShiftState done [15:50:13]req_shift_opened done [15:50:13]requested_item shift.open_date is exist - process it [15:50:13]req_shift_open_date [15:50:13]req_shift_open_date done [15:50:13]produce_requested_data done [15:50:13]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49353,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [15:50:13]process_action_free close_receipt [15:50:13]json_value_free [15:50:13]json_value_free done [15:50:13]process_json_proto returns [15:50:13]Send response to host [15:50:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49353,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [15:50:13]free response buf [15:50:13]execute_script done [15:50:13]execute_script returns [15:50:13]free content buf [15:50:13]Sock 7.Close socket [15:50:13]Sock 7.Thread stoped [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:51]accept exits with 9 [15:57:51]New connection [15:57:51]New thread 3066670436 created [15:57:51]Thread 3066813796 joined [15:57:51]Waiting for new connection... [15:57:51] Sock 9.Parse request [15:57:51]Sock 9.Check first char [15:57:51]Sock 9.First char is OK [15:57:51]request: POST /json_proto HTTP/1.0 [15:57:51]Method: POST [15:57:51]URL: /json_proto [15:57:51]Method is POST - this is cgi request [15:57:51]url: /json_proto [15:57:51]query_string will be loaded in cgi processing [15:57:51]execute_cgi json_proto POST (null) [15:57:51]execute_cgi path=json_proto method=POST [15:57:51]POST find Content-Length [15:57:51]Host: 172.17.56.67:8080 [15:57:51]Content-Length: 682 [15:57:51]Content-Type: application/json [15:57:51] [15:57:51]POST finish read [15:57:51]Found Content-Length = 682 [15:57:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:51]execute_script... [15:57:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:57:51]POST & json_proto [15:57:51]process_json_proto [15:57:51]json parsed OK: [15:57:51]protocol is kg_v1.0 [15:57:51]action value=close_receipt [15:57:51]process_action close_receipt [15:57:51]cmd_close_receipt [15:57:51]MH_GetDate [15:57:51]Write to MH i2c: F0 00 00 DD A1 6D [15:57:51]Write i2c OK [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: F0 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: F0 09 00 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: F0 09 00 DD A1 00 17 6E BA 65 26 5D 9E 65 A0 [15:57:51]GetLastDocTimeStamp 1706716234 [15:57:51]current date 1706716695 [15:57:51]FM_GetShiftState [15:57:51]SAM_PROTO_GetShiftState [15:57:51]wFMCommunicate request_size=4 [15:57:51]MH_SAM_APDU [15:57:51]CAPDU: 80 13 01 00 [15:57:51]Write to MH i2c: E2 08 00 DE A1 80 13 01 00 00 00 00 00 FC [15:57:51]Write i2c OK [15:57:51]MH_I2C_Read... [15:57:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:51]Read from MH i2c: E2 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 0E 00 [15:57:51]MH_I2C_Read... [15:57:51]Read from MH i2c: E2 0E 00 DE A1 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 52 [15:57:51]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [15:57:51]wFMCommunicate OK [15:57:51]SAM_PROTO_GetShiftState done [15:57:51]FM_GetShiftState done [15:57:51]opened in 1706659486 [15:57:51]opened+sec_in_day 1706745886 [15:57:51]quantity*price = 100037 [15:57:51]sum+1 = 100039 [15:57:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 79 31.01.2024 15:58 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49354 ФПД: 71007797514665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T155815&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49354&fm=71007797514665&tin=02508201610067®Number=0000000000092723&sum=100000 [15:57:52]StoreToDocumentArchive [15:57:52]shift 247 fd 49354 [15:57:52]save to /storage/0247/doc_00049354 [15:57:52]save last doc name /storage/0247/doc_00049354 to /storage/kkm_last_doc_name [15:57:52]save OK [15:57:52]Clear old archive folders... [15:57:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:57:52]tlvbuf is 014CFC60 [15:57:52]SAM_PROTO_ClearQueue [15:57:52]wFMCommunicate request_size=4 [15:57:52]MH_SAM_APDU [15:57:52]CAPDU: 80 09 00 00 [15:57:52]Write to MH i2c: E2 08 00 EB A1 80 09 00 00 00 00 00 00 FE [15:57:52]Write i2c OK [15:57:52]MH_I2C_Read... [15:57:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:57:52]Read from MH i2c: E2 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: E2 03 00 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: E2 03 00 EB A1 00 90 00 00 [15:57:52]RAPDU: 90 00 [15:57:52]wFMCommunicate OK [15:57:52]SAM_PROTO_ClearQueue done [15:57:52]KKMCreateOFDPacket [15:57:52]OFDProtocolAddRootSTLVToBuf [15:57:52]FM_MakeSignedData [15:57:52]FM_MakeSignedData [15:57:52]SAM_PROTO_SignData [15:57:52]wFMCommunicate request_size=4 [15:57:52]MH_SAM_APDU [15:57:52]CAPDU: 80 0D 01 02 [15:57:52]Write to MH i2c: E2 08 00 EC A1 80 0D 01 02 00 00 00 00 06 [15:57:52]Write i2c OK [15:57:52]MH_I2C_Read... [15:57:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:57:52]Read from MH i2c: E2 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: E2 03 00 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: E2 03 00 EC A1 00 90 00 01 [15:57:52]RAPDU: 90 00 [15:57:52]wFMCommunicate OK [15:57:52]wFMCommunicate request_size=255 [15:57:52]MH_SAM_APDU [15:57:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 17 6E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CA C0 00 00 35 04 06 00 40 [15:57:52]Write to MH i2c: E2 02 01 ED A1 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 17 6E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CA C0 00 00 35 04 06 00 40 00 00 2A [15:57:52]Write i2c OK [15:57:52]MH_I2C_Read... [15:57:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:52]Read from MH i2c: E2 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: E2 03 00 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: E2 03 00 ED A1 00 90 00 02 [15:57:52]RAPDU: 90 00 [15:57:52]wFMCommunicate OK [15:57:52]wFMCommunicate request_size=10 [15:57:52]MH_SAM_APDU [15:57:52]CAPDU: 80 0D 02 02 05 94 CA 8C 11 A9 [15:57:52]Write to MH i2c: E2 0D 00 EE A1 80 0D 02 02 05 00 94 CA 8C 11 A9 00 00 B7 [15:57:52]Write i2c OK [15:57:52]MH_I2C_Read... [15:57:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:57:52]Read from MH i2c: E2 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: E2 03 00 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: E2 03 00 EE A1 00 90 00 03 [15:57:52]RAPDU: 90 00 [15:57:52]wFMCommunicate OK [15:57:52]wFMCommunicate request_size=4 [15:57:52]MH_SAM_APDU [15:57:52]CAPDU: 80 0D 03 02 [15:57:52]Write to MH i2c: E2 08 00 EF A1 80 0D 03 02 00 00 00 00 0B [15:57:52]Write i2c OK [15:57:52]MH_I2C_Read... [15:57:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:57:52]Read from MH i2c: E2 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: E2 0B 00 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: E2 0B 00 EF A1 00 C2 C8 FE B7 34 C8 25 34 90 00 A0 [15:57:52]RAPDU: C2 C8 FE B7 34 C8 25 34 90 00 [15:57:52]wFMCommunicate OK [15:57:52]SAM_PROTO_SignData done [15:57:52]FM_MakeSignedData done [15:57:52]CreateOFDProtocolMessage [15:57:52]wFMCommunicate request_size=4 [15:57:52]MH_SAM_APDU [15:57:52]CAPDU: 80 11 00 00 [15:57:52]Write to MH i2c: E2 08 00 F0 A1 80 11 00 00 00 00 00 00 0B [15:57:52]Write i2c OK [15:57:52]MH_I2C_Read... [15:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:52]Read from MH i2c: E2 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: E2 17 00 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: E2 17 00 F0 A1 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 58 [15:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:57:52]wFMCommunicate OK [15:57:52]CreateOFDProtocolMessage done [15:57:52]OFDSenderStorePacket 49354 [15:57:52]StoreOFDPacket docnum=49354 [15:57:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 38 D6 07 01 37 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 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 17 6E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CA C0 00 00 35 04 06 00 40 94 CA 8C 11 A9 C2 C8 FE B7 34 C8 25 34 [15:57:52]CheckFolder [15:57:52]dirname=/storage/ofd_packets [15:57:52]CheckFolder done [15:57:52]ProducePacketName [15:57:52]name=ofd_packets/00049354 [15:57:52]NVStorageSaveData ofd_packets/00049354 [15:57:52]File name is /storage/ofd_packets/00049354 [15:57:52]Write 301 bytes [15:57:52]NVStorageSaveData done [15:57:52]OFDSenderStorePacket done [15:57:52]KKMCreateOFDPacket done [15:57:52]NVStorageSaveData kkm_last_timestamp [15:57:52]File name is /storage/kkm_last_timestamp [15:57:52]Write 4 bytes [15:57:52]NVStorageSaveData done [15:57:52]ExternCall_PrintAddStr [15:57:52]wPrintStart [15:57:52]Write to MH i2c: 01 00 00 F1 A1 92 [15:57:52]Write i2c OK [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: 01 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: 01 07 00 [15:57:52]MH_I2C_Read... [15:57:52]Read from MH i2c: 01 07 00 F1 A1 00 00 00 00 00 FF 0F A7 [15:57:52]RasterBufferAndPrint [15:57:52]line Счет N : (1)216458 [15:57:52]line ИНН: 02508201610067 [15:57:52]line Контрольно-Кассовый Чек [15:57:52]line ПРОДАЖА [15:57:52]line ТРК (МРК, ГНК) : 12 [15:57:52]line Товар: 2710124130 [15:57:52]line Аи-92-К-5 [15:57:52]line 16.590 * 60.30 [15:57:52]line = 1000.38 [15:57:52]line НДС 12% НСП 1% [15:57:52]line > о реализуемом товаре [15:57:52]line ОКРУГЛЕНИЕ: -0.38 [15:57:52]line ИТОГО: 1000.00 [15:57:52]line Внесено: 1000.00 [15:57:52]line СДАЧА: 0.00 [15:57:52]line НСП 1% : 8.85 [15:57:52]line НДС 12% : 106.23 [15:57:52]line Наличными: 1000.00 [15:57:52]line Безнал.: 0.00 [15:57:52]line Место: АЗС № 102 "Партнер Нефть" [15:57:52]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:57:52]line СНО: Общий режим [15:57:52]line Чек 79 31.01.2024 15:58 [15:57:52]line Смена: 247 ФФД: 1.0 [15:57:52]line ЗНМ: 0300000040 [15:57:52]line РНМ: 0000000000092723 [15:57:52]line Версия ККМ: 001 [15:57:52]line ФМ: 0000000000875060 [15:57:52]line ФД: 49354 [15:57:53]line ФПД: 71007797514665 [15:57:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T155815&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49354&fm=71007797514665&tin=02508201610067®Number=0000000000092723&sum=100000 [15:57:53]OFD Sender: Processing packet 49354 [packets to send 12, broken 11] [15:57:53]ProducePacketName [15:57:53]name=ofd_packets/00049354 [15:57:53]OFD Sender: To server: pG, [15:57:53]CommunicateWithHost lk.salyk.kg:30040 [15:57:53]ConnectInit lk.salyk.kg [15:57:53]written 0, free lines is 4095 [15:57:53]Connected sock=10 [15:57:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 38 D6 07 01 37 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 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 17 6E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CA C0 00 00 35 04 06 00 40 94 CA 8C 11 A9 C2 C8 FE B7 34 C8 25 34 [15:57:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 7B B2 47 00 73 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 35 30 36 30 10 04 04 00 CA C0 00 00 F4 03 04 00 09 1A BA 65 B6 04 01 00 00 9B 01 21 73 3B BA 68 B3 [15:57:53]CommunicateWithHost err = 0 [15:57:53]CheckOFDResponse [15:57:53]1017 (14) - 77093643461234 [15:57:53]1041 (16) - 0000000000875060 [15:57:53]1040 (4) - 49354 [15:57:53]1012 (4) - 31.01.2024 09:59 [15:57:53]1206 (1) - 0 [15:57:53]OFD Sender: Remove packet 49354 [15:57:53]ProducePacketName [15:57:53]name=ofd_packets/00049354 [15:57:53]NVStorageDeleteData [15:57:53]Write to MH i2c: 01 00 00 1C A2 BE [15:57:53]Write i2c OK [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: 01 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: 01 07 00 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: 01 07 00 1C A2 00 00 00 00 00 EC 0C BD [15:57:53]RasterBufferAndPrint [15:57:53]line [15:57:53]line [15:57:53]line [15:57:53]line [15:57:53]line [15:57:53]written 0, free lines is 3314 [15:57:53]MH_Cut [15:57:53]Write to MH i2c: D1 01 00 23 A2 01 97 [15:57:53]Write i2c OK [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: D1 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: D1 01 00 [15:57:53]MH_I2C_Read... [15:57:53]Read from MH i2c: D1 01 00 23 A2 00 96 [15:57:53]Write to MH i2c: 01 00 00 24 A2 C6 [15:57:53]Write i2c OK [15:57:53]MH_I2C_Read... [15:57:53]OFD Sender: No OFD packet to send [15:57:54]*** Cut start [15:57:54]*** Partial cut [15:57:54]*** CUTSNS_PIN = 1 [15:57:54]*** CUTSNS_PIN = 0 [15:57:54]*** Brake cut motor [15:57:54]Read from MH i2c: 01 [15:57:54]MH_I2C_Read... [15:57:54]*** Stop cut motor [15:57:54]*** Cut end [15:57:54]Read from MH i2c: 01 07 00 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: 01 07 00 24 A2 00 00 00 00 00 FF 0F DB [15:57:54]process_action close_receipt done [15:57:54]requested_data is exist [15:57:54]produce_requested_data [15:57:54]requested_item fm.sn is exist - process it [15:57:54]wFMCommunicate request_size=4 [15:57:54]MH_SAM_APDU [15:57:54]CAPDU: 80 11 00 00 [15:57:54]Write to MH i2c: E2 08 00 25 A2 80 11 00 00 00 00 00 00 41 [15:57:54]Write i2c OK [15:57:54]MH_I2C_Read... [15:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:57:54]Read from MH i2c: E2 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: E2 17 00 [15:57:54]MH_I2C_Read... [15:57:54]Read from MH i2c: E2 17 00 25 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8E [15:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:57:54]wFMCommunicate OK [15:57:54]requested_item fd.num is exist - process it [15:57:54]SAM_PROTO_GetFieldsCounters [15:57:54]wFMCommunicate request_size=4 [15:57:54]MH_SAM_APDU [15:57:54]CAPDU: 80 13 00 00 [15:57:54]Write to MH i2c: E2 08 00 26 A2 80 13 00 00 00 00 00 00 44 [15:57:54]Write i2c OK [15:57:54]MH_I2C_Read... [15:57:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:57:55]Read from MH i2c: E2 [15:57:55]MH_I2C_Read... [15:57:55]Read from MH i2c: E2 62 00 [15:57:55]MH_I2C_Read... [15:57:55]Read from MH i2c: E2 62 00 26 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CA C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [15:57: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CA C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:57:55]wFMCommunicate OK [15:57:55]SAM_PROTO_GetFieldsCounters done [15:57:55]requested_item shift.num is exist - process it [15:57:55]requested_item shift.opened is exist - process it [15:57:55]req_shift_opened [15:57:55]FM_GetShiftState [15:57:55]SAM_PROTO_GetShiftState [15:57:55]wFMCommunicate request_size=4 [15:57:55]MH_SAM_APDU [15:57:55]CAPDU: 80 13 01 00 [15:57:55]Write to MH i2c: E2 08 00 27 A2 80 13 01 00 00 00 00 00 46 [15:57:55]Write i2c OK [15:57:55]MH_I2C_Read... [15:57:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:57:55]Read from MH i2c: E2 [15:57:55]MH_I2C_Read... [15:57:55]Read from MH i2c: E2 0E 00 [15:57:55]MH_I2C_Read... [15:57:55]Read from MH i2c: E2 0E 00 27 A2 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 9C [15:57:55]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [15:57:55]wFMCommunicate OK [15:57:55]SAM_PROTO_GetShiftState done [15:57:55]FM_GetShiftState done [15:57:55]req_shift_opened done [15:57:55]requested_item shift.open_date is exist - process it [15:57:55]req_shift_open_date [15:57:55]req_shift_open_date done [15:57:55]produce_requested_data done [15:57:55]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49354,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [15:57:55]process_action_free close_receipt [15:57:55]json_value_free [15:57:55]json_value_free done [15:57:55]process_json_proto returns [15:57:55]Send response to host [15:57:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49354,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [15:57:55]free response buf [15:57:55]execute_script done [15:57:55]execute_script returns [15:57:55]free content buf [15:57:55]Sock 9.Close socket [15:57:55]Sock 9.Thread stoped [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:25]accept exits with 7 [16:00:25]New connection [16:00:25]New thread 3066813796 created [16:00:25]Thread 3066670436 joined [16:00:25]Waiting for new connection... [16:00:25] Sock 7.Parse request [16:00:25]Sock 7.Check first char [16:00:25]Sock 7.First char is OK [16:00:25]request: POST /json_proto HTTP/1.0 [16:00:25]Method: POST [16:00:25]URL: /json_proto [16:00:25]Method is POST - this is cgi request [16:00:25]url: /json_proto [16:00:25]query_string will be loaded in cgi processing [16:00:25]execute_cgi json_proto POST (null) [16:00:25]execute_cgi path=json_proto method=POST [16:00:25]POST find Content-Length [16:00:25]Host: 172.17.56.67:8080 [16:00:25]Content-Length: 677 [16:00:25]Content-Type: application/json [16:00:25] [16:00:25]POST finish read [16:00:25]Found Content-Length = 677 [16:00:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:25]execute_script... [16:00: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)216459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:25]POST & json_proto [16:00:25]process_json_proto [16:00:25]json parsed OK: [16:00:25]protocol is kg_v1.0 [16:00:25]action value=close_receipt [16:00:25]process_action close_receipt [16:00:25]cmd_close_receipt [16:00:25]MH_GetDate [16:00:25]Write to MH i2c: F0 00 00 28 A2 B9 [16:00:25]Write i2c OK [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: F0 [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: F0 09 00 [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: F0 09 00 28 A2 00 B2 6E BA 65 26 5D 9E 65 87 [16:00:25]GetLastDocTimeStamp 1706716695 [16:00:25]current date 1706716850 [16:00:25]FM_GetShiftState [16:00:25]SAM_PROTO_GetShiftState [16:00:25]wFMCommunicate request_size=4 [16:00:25]MH_SAM_APDU [16:00:25]CAPDU: 80 13 01 00 [16:00:25]Write to MH i2c: E2 08 00 29 A2 80 13 01 00 00 00 00 00 48 [16:00:25]Write i2c OK [16:00:25]MH_I2C_Read... [16:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:25]Read from MH i2c: E2 [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: E2 0E 00 [16:00:25]MH_I2C_Read... [16:00:25]Read from MH i2c: E2 0E 00 29 A2 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 9E [16:00:25]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [16:00:25]wFMCommunicate OK [16:00:25]SAM_PROTO_GetShiftState done [16:00:25]FM_GetShiftState done [16:00:25]opened in 1706659486 [16:00:25]opened+sec_in_day 1706745886 [16:00:25]quantity*price = 20019 [16:00:25]sum+1 = 20021 [16:00:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 80 31.01.2024 16:00 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49355 ФПД: 124415105498765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T160050&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49355&fm=124415105498765&tin=02508201610067®Number=0000000000092723&sum=20000 [16:00:27]StoreToDocumentArchive [16:00:27]shift 247 fd 49355 [16:00:27]save to /storage/0247/doc_00049355 [16:00:27]save last doc name /storage/0247/doc_00049355 to /storage/kkm_last_doc_name [16:00:27]save OK [16:00:27]Clear old archive folders... [16:00:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:27]tlvbuf is 013EDBE0 [16:00:27]SAM_PROTO_ClearQueue [16:00:27]wFMCommunicate request_size=4 [16:00:27]MH_SAM_APDU [16:00:27]CAPDU: 80 09 00 00 [16:00:27]Write to MH i2c: E2 08 00 36 A2 80 09 00 00 00 00 00 00 4A [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:27]Read from MH i2c: E2 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 03 00 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 03 00 36 A2 00 90 00 4C [16:00:27]RAPDU: 90 00 [16:00:27]wFMCommunicate OK [16:00:27]SAM_PROTO_ClearQueue done [16:00:27]KKMCreateOFDPacket [16:00:27]OFDProtocolAddRootSTLVToBuf [16:00:27]FM_MakeSignedData [16:00:27]FM_MakeSignedData [16:00:27]SAM_PROTO_SignData [16:00:27]wFMCommunicate request_size=4 [16:00:27]MH_SAM_APDU [16:00:27]CAPDU: 80 0D 01 02 [16:00:27]Write to MH i2c: E2 08 00 37 A2 80 0D 01 02 00 00 00 00 52 [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:27]Read from MH i2c: E2 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 03 00 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 03 00 37 A2 00 90 00 4D [16:00:27]RAPDU: 90 00 [16:00:27]wFMCommunicate OK [16:00:27]wFMCommunicate request_size=255 [16:00:27]MH_SAM_APDU [16:00:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 50 00 00 00 F4 03 04 00 B2 6E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CB C0 00 00 35 04 06 00 71 [16:00:27]Write to MH i2c: E2 02 01 38 A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 50 00 00 00 F4 03 04 00 B2 6E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CB C0 00 00 35 04 06 00 71 00 00 E4 [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:27]Read from MH i2c: E2 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 03 00 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 03 00 38 A2 00 90 00 4E [16:00:27]RAPDU: 90 00 [16:00:27]wFMCommunicate OK [16:00:27]wFMCommunicate request_size=10 [16:00:27]MH_SAM_APDU [16:00:27]CAPDU: 80 0D 02 02 05 27 A6 2A FE 8D [16:00:27]Write to MH i2c: E2 0D 00 39 A2 80 0D 02 02 05 00 27 A6 2A FE 8D 00 00 E1 [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:27]Read from MH i2c: E2 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 03 00 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 03 00 39 A2 00 90 00 4F [16:00:27]RAPDU: 90 00 [16:00:27]wFMCommunicate OK [16:00:27]wFMCommunicate request_size=4 [16:00:27]MH_SAM_APDU [16:00:27]CAPDU: 80 0D 03 02 [16:00:27]Write to MH i2c: E2 08 00 3A A2 80 0D 03 02 00 00 00 00 57 [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:27]Read from MH i2c: E2 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 0B 00 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 0B 00 3A A2 00 7A 0A BA E6 AD 33 99 82 90 00 77 [16:00:27]RAPDU: 7A 0A BA E6 AD 33 99 82 90 00 [16:00:27]wFMCommunicate OK [16:00:27]SAM_PROTO_SignData done [16:00:27]FM_MakeSignedData done [16:00:27]CreateOFDProtocolMessage [16:00:27]wFMCommunicate request_size=4 [16:00:27]MH_SAM_APDU [16:00:27]CAPDU: 80 11 00 00 [16:00:27]Write to MH i2c: E2 08 00 3B A2 80 11 00 00 00 00 00 00 57 [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:27]Read from MH i2c: E2 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 17 00 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: E2 17 00 3B A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A4 [16:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:00:27]wFMCommunicate OK [16:00:27]CreateOFDProtocolMessage done [16:00:27]OFDSenderStorePacket 49355 [16:00:27]StoreOFDPacket docnum=49355 [16:00:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 99 17 07 01 43 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 50 00 00 00 F4 03 04 00 B2 6E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CB C0 00 00 35 04 06 00 71 27 A6 2A FE 8D 7A 0A BA E6 AD 33 99 82 [16:00:27]CheckFolder [16:00:27]dirname=/storage/ofd_packets [16:00:27]CheckFolder done [16:00:27]ProducePacketName [16:00:27]name=ofd_packets/00049355 [16:00:27]NVStorageSaveData ofd_packets/00049355 [16:00:27]File name is /storage/ofd_packets/00049355 [16:00:27]Write 301 bytes [16:00:27]NVStorageSaveData done [16:00:27]OFDSenderStorePacket done [16:00:27]KKMCreateOFDPacket done [16:00:27]NVStorageSaveData kkm_last_timestamp [16:00:27]File name is /storage/kkm_last_timestamp [16:00:27]Write 4 bytes [16:00:27]NVStorageSaveData done [16:00:27]ExternCall_PrintAddStr [16:00:27]wPrintStart [16:00:27]Write to MH i2c: 01 00 00 3C A2 DE [16:00:27]Write i2c OK [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: 01 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: 01 07 00 [16:00:27]MH_I2C_Read... [16:00:27]Read from MH i2c: 01 07 00 3C A2 00 00 00 00 00 FF 0F F3 [16:00:27]RasterBufferAndPrint [16:00:27]line Счет N : (1)216459 [16:00:27]line ИНН: 02508201610067 [16:00:27]line Контрольно-Кассовый Чек [16:00:27]line ПРОДАЖА [16:00:27]line ТРК (МРК, ГНК) : 22 [16:00:27]line Товар: 2710124130 [16:00:27]line Аи-92-К-5 [16:00:27]line 3.320 * 60.30 [16:00:27]line = 200.20 [16:00:27]line НДС 12% НСП 1% [16:00:27]line > о реализуемом товаре [16:00:27]line ОКРУГЛЕНИЕ: -0.20 [16:00:27]line ИТОГО: 200.00 [16:00:27]line Внесено: 200.00 [16:00:27]line СДАЧА: 0.00 [16:00:27]line НСП 1% : 1.77 [16:00:27]line НДС 12% : 21.26 [16:00:27]line Наличными: 200.00 [16:00:27]line Безнал.: 0.00 [16:00:27]line Место: АЗС № 102 "Партнер Нефть" [16:00:27]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:00:27]line СНО: Общий режим [16:00:27]line Чек 80 31.01.2024 16:00 [16:00:27]line Смена: 247 ФФД: 1.0 [16:00:27]line ЗНМ: 0300000040 [16:00:27]line РНМ: 0000000000092723 [16:00:27]line Версия ККМ: 001 [16:00:27]line ФМ: 0000000000875060 [16:00:27]line ФД: 49355 [16:00:27]line ФПД: 124415105498765 [16:00:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T160050&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49355&fm=124415105498765&tin=02508201610067®Number=0000000000092723&sum=20000 [16:00:27]OFD Sender: Processing packet 49355 [packets to send 12, broken 11] [16:00:27]ProducePacketName [16:00:27]name=ofd_packets/00049355 [16:00:27]OFD Sender: To server: pG, [16:00:27]CommunicateWithHost lk.salyk.kg:30040 [16:00:27]ConnectInit lk.salyk.kg [16:00:27]written 0, free lines is 4095 [16:00:28]Connected sock=10 [16:00:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 99 17 07 01 43 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 50 00 00 00 F4 03 04 00 B2 6E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CB C0 00 00 35 04 06 00 71 27 A6 2A FE 8D 7A 0A BA E6 AD 33 99 82 [16:00:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 F4 AD 47 00 E2 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 35 30 36 30 10 04 04 00 CB C0 00 00 F4 03 04 00 A4 1A BA 65 B6 04 01 00 00 0E EF AD AA 9A 3F 37 90 [16:00:28]CommunicateWithHost err = 0 [16:00:28]CheckOFDResponse [16:00:28]1017 (14) - 77093643461234 [16:00:28]1041 (16) - 0000000000875060 [16:00:28]1040 (4) - 49355 [16:00:28]1012 (4) - 31.01.2024 10:02 [16:00:28]1206 (1) - 0 [16:00:28]OFD Sender: Remove packet 49355 [16:00:28]ProducePacketName [16:00:28]name=ofd_packets/00049355 [16:00:28]NVStorageDeleteData [16:00:28]Write to MH i2c: 01 00 00 67 A2 09 [16:00:28]Write i2c OK [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: 01 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: 01 07 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: 01 07 00 67 A2 00 00 00 00 00 E6 0C 02 [16:00:28]RasterBufferAndPrint [16:00:28]line [16:00:28]line [16:00:28]line [16:00:28]line [16:00:28]line [16:00:28]written 0, free lines is 3308 [16:00:28]MH_Cut [16:00:28]Write to MH i2c: D1 01 00 6E A2 01 E2 [16:00:28]Write i2c OK [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: D1 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: D1 01 00 [16:00:28]MH_I2C_Read... [16:00:28]Read from MH i2c: D1 01 00 6E A2 00 E1 [16:00:28]Write to MH i2c: 01 00 00 6F A2 11 [16:00:28]Write i2c OK [16:00:28]MH_I2C_Read... [16:00:28]OFD Sender: No OFD packet to send [16:00:29]*** Cut start [16:00:29]*** Partial cut [16:00:29]*** CUTSNS_PIN = 1 [16:00:29]*** CUTSNS_PIN = 0 [16:00:29]*** Brake cut motor [16:00:29]Read from MH i2c: 01 [16:00:29]MH_I2C_Read... [16:00:29]*** Stop cut motor [16:00:29]*** Cut end [16:00:29]Read from MH i2c: 01 07 00 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: 01 07 00 6F A2 00 00 00 00 00 FF 0F 26 [16:00:29]process_action close_receipt done [16:00:29]requested_data is exist [16:00:29]produce_requested_data [16:00:29]requested_item fm.sn is exist - process it [16:00:29]wFMCommunicate request_size=4 [16:00:29]MH_SAM_APDU [16:00:29]CAPDU: 80 11 00 00 [16:00:29]Write to MH i2c: E2 08 00 70 A2 80 11 00 00 00 00 00 00 8C [16:00:29]Write i2c OK [16:00:29]MH_I2C_Read... [16:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:29]Read from MH i2c: E2 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 17 00 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 17 00 70 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D9 [16:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:00:29]wFMCommunicate OK [16:00:29]requested_item fd.num is exist - process it [16:00:29]SAM_PROTO_GetFieldsCounters [16:00:29]wFMCommunicate request_size=4 [16:00:29]MH_SAM_APDU [16:00:29]CAPDU: 80 13 00 00 [16:00:29]Write to MH i2c: E2 08 00 71 A2 80 13 00 00 00 00 00 00 8F [16:00:29]Write i2c OK [16:00:29]MH_I2C_Read... [16:00:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:29]Read from MH i2c: E2 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 62 00 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 62 00 71 A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CB C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [16:00: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CB C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:29]wFMCommunicate OK [16:00:29]SAM_PROTO_GetFieldsCounters done [16:00:29]requested_item shift.num is exist - process it [16:00:29]requested_item shift.opened is exist - process it [16:00:29]req_shift_opened [16:00:29]FM_GetShiftState [16:00:29]SAM_PROTO_GetShiftState [16:00:29]wFMCommunicate request_size=4 [16:00:29]MH_SAM_APDU [16:00:29]CAPDU: 80 13 01 00 [16:00:29]Write to MH i2c: E2 08 00 72 A2 80 13 01 00 00 00 00 00 91 [16:00:29]Write i2c OK [16:00:29]MH_I2C_Read... [16:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:29]Read from MH i2c: E2 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 0E 00 [16:00:29]MH_I2C_Read... [16:00:29]Read from MH i2c: E2 0E 00 72 A2 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 E7 [16:00:29]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [16:00:29]wFMCommunicate OK [16:00:29]SAM_PROTO_GetShiftState done [16:00:29]FM_GetShiftState done [16:00:29]req_shift_opened done [16:00:29]requested_item shift.open_date is exist - process it [16:00:29]req_shift_open_date [16:00:29]req_shift_open_date done [16:00:29]produce_requested_data done [16:00:29]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49355,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [16:00:29]process_action_free close_receipt [16:00:29]json_value_free [16:00:29]json_value_free done [16:00:29]process_json_proto returns [16:00:29]Send response to host [16:00:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49355,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [16:00:29]free response buf [16:00:29]execute_script done [16:00:29]execute_script returns [16:00:29]free content buf [16:00:29]Sock 7.Close socket [16:00:29]Sock 7.Thread stoped [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:23]OFD Sender: No OFD packet to send [16:05:28]OFD Sender: No OFD packet to send [16:05:34]OFD Sender: No OFD packet to send [16:05:39]OFD Sender: No OFD packet to send [16:05:44]OFD Sender: No OFD packet to send [16:05:49]OFD Sender: No OFD packet to send [16:05:54]OFD Sender: No OFD packet to send [16:05:59]OFD Sender: No OFD packet to send [16:06:04]OFD Sender: No OFD packet to send [16:06:09]OFD Sender: No OFD packet to send [16:06:14]OFD Sender: No OFD packet to send [16:06:19]OFD Sender: No OFD packet to send [16:06:24]OFD Sender: No OFD packet to send [16:06:29]OFD Sender: No OFD packet to send [16:06:34]OFD Sender: No OFD packet to send [16:06:39]OFD Sender: No OFD packet to send [16:06:44]OFD Sender: No OFD packet to send [16:06:49]OFD Sender: No OFD packet to send [16:06:54]OFD Sender: No OFD packet to send [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:19]OFD Sender: No OFD packet to send [16:07:24]OFD Sender: No OFD packet to send [16:07:29]OFD Sender: No OFD packet to send [16:07:34]OFD Sender: No OFD packet to send [16:07:39]OFD Sender: No OFD packet to send [16:07:44]OFD Sender: No OFD packet to send [16:07:49]OFD Sender: No OFD packet to send [16:07:54]OFD Sender: No OFD packet to send [16:07:59]OFD Sender: No OFD packet to send [16:08:04]OFD Sender: No OFD packet to send [16:08:09]OFD Sender: No OFD packet to send [16:08:14]OFD Sender: No OFD packet to send [16:08:19]OFD Sender: No OFD packet to send [16:08:24]OFD Sender: No OFD packet to send [16:08:29]OFD Sender: No OFD packet to send [16:08:34]OFD Sender: No OFD packet to send [16:08:39]OFD Sender: No OFD packet to send [16:08:44]OFD Sender: No OFD packet to send [16:08:49]OFD Sender: No OFD packet to send [16:08:54]OFD Sender: No OFD packet to send [16:08:59]OFD Sender: No OFD packet to send [16:09:04]OFD Sender: No OFD packet to send [16:09:09]OFD Sender: No OFD packet to send [16:09:14]OFD Sender: No OFD packet to send [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:44]OFD Sender: No OFD packet to send [16:09:49]OFD Sender: No OFD packet to send [16:09:54]OFD Sender: No OFD packet to send [16:09:59]OFD Sender: No OFD packet to send [16:10:04]OFD Sender: No OFD packet to send [16:10:09]OFD Sender: No OFD packet to send [16:10:14]OFD Sender: No OFD packet to send [16:10:19]OFD Sender: No OFD packet to send [16:10:24]OFD Sender: No OFD packet to send [16:10:29]OFD Sender: No OFD packet to send [16:10:34]OFD Sender: No OFD packet to send [16:10:39]OFD Sender: No OFD packet to send [16:10:44]OFD Sender: No OFD packet to send [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:19]OFD Sender: No OFD packet to send [16:11:24]OFD Sender: No OFD packet to send [16:11:29]OFD Sender: No OFD packet to send [16:11:34]OFD Sender: No OFD packet to send [16:11:39]OFD Sender: No OFD packet to send [16:11:44]OFD Sender: No OFD packet to send [16:11:49]OFD Sender: No OFD packet to send [16:11:54]OFD Sender: No OFD packet to send [16:11:59]OFD Sender: No OFD packet to send [16:12:04]OFD Sender: No OFD packet to send [16:12:09]OFD Sender: No OFD packet to send [16:12:14]OFD Sender: No OFD packet to send [16:12:19]OFD Sender: No OFD packet to send [16:12:24]OFD Sender: No OFD packet to send [16:12:29]OFD Sender: No OFD packet to send [16:12:34]OFD Sender: No OFD packet to send [16:12:39]OFD Sender: No OFD packet to send [16:12:44]OFD Sender: No OFD packet to send [16:12:49]OFD Sender: No OFD packet to send [16:12:54]OFD Sender: No OFD packet to send [16:12:59]OFD Sender: No OFD packet to send [16:13:04]OFD Sender: No OFD packet to send [16:13:09]OFD Sender: No OFD packet to send [16:13:14]OFD Sender: No OFD packet to send [16:13:19]OFD Sender: No OFD packet to send [16:13:24]OFD Sender: No OFD packet to send [16:13:29]OFD Sender: No OFD packet to send [16:13:34]OFD Sender: No OFD packet to send [16:13:39]OFD Sender: No OFD packet to send [16:13:44]OFD Sender: No OFD packet to send [16:13:49]OFD Sender: No OFD packet to send [16:13:54]OFD Sender: No OFD packet to send [16:13:59]OFD Sender: No OFD packet to send [16:14:04]OFD Sender: No OFD packet to send [16:14:09]OFD Sender: No OFD packet to send [16:14:14]OFD Sender: No OFD packet to send [16:14:19]OFD Sender: No OFD packet to send [16:14:24]OFD Sender: No OFD packet to send [16:14:29]OFD Sender: No OFD packet to send [16:14:34]OFD Sender: No OFD packet to send [16:14:39]OFD Sender: No OFD packet to send [16:14:44]OFD Sender: No OFD packet to send [16:14:49]OFD Sender: No OFD packet to send [16:14:54]OFD Sender: No OFD packet to send [16:14:59]OFD Sender: No OFD packet to send [16:15:04]OFD Sender: No OFD packet to send [16:15:09]OFD Sender: No OFD packet to send [16:15:14]OFD Sender: No OFD packet to send [16:15:19]OFD Sender: No OFD packet to send [16:15:24]OFD Sender: No OFD packet to send [16:15:29]OFD Sender: No OFD packet to send [16:15:34]OFD Sender: No OFD packet to send [16:15:39]OFD Sender: No OFD packet to send [16:15:44]OFD Sender: No OFD packet to send [16:15:49]OFD Sender: No OFD packet to send [16:15:54]OFD Sender: No OFD packet to send [16:15:59]OFD Sender: No OFD packet to send [16:16:04]OFD Sender: No OFD packet to send [16:16:09]OFD Sender: No OFD packet to send [16:16:14]OFD Sender: No OFD packet to send [16:16:19]OFD Sender: No OFD packet to send [16:16:24]OFD Sender: No OFD packet to send [16:16:29]OFD Sender: No OFD packet to send [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:20]accept exits with 9 [16:17:20]New connection [16:17:20]New thread 3066670436 created [16:17:20]Thread 3066813796 joined [16:17:20]Waiting for new connection... [16:17:20] Sock 9.Parse request [16:17:20]Sock 9.Check first char [16:17:20]Sock 9.First char is OK [16:17:20]request: POST /json_proto HTTP/1.0 [16:17:20]Method: POST [16:17:20]URL: /json_proto [16:17:20]Method is POST - this is cgi request [16:17:20]url: /json_proto [16:17:20]query_string will be loaded in cgi processing [16:17:20]execute_cgi json_proto POST (null) [16:17:20]execute_cgi path=json_proto method=POST [16:17:20]POST find Content-Length [16:17:20]Host: 172.17.56.67:8080 [16:17:20]Content-Length: 673 [16:17:20]Content-Type: application/json [16:17:20] [16:17:20]POST finish read [16:17:20]Found Content-Length = 673 [16:17:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.000, "sum" : 60.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 60.00, "total" : 60.00, "payments": [ { "type": 0, "sum" : 60.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:20]execute_script... [16:17: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)216460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 1.000, "sum" : 60.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 60.00, "total" : 60.00, "payments": [ { "type": 0, "sum" : 60.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:20]POST & json_proto [16:17:20]process_json_proto [16:17:20]json parsed OK: [16:17:20]protocol is kg_v1.0 [16:17:20]action value=close_receipt [16:17:20]process_action close_receipt [16:17:20]cmd_close_receipt [16:17:20]MH_GetDate [16:17:20]Write to MH i2c: F0 00 00 73 A2 04 [16:17:20]Write i2c OK [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: F0 [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: F0 09 00 [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: F0 09 00 73 A2 00 A9 72 BA 65 26 5D 9E 65 CD [16:17:20]GetLastDocTimeStamp 1706716850 [16:17:20]current date 1706717865 [16:17:20]FM_GetShiftState [16:17:20]SAM_PROTO_GetShiftState [16:17:20]wFMCommunicate request_size=4 [16:17:20]MH_SAM_APDU [16:17:20]CAPDU: 80 13 01 00 [16:17:20]Write to MH i2c: E2 08 00 74 A2 80 13 01 00 00 00 00 00 93 [16:17:20]Write i2c OK [16:17:20]MH_I2C_Read... [16:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:20]Read from MH i2c: E2 [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: E2 0E 00 [16:17:20]MH_I2C_Read... [16:17:20]Read from MH i2c: E2 0E 00 74 A2 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 E9 [16:17:20]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [16:17:20]wFMCommunicate OK [16:17:20]SAM_PROTO_GetShiftState done [16:17:20]FM_GetShiftState done [16:17:20]opened in 1706659486 [16:17:20]opened+sec_in_day 1706745886 [16:17:20]quantity*price = 6030 [16:17:20]sum+1 = 6031 [16:17:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 60.00 Внесено: 60.00 СДАЧА: 0.00 НСП 1% : 0.53 НДС 12% : 6.40 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 81 31.01.2024 16:17 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49356 ФПД: 241541117645503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T161745&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49356&fm=241541117645503&tin=02508201610067®Number=0000000000092723&sum=6000 [16:17:22]StoreToDocumentArchive [16:17:22]shift 247 fd 49356 [16:17:22]save to /storage/0247/doc_00049356 [16:17:22]save last doc name /storage/0247/doc_00049356 to /storage/kkm_last_doc_name [16:17:22]save OK [16:17:22]Clear old archive folders... [16:17:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:17:22]tlvbuf is 01492610 [16:17:22]SAM_PROTO_ClearQueue [16:17:22]wFMCommunicate request_size=4 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 09 00 00 [16:17:22]Write to MH i2c: E2 08 00 81 A2 80 09 00 00 00 00 00 00 95 [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 81 A2 00 90 00 97 [16:17:22]RAPDU: 90 00 [16:17:22]wFMCommunicate OK [16:17:22]SAM_PROTO_ClearQueue done [16:17:22]KKMCreateOFDPacket [16:17:22]OFDProtocolAddRootSTLVToBuf [16:17:22]FM_MakeSignedData [16:17:22]FM_MakeSignedData [16:17:22]SAM_PROTO_SignData [16:17:22]wFMCommunicate request_size=4 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 0D 01 02 [16:17:22]Write to MH i2c: E2 08 00 82 A2 80 0D 01 02 00 00 00 00 9D [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 82 A2 00 90 00 98 [16:17:22]RAPDU: 90 00 [16:17:22]wFMCommunicate OK [16:17:22]wFMCommunicate request_size=255 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 8E 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 A9 72 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CC C0 00 00 35 04 06 00 DB [16:17:22]Write to MH i2c: E2 02 01 83 A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 8E 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 A9 72 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CC C0 00 00 35 04 06 00 DB 00 00 82 [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 83 A2 00 90 00 99 [16:17:22]RAPDU: 90 00 [16:17:22]wFMCommunicate OK [16:17:22]wFMCommunicate request_size=10 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 0D 02 02 05 AE 2C 84 12 BF [16:17:22]Write to MH i2c: E2 0D 00 84 A2 80 0D 02 02 05 00 AE 2C 84 12 BF 00 00 D9 [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 03 00 84 A2 00 90 00 9A [16:17:22]RAPDU: 90 00 [16:17:22]wFMCommunicate OK [16:17:22]wFMCommunicate request_size=4 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 0D 03 02 [16:17:22]Write to MH i2c: E2 08 00 85 A2 80 0D 03 02 00 00 00 00 A2 [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 0B 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 0B 00 85 A2 00 13 A4 C1 96 D5 15 16 12 90 00 C3 [16:17:22]RAPDU: 13 A4 C1 96 D5 15 16 12 90 00 [16:17:22]wFMCommunicate OK [16:17:22]SAM_PROTO_SignData done [16:17:22]FM_MakeSignedData done [16:17:22]CreateOFDProtocolMessage [16:17:22]wFMCommunicate request_size=4 [16:17:22]MH_SAM_APDU [16:17:22]CAPDU: 80 11 00 00 [16:17:22]Write to MH i2c: E2 08 00 86 A2 80 11 00 00 00 00 00 00 A2 [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:22]Read from MH i2c: E2 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 17 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: E2 17 00 86 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EF [16:17:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:17:22]wFMCommunicate OK [16:17:22]CreateOFDProtocolMessage done [16:17:22]OFDSenderStorePacket 49356 [16:17:22]StoreOFDPacket docnum=49356 [16:17:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E1 39 07 01 7E DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 8E 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 A9 72 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CC C0 00 00 35 04 06 00 DB AE 2C 84 12 BF 13 A4 C1 96 D5 15 16 12 [16:17:22]CheckFolder [16:17:22]dirname=/storage/ofd_packets [16:17:22]CheckFolder done [16:17:22]ProducePacketName [16:17:22]name=ofd_packets/00049356 [16:17:22]NVStorageSaveData ofd_packets/00049356 [16:17:22]File name is /storage/ofd_packets/00049356 [16:17:22]Write 301 bytes [16:17:22]NVStorageSaveData done [16:17:22]OFDSenderStorePacket done [16:17:22]KKMCreateOFDPacket done [16:17:22]NVStorageSaveData kkm_last_timestamp [16:17:22]File name is /storage/kkm_last_timestamp [16:17:22]Write 4 bytes [16:17:22]NVStorageSaveData done [16:17:22]ExternCall_PrintAddStr [16:17:22]wPrintStart [16:17:22]Write to MH i2c: 01 00 00 87 A2 29 [16:17:22]Write i2c OK [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: 01 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: 01 07 00 [16:17:22]MH_I2C_Read... [16:17:22]Read from MH i2c: 01 07 00 87 A2 00 00 00 00 00 FF 0F 3E [16:17:22]RasterBufferAndPrint [16:17:22]line Счет N : (1)216460 [16:17:22]line ИНН: 02508201610067 [16:17:22]line Контрольно-Кассовый Чек [16:17:22]line ПРОДАЖА [16:17:22]line ТРК (МРК, ГНК) : 12 [16:17:22]line Товар: 2710124130 [16:17:22]line Аи-92-К-5 [16:17:22]line 1.000 * 60.30 [16:17:22]line = 60.30 [16:17:22]line НДС 12% НСП 1% [16:17:22]line > о реализуемом товаре [16:17:22]line ОКРУГЛЕНИЕ: -0.30 [16:17:22]line ИТОГО: 60.00 [16:17:22]line Внесено: 60.00 [16:17:22]line СДАЧА: 0.00 [16:17:22]line НСП 1% : 0.53 [16:17:22]line НДС 12% : 6.40 [16:17:22]line Наличными: 60.00 [16:17:22]line Безнал.: 0.00 [16:17:22]line Место: АЗС № 102 "Партнер Нефть" [16:17:22]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:17:22]line СНО: Общий режим [16:17:22]line Чек 81 31.01.2024 16:17 [16:17:22]line Смена: 247 ФФД: 1.0 [16:17:22]line ЗНМ: 0300000040 [16:17:22]line РНМ: 0000000000092723 [16:17:22]line Версия ККМ: 001 [16:17:22]line ФМ: 0000000000875060 [16:17:22]line ФД: 49356 [16:17:22]line ФПД: 241541117645503 [16:17:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T161745&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49356&fm=241541117645503&tin=02508201610067®Number=0000000000092723&sum=6000 [16:17:22]OFD Sender: Processing packet 49356 [packets to send 12, broken 11] [16:17:22]ProducePacketName [16:17:22]name=ofd_packets/00049356 [16:17:22]OFD Sender: To server: pG, [16:17:22]CommunicateWithHost lk.salyk.kg:30040 [16:17:22]ConnectInit lk.salyk.kg [16:17:22]written 0, free lines is 4095 [16:17:23]Connected sock=11 [16:17:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E1 39 07 01 7E DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 8E 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 A9 72 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CC C0 00 00 35 04 06 00 DB AE 2C 84 12 BF 13 A4 C1 96 D5 15 16 12 [16:17:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 94 79 47 00 C2 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 35 30 36 30 10 04 04 00 CC C0 00 00 F4 03 04 00 9B 1E BA 65 B6 04 01 00 00 7B 04 74 5E 10 97 C7 48 [16:17:23]CommunicateWithHost err = 0 [16:17:23]CheckOFDResponse [16:17:23]1017 (14) - 77093643461234 [16:17:23]1041 (16) - 0000000000875060 [16:17:23]1040 (4) - 49356 [16:17:23]1012 (4) - 31.01.2024 10:19 [16:17:23]1206 (1) - 0 [16:17:23]OFD Sender: Remove packet 49356 [16:17:23]ProducePacketName [16:17:23]name=ofd_packets/00049356 [16:17:23]NVStorageDeleteData [16:17:23]Write to MH i2c: 01 00 00 B2 A2 54 [16:17:23]Write i2c OK [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: 01 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: 01 07 00 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: 01 07 00 B2 A2 00 00 00 00 00 E4 0C 4B [16:17:23]RasterBufferAndPrint [16:17:23]line [16:17:23]line [16:17:23]line [16:17:23]line [16:17:23]line [16:17:23]written 0, free lines is 3306 [16:17:23]MH_Cut [16:17:23]Write to MH i2c: D1 01 00 B9 A2 01 2D [16:17:23]Write i2c OK [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: D1 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: D1 01 00 [16:17:23]MH_I2C_Read... [16:17:23]Read from MH i2c: D1 01 00 B9 A2 00 2C [16:17:23]Write to MH i2c: 01 00 00 BA A2 5C [16:17:23]Write i2c OK [16:17:23]MH_I2C_Read... [16:17:23]OFD Sender: No OFD packet to send [16:17:24]*** Cut start [16:17:24]*** Partial cut [16:17:24]*** CUTSNS_PIN = 1 [16:17:24]*** CUTSNS_PIN = 0 [16:17:24]*** Brake cut motor [16:17:24]Read from MH i2c: 01 [16:17:24]MH_I2C_Read... [16:17:24]*** Stop cut motor [16:17:24]*** Cut end [16:17:24]Read from MH i2c: 01 07 00 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: 01 07 00 BA A2 00 00 00 00 00 FF 0F 71 [16:17:24]process_action close_receipt done [16:17:24]requested_data is exist [16:17:24]produce_requested_data [16:17:24]requested_item fm.sn is exist - process it [16:17:24]wFMCommunicate request_size=4 [16:17:24]MH_SAM_APDU [16:17:24]CAPDU: 80 11 00 00 [16:17:24]Write to MH i2c: E2 08 00 BB A2 80 11 00 00 00 00 00 00 D7 [16:17:24]Write i2c OK [16:17:24]MH_I2C_Read... [16:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:24]Read from MH i2c: E2 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 17 00 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 17 00 BB A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 24 [16:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:17:24]wFMCommunicate OK [16:17:24]requested_item fd.num is exist - process it [16:17:24]SAM_PROTO_GetFieldsCounters [16:17:24]wFMCommunicate request_size=4 [16:17:24]MH_SAM_APDU [16:17:24]CAPDU: 80 13 00 00 [16:17:24]Write to MH i2c: E2 08 00 BC A2 80 13 00 00 00 00 00 00 DA [16:17:24]Write i2c OK [16:17:24]MH_I2C_Read... [16:17:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:24]Read from MH i2c: E2 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 62 00 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 62 00 BC A2 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CC C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [16:17: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CC C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:24]wFMCommunicate OK [16:17:24]SAM_PROTO_GetFieldsCounters done [16:17:24]requested_item shift.num is exist - process it [16:17:24]requested_item shift.opened is exist - process it [16:17:24]req_shift_opened [16:17:24]FM_GetShiftState [16:17:24]SAM_PROTO_GetShiftState [16:17:24]wFMCommunicate request_size=4 [16:17:24]MH_SAM_APDU [16:17:24]CAPDU: 80 13 01 00 [16:17:24]Write to MH i2c: E2 08 00 BD A2 80 13 01 00 00 00 00 00 DC [16:17:24]Write i2c OK [16:17:24]MH_I2C_Read... [16:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:24]Read from MH i2c: E2 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 0E 00 [16:17:24]MH_I2C_Read... [16:17:24]Read from MH i2c: E2 0E 00 BD A2 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 32 [16:17:24]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [16:17:24]wFMCommunicate OK [16:17:24]SAM_PROTO_GetShiftState done [16:17:24]FM_GetShiftState done [16:17:24]req_shift_opened done [16:17:24]requested_item shift.open_date is exist - process it [16:17:24]req_shift_open_date [16:17:24]req_shift_open_date done [16:17:24]produce_requested_data done [16:17:24]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49356,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [16:17:24]process_action_free close_receipt [16:17:24]json_value_free [16:17:24]json_value_free done [16:17:24]process_json_proto returns [16:17:24]Send response to host [16:17:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49356,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [16:17:24]free response buf [16:17:24]execute_script done [16:17:24]execute_script returns [16:17:24]free content buf [16:17:24]Sock 9.Close socket [16:17:24]Sock 9.Thread stoped [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:04]accept exits with 10 [16:18:04]New connection [16:18:04]New thread 3066813796 created [16:18:04]Thread 3066670436 joined [16:18:04]Waiting for new connection... [16:18:04] Sock 10.Parse request [16:18:04]Sock 10.Check first char [16:18:04]Sock 10.First char is OK [16:18:04]request: POST /json_proto HTTP/1.0 [16:18:04]Method: POST [16:18:04]URL: /json_proto [16:18:04]Method is POST - this is cgi request [16:18:04]url: /json_proto [16:18:04]query_string will be loaded in cgi processing [16:18:04]execute_cgi json_proto POST (null) [16:18:04]execute_cgi path=json_proto method=POST [16:18:04]POST find Content-Length [16:18:04]Host: 172.17.56.67:8080 [16:18:04]Content-Length: 677 [16:18:04]Content-Type: application/json [16:18:04] [16:18:04]POST finish read [16:18:04]Found Content-Length = 677 [16:18:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:18:04]execute_script... [16:18: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)216461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:18:04]POST & json_proto [16:18:04]process_json_proto [16:18:04]json parsed OK: [16:18:04]protocol is kg_v1.0 [16:18:04]action value=close_receipt [16:18:04]process_action close_receipt [16:18:04]cmd_close_receipt [16:18:04]MH_GetDate [16:18:04]Write to MH i2c: F0 00 00 BE A2 4F [16:18:04]Write i2c OK [16:18:04]MH_I2C_Read... [16:18:04]Read from MH i2c: F0 [16:18:04]MH_I2C_Read... [16:18:04]Read from MH i2c: F0 09 00 [16:18:04]MH_I2C_Read... [16:18:04]Read from MH i2c: F0 09 00 BE A2 00 D5 72 BA 65 26 5D 9E 65 44 [16:18:04]GetLastDocTimeStamp 1706717865 [16:18:04]current date 1706717909 [16:18:04]FM_GetShiftState [16:18:04]SAM_PROTO_GetShiftState [16:18:04]wFMCommunicate request_size=4 [16:18:04]MH_SAM_APDU [16:18:04]CAPDU: 80 13 01 00 [16:18:04]Write to MH i2c: E2 08 00 BF A2 80 13 01 00 00 00 00 00 DE [16:18:04]Write i2c OK [16:18:04]MH_I2C_Read... [16:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:04]Read from MH i2c: E2 [16:18:04]MH_I2C_Read... [16:18:04]Read from MH i2c: E2 0E 00 [16:18:04]MH_I2C_Read... [16:18:04]Read from MH i2c: E2 0E 00 BF A2 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 34 [16:18:04]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [16:18:04]wFMCommunicate OK [16:18:04]SAM_PROTO_GetShiftState done [16:18:04]FM_GetShiftState done [16:18:04]opened in 1706659486 [16:18:04]opened+sec_in_day 1706745886 [16:18:04]quantity*price = 30029 [16:18:04]sum+1 = 30030 [16:18:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 82 31.01.2024 16:18 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49357 ФПД: 200732904580232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T161829&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49357&fm=200732904580232&tin=02508201610067®Number=0000000000092723&sum=30000 [16:18:05]StoreToDocumentArchive [16:18:05]shift 247 fd 49357 [16:18:05]save to /storage/0247/doc_00049357 [16:18:05]save last doc name /storage/0247/doc_00049357 to /storage/kkm_last_doc_name [16:18:06]save OK [16:18:06]Clear old archive folders... [16:18:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:18:06]tlvbuf is 01236D20 [16:18:06]SAM_PROTO_ClearQueue [16:18:06]wFMCommunicate request_size=4 [16:18:06]MH_SAM_APDU [16:18:06]CAPDU: 80 09 00 00 [16:18:06]Write to MH i2c: E2 08 00 CC A2 80 09 00 00 00 00 00 00 E0 [16:18:06]Write i2c OK [16:18:06]MH_I2C_Read... [16:18:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:06]Read from MH i2c: E2 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 03 00 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 03 00 CC A2 00 90 00 E2 [16:18:06]RAPDU: 90 00 [16:18:06]wFMCommunicate OK [16:18:06]SAM_PROTO_ClearQueue done [16:18:06]KKMCreateOFDPacket [16:18:06]OFDProtocolAddRootSTLVToBuf [16:18:06]FM_MakeSignedData [16:18:06]FM_MakeSignedData [16:18:06]SAM_PROTO_SignData [16:18:06]wFMCommunicate request_size=4 [16:18:06]MH_SAM_APDU [16:18:06]CAPDU: 80 0D 01 02 [16:18:06]Write to MH i2c: E2 08 00 CD A2 80 0D 01 02 00 00 00 00 E8 [16:18:06]Write i2c OK [16:18:06]MH_I2C_Read... [16:18:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:06]Read from MH i2c: E2 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 03 00 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 03 00 CD A2 00 90 00 E3 [16:18:06]RAPDU: 90 00 [16:18:06]wFMCommunicate OK [16:18:06]wFMCommunicate request_size=255 [16:18:06]MH_SAM_APDU [16:18:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D5 72 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CD C0 00 00 35 04 06 00 B6 [16:18:06]Write to MH i2c: E2 02 01 CE A2 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D5 72 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CD C0 00 00 35 04 06 00 B6 00 00 A0 [16:18:06]Write i2c OK [16:18:06]MH_I2C_Read... [16:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:06]Read from MH i2c: E2 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 03 00 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 03 00 CE A2 00 90 00 E4 [16:18:06]RAPDU: 90 00 [16:18:06]wFMCommunicate OK [16:18:06]wFMCommunicate request_size=10 [16:18:06]MH_SAM_APDU [16:18:06]CAPDU: 80 0D 02 02 05 90 C5 78 E4 88 [16:18:06]Write to MH i2c: E2 0D 00 CF A2 80 0D 02 02 05 00 90 C5 78 E4 88 00 00 2E [16:18:06]Write i2c OK [16:18:06]MH_I2C_Read... [16:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:06]Read from MH i2c: E2 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 03 00 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 03 00 CF A2 00 90 00 E5 [16:18:06]RAPDU: 90 00 [16:18:06]wFMCommunicate OK [16:18:06]wFMCommunicate request_size=4 [16:18:06]MH_SAM_APDU [16:18:06]CAPDU: 80 0D 03 02 [16:18:06]Write to MH i2c: E2 08 00 D0 A2 80 0D 03 02 00 00 00 00 ED [16:18:06]Write i2c OK [16:18:06]MH_I2C_Read... [16:18:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:06]Read from MH i2c: E2 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 0B 00 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 0B 00 D0 A2 00 98 0E 8A 96 8F 76 5F 2C 90 00 44 [16:18:06]RAPDU: 98 0E 8A 96 8F 76 5F 2C 90 00 [16:18:06]wFMCommunicate OK [16:18:06]SAM_PROTO_SignData done [16:18:06]FM_MakeSignedData done [16:18:06]CreateOFDProtocolMessage [16:18:06]wFMCommunicate request_size=4 [16:18:06]MH_SAM_APDU [16:18:06]CAPDU: 80 11 00 00 [16:18:06]Write to MH i2c: E2 08 00 D1 A2 80 11 00 00 00 00 00 00 ED [16:18:06]Write i2c OK [16:18:06]MH_I2C_Read... [16:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:06]Read from MH i2c: E2 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 17 00 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: E2 17 00 D1 A2 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3A [16:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:18:06]wFMCommunicate OK [16:18:06]CreateOFDProtocolMessage done [16:18:06]OFDSenderStorePacket 49357 [16:18:06]StoreOFDPacket docnum=49357 [16:18:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 0C C9 07 01 5C 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D5 72 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CD C0 00 00 35 04 06 00 B6 90 C5 78 E4 88 98 0E 8A 96 8F 76 5F 2C [16:18:06]CheckFolder [16:18:06]dirname=/storage/ofd_packets [16:18:06]CheckFolder done [16:18:06]ProducePacketName [16:18:06]name=ofd_packets/00049357 [16:18:06]NVStorageSaveData ofd_packets/00049357 [16:18:06]File name is /storage/ofd_packets/00049357 [16:18:06]Write 301 bytes [16:18:06]NVStorageSaveData done [16:18:06]OFDSenderStorePacket done [16:18:06]KKMCreateOFDPacket done [16:18:06]NVStorageSaveData kkm_last_timestamp [16:18:06]File name is /storage/kkm_last_timestamp [16:18:06]Write 4 bytes [16:18:06]NVStorageSaveData done [16:18:06]ExternCall_PrintAddStr [16:18:06]wPrintStart [16:18:06]Write to MH i2c: 01 00 00 D2 A2 74 [16:18:06]Write i2c OK [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: 01 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: 01 07 00 [16:18:06]MH_I2C_Read... [16:18:06]Read from MH i2c: 01 07 00 D2 A2 00 00 00 00 00 FF 0F 89 [16:18:06]RasterBufferAndPrint [16:18:06]line Счет N : (1)216461 [16:18:06]line ИНН: 02508201610067 [16:18:06]line Контрольно-Кассовый Чек [16:18:06]line ПРОДАЖА [16:18:06]line ТРК (МРК, ГНК) : 12 [16:18:06]line Товар: 2710124130 [16:18:06]line Аи-92-К-5 [16:18:06]line 4.980 * 60.30 [16:18:06]line = 300.29 [16:18:06]line НДС 12% НСП 1% [16:18:06]line > о реализуемом товаре [16:18:06]line ОКРУГЛЕНИЕ: -0.29 [16:18:06]line ИТОГО: 300.00 [16:18:06]line Внесено: 300.00 [16:18:06]line СДАЧА: 0.00 [16:18:06]line НСП 1% : 2.66 [16:18:06]line НДС 12% : 31.89 [16:18:06]line Наличными: 300.00 [16:18:06]line Безнал.: 0.00 [16:18:06]line Место: АЗС № 102 "Партнер Нефть" [16:18:06]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:18:06]line СНО: Общий режим [16:18:06]line Чек 82 31.01.2024 16:18 [16:18:06]line Смена: 247 ФФД: 1.0 [16:18:06]line ЗНМ: 0300000040 [16:18:06]line РНМ: 0000000000092723 [16:18:06]line Версия ККМ: 001 [16:18:06]line ФМ: 0000000000875060 [16:18:06]line ФД: 49357 [16:18:06]line ФПД: 200732904580232 [16:18:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T161829&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49357&fm=200732904580232&tin=02508201610067®Number=0000000000092723&sum=30000 [16:18:06]OFD Sender: Processing packet 49357 [packets to send 12, broken 11] [16:18:06]ProducePacketName [16:18:06]name=ofd_packets/00049357 [16:18:06]OFD Sender: To server: pG, [16:18:06]CommunicateWithHost lk.salyk.kg:30040 [16:18:06]ConnectInit lk.salyk.kg [16:18:06]written 0, free lines is 4095 [16:18:06]Connected sock=9 [16:18:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 0C C9 07 01 5C 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 D5 72 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CD C0 00 00 35 04 06 00 B6 90 C5 78 E4 88 98 0E 8A 96 8F 76 5F 2C [16:18:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 1A B5 47 00 50 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CD C0 00 00 F4 03 04 00 C7 1E BA 65 B6 04 01 00 00 C4 5D B5 79 8B AE 18 2C [16:18:07]CommunicateWithHost err = 0 [16:18:07]CheckOFDResponse [16:18:07]1017 (14) - 77093643461234 [16:18:07]1041 (16) - 0000000000875060 [16:18:07]1040 (4) - 49357 [16:18:07]1012 (4) - 31.01.2024 10:19 [16:18:07]1206 (1) - 0 [16:18:07]OFD Sender: Remove packet 49357 [16:18:07]ProducePacketName [16:18:07]name=ofd_packets/00049357 [16:18:07]NVStorageDeleteData [16:18:07]Write to MH i2c: 01 00 00 FD A2 9F [16:18:07]Write i2c OK [16:18:07]MH_I2C_Read... [16:18:07]Read from MH i2c: 01 [16:18:07]MH_I2C_Read... [16:18:07]Read from MH i2c: 01 07 00 [16:18:07]MH_I2C_Read... [16:18:07]Read from MH i2c: 01 07 00 FD A2 00 00 00 00 00 EC 0C 9E [16:18:07]RasterBufferAndPrint [16:18:07]line [16:18:07]line [16:18:07]line [16:18:07]line [16:18:07]line [16:18:07]written 0, free lines is 3314 [16:18:07]MH_Cut [16:18:07]Write to MH i2c: D1 01 00 04 A3 01 79 [16:18:07]Write i2c OK [16:18:07]MH_I2C_Read... [16:18:07]Read from MH i2c: D1 [16:18:07]MH_I2C_Read... [16:18:07]Read from MH i2c: D1 01 00 [16:18:07]MH_I2C_Read... [16:18:07]Read from MH i2c: D1 01 00 04 A3 00 78 [16:18:07]Write to MH i2c: 01 00 00 05 A3 A8 [16:18:07]Write i2c OK [16:18:07]MH_I2C_Read... [16:18:07]OFD Sender: No OFD packet to send [16:18:07]*** Cut start [16:18:07]*** Partial cut [16:18:07]*** CUTSNS_PIN = 1 [16:18:08]*** CUTSNS_PIN = 0 [16:18:08]*** Brake cut motor [16:18:08]Read from MH i2c: 01 [16:18:08]MH_I2C_Read... [16:18:08]*** Stop cut motor [16:18:08]*** Cut end [16:18:08]Read from MH i2c: 01 07 00 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: 01 07 00 05 A3 00 00 00 00 00 FF 0F BD [16:18:08]process_action close_receipt done [16:18:08]requested_data is exist [16:18:08]produce_requested_data [16:18:08]requested_item fm.sn is exist - process it [16:18:08]wFMCommunicate request_size=4 [16:18:08]MH_SAM_APDU [16:18:08]CAPDU: 80 11 00 00 [16:18:08]Write to MH i2c: E2 08 00 06 A3 80 11 00 00 00 00 00 00 23 [16:18:08]Write i2c OK [16:18:08]MH_I2C_Read... [16:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:08]Read from MH i2c: E2 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: E2 17 00 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: E2 17 00 06 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 70 [16:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:18:08]wFMCommunicate OK [16:18:08]requested_item fd.num is exist - process it [16:18:08]SAM_PROTO_GetFieldsCounters [16:18:08]wFMCommunicate request_size=4 [16:18:08]MH_SAM_APDU [16:18:08]CAPDU: 80 13 00 00 [16:18:08]Write to MH i2c: E2 08 00 07 A3 80 13 00 00 00 00 00 00 26 [16:18:08]Write i2c OK [16:18:08]MH_I2C_Read... [16:18:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:08]Read from MH i2c: E2 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: E2 62 00 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: E2 62 00 07 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CD C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [16:18: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CD C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:08]wFMCommunicate OK [16:18:08]SAM_PROTO_GetFieldsCounters done [16:18:08]requested_item shift.num is exist - process it [16:18:08]requested_item shift.opened is exist - process it [16:18:08]req_shift_opened [16:18:08]FM_GetShiftState [16:18:08]SAM_PROTO_GetShiftState [16:18:08]wFMCommunicate request_size=4 [16:18:08]MH_SAM_APDU [16:18:08]CAPDU: 80 13 01 00 [16:18:08]Write to MH i2c: E2 08 00 08 A3 80 13 01 00 00 00 00 00 28 [16:18:08]Write i2c OK [16:18:08]MH_I2C_Read... [16:18:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:08]Read from MH i2c: E2 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: E2 0E 00 [16:18:08]MH_I2C_Read... [16:18:08]Read from MH i2c: E2 0E 00 08 A3 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 7E [16:18:08]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [16:18:08]wFMCommunicate OK [16:18:08]SAM_PROTO_GetShiftState done [16:18:08]FM_GetShiftState done [16:18:08]req_shift_opened done [16:18:08]requested_item shift.open_date is exist - process it [16:18:08]req_shift_open_date [16:18:08]req_shift_open_date done [16:18:08]produce_requested_data done [16:18:08]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49357,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [16:18:08]process_action_free close_receipt [16:18:08]json_value_free [16:18:08]json_value_free done [16:18:08]process_json_proto returns [16:18:08]Send response to host [16:18:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49357,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [16:18:08]free response buf [16:18:08]execute_script done [16:18:08]execute_script returns [16:18:08]free content buf [16:18:08]Sock 10.Close socket [16:18:08]Sock 10.Thread stoped [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:28]OFD Sender: No OFD packet to send [16:25:33]OFD Sender: No OFD packet to send [16:25:38]OFD Sender: No OFD packet to send [16:25:43]OFD Sender: No OFD packet to send [16:25:48]OFD Sender: No OFD packet to send [16:25:53]OFD Sender: No OFD packet to send [16:25:58]OFD Sender: No OFD packet to send [16:26:03]OFD Sender: No OFD packet to send [16:26:08]OFD Sender: No OFD packet to send [16:26:13]OFD Sender: No OFD packet to send [16:26:18]OFD Sender: No OFD packet to send [16:26:23]OFD Sender: No OFD packet to send [16:26:28]OFD Sender: No OFD packet to send [16:26:33]OFD Sender: No OFD packet to send [16:26:38]OFD Sender: No OFD packet to send [16:26:43]OFD Sender: No OFD packet to send [16:26:48]OFD Sender: No OFD packet to send [16:26:53]OFD Sender: No OFD packet to send [16:26:58]OFD Sender: No OFD packet to send [16:27:03]OFD Sender: No OFD packet to send [16:27:08]OFD Sender: No OFD packet to send [16:27:13]OFD Sender: No OFD packet to send [16:27:18]OFD Sender: No OFD packet to send [16:27:23]OFD Sender: No OFD packet to send [16:27:28]OFD Sender: No OFD packet to send [16:27:33]OFD Sender: No OFD packet to send [16:27:38]OFD Sender: No OFD packet to send [16:27:43]OFD Sender: No OFD packet to send [16:27:48]OFD Sender: No OFD packet to send [16:27:53]OFD Sender: No OFD packet to send [16:27:58]OFD Sender: No OFD packet to send [16:28:03]OFD Sender: No OFD packet to send [16:28:08]OFD Sender: No OFD packet to send [16:28:13]OFD Sender: No OFD packet to send [16:28:18]OFD Sender: No OFD packet to send [16:28:23]OFD Sender: No OFD packet to send [16:28:28]OFD Sender: No OFD packet to send [16:28:33]OFD Sender: No OFD packet to send [16:28:38]OFD Sender: No OFD packet to send [16:28:43]OFD Sender: No OFD packet to send [16:28:48]OFD Sender: No OFD packet to send [16:28:53]OFD Sender: No OFD packet to send [16:28:58]OFD Sender: No OFD packet to send [16:29:03]OFD Sender: No OFD packet to send [16:29:08]OFD Sender: No OFD packet to send [16:29:13]OFD Sender: No OFD packet to send [16:29:18]OFD Sender: No OFD packet to send [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:48]OFD Sender: No OFD packet to send [16:31:53]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:48]OFD Sender: No OFD packet to send [16:38:53]OFD Sender: No OFD packet to send [16:38:58]OFD Sender: No OFD packet to send [16:39:03]OFD Sender: No OFD packet to send [16:39:08]OFD Sender: No OFD packet to send [16:39:13]OFD Sender: No OFD packet to send [16:39:18]OFD Sender: No OFD packet to send [16:39:23]OFD Sender: No OFD packet to send [16:39:28]OFD Sender: No OFD packet to send [16:39:33]OFD Sender: No OFD packet to send [16:39:38]OFD Sender: No OFD packet to send [16:39:43]OFD Sender: No OFD packet to send [16:39:48]OFD Sender: No OFD packet to send [16:39:53]OFD Sender: No OFD packet to send [16:39:58]OFD Sender: No OFD packet to send [16:40:03]OFD Sender: No OFD packet to send [16:40:08]OFD Sender: No OFD packet to send [16:40:13]OFD Sender: No OFD packet to send [16:40:18]OFD Sender: No OFD packet to send [16:40:23]OFD Sender: No OFD packet to send [16:40:28]OFD Sender: No OFD packet to send [16:40:33]OFD Sender: No OFD packet to send [16:40:38]OFD Sender: No OFD packet to send [16:40:43]OFD Sender: No OFD packet to send [16:40:48]OFD Sender: No OFD packet to send [16:40:53]OFD Sender: No OFD packet to send [16:40:58]OFD Sender: No OFD packet to send [16:41:03]OFD Sender: No OFD packet to send [16:41:08]OFD Sender: No OFD packet to send [16:41:13]OFD Sender: No OFD packet to send [16:41:18]OFD Sender: No OFD packet to send [16:41:23]OFD Sender: No OFD packet to send [16:41:28]OFD Sender: No OFD packet to send [16:41:33]OFD Sender: No OFD packet to send [16:41:38]OFD Sender: No OFD packet to send [16:41:43]OFD Sender: No OFD packet to send [16:41:48]OFD Sender: No OFD packet to send [16:41:53]OFD Sender: No OFD packet to send [16:41:58]OFD Sender: No OFD packet to send [16:42:03]OFD Sender: No OFD packet to send [16:42:08]OFD Sender: No OFD packet to send [16:42:13]OFD Sender: No OFD packet to send [16:42:18]OFD Sender: No OFD packet to send [16:42:23]OFD Sender: No OFD packet to send [16:42:28]OFD Sender: No OFD packet to send [16:42:33]OFD Sender: No OFD packet to send [16:42:38]OFD Sender: No OFD packet to send [16:42:43]OFD Sender: No OFD packet to send [16:42:48]OFD Sender: No OFD packet to send [16:42:53]OFD Sender: No OFD packet to send [16:42:58]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:35]accept exits with 7 [16:43:35]New connection [16:43:35]New thread 3066670436 created [16:43:35]Thread 3066813796 joined [16:43:35]Waiting for new connection... [16:43:35] Sock 7.Parse request [16:43:35]Sock 7.Check first char [16:43:35]Sock 7.First char is OK [16:43:35]request: POST /json_proto HTTP/1.0 [16:43:35]Method: POST [16:43:35]URL: /json_proto [16:43:35]Method is POST - this is cgi request [16:43:35]url: /json_proto [16:43:35]query_string will be loaded in cgi processing [16:43:35]execute_cgi json_proto POST (null) [16:43:35]execute_cgi path=json_proto method=POST [16:43:35]POST find Content-Length [16:43:35]Host: 172.17.56.67:8080 [16:43:35]Content-Length: 677 [16:43:35]Content-Type: application/json [16:43:35] [16:43:35]POST finish read [16:43:35]Found Content-Length = 677 [16:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:43:35]execute_script... [16:43: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)216462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:43:35]POST & json_proto [16:43:35]process_json_proto [16:43:35]json parsed OK: [16:43:35]protocol is kg_v1.0 [16:43:35]action value=close_receipt [16:43:35]process_action close_receipt [16:43:35]cmd_close_receipt [16:43:35]MH_GetDate [16:43:35]Write to MH i2c: F0 00 00 09 A3 9B [16:43:35]Write i2c OK [16:43:35]MH_I2C_Read... [16:43:35]Read from MH i2c: F0 [16:43:35]MH_I2C_Read... [16:43:35]Read from MH i2c: F0 09 00 [16:43:35]MH_I2C_Read... [16:43:35]Read from MH i2c: F0 09 00 09 A3 00 D0 78 BA 65 26 5D 9E 65 91 [16:43:35]GetLastDocTimeStamp 1706717909 [16:43:35]current date 1706719440 [16:43:35]FM_GetShiftState [16:43:35]SAM_PROTO_GetShiftState [16:43:35]wFMCommunicate request_size=4 [16:43:35]MH_SAM_APDU [16:43:35]CAPDU: 80 13 01 00 [16:43:35]Write to MH i2c: E2 08 00 0A A3 80 13 01 00 00 00 00 00 2A [16:43:35]Write i2c OK [16:43:35]MH_I2C_Read... [16:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:35]Read from MH i2c: E2 [16:43:35]MH_I2C_Read... [16:43:35]Read from MH i2c: E2 0E 00 [16:43:35]MH_I2C_Read... [16:43:35]Read from MH i2c: E2 0E 00 0A A3 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 80 [16:43:35]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [16:43:35]wFMCommunicate OK [16:43:35]SAM_PROTO_GetShiftState done [16:43:35]FM_GetShiftState done [16:43:35]opened in 1706659486 [16:43:35]opened+sec_in_day 1706745886 [16:43:35]quantity*price = 30029 [16:43:35]sum+1 = 30030 [16:43:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 83 31.01.2024 16:44 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49358 ФПД: 236456336977670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T164400&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49358&fm=236456336977670&tin=02508201610067®Number=0000000000092723&sum=30000 [16:43:36]StoreToDocumentArchive [16:43:36]shift 247 fd 49358 [16:43:36]save to /storage/0247/doc_00049358 [16:43:36]save last doc name /storage/0247/doc_00049358 to /storage/kkm_last_doc_name [16:43:36]save OK [16:43:36]Clear old archive folders... [16:43:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:36]tlvbuf is 011E9F40 [16:43:36]SAM_PROTO_ClearQueue [16:43:36]wFMCommunicate request_size=4 [16:43:36]MH_SAM_APDU [16:43:36]CAPDU: 80 09 00 00 [16:43:36]Write to MH i2c: E2 08 00 17 A3 80 09 00 00 00 00 00 00 2C [16:43:36]Write i2c OK [16:43:36]MH_I2C_Read... [16:43:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:36]Read from MH i2c: E2 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 03 00 [16:43:36]MH_I2C_Read... [16:43:36]Read from MH i2c: E2 03 00 17 A3 00 90 00 2E [16:43:36]RAPDU: 90 00 [16:43:36]wFMCommunicate OK [16:43:36]SAM_PROTO_ClearQueue done [16:43:36]KKMCreateOFDPacket [16:43:36]OFDProtocolAddRootSTLVToBuf [16:43:36]FM_MakeSignedData [16:43:36]FM_MakeSignedData [16:43:36]SAM_PROTO_SignData [16:43:36]wFMCommunicate request_size=4 [16:43:36]MH_SAM_APDU [16:43:36]CAPDU: 80 0D 01 02 [16:43:36]Write to MH i2c: E2 08 00 18 A3 80 0D 01 02 00 00 00 00 34 [16:43:36]Write i2c OK [16:43:36]MH_I2C_Read... [16:43:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:37]Read from MH i2c: E2 [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: E2 03 00 [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: E2 03 00 18 A3 00 90 00 2F [16:43:37]RAPDU: 90 00 [16:43:37]wFMCommunicate OK [16:43:37]wFMCommunicate request_size=255 [16:43:37]MH_SAM_APDU [16:43:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 D0 78 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CE C0 00 00 35 04 06 00 D7 [16:43:37]Write to MH i2c: E2 02 01 19 A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 D0 78 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CE C0 00 00 35 04 06 00 D7 00 00 10 [16:43:37]Write i2c OK [16:43:37]MH_I2C_Read... [16:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:37]Read from MH i2c: E2 [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: E2 03 00 [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: E2 03 00 19 A3 00 90 00 30 [16:43:37]RAPDU: 90 00 [16:43:37]wFMCommunicate OK [16:43:37]wFMCommunicate request_size=10 [16:43:37]MH_SAM_APDU [16:43:37]CAPDU: 80 0D 02 02 05 0E 47 F8 6F 06 [16:43:37]Write to MH i2c: E2 0D 00 1A A3 80 0D 02 02 05 00 0E 47 F8 6F 06 00 00 03 [16:43:37]Write i2c OK [16:43:37]MH_I2C_Read... [16:43:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:37]Read from MH i2c: E2 [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: E2 03 00 [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: E2 03 00 1A A3 00 90 00 31 [16:43:37]RAPDU: 90 00 [16:43:37]wFMCommunicate OK [16:43:37]wFMCommunicate request_size=4 [16:43:37]MH_SAM_APDU [16:43:37]CAPDU: 80 0D 03 02 [16:43:37]Write to MH i2c: E2 08 00 1B A3 80 0D 03 02 00 00 00 00 39 [16:43:37]Write i2c OK [16:43:37]MH_I2C_Read... [16:43:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:37]Read from MH i2c: E2 [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: E2 0B 00 [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: E2 0B 00 1B A3 00 E6 E2 30 C3 6E D0 F0 43 90 00 66 [16:43:37]RAPDU: E6 E2 30 C3 6E D0 F0 43 90 00 [16:43:37]wFMCommunicate OK [16:43:37]SAM_PROTO_SignData done [16:43:37]FM_MakeSignedData done [16:43:37]CreateOFDProtocolMessage [16:43:37]wFMCommunicate request_size=4 [16:43:37]MH_SAM_APDU [16:43:37]CAPDU: 80 11 00 00 [16:43:37]Write to MH i2c: E2 08 00 1C A3 80 11 00 00 00 00 00 00 39 [16:43:37]Write i2c OK [16:43:37]MH_I2C_Read... [16:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:37]Read from MH i2c: E2 [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: E2 17 00 [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: E2 17 00 1C A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 86 [16:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:43:37]wFMCommunicate OK [16:43:37]CreateOFDProtocolMessage done [16:43:37]OFDSenderStorePacket 49358 [16:43:37]StoreOFDPacket docnum=49358 [16:43:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 3D 49 07 01 F1 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 D0 78 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CE C0 00 00 35 04 06 00 D7 0E 47 F8 6F 06 E6 E2 30 C3 6E D0 F0 43 [16:43:37]CheckFolder [16:43:37]dirname=/storage/ofd_packets [16:43:37]CheckFolder done [16:43:37]ProducePacketName [16:43:37]name=ofd_packets/00049358 [16:43:37]NVStorageSaveData ofd_packets/00049358 [16:43:37]File name is /storage/ofd_packets/00049358 [16:43:37]Write 301 bytes [16:43:37]NVStorageSaveData done [16:43:37]OFDSenderStorePacket done [16:43:37]KKMCreateOFDPacket done [16:43:37]NVStorageSaveData kkm_last_timestamp [16:43:37]File name is /storage/kkm_last_timestamp [16:43:37]Write 4 bytes [16:43:37]NVStorageSaveData done [16:43:37]ExternCall_PrintAddStr [16:43:37]wPrintStart [16:43:37]Write to MH i2c: 01 00 00 1D A3 C0 [16:43:37]Write i2c OK [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: 01 [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: 01 07 00 [16:43:37]MH_I2C_Read... [16:43:37]Read from MH i2c: 01 07 00 1D A3 00 00 00 00 00 FF 0F D5 [16:43:37]RasterBufferAndPrint [16:43:37]line Счет N : (1)216462 [16:43:37]line ИНН: 02508201610067 [16:43:37]line Контрольно-Кассовый Чек [16:43:37]line ПРОДАЖА [16:43:37]line ТРК (МРК, ГНК) : 22 [16:43:37]line Товар: 2710124130 [16:43:37]line Аи-92-К-5 [16:43:37]line 4.980 * 60.30 [16:43:37]line = 300.29 [16:43:37]line НДС 12% НСП 1% [16:43:37]line > о реализуемом товаре [16:43:37]line ОКРУГЛЕНИЕ: -0.29 [16:43:37]line ИТОГО: 300.00 [16:43:37]line Внесено: 300.00 [16:43:37]line СДАЧА: 0.00 [16:43:37]line НСП 1% : 2.66 [16:43:37]line НДС 12% : 31.89 [16:43:37]line Наличными: 300.00 [16:43:37]line Безнал.: 0.00 [16:43:37]line Место: АЗС № 102 "Партнер Нефть" [16:43:37]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:43:37]line СНО: Общий режим [16:43:37]line Чек 83 31.01.2024 16:44 [16:43:37]line Смена: 247 ФФД: 1.0 [16:43:37]line ЗНМ: 0300000040 [16:43:37]line РНМ: 0000000000092723 [16:43:37]line Версия ККМ: 001 [16:43:37]line ФМ: 0000000000875060 [16:43:37]line ФД: 49358 [16:43:37]line ФПД: 236456336977670 [16:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T164400&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49358&fm=236456336977670&tin=02508201610067®Number=0000000000092723&sum=30000 [16:43:37]OFD Sender: Processing packet 49358 [packets to send 12, broken 11] [16:43:37]ProducePacketName [16:43:37]name=ofd_packets/00049358 [16:43:37]OFD Sender: To server: pG, [16:43:37]CommunicateWithHost lk.salyk.kg:30040 [16:43:37]ConnectInit lk.salyk.kg [16:43:37]written 0, free lines is 4095 [16:43:37]Connected sock=11 [16:43:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 3D 49 07 01 F1 A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 D0 78 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CE C0 00 00 35 04 06 00 D7 0E 47 F8 6F 06 E6 E2 30 C3 6E D0 F0 43 [16:43:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 58 4C 47 00 1E 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CE C0 00 00 F4 03 04 00 C2 24 BA 65 B6 04 01 00 00 73 5C 74 BA 2D 80 C1 0D [16:43:38]CommunicateWithHost err = 0 [16:43:38]CheckOFDResponse [16:43:38]1017 (14) - 77093643461234 [16:43:38]1041 (16) - 0000000000875060 [16:43:38]1040 (4) - 49358 [16:43:38]1012 (4) - 31.01.2024 10:45 [16:43:38]1206 (1) - 0 [16:43:38]OFD Sender: Remove packet 49358 [16:43:38]ProducePacketName [16:43:38]name=ofd_packets/00049358 [16:43:38]NVStorageDeleteData [16:43:38]Write to MH i2c: 01 00 00 48 A3 EB [16:43:38]Write i2c OK [16:43:38]MH_I2C_Read... [16:43:38]Read from MH i2c: 01 [16:43:38]MH_I2C_Read... [16:43:38]Read from MH i2c: 01 07 00 [16:43:38]MH_I2C_Read... [16:43:38]Read from MH i2c: 01 07 00 48 A3 00 00 00 00 00 F0 0C EE [16:43:38]RasterBufferAndPrint [16:43:38]line [16:43:38]line [16:43:38]line [16:43:38]line [16:43:38]line [16:43:38]written 0, free lines is 3318 [16:43:38]MH_Cut [16:43:38]Write to MH i2c: D1 01 00 4F A3 01 C4 [16:43:38]Write i2c OK [16:43:38]MH_I2C_Read... [16:43:38]Read from MH i2c: D1 [16:43:38]MH_I2C_Read... [16:43:38]Read from MH i2c: D1 01 00 [16:43:38]MH_I2C_Read... [16:43:38]Read from MH i2c: D1 01 00 4F A3 00 C3 [16:43:38]Write to MH i2c: 01 00 00 50 A3 F3 [16:43:38]Write i2c OK [16:43:38]MH_I2C_Read... [16:43:38]OFD Sender: No OFD packet to send [16:43:38]*** Cut start [16:43:38]*** Partial cut [16:43:38]*** CUTSNS_PIN = 1 [16:43:38]*** CUTSNS_PIN = 0 [16:43:39]*** Brake cut motor [16:43:39]Read from MH i2c: 01 [16:43:39]MH_I2C_Read... [16:43:39]*** Stop cut motor [16:43:39]*** Cut end [16:43:39]Read from MH i2c: 01 07 00 [16:43:39]MH_I2C_Read... [16:43:39]Read from MH i2c: 01 07 00 50 A3 00 00 00 00 00 FF 0F 08 [16:43:39]process_action close_receipt done [16:43:39]requested_data is exist [16:43:39]produce_requested_data [16:43:39]requested_item fm.sn is exist - process it [16:43:39]wFMCommunicate request_size=4 [16:43:39]MH_SAM_APDU [16:43:39]CAPDU: 80 11 00 00 [16:43:39]Write to MH i2c: E2 08 00 51 A3 80 11 00 00 00 00 00 00 6E [16:43:39]Write i2c OK [16:43:39]MH_I2C_Read... [16:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:39]Read from MH i2c: E2 [16:43:39]MH_I2C_Read... [16:43:39]Read from MH i2c: E2 17 00 [16:43:39]MH_I2C_Read... [16:43:39]Read from MH i2c: E2 17 00 51 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BB [16:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:43:39]wFMCommunicate OK [16:43:39]requested_item fd.num is exist - process it [16:43:39]SAM_PROTO_GetFieldsCounters [16:43:39]wFMCommunicate request_size=4 [16:43:39]MH_SAM_APDU [16:43:39]CAPDU: 80 13 00 00 [16:43:39]Write to MH i2c: E2 08 00 52 A3 80 13 00 00 00 00 00 00 71 [16:43:39]Write i2c OK [16:43:39]MH_I2C_Read... [16:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:39]Read from MH i2c: E2 [16:43:39]MH_I2C_Read... [16:43:39]Read from MH i2c: E2 62 00 [16:43:39]MH_I2C_Read... [16:43:39]Read from MH i2c: E2 62 00 52 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CE C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [16:43: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CE C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:39]wFMCommunicate OK [16:43:39]SAM_PROTO_GetFieldsCounters done [16:43:39]requested_item shift.num is exist - process it [16:43:39]requested_item shift.opened is exist - process it [16:43:39]req_shift_opened [16:43:39]FM_GetShiftState [16:43:39]SAM_PROTO_GetShiftState [16:43:39]wFMCommunicate request_size=4 [16:43:39]MH_SAM_APDU [16:43:39]CAPDU: 80 13 01 00 [16:43:39]Write to MH i2c: E2 08 00 53 A3 80 13 01 00 00 00 00 00 73 [16:43:39]Write i2c OK [16:43:39]MH_I2C_Read... [16:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:39]Read from MH i2c: E2 [16:43:39]MH_I2C_Read... [16:43:39]Read from MH i2c: E2 0E 00 [16:43:39]MH_I2C_Read... [16:43:39]Read from MH i2c: E2 0E 00 53 A3 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 C9 [16:43:39]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [16:43:39]wFMCommunicate OK [16:43:39]SAM_PROTO_GetShiftState done [16:43:39]FM_GetShiftState done [16:43:39]req_shift_opened done [16:43:39]requested_item shift.open_date is exist - process it [16:43:39]req_shift_open_date [16:43:39]req_shift_open_date done [16:43:39]produce_requested_data done [16:43:39]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49358,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [16:43:39]process_action_free close_receipt [16:43:39]json_value_free [16:43:39]json_value_free done [16:43:39]process_json_proto returns [16:43:39]Send response to host [16:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49358,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [16:43:39]free response buf [16:43:39]execute_script done [16:43:39]execute_script returns [16:43:39]free content buf [16:43:39]Sock 7.Close socket [16:43:39]Sock 7.Thread stoped [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:34]OFD Sender: No OFD packet to send [16:52:39]OFD Sender: No OFD packet to send [16:52:44]OFD Sender: No OFD packet to send [16:52:49]OFD Sender: No OFD packet to send [16:52:54]OFD Sender: No OFD packet to send [16:52:59]OFD Sender: No OFD packet to send [16:53:04]OFD Sender: No OFD packet to send [16:53:09]OFD Sender: No OFD packet to send [16:53:14]OFD Sender: No OFD packet to send [16:53:19]OFD Sender: No OFD packet to send [16:53:24]OFD Sender: No OFD packet to send [16:53:29]OFD Sender: No OFD packet to send [16:53:34]OFD Sender: No OFD packet to send [16:53:39]OFD Sender: No OFD packet to send [16:53:44]OFD Sender: No OFD packet to send [16:53:49]OFD Sender: No OFD packet to send [16:53:54]OFD Sender: No OFD packet to send [16:53:59]OFD Sender: No OFD packet to send [16:54:04]OFD Sender: No OFD packet to send [16:54:09]OFD Sender: No OFD packet to send [16:54:14]OFD Sender: No OFD packet to send [16:54:19]OFD Sender: No OFD packet to send [16:54:24]OFD Sender: No OFD packet to send [16:54:29]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [17:03:19]OFD Sender: No OFD packet to send [17:03:24]OFD Sender: No OFD packet to send [17:03:29]OFD Sender: No OFD packet to send [17:03:34]OFD Sender: No OFD packet to send [17:03:39]OFD Sender: No OFD packet to send [17:03:44]OFD Sender: No OFD packet to send [17:03:49]OFD Sender: No OFD packet to send [17:03:54]OFD Sender: No OFD packet to send [17:03:59]OFD Sender: No OFD packet to send [17:04:04]OFD Sender: No OFD packet to send [17:04:09]OFD Sender: No OFD packet to send [17:04:14]OFD Sender: No OFD packet to send [17:04:19]OFD Sender: No OFD packet to send [17:04:24]OFD Sender: No OFD packet to send [17:04:29]OFD Sender: No OFD packet to send [17:04:34]OFD Sender: No OFD packet to send [17:04:39]OFD Sender: No OFD packet to send [17:04:44]OFD Sender: No OFD packet to send [17:04:49]OFD Sender: No OFD packet to send [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:08:04]OFD Sender: No OFD packet to send [17:08:09]OFD Sender: No OFD packet to send [17:08:14]OFD Sender: No OFD packet to send [17:08:19]OFD Sender: No OFD packet to send [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [17:09:09]OFD Sender: No OFD packet to send [17:09:14]OFD Sender: No OFD packet to send [17:09:19]OFD Sender: No OFD packet to send [17:09:24]OFD Sender: No OFD packet to send [17:09:29]OFD Sender: No OFD packet to send [17:09:34]OFD Sender: No OFD packet to send [17:09:39]OFD Sender: No OFD packet to send [17:09:44]OFD Sender: No OFD packet to send [17:09:49]OFD Sender: No OFD packet to send [17:09:54]OFD Sender: No OFD packet to send [17:09:59]OFD Sender: No OFD packet to send [17:10:04]OFD Sender: No OFD packet to send [17:10:09]OFD Sender: No OFD packet to send [17:10:10]accept exits with 9 [17:10:10]New connection [17:10:10]New thread 3066813796 created [17:10:10]Thread 3066670436 joined [17:10:10]Waiting for new connection... [17:10:10] Sock 9.Parse request [17:10:10]Sock 9.Check first char [17:10:10]Sock 9.First char is OK [17:10:10]request: POST /json_proto HTTP/1.0 [17:10:10]Method: POST [17:10:10]URL: /json_proto [17:10:10]Method is POST - this is cgi request [17:10:10]url: /json_proto [17:10:10]query_string will be loaded in cgi processing [17:10:10]execute_cgi json_proto POST (null) [17:10:10]execute_cgi path=json_proto method=POST [17:10:10]POST find Content-Length [17:10:10]Host: 172.17.56.67:8080 [17:10:10]Content-Length: 678 [17:10:10]Content-Type: application/json [17:10:10] [17:10:10]POST finish read [17:10:10]Found Content-Length = 678 [17:10:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 12.110, "sum" : 730.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:10]execute_script... [17:10: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)216463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 12.110, "sum" : 730.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 730.00, "total" : 730.00, "payments": [ { "type": 0, "sum" : 730.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:10]POST & json_proto [17:10:10]process_json_proto [17:10:10]json parsed OK: [17:10:10]protocol is kg_v1.0 [17:10:10]action value=close_receipt [17:10:10]process_action close_receipt [17:10:10]cmd_close_receipt [17:10:10]MH_GetDate [17:10:10]Write to MH i2c: F0 00 00 54 A3 E6 [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: F0 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: F0 09 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: F0 09 00 54 A3 00 0B 7F BA 65 26 5D 9E 65 1E [17:10:10]GetLastDocTimeStamp 1706719440 [17:10:10]current date 1706721035 [17:10:10]FM_GetShiftState [17:10:10]SAM_PROTO_GetShiftState [17:10:10]wFMCommunicate request_size=4 [17:10:10]MH_SAM_APDU [17:10:10]CAPDU: 80 13 01 00 [17:10:10]Write to MH i2c: E2 08 00 55 A3 80 13 01 00 00 00 00 00 75 [17:10:10]Write i2c OK [17:10:10]MH_I2C_Read... [17:10:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:10]Read from MH i2c: E2 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 0E 00 [17:10:10]MH_I2C_Read... [17:10:10]Read from MH i2c: E2 0E 00 55 A3 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 CB [17:10:10]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:10:10]wFMCommunicate OK [17:10:10]SAM_PROTO_GetShiftState done [17:10:10]FM_GetShiftState done [17:10:10]opened in 1706659486 [17:10:10]opened+sec_in_day 1706745886 [17:10:10]quantity*price = 73023 [17:10:10]sum+1 = 73024 [17:10:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 730.00 Внесено: 730.00 СДАЧА: 0.00 НСП 1% : 6.46 НДС 12% : 77.55 Наличными: 730.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 84 31.01.2024 17:10 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49359 ФПД: 59620317281598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T171035&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49359&fm=59620317281598&tin=02508201610067®Number=0000000000092723&sum=73000 [17:10:11]StoreToDocumentArchive [17:10:11]shift 247 fd 49359 [17:10:11]save to /storage/0247/doc_00049359 [17:10:11]save last doc name /storage/0247/doc_00049359 to /storage/kkm_last_doc_name [17:10:11]save OK [17:10:11]Clear old archive folders... [17:10:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:11]tlvbuf is 015037E0 [17:10:11]SAM_PROTO_ClearQueue [17:10:11]wFMCommunicate request_size=4 [17:10:11]MH_SAM_APDU [17:10:11]CAPDU: 80 09 00 00 [17:10:11]Write to MH i2c: E2 08 00 62 A3 80 09 00 00 00 00 00 00 77 [17:10:11]Write i2c OK [17:10:11]MH_I2C_Read... [17:10:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:11]Read from MH i2c: E2 [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: E2 03 00 [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: E2 03 00 62 A3 00 90 00 79 [17:10:11]RAPDU: 90 00 [17:10:11]wFMCommunicate OK [17:10:11]SAM_PROTO_ClearQueue done [17:10:11]KKMCreateOFDPacket [17:10:11]OFDProtocolAddRootSTLVToBuf [17:10:11]FM_MakeSignedData [17:10:11]FM_MakeSignedData [17:10:11]SAM_PROTO_SignData [17:10:11]wFMCommunicate request_size=4 [17:10:11]MH_SAM_APDU [17:10:11]CAPDU: 80 0D 01 02 [17:10:11]Write to MH i2c: E2 08 00 63 A3 80 0D 01 02 00 00 00 00 7F [17:10:11]Write i2c OK [17:10:11]MH_I2C_Read... [17:10:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:11]Read from MH i2c: E2 [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: E2 03 00 [17:10:11]MH_I2C_Read... [17:10:11]Read from MH i2c: E2 03 00 63 A3 00 90 00 7A [17:10:11]RAPDU: 90 00 [17:10:11]wFMCommunicate OK [17:10:11]wFMCommunicate request_size=255 [17:10:11]MH_SAM_APDU [17:10:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 2F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3F 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 0B 7F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CF C0 00 00 35 04 06 00 36 [17:10:11]Write to MH i2c: E2 02 01 64 A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 4E 2F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3F 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 0B 7F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CF C0 00 00 35 04 06 00 36 00 00 36 [17:10:11]Write i2c OK [17:10:11]MH_I2C_Read... [17:10:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:12]Read from MH i2c: E2 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 03 00 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 03 00 64 A3 00 90 00 7B [17:10:12]RAPDU: 90 00 [17:10:12]wFMCommunicate OK [17:10:12]wFMCommunicate request_size=10 [17:10:12]MH_SAM_APDU [17:10:12]CAPDU: 80 0D 02 02 05 39 6F D5 3D 3E [17:10:12]Write to MH i2c: E2 0D 00 65 A3 80 0D 02 02 05 00 39 6F D5 3D 3E 00 00 84 [17:10:12]Write i2c OK [17:10:12]MH_I2C_Read... [17:10:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:12]Read from MH i2c: E2 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 03 00 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 03 00 65 A3 00 90 00 7C [17:10:12]RAPDU: 90 00 [17:10:12]wFMCommunicate OK [17:10:12]wFMCommunicate request_size=4 [17:10:12]MH_SAM_APDU [17:10:12]CAPDU: 80 0D 03 02 [17:10:12]Write to MH i2c: E2 08 00 66 A3 80 0D 03 02 00 00 00 00 84 [17:10:12]Write i2c OK [17:10:12]MH_I2C_Read... [17:10:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:12]Read from MH i2c: E2 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 0B 00 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 0B 00 66 A3 00 73 E4 6F 48 0F BE 29 E0 90 00 69 [17:10:12]RAPDU: 73 E4 6F 48 0F BE 29 E0 90 00 [17:10:12]wFMCommunicate OK [17:10:12]SAM_PROTO_SignData done [17:10:12]FM_MakeSignedData done [17:10:12]CreateOFDProtocolMessage [17:10:12]wFMCommunicate request_size=4 [17:10:12]MH_SAM_APDU [17:10:12]CAPDU: 80 11 00 00 [17:10:12]Write to MH i2c: E2 08 00 67 A3 80 11 00 00 00 00 00 00 84 [17:10:12]Write i2c OK [17:10:12]MH_I2C_Read... [17:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:12]Read from MH i2c: E2 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 17 00 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: E2 17 00 67 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D1 [17:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:10:12]wFMCommunicate OK [17:10:12]CreateOFDProtocolMessage done [17:10:12]OFDSenderStorePacket 49359 [17:10:12]StoreOFDPacket docnum=49359 [17:10:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 1A BC 07 01 A5 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 35 FF 03 08 00 03 4E 2F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3F 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 0B 7F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CF C0 00 00 35 04 06 00 36 39 6F D5 3D 3E 73 E4 6F 48 0F BE 29 E0 [17:10:12]CheckFolder [17:10:12]dirname=/storage/ofd_packets [17:10:12]CheckFolder done [17:10:12]ProducePacketName [17:10:12]name=ofd_packets/00049359 [17:10:12]NVStorageSaveData ofd_packets/00049359 [17:10:12]File name is /storage/ofd_packets/00049359 [17:10:12]Write 301 bytes [17:10:12]NVStorageSaveData done [17:10:12]OFDSenderStorePacket done [17:10:12]KKMCreateOFDPacket done [17:10:12]NVStorageSaveData kkm_last_timestamp [17:10:12]File name is /storage/kkm_last_timestamp [17:10:12]Write 4 bytes [17:10:12]NVStorageSaveData done [17:10:12]ExternCall_PrintAddStr [17:10:12]wPrintStart [17:10:12]Write to MH i2c: 01 00 00 68 A3 0B [17:10:12]Write i2c OK [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: 01 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: 01 07 00 [17:10:12]MH_I2C_Read... [17:10:12]Read from MH i2c: 01 07 00 68 A3 00 00 00 00 00 FF 0F 20 [17:10:12]RasterBufferAndPrint [17:10:12]line Счет N : (1)216463 [17:10:12]line ИНН: 02508201610067 [17:10:12]line Контрольно-Кассовый Чек [17:10:12]line ПРОДАЖА [17:10:12]line ТРК (МРК, ГНК) : 22 [17:10:12]line Товар: 2710124130 [17:10:12]line Аи-92-К-5 [17:10:12]line 12.110 * 60.30 [17:10:12]line = 730.23 [17:10:12]line НДС 12% НСП 1% [17:10:12]line > о реализуемом товаре [17:10:12]line ОКРУГЛЕНИЕ: -0.23 [17:10:12]line ИТОГО: 730.00 [17:10:12]line Внесено: 730.00 [17:10:12]line СДАЧА: 0.00 [17:10:12]line НСП 1% : 6.46 [17:10:12]line НДС 12% : 77.55 [17:10:12]line Наличными: 730.00 [17:10:12]line Безнал.: 0.00 [17:10:12]line Место: АЗС № 102 "Партнер Нефть" [17:10:12]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:10:12]line СНО: Общий режим [17:10:12]line Чек 84 31.01.2024 17:10 [17:10:12]line Смена: 247 ФФД: 1.0 [17:10:12]line ЗНМ: 0300000040 [17:10:12]line РНМ: 0000000000092723 [17:10:12]line Версия ККМ: 001 [17:10:12]line ФМ: 0000000000875060 [17:10:12]line ФД: 49359 [17:10:12]line ФПД: 59620317281598 [17:10:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T171035&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49359&fm=59620317281598&tin=02508201610067®Number=0000000000092723&sum=73000 [17:10:12]OFD Sender: Processing packet 49359 [packets to send 12, broken 11] [17:10:12]ProducePacketName [17:10:12]name=ofd_packets/00049359 [17:10:12]OFD Sender: To server: pG, [17:10:12]CommunicateWithHost lk.salyk.kg:30040 [17:10:12]ConnectInit lk.salyk.kg [17:10:12]written 0, free lines is 4095 [17:10:12]Connected sock=7 [17:10:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 1A BC 07 01 A5 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 35 FF 03 08 00 03 4E 2F 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 3F 1D 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 1D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4B 1E 00 00 00 00 07 04 06 00 28 1D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 0B 7F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CF C0 00 00 35 04 06 00 36 39 6F D5 3D 3E 73 E4 6F 48 0F BE 29 E0 [17:10:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 D6 98 47 00 DF 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 35 30 36 30 10 04 04 00 CF C0 00 00 F4 03 04 00 FD 2A BA 65 B6 04 01 00 00 CB F5 A6 DE BE E7 11 68 [17:10:12]CommunicateWithHost err = 0 [17:10:12]CheckOFDResponse [17:10:12]1017 (14) - 77093643461234 [17:10:12]1041 (16) - 0000000000875060 [17:10:12]1040 (4) - 49359 [17:10:12]1012 (4) - 31.01.2024 11:11 [17:10:12]1206 (1) - 0 [17:10:12]OFD Sender: Remove packet 49359 [17:10:12]ProducePacketName [17:10:12]name=ofd_packets/00049359 [17:10:12]NVStorageDeleteData [17:10:13]Write to MH i2c: 01 00 00 93 A3 36 [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: 01 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: 01 07 00 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: 01 07 00 93 A3 00 00 00 00 00 F5 0C 3E [17:10:13]RasterBufferAndPrint [17:10:13]line [17:10:13]line [17:10:13]line [17:10:13]line [17:10:13]line [17:10:13]written 0, free lines is 3327 [17:10:13]MH_Cut [17:10:13]Write to MH i2c: D1 01 00 9A A3 01 0F [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: D1 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: D1 01 00 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: D1 01 00 9A A3 00 0E [17:10:13]Write to MH i2c: 01 00 00 9B A3 3E [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]OFD Sender: No OFD packet to send [17:10:13]*** Cut start [17:10:13]*** Partial cut [17:10:13]*** CUTSNS_PIN = 1 [17:10:13]*** CUTSNS_PIN = 0 [17:10:13]*** Brake cut motor [17:10:14]Read from MH i2c: 01 [17:10:14]MH_I2C_Read... [17:10:14]*** Stop cut motor [17:10:14]*** Cut end [17:10:14]Read from MH i2c: 01 07 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: 01 07 00 9B A3 00 00 00 00 00 FF 0F 53 [17:10:14]process_action close_receipt done [17:10:14]requested_data is exist [17:10:14]produce_requested_data [17:10:14]requested_item fm.sn is exist - process it [17:10:14]wFMCommunicate request_size=4 [17:10:14]MH_SAM_APDU [17:10:14]CAPDU: 80 11 00 00 [17:10:14]Write to MH i2c: E2 08 00 9C A3 80 11 00 00 00 00 00 00 B9 [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:14]Read from MH i2c: E2 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 17 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 17 00 9C A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 06 [17:10:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:10:14]wFMCommunicate OK [17:10:14]requested_item fd.num is exist - process it [17:10:14]SAM_PROTO_GetFieldsCounters [17:10:14]wFMCommunicate request_size=4 [17:10:14]MH_SAM_APDU [17:10:14]CAPDU: 80 13 00 00 [17:10:14]Write to MH i2c: E2 08 00 9D A3 80 13 00 00 00 00 00 00 BC [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:14]Read from MH i2c: E2 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 62 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 62 00 9D A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CF C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [17:10: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 CF C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:10:14]wFMCommunicate OK [17:10:14]SAM_PROTO_GetFieldsCounters done [17:10:14]requested_item shift.num is exist - process it [17:10:14]requested_item shift.opened is exist - process it [17:10:14]req_shift_opened [17:10:14]FM_GetShiftState [17:10:14]SAM_PROTO_GetShiftState [17:10:14]wFMCommunicate request_size=4 [17:10:14]MH_SAM_APDU [17:10:14]CAPDU: 80 13 01 00 [17:10:14]Write to MH i2c: E2 08 00 9E A3 80 13 01 00 00 00 00 00 BE [17:10:14]Write i2c OK [17:10:14]MH_I2C_Read... [17:10:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:14]Read from MH i2c: E2 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 0E 00 [17:10:14]MH_I2C_Read... [17:10:14]Read from MH i2c: E2 0E 00 9E A3 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 14 [17:10:14]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:10:14]wFMCommunicate OK [17:10:14]SAM_PROTO_GetShiftState done [17:10:14]FM_GetShiftState done [17:10:14]req_shift_opened done [17:10:14]requested_item shift.open_date is exist - process it [17:10:14]req_shift_open_date [17:10:14]req_shift_open_date done [17:10:14]produce_requested_data done [17:10:14]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49359,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [17:10:14]process_action_free close_receipt [17:10:14]json_value_free [17:10:14]json_value_free done [17:10:14]process_json_proto returns [17:10:14]Send response to host [17:10:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49359,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [17:10:14]free response buf [17:10:14]execute_script done [17:10:14]execute_script returns [17:10:14]free content buf [17:10:14]Sock 9.Close socket [17:10:14]Sock 9.Thread stoped [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]accept exits with 10 [17:12:38]New connection [17:12:38]New thread 3066670436 created [17:12:38]Thread 3066813796 joined [17:12:38]Waiting for new connection... [17:12:38] Sock 10.Parse request [17:12:38]Sock 10.Check first char [17:12:38]Sock 10.First char is OK [17:12:38]request: POST /json_proto HTTP/1.0 [17:12:38]Method: POST [17:12:38]URL: /json_proto [17:12:38]Method is POST - this is cgi request [17:12:38]url: /json_proto [17:12:38]query_string will be loaded in cgi processing [17:12:38]execute_cgi json_proto POST (null) [17:12:38]execute_cgi path=json_proto method=POST [17:12:38]POST find Content-Length [17:12:38]Host: 172.17.56.67:8080 [17:12:38]Content-Length: 677 [17:12:38]Content-Type: application/json [17:12:38] [17:12:38]POST finish read [17:12:38]Found Content-Length = 677 [17:12:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:38]execute_script... [17:12: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)216464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:12:38]POST & json_proto [17:12:38]process_json_proto [17:12:38]json parsed OK: [17:12:38]protocol is kg_v1.0 [17:12:38]action value=close_receipt [17:12:38]process_action close_receipt [17:12:38]cmd_close_receipt [17:12:38]MH_GetDate [17:12:38]Write to MH i2c: F0 00 00 9F A3 31 [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: F0 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: F0 09 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: F0 09 00 9F A3 00 9F 7F BA 65 26 5D 9E 65 FD [17:12:38]GetLastDocTimeStamp 1706721035 [17:12:38]current date 1706721183 [17:12:38]FM_GetShiftState [17:12:38]SAM_PROTO_GetShiftState [17:12:38]wFMCommunicate request_size=4 [17:12:38]MH_SAM_APDU [17:12:38]CAPDU: 80 13 01 00 [17:12:38]Write to MH i2c: E2 08 00 A0 A3 80 13 01 00 00 00 00 00 C0 [17:12:38]Write i2c OK [17:12:38]MH_I2C_Read... [17:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:38]Read from MH i2c: E2 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 0E 00 [17:12:38]MH_I2C_Read... [17:12:38]Read from MH i2c: E2 0E 00 A0 A3 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 16 [17:12:38]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:12:38]wFMCommunicate OK [17:12:38]SAM_PROTO_GetShiftState done [17:12:38]FM_GetShiftState done [17:12:38]opened in 1706659486 [17:12:38]opened+sec_in_day 1706745886 [17:12:38]quantity*price = 50049 [17:12:38]sum+1 = 50050 [17:12:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 85 31.01.2024 17:13 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49360 ФПД: 150509308338597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T171303&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49360&fm=150509308338597&tin=02508201610067®Number=0000000000092723&sum=50000 [17:12:39]StoreToDocumentArchive [17:12:39]shift 247 fd 49360 [17:12:39]save to /storage/0247/doc_00049360 [17:12:39]save last doc name /storage/0247/doc_00049360 to /storage/kkm_last_doc_name [17:12:39]save OK [17:12:39]Clear old archive folders... [17:12:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:39]tlvbuf is 0146A770 [17:12:39]SAM_PROTO_ClearQueue [17:12:39]wFMCommunicate request_size=4 [17:12:39]MH_SAM_APDU [17:12:39]CAPDU: 80 09 00 00 [17:12:39]Write to MH i2c: E2 08 00 AD A3 80 09 00 00 00 00 00 00 C2 [17:12:39]Write i2c OK [17:12:39]MH_I2C_Read... [17:12:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:39]Read from MH i2c: E2 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: E2 03 00 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: E2 03 00 AD A3 00 90 00 C4 [17:12:39]RAPDU: 90 00 [17:12:39]wFMCommunicate OK [17:12:39]SAM_PROTO_ClearQueue done [17:12:39]KKMCreateOFDPacket [17:12:39]OFDProtocolAddRootSTLVToBuf [17:12:39]FM_MakeSignedData [17:12:39]FM_MakeSignedData [17:12:39]SAM_PROTO_SignData [17:12:39]wFMCommunicate request_size=4 [17:12:39]MH_SAM_APDU [17:12:39]CAPDU: 80 0D 01 02 [17:12:39]Write to MH i2c: E2 08 00 AE A3 80 0D 01 02 00 00 00 00 CA [17:12:39]Write i2c OK [17:12:39]MH_I2C_Read... [17:12:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:39]Read from MH i2c: E2 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: E2 03 00 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: E2 03 00 AE A3 00 90 00 C5 [17:12:39]RAPDU: 90 00 [17:12:39]wFMCommunicate OK [17:12:39]wFMCommunicate request_size=255 [17:12:39]MH_SAM_APDU [17:12: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 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 9F 7F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D0 C0 00 00 35 04 06 00 88 [17:12:39]Write to MH i2c: E2 02 01 AF A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 9F 7F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D0 C0 00 00 35 04 06 00 88 00 00 9B [17:12:39]Write i2c OK [17:12:39]MH_I2C_Read... [17:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:39]Read from MH i2c: E2 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: E2 03 00 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: E2 03 00 AF A3 00 90 00 C6 [17:12:39]RAPDU: 90 00 [17:12:39]wFMCommunicate OK [17:12:39]wFMCommunicate request_size=10 [17:12:39]MH_SAM_APDU [17:12:39]CAPDU: 80 0D 02 02 05 E3 2D DB E1 A5 [17:12:39]Write to MH i2c: E2 0D 00 B0 A3 80 0D 02 02 05 00 E3 2D DB E1 A5 00 00 48 [17:12:39]Write i2c OK [17:12:39]MH_I2C_Read... [17:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:39]Read from MH i2c: E2 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: E2 03 00 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: E2 03 00 B0 A3 00 90 00 C7 [17:12:39]RAPDU: 90 00 [17:12:39]wFMCommunicate OK [17:12:39]wFMCommunicate request_size=4 [17:12:39]MH_SAM_APDU [17:12:39]CAPDU: 80 0D 03 02 [17:12:39]Write to MH i2c: E2 08 00 B1 A3 80 0D 03 02 00 00 00 00 CF [17:12:39]Write i2c OK [17:12:39]MH_I2C_Read... [17:12:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:39]Read from MH i2c: E2 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: E2 0B 00 [17:12:39]MH_I2C_Read... [17:12:39]Read from MH i2c: E2 0B 00 B1 A3 00 0F 4B B3 36 1D 6B 49 BE 90 00 A2 [17:12:39]RAPDU: 0F 4B B3 36 1D 6B 49 BE 90 00 [17:12:39]wFMCommunicate OK [17:12:39]SAM_PROTO_SignData done [17:12:39]FM_MakeSignedData done [17:12:39]CreateOFDProtocolMessage [17:12:39]wFMCommunicate request_size=4 [17:12:39]MH_SAM_APDU [17:12:39]CAPDU: 80 11 00 00 [17:12:39]Write to MH i2c: E2 08 00 B2 A3 80 11 00 00 00 00 00 00 CF [17:12:39]Write i2c OK [17:12:39]MH_I2C_Read... [17:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:40]Read from MH i2c: E2 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 17 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: E2 17 00 B2 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1C [17:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:12:40]wFMCommunicate OK [17:12:40]CreateOFDProtocolMessage done [17:12:40]OFDSenderStorePacket 49360 [17:12:40]StoreOFDPacket docnum=49360 [17:12:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 83 89 07 01 B5 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 9F 7F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D0 C0 00 00 35 04 06 00 88 E3 2D DB E1 A5 0F 4B B3 36 1D 6B 49 BE [17:12:40]CheckFolder [17:12:40]dirname=/storage/ofd_packets [17:12:40]CheckFolder done [17:12:40]ProducePacketName [17:12:40]name=ofd_packets/00049360 [17:12:40]NVStorageSaveData ofd_packets/00049360 [17:12:40]File name is /storage/ofd_packets/00049360 [17:12:40]Write 301 bytes [17:12:40]NVStorageSaveData done [17:12:40]OFDSenderStorePacket done [17:12:40]KKMCreateOFDPacket done [17:12:40]NVStorageSaveData kkm_last_timestamp [17:12:40]File name is /storage/kkm_last_timestamp [17:12:40]Write 4 bytes [17:12:40]NVStorageSaveData done [17:12:40]ExternCall_PrintAddStr [17:12:40]wPrintStart [17:12:40]Write to MH i2c: 01 00 00 B3 A3 56 [17:12:40]Write i2c OK [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: 01 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: 01 07 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: 01 07 00 B3 A3 00 00 00 00 00 FF 0F 6B [17:12:40]RasterBufferAndPrint [17:12:40]line Счет N : (1)216464 [17:12:40]line ИНН: 02508201610067 [17:12:40]line Контрольно-Кассовый Чек [17:12:40]line ПРОДАЖА [17:12:40]line ТРК (МРК, ГНК) : 22 [17:12:40]line Товар: 2710124130 [17:12:40]line Аи-92-К-5 [17:12:40]line 8.300 * 60.30 [17:12:40]line = 500.49 [17:12:40]line НДС 12% НСП 1% [17:12:40]line > о реализуемом товаре [17:12:40]line ОКРУГЛЕНИЕ: -0.49 [17:12:40]line ИТОГО: 500.00 [17:12:40]line Внесено: 500.00 [17:12:40]line СДАЧА: 0.00 [17:12:40]line НСП 1% : 4.43 [17:12:40]line НДС 12% : 53.15 [17:12:40]line Наличными: 500.00 [17:12:40]line Безнал.: 0.00 [17:12:40]line Место: АЗС № 102 "Партнер Нефть" [17:12:40]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:12:40]line СНО: Общий режим [17:12:40]line Чек 85 31.01.2024 17:13 [17:12:40]line Смена: 247 ФФД: 1.0 [17:12:40]line ЗНМ: 0300000040 [17:12:40]line РНМ: 0000000000092723 [17:12:40]line Версия ККМ: 001 [17:12:40]line ФМ: 0000000000875060 [17:12:40]line ФД: 49360 [17:12:40]line ФПД: 150509308338597 [17:12:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T171303&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49360&fm=150509308338597&tin=02508201610067®Number=0000000000092723&sum=50000 [17:12:40]OFD Sender: Processing packet 49360 [packets to send 12, broken 11] [17:12:40]ProducePacketName [17:12:40]name=ofd_packets/00049360 [17:12:40]OFD Sender: To server: pG, [17:12:40]CommunicateWithHost lk.salyk.kg:30040 [17:12:40]ConnectInit lk.salyk.kg [17:12:40]written 0, free lines is 4095 [17:12:40]Connected sock=9 [17:12:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 83 89 07 01 B5 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 9F 7F BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D0 C0 00 00 35 04 06 00 88 E3 2D DB E1 A5 0F 4B B3 36 1D 6B 49 BE [17:12:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 92 C1 47 00 F7 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D0 C0 00 00 F4 03 04 00 91 2B BA 65 B6 04 01 00 00 E9 5D 01 82 12 87 7B 41 [17:12:40]CommunicateWithHost err = 0 [17:12:40]CheckOFDResponse [17:12:40]1017 (14) - 77093643461234 [17:12:40]1041 (16) - 0000000000875060 [17:12:40]1040 (4) - 49360 [17:12:40]1012 (4) - 31.01.2024 11:14 [17:12:40]1206 (1) - 0 [17:12:40]OFD Sender: Remove packet 49360 [17:12:40]ProducePacketName [17:12:40]name=ofd_packets/00049360 [17:12:40]NVStorageDeleteData [17:12:40]Write to MH i2c: 01 00 00 DE A3 81 [17:12:40]Write i2c OK [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: 01 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: 01 07 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: 01 07 00 DE A3 00 00 00 00 00 F1 0C 85 [17:12:40]RasterBufferAndPrint [17:12:40]line [17:12:40]line [17:12:40]line [17:12:40]line [17:12:40]line [17:12:40]written 0, free lines is 3319 [17:12:40]MH_Cut [17:12:40]Write to MH i2c: D1 01 00 E5 A3 01 5A [17:12:40]Write i2c OK [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: D1 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: D1 01 00 [17:12:40]MH_I2C_Read... [17:12:40]Read from MH i2c: D1 01 00 E5 A3 00 59 [17:12:40]Write to MH i2c: 01 00 00 E6 A3 89 [17:12:40]Write i2c OK [17:12:40]MH_I2C_Read... [17:12:41]OFD Sender: No OFD packet to send [17:12:41]*** Cut start [17:12:41]*** Partial cut [17:12:41]*** CUTSNS_PIN = 1 [17:12:41]*** CUTSNS_PIN = 0 [17:12:41]*** Brake cut motor [17:12:42]Read from MH i2c: 01 [17:12:42]MH_I2C_Read... [17:12:42]*** Stop cut motor [17:12:42]*** Cut end [17:12:42]Read from MH i2c: 01 07 00 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: 01 07 00 E6 A3 00 00 00 00 00 FF 0F 9E [17:12:42]process_action close_receipt done [17:12:42]requested_data is exist [17:12:42]produce_requested_data [17:12:42]requested_item fm.sn is exist - process it [17:12:42]wFMCommunicate request_size=4 [17:12:42]MH_SAM_APDU [17:12:42]CAPDU: 80 11 00 00 [17:12:42]Write to MH i2c: E2 08 00 E7 A3 80 11 00 00 00 00 00 00 04 [17:12:42]Write i2c OK [17:12:42]MH_I2C_Read... [17:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:42]Read from MH i2c: E2 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 17 00 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 17 00 E7 A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 51 [17:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:12:42]wFMCommunicate OK [17:12:42]requested_item fd.num is exist - process it [17:12:42]SAM_PROTO_GetFieldsCounters [17:12:42]wFMCommunicate request_size=4 [17:12:42]MH_SAM_APDU [17:12:42]CAPDU: 80 13 00 00 [17:12:42]Write to MH i2c: E2 08 00 E8 A3 80 13 00 00 00 00 00 00 07 [17:12:42]Write i2c OK [17:12:42]MH_I2C_Read... [17:12:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:42]Read from MH i2c: E2 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 62 00 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 62 00 E8 A3 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D0 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [17:12: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D0 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:42]wFMCommunicate OK [17:12:42]SAM_PROTO_GetFieldsCounters done [17:12:42]requested_item shift.num is exist - process it [17:12:42]requested_item shift.opened is exist - process it [17:12:42]req_shift_opened [17:12:42]FM_GetShiftState [17:12:42]SAM_PROTO_GetShiftState [17:12:42]wFMCommunicate request_size=4 [17:12:42]MH_SAM_APDU [17:12:42]CAPDU: 80 13 01 00 [17:12:42]Write to MH i2c: E2 08 00 E9 A3 80 13 01 00 00 00 00 00 09 [17:12:42]Write i2c OK [17:12:42]MH_I2C_Read... [17:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:42]Read from MH i2c: E2 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 0E 00 [17:12:42]MH_I2C_Read... [17:12:42]Read from MH i2c: E2 0E 00 E9 A3 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 5F [17:12:42]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:12:42]wFMCommunicate OK [17:12:42]SAM_PROTO_GetShiftState done [17:12:42]FM_GetShiftState done [17:12:42]req_shift_opened done [17:12:42]requested_item shift.open_date is exist - process it [17:12:42]req_shift_open_date [17:12:42]req_shift_open_date done [17:12:42]produce_requested_data done [17:12:42]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49360,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [17:12:42]process_action_free close_receipt [17:12:42]json_value_free [17:12:42]json_value_free done [17:12:42]process_json_proto returns [17:12:42]Send response to host [17:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49360,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [17:12:42]free response buf [17:12:42]execute_script done [17:12:42]execute_script returns [17:12:42]free content buf [17:12:42]Sock 10.Close socket [17:12:42]Sock 10.Thread stoped [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:26]accept exits with 7 [17:19:26]New connection [17:19:26]New thread 3066813796 created [17:19:26]Thread 3066670436 joined [17:19:26]Waiting for new connection... [17:19:26] Sock 7.Parse request [17:19:26]Sock 7.Check first char [17:19:26]Sock 7.First char is OK [17:19:26]request: POST /json_proto HTTP/1.0 [17:19:26]Method: POST [17:19:26]URL: /json_proto [17:19:26]Method is POST - this is cgi request [17:19:26]url: /json_proto [17:19:26]query_string will be loaded in cgi processing [17:19:26]execute_cgi json_proto POST (null) [17:19:26]execute_cgi path=json_proto method=POST [17:19:26]POST find Content-Length [17:19:26]Host: 172.17.56.67:8080 [17:19:26]Content-Length: 677 [17:19:26]Content-Type: application/json [17:19:26] [17:19:26]POST finish read [17:19:26]Found Content-Length = 677 [17:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.140, "sum" : 370.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:26]execute_script... [17:19: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)216465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.140, "sum" : 370.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:26]POST & json_proto [17:19:26]process_json_proto [17:19:26]json parsed OK: [17:19:26]protocol is kg_v1.0 [17:19:26]action value=close_receipt [17:19:26]process_action close_receipt [17:19:26]cmd_close_receipt [17:19:26]MH_GetDate [17:19:26]Write to MH i2c: F0 00 00 EA A3 7C [17:19:26]Write i2c OK [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: F0 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: F0 09 00 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: F0 09 00 EA A3 00 37 81 BA 65 26 5D 9E 65 E2 [17:19:26]GetLastDocTimeStamp 1706721183 [17:19:26]current date 1706721591 [17:19:26]FM_GetShiftState [17:19:26]SAM_PROTO_GetShiftState [17:19:26]wFMCommunicate request_size=4 [17:19:26]MH_SAM_APDU [17:19:26]CAPDU: 80 13 01 00 [17:19:26]Write to MH i2c: E2 08 00 EB A3 80 13 01 00 00 00 00 00 0B [17:19:26]Write i2c OK [17:19:26]MH_I2C_Read... [17:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:26]Read from MH i2c: E2 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 0E 00 [17:19:26]MH_I2C_Read... [17:19:26]Read from MH i2c: E2 0E 00 EB A3 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 61 [17:19:26]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:19:26]wFMCommunicate OK [17:19:26]SAM_PROTO_GetShiftState done [17:19:26]FM_GetShiftState done [17:19:26]opened in 1706659486 [17:19:26]opened+sec_in_day 1706745886 [17:19:26]quantity*price = 37024 [17:19:26]sum+1 = 37025 [17:19:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.32 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 86 31.01.2024 17:19 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49361 ФПД: 135164359387058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T171951&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49361&fm=135164359387058&tin=02508201610067®Number=0000000000092723&sum=37000 [17:19:27]StoreToDocumentArchive [17:19:27]shift 247 fd 49361 [17:19:27]save to /storage/0247/doc_00049361 [17:19:27]save last doc name /storage/0247/doc_00049361 to /storage/kkm_last_doc_name [17:19:27]save OK [17:19:27]Clear old archive folders... [17:19:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:27]tlvbuf is 013554E0 [17:19:27]SAM_PROTO_ClearQueue [17:19:27]wFMCommunicate request_size=4 [17:19:27]MH_SAM_APDU [17:19:27]CAPDU: 80 09 00 00 [17:19:27]Write to MH i2c: E2 08 00 F8 A3 80 09 00 00 00 00 00 00 0D [17:19:27]Write i2c OK [17:19:27]MH_I2C_Read... [17:19:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:27]Read from MH i2c: E2 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: E2 03 00 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: E2 03 00 F8 A3 00 90 00 0F [17:19:27]RAPDU: 90 00 [17:19:27]wFMCommunicate OK [17:19:27]SAM_PROTO_ClearQueue done [17:19:27]KKMCreateOFDPacket [17:19:27]OFDProtocolAddRootSTLVToBuf [17:19:27]FM_MakeSignedData [17:19:27]FM_MakeSignedData [17:19:27]SAM_PROTO_SignData [17:19:27]wFMCommunicate request_size=4 [17:19:27]MH_SAM_APDU [17:19:27]CAPDU: 80 0D 01 02 [17:19:27]Write to MH i2c: E2 08 00 F9 A3 80 0D 01 02 00 00 00 00 15 [17:19:27]Write i2c OK [17:19:27]MH_I2C_Read... [17:19:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:27]Read from MH i2c: E2 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: E2 03 00 [17:19:27]MH_I2C_Read... [17:19:27]Read from MH i2c: E2 03 00 F9 A3 00 90 00 10 [17:19:27]RAPDU: 90 00 [17:19:27]wFMCommunicate OK [17:19:27]wFMCommunicate request_size=255 [17:19:27]MH_SAM_APDU [17:19:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A0 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 37 81 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D1 C0 00 00 35 04 06 00 7A [17:19:27]Write to MH i2c: E2 02 01 FA A3 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A0 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 37 81 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D1 C0 00 00 35 04 06 00 7A 00 00 12 [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:28]Read from MH i2c: E2 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 03 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 03 00 FA A3 00 90 00 11 [17:19:28]RAPDU: 90 00 [17:19:28]wFMCommunicate OK [17:19:28]wFMCommunicate request_size=10 [17:19:28]MH_SAM_APDU [17:19:28]CAPDU: 80 0D 02 02 05 EE 67 A0 A7 B2 [17:19:28]Write to MH i2c: E2 0D 00 FB A3 80 0D 02 02 05 00 EE 67 A0 A7 B2 00 00 70 [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:28]Read from MH i2c: E2 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 03 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 03 00 FB A3 00 90 00 12 [17:19:28]RAPDU: 90 00 [17:19:28]wFMCommunicate OK [17:19:28]wFMCommunicate request_size=4 [17:19:28]MH_SAM_APDU [17:19:28]CAPDU: 80 0D 03 02 [17:19:28]Write to MH i2c: E2 08 00 FC A3 80 0D 03 02 00 00 00 00 1A [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:28]Read from MH i2c: E2 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 0B 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 0B 00 FC A3 00 F9 FB 18 93 65 CD C7 6C 90 00 1F [17:19:28]RAPDU: F9 FB 18 93 65 CD C7 6C 90 00 [17:19:28]wFMCommunicate OK [17:19:28]SAM_PROTO_SignData done [17:19:28]FM_MakeSignedData done [17:19:28]CreateOFDProtocolMessage [17:19:28]wFMCommunicate request_size=4 [17:19:28]MH_SAM_APDU [17:19:28]CAPDU: 80 11 00 00 [17:19:28]Write to MH i2c: E2 08 00 FD A3 80 11 00 00 00 00 00 00 1A [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:28]Read from MH i2c: E2 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 17 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: E2 17 00 FD A3 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 67 [17:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:19:28]wFMCommunicate OK [17:19:28]CreateOFDProtocolMessage done [17:19:28]OFDSenderStorePacket 49361 [17:19:28]StoreOFDPacket docnum=49361 [17:19:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 4E C3 07 01 2F A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A0 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 37 81 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D1 C0 00 00 35 04 06 00 7A EE 67 A0 A7 B2 F9 FB 18 93 65 CD C7 6C [17:19:28]CheckFolder [17:19:28]dirname=/storage/ofd_packets [17:19:28]CheckFolder done [17:19:28]ProducePacketName [17:19:28]name=ofd_packets/00049361 [17:19:28]NVStorageSaveData ofd_packets/00049361 [17:19:28]File name is /storage/ofd_packets/00049361 [17:19:28]Write 301 bytes [17:19:28]NVStorageSaveData done [17:19:28]OFDSenderStorePacket done [17:19:28]KKMCreateOFDPacket done [17:19:28]NVStorageSaveData kkm_last_timestamp [17:19:28]File name is /storage/kkm_last_timestamp [17:19:28]Write 4 bytes [17:19:28]NVStorageSaveData done [17:19:28]ExternCall_PrintAddStr [17:19:28]wPrintStart [17:19:28]Write to MH i2c: 01 00 00 FE A3 A1 [17:19:28]Write i2c OK [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: 01 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: 01 07 00 [17:19:28]MH_I2C_Read... [17:19:28]Read from MH i2c: 01 07 00 FE A3 00 00 00 00 00 FF 0F B6 [17:19:28]RasterBufferAndPrint [17:19:28]line Счет N : (1)216465 [17:19:28]line ИНН: 02508201610067 [17:19:28]line Контрольно-Кассовый Чек [17:19:28]line ПРОДАЖА [17:19:28]line ТРК (МРК, ГНК) : 12 [17:19:28]line Товар: 2710124130 [17:19:28]line Аи-92-К-5 [17:19:28]line 6.140 * 60.30 [17:19:28]line = 370.24 [17:19:28]line НДС 12% НСП 1% [17:19:28]line > о реализуемом товаре [17:19:28]line ОКРУГЛЕНИЕ: -0.24 [17:19:28]line ИТОГО: 370.00 [17:19:28]line Внесено: 370.00 [17:19:28]line СДАЧА: 0.00 [17:19:28]line НСП 1% : 3.28 [17:19:28]line НДС 12% : 39.32 [17:19:28]line Наличными: 370.00 [17:19:28]line Безнал.: 0.00 [17:19:28]line Место: АЗС № 102 "Партнер Нефть" [17:19:28]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:19:28]line СНО: Общий режим [17:19:28]line Чек 86 31.01.2024 17:19 [17:19:28]line Смена: 247 ФФД: 1.0 [17:19:28]line ЗНМ: 0300000040 [17:19:28]line РНМ: 0000000000092723 [17:19:28]line Версия ККМ: 001 [17:19:28]line ФМ: 0000000000875060 [17:19:28]line ФД: 49361 [17:19:28]line ФПД: 135164359387058 [17:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T171951&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49361&fm=135164359387058&tin=02508201610067®Number=0000000000092723&sum=37000 [17:19:28]OFD Sender: Processing packet 49361 [packets to send 12, broken 11] [17:19:28]ProducePacketName [17:19:28]name=ofd_packets/00049361 [17:19:28]OFD Sender: To server: pG, [17:19:28]CommunicateWithHost lk.salyk.kg:30040 [17:19:28]ConnectInit lk.salyk.kg [17:19:28]written 0, free lines is 4095 [17:19:28]Connected sock=10 [17:19:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 4E C3 07 01 2F A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FC 17 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A0 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 37 81 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D1 C0 00 00 35 04 06 00 7A EE 67 A0 A7 B2 F9 FB 18 93 65 CD C7 6C [17:19:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 D9 1C 47 00 85 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 35 30 36 30 10 04 04 00 D1 C0 00 00 F4 03 04 00 29 2D BA 65 B6 04 01 00 00 57 A5 60 E9 D2 C1 C4 92 [17:19:29]CommunicateWithHost err = 0 [17:19:29]CheckOFDResponse [17:19:29]1017 (14) - 77093643461234 [17:19:29]1041 (16) - 0000000000875060 [17:19:29]1040 (4) - 49361 [17:19:29]1012 (4) - 31.01.2024 11:21 [17:19:29]1206 (1) - 0 [17:19:29]OFD Sender: Remove packet 49361 [17:19:29]ProducePacketName [17:19:29]name=ofd_packets/00049361 [17:19:29]NVStorageDeleteData [17:19:29]Write to MH i2c: 01 00 00 29 A4 CD [17:19:29]Write i2c OK [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: 01 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: 01 07 00 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: 01 07 00 29 A4 00 00 00 00 00 F1 0C D1 [17:19:29]RasterBufferAndPrint [17:19:29]line [17:19:29]line [17:19:29]line [17:19:29]line [17:19:29]line [17:19:29]written 0, free lines is 3322 [17:19:29]MH_Cut [17:19:29]Write to MH i2c: D1 01 00 30 A4 01 A6 [17:19:29]Write i2c OK [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: D1 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: D1 01 00 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: D1 01 00 30 A4 00 A5 [17:19:29]Write to MH i2c: 01 00 00 31 A4 D5 [17:19:29]Write i2c OK [17:19:29]MH_I2C_Read... [17:19:29]OFD Sender: No OFD packet to send [17:19:29]*** Cut start [17:19:29]*** Partial cut [17:19:29]*** CUTSNS_PIN = 1 [17:19:29]*** CUTSNS_PIN = 0 [17:19:30]*** Brake cut motor [17:19:30]Read from MH i2c: 01 [17:19:30]MH_I2C_Read... [17:19:30]*** Stop cut motor [17:19:30]*** Cut end [17:19:30]Read from MH i2c: 01 07 00 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: 01 07 00 31 A4 00 00 00 00 00 FF 0F EA [17:19:30]process_action close_receipt done [17:19:30]requested_data is exist [17:19:30]produce_requested_data [17:19:30]requested_item fm.sn is exist - process it [17:19:30]wFMCommunicate request_size=4 [17:19:30]MH_SAM_APDU [17:19:30]CAPDU: 80 11 00 00 [17:19:30]Write to MH i2c: E2 08 00 32 A4 80 11 00 00 00 00 00 00 50 [17:19:30]Write i2c OK [17:19:30]MH_I2C_Read... [17:19:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:30]Read from MH i2c: E2 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 17 00 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 17 00 32 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9D [17:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:19:30]wFMCommunicate OK [17:19:30]requested_item fd.num is exist - process it [17:19:30]SAM_PROTO_GetFieldsCounters [17:19:30]wFMCommunicate request_size=4 [17:19:30]MH_SAM_APDU [17:19:30]CAPDU: 80 13 00 00 [17:19:30]Write to MH i2c: E2 08 00 33 A4 80 13 00 00 00 00 00 00 53 [17:19:30]Write i2c OK [17:19:30]MH_I2C_Read... [17:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:30]Read from MH i2c: E2 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 62 00 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 62 00 33 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D1 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [17:19: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D1 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:30]wFMCommunicate OK [17:19:30]SAM_PROTO_GetFieldsCounters done [17:19:30]requested_item shift.num is exist - process it [17:19:30]requested_item shift.opened is exist - process it [17:19:30]req_shift_opened [17:19:30]FM_GetShiftState [17:19:30]SAM_PROTO_GetShiftState [17:19:30]wFMCommunicate request_size=4 [17:19:30]MH_SAM_APDU [17:19:30]CAPDU: 80 13 01 00 [17:19:30]Write to MH i2c: E2 08 00 34 A4 80 13 01 00 00 00 00 00 55 [17:19:30]Write i2c OK [17:19:30]MH_I2C_Read... [17:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:30]Read from MH i2c: E2 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 0E 00 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 0E 00 34 A4 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 AB [17:19:30]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:19:30]wFMCommunicate OK [17:19:30]SAM_PROTO_GetShiftState done [17:19:30]FM_GetShiftState done [17:19:30]req_shift_opened done [17:19:30]requested_item shift.open_date is exist - process it [17:19:30]req_shift_open_date [17:19:30]req_shift_open_date done [17:19:30]produce_requested_data done [17:19:30]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49361,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [17:19:30]process_action_free close_receipt [17:19:30]json_value_free [17:19:30]json_value_free done [17:19:30]process_json_proto returns [17:19:30]Send response to host [17:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49361,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [17:19:30]free response buf [17:19:30]execute_script done [17:19:30]execute_script returns [17:19:30]free content buf [17:19:30]Sock 7.Close socket [17:19:30]Sock 7.Thread stoped [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:25]accept exits with 9 [17:21:25]New connection [17:21:25]New thread 3066670436 created [17:21:25]Thread 3066813796 joined [17:21:25]Waiting for new connection... [17:21:25] Sock 9.Parse request [17:21:25]Sock 9.Check first char [17:21:25]Sock 9.First char is OK [17:21:25]request: POST /json_proto HTTP/1.0 [17:21:25]Method: POST [17:21:25]URL: /json_proto [17:21:25]Method is POST - this is cgi request [17:21:25]url: /json_proto [17:21:25]query_string will be loaded in cgi processing [17:21:25]execute_cgi json_proto POST (null) [17:21:25]execute_cgi path=json_proto method=POST [17:21:25]POST find Content-Length [17:21:25]Host: 172.17.56.67:8080 [17:21:25]Content-Length: 677 [17:21:25]Content-Type: application/json [17:21:25] [17:21:25]POST finish read [17:21:25]Found Content-Length = 677 [17:21:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:25]execute_script... [17:21: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)216466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:21:25]POST & json_proto [17:21:25]process_json_proto [17:21:25]json parsed OK: [17:21:25]protocol is kg_v1.0 [17:21:25]action value=close_receipt [17:21:25]process_action close_receipt [17:21:25]cmd_close_receipt [17:21:25]MH_GetDate [17:21:25]Write to MH i2c: F0 00 00 35 A4 C8 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: F0 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: F0 09 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: F0 09 00 35 A4 00 AE 81 BA 65 26 5D 9E 65 A5 [17:21:25]GetLastDocTimeStamp 1706721591 [17:21:25]current date 1706721710 [17:21:25]FM_GetShiftState [17:21:25]SAM_PROTO_GetShiftState [17:21:25]wFMCommunicate request_size=4 [17:21:25]MH_SAM_APDU [17:21:25]CAPDU: 80 13 01 00 [17:21:25]Write to MH i2c: E2 08 00 36 A4 80 13 01 00 00 00 00 00 57 [17:21:25]Write i2c OK [17:21:25]MH_I2C_Read... [17:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:25]Read from MH i2c: E2 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 0E 00 [17:21:25]MH_I2C_Read... [17:21:25]Read from MH i2c: E2 0E 00 36 A4 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 AD [17:21:25]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:21:25]wFMCommunicate OK [17:21:25]SAM_PROTO_GetShiftState done [17:21:25]FM_GetShiftState done [17:21:25]opened in 1706659486 [17:21:25]opened+sec_in_day 1706745886 [17:21:25]quantity*price = 50049 [17:21:25]sum+1 = 50050 [17:21:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 87 31.01.2024 17:21 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49362 ФПД: 219183666064469 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T172150&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49362&fm=219183666064469&tin=02508201610067®Number=0000000000092723&sum=50000 [17:21:26]StoreToDocumentArchive [17:21:26]shift 247 fd 49362 [17:21:26]save to /storage/0247/doc_00049362 [17:21:26]save last doc name /storage/0247/doc_00049362 to /storage/kkm_last_doc_name [17:21:26]save OK [17:21:26]Clear old archive folders... [17:21:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:26]tlvbuf is 01482690 [17:21:26]SAM_PROTO_ClearQueue [17:21:26]wFMCommunicate request_size=4 [17:21:26]MH_SAM_APDU [17:21:26]CAPDU: 80 09 00 00 [17:21:26]Write to MH i2c: E2 08 00 43 A4 80 09 00 00 00 00 00 00 59 [17:21:26]Write i2c OK [17:21:26]MH_I2C_Read... [17:21:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:26]Read from MH i2c: E2 [17:21:26]MH_I2C_Read... [17:21:26]Read from MH i2c: E2 03 00 [17:21:26]MH_I2C_Read... [17:21:26]Read from MH i2c: E2 03 00 43 A4 00 90 00 5B [17:21:26]RAPDU: 90 00 [17:21:26]wFMCommunicate OK [17:21:26]SAM_PROTO_ClearQueue done [17:21:26]KKMCreateOFDPacket [17:21:26]OFDProtocolAddRootSTLVToBuf [17:21:26]FM_MakeSignedData [17:21:26]FM_MakeSignedData [17:21:26]SAM_PROTO_SignData [17:21:26]wFMCommunicate request_size=4 [17:21:26]MH_SAM_APDU [17:21:26]CAPDU: 80 0D 01 02 [17:21:26]Write to MH i2c: E2 08 00 44 A4 80 0D 01 02 00 00 00 00 61 [17:21:26]Write i2c OK [17:21:26]MH_I2C_Read... [17:21:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:26]Read from MH i2c: E2 [17:21:26]MH_I2C_Read... [17:21:26]Read from MH i2c: E2 03 00 [17:21:26]MH_I2C_Read... [17:21:26]Read from MH i2c: E2 03 00 44 A4 00 90 00 5C [17:21:26]RAPDU: 90 00 [17:21:26]wFMCommunicate OK [17:21:26]wFMCommunicate request_size=255 [17:21:26]MH_SAM_APDU [17:21:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 AE 81 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D2 C0 00 00 35 04 06 00 C7 [17:21:26]Write to MH i2c: E2 02 01 45 A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 AE 81 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D2 C0 00 00 35 04 06 00 C7 00 00 86 [17:21:26]Write i2c OK [17:21:26]MH_I2C_Read... [17:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:26]Read from MH i2c: E2 [17:21:26]MH_I2C_Read... [17:21:26]Read from MH i2c: E2 03 00 [17:21:26]MH_I2C_Read... [17:21:26]Read from MH i2c: E2 03 00 45 A4 00 90 00 5D [17:21:26]RAPDU: 90 00 [17:21:26]wFMCommunicate OK [17:21:26]wFMCommunicate request_size=10 [17:21:26]MH_SAM_APDU [17:21:26]CAPDU: 80 0D 02 02 05 58 AC 8E 6C 55 [17:21:26]Write to MH i2c: E2 0D 00 46 A4 80 0D 02 02 05 00 58 AC 8E 6C 55 00 00 C1 [17:21:26]Write i2c OK [17:21:26]MH_I2C_Read... [17:21:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:26]Read from MH i2c: E2 [17:21:26]MH_I2C_Read... [17:21:26]Read from MH i2c: E2 03 00 [17:21:26]MH_I2C_Read... [17:21:26]Read from MH i2c: E2 03 00 46 A4 00 90 00 5E [17:21:26]RAPDU: 90 00 [17:21:26]wFMCommunicate OK [17:21:26]wFMCommunicate request_size=4 [17:21:26]MH_SAM_APDU [17:21:26]CAPDU: 80 0D 03 02 [17:21:26]Write to MH i2c: E2 08 00 47 A4 80 0D 03 02 00 00 00 00 66 [17:21:26]Write i2c OK [17:21:26]MH_I2C_Read... [17:21:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:27]Read from MH i2c: E2 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: E2 0B 00 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: E2 0B 00 47 A4 00 A3 EE C7 92 68 5B 0E 20 90 00 42 [17:21:27]RAPDU: A3 EE C7 92 68 5B 0E 20 90 00 [17:21:27]wFMCommunicate OK [17:21:27]SAM_PROTO_SignData done [17:21:27]FM_MakeSignedData done [17:21:27]CreateOFDProtocolMessage [17:21:27]wFMCommunicate request_size=4 [17:21:27]MH_SAM_APDU [17:21:27]CAPDU: 80 11 00 00 [17:21:27]Write to MH i2c: E2 08 00 48 A4 80 11 00 00 00 00 00 00 66 [17:21:27]Write i2c OK [17:21:27]MH_I2C_Read... [17:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:27]Read from MH i2c: E2 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: E2 17 00 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: E2 17 00 48 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B3 [17:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:21:27]wFMCommunicate OK [17:21:27]CreateOFDProtocolMessage done [17:21:27]OFDSenderStorePacket 49362 [17:21:27]StoreOFDPacket docnum=49362 [17:21:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 04 EA 07 01 29 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 AE 81 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D2 C0 00 00 35 04 06 00 C7 58 AC 8E 6C 55 A3 EE C7 92 68 5B 0E 20 [17:21:27]CheckFolder [17:21:27]dirname=/storage/ofd_packets [17:21:27]CheckFolder done [17:21:27]ProducePacketName [17:21:27]name=ofd_packets/00049362 [17:21:27]NVStorageSaveData ofd_packets/00049362 [17:21:27]File name is /storage/ofd_packets/00049362 [17:21:27]Write 301 bytes [17:21:27]NVStorageSaveData done [17:21:27]OFDSenderStorePacket done [17:21:27]KKMCreateOFDPacket done [17:21:27]NVStorageSaveData kkm_last_timestamp [17:21:27]File name is /storage/kkm_last_timestamp [17:21:27]Write 4 bytes [17:21:27]NVStorageSaveData done [17:21:27]ExternCall_PrintAddStr [17:21:27]wPrintStart [17:21:27]Write to MH i2c: 01 00 00 49 A4 ED [17:21:27]Write i2c OK [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: 01 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: 01 07 00 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: 01 07 00 49 A4 00 00 00 00 00 FF 0F 02 [17:21:27]RasterBufferAndPrint [17:21:27]line Счет N : (1)216466 [17:21:27]line ИНН: 02508201610067 [17:21:27]line Контрольно-Кассовый Чек [17:21:27]line ПРОДАЖА [17:21:27]line ТРК (МРК, ГНК) : 22 [17:21:27]line Товар: 2710124130 [17:21:27]line Аи-92-К-5 [17:21:27]line 8.300 * 60.30 [17:21:27]line = 500.49 [17:21:27]line НДС 12% НСП 1% [17:21:27]line > о реализуемом товаре [17:21:27]line ОКРУГЛЕНИЕ: -0.49 [17:21:27]line ИТОГО: 500.00 [17:21:27]line Внесено: 500.00 [17:21:27]line СДАЧА: 0.00 [17:21:27]line НСП 1% : 4.43 [17:21:27]line НДС 12% : 53.15 [17:21:27]line Наличными: 500.00 [17:21:27]line Безнал.: 0.00 [17:21:27]line Место: АЗС № 102 "Партнер Нефть" [17:21:27]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:21:27]line СНО: Общий режим [17:21:27]line Чек 87 31.01.2024 17:21 [17:21:27]line Смена: 247 ФФД: 1.0 [17:21:27]line ЗНМ: 0300000040 [17:21:27]line РНМ: 0000000000092723 [17:21:27]line Версия ККМ: 001 [17:21:27]line ФМ: 0000000000875060 [17:21:27]line ФД: 49362 [17:21:27]line ФПД: 219183666064469 [17:21:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T172150&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49362&fm=219183666064469&tin=02508201610067®Number=0000000000092723&sum=50000 [17:21:27]OFD Sender: Processing packet 49362 [packets to send 12, broken 11] [17:21:27]ProducePacketName [17:21:27]name=ofd_packets/00049362 [17:21:27]OFD Sender: To server: pG, [17:21:27]CommunicateWithHost lk.salyk.kg:30040 [17:21:27]ConnectInit lk.salyk.kg [17:21:27]written 0, free lines is 4095 [17:21:27]Connected sock=10 [17:21:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 04 EA 07 01 29 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 AE 81 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D2 C0 00 00 35 04 06 00 C7 58 AC 8E 6C 55 A3 EE C7 92 68 5B 0E 20 [17:21:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 F3 00 47 00 E9 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 35 30 36 30 10 04 04 00 D2 C0 00 00 F4 03 04 00 A0 2D BA 65 B6 04 01 00 00 D7 25 44 78 F5 1D 23 08 [17:21:27]CommunicateWithHost err = 0 [17:21:27]CheckOFDResponse [17:21:27]1017 (14) - 77093643461234 [17:21:27]1041 (16) - 0000000000875060 [17:21:27]1040 (4) - 49362 [17:21:27]1012 (4) - 31.01.2024 11:23 [17:21:27]1206 (1) - 0 [17:21:27]OFD Sender: Remove packet 49362 [17:21:27]ProducePacketName [17:21:27]name=ofd_packets/00049362 [17:21:27]NVStorageDeleteData [17:21:27]Write to MH i2c: 01 00 00 74 A4 18 [17:21:27]Write i2c OK [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: 01 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: 01 07 00 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: 01 07 00 74 A4 00 00 00 00 00 F3 0C 1E [17:21:27]RasterBufferAndPrint [17:21:27]line [17:21:27]line [17:21:27]line [17:21:27]line [17:21:27]line [17:21:27]written 0, free lines is 3324 [17:21:27]MH_Cut [17:21:27]Write to MH i2c: D1 01 00 7B A4 01 F1 [17:21:27]Write i2c OK [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: D1 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: D1 01 00 [17:21:27]MH_I2C_Read... [17:21:27]Read from MH i2c: D1 01 00 7B A4 00 F0 [17:21:27]Write to MH i2c: 01 00 00 7C A4 20 [17:21:27]Write i2c OK [17:21:27]MH_I2C_Read... [17:21:28]OFD Sender: No OFD packet to send [17:21:28]*** Cut start [17:21:28]*** Partial cut [17:21:28]*** CUTSNS_PIN = 1 [17:21:28]*** CUTSNS_PIN = 0 [17:21:28]*** Brake cut motor [17:21:29]Read from MH i2c: 01 [17:21:29]MH_I2C_Read... [17:21:29]*** Stop cut motor [17:21:29]*** Cut end [17:21:29]Read from MH i2c: 01 07 00 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: 01 07 00 7C A4 00 00 00 00 00 FF 0F 35 [17:21:29]process_action close_receipt done [17:21:29]requested_data is exist [17:21:29]produce_requested_data [17:21:29]requested_item fm.sn is exist - process it [17:21:29]wFMCommunicate request_size=4 [17:21:29]MH_SAM_APDU [17:21:29]CAPDU: 80 11 00 00 [17:21:29]Write to MH i2c: E2 08 00 7D A4 80 11 00 00 00 00 00 00 9B [17:21:29]Write i2c OK [17:21:29]MH_I2C_Read... [17:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:29]Read from MH i2c: E2 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 17 00 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 17 00 7D A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E8 [17:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:21:29]wFMCommunicate OK [17:21:29]requested_item fd.num is exist - process it [17:21:29]SAM_PROTO_GetFieldsCounters [17:21:29]wFMCommunicate request_size=4 [17:21:29]MH_SAM_APDU [17:21:29]CAPDU: 80 13 00 00 [17:21:29]Write to MH i2c: E2 08 00 7E A4 80 13 00 00 00 00 00 00 9E [17:21:29]Write i2c OK [17:21:29]MH_I2C_Read... [17:21:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:29]Read from MH i2c: E2 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 62 00 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 62 00 7E A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [17:21: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:29]wFMCommunicate OK [17:21:29]SAM_PROTO_GetFieldsCounters done [17:21:29]requested_item shift.num is exist - process it [17:21:29]requested_item shift.opened is exist - process it [17:21:29]req_shift_opened [17:21:29]FM_GetShiftState [17:21:29]SAM_PROTO_GetShiftState [17:21:29]wFMCommunicate request_size=4 [17:21:29]MH_SAM_APDU [17:21:29]CAPDU: 80 13 01 00 [17:21:29]Write to MH i2c: E2 08 00 7F A4 80 13 01 00 00 00 00 00 A0 [17:21:29]Write i2c OK [17:21:29]MH_I2C_Read... [17:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:29]Read from MH i2c: E2 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 0E 00 [17:21:29]MH_I2C_Read... [17:21:29]Read from MH i2c: E2 0E 00 7F A4 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 F6 [17:21:29]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:21:29]wFMCommunicate OK [17:21:29]SAM_PROTO_GetShiftState done [17:21:29]FM_GetShiftState done [17:21:29]req_shift_opened done [17:21:29]requested_item shift.open_date is exist - process it [17:21:29]req_shift_open_date [17:21:29]req_shift_open_date done [17:21:29]produce_requested_data done [17:21:29]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49362,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [17:21:29]process_action_free close_receipt [17:21:29]json_value_free [17:21:29]json_value_free done [17:21:29]process_json_proto returns [17:21:29]Send response to host [17:21:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49362,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [17:21:29]free response buf [17:21:29]execute_script done [17:21:29]execute_script returns [17:21:29]free content buf [17:21:29]Sock 9.Close socket [17:21:29]Sock 9.Thread stoped [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:55]accept exits with 7 [17:22:55]New connection [17:22:55]New thread 3066813796 created [17:22:55]Thread 3066670436 joined [17:22:55]Waiting for new connection... [17:22:55] Sock 7.Parse request [17:22:55]Sock 7.Check first char [17:22:55]Sock 7.First char is OK [17:22:55]request: POST /json_proto HTTP/1.0 [17:22:55]Method: POST [17:22:55]URL: /json_proto [17:22:55]Method is POST - this is cgi request [17:22:55]url: /json_proto [17:22:55]query_string will be loaded in cgi processing [17:22:55]execute_cgi json_proto POST (null) [17:22:55]execute_cgi path=json_proto method=POST [17:22:55]POST find Content-Length [17:22:55]Host: 172.17.56.67:8080 [17:22:55]Content-Length: 682 [17:22:55]Content-Type: application/json [17:22:55] [17:22:55]POST finish read [17:22:55]Found Content-Length = 682 [17:22:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:55]execute_script... [17:22:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:55]POST & json_proto [17:22:55]process_json_proto [17:22:55]json parsed OK: [17:22:55]protocol is kg_v1.0 [17:22:55]action value=close_receipt [17:22:55]process_action close_receipt [17:22:55]cmd_close_receipt [17:22:55]MH_GetDate [17:22:55]Write to MH i2c: F0 00 00 80 A4 13 [17:22:55]Write i2c OK [17:22:55]MH_I2C_Read... [17:22:55]Read from MH i2c: F0 [17:22:55]MH_I2C_Read... [17:22:55]Read from MH i2c: F0 09 00 [17:22:55]MH_I2C_Read... [17:22:55]Read from MH i2c: F0 09 00 80 A4 00 08 82 BA 65 26 5D 9E 65 4B [17:22:55]GetLastDocTimeStamp 1706721710 [17:22:55]current date 1706721800 [17:22:55]FM_GetShiftState [17:22:55]SAM_PROTO_GetShiftState [17:22:55]wFMCommunicate request_size=4 [17:22:55]MH_SAM_APDU [17:22:55]CAPDU: 80 13 01 00 [17:22:55]Write to MH i2c: E2 08 00 81 A4 80 13 01 00 00 00 00 00 A2 [17:22:55]Write i2c OK [17:22:55]MH_I2C_Read... [17:22:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:55]Read from MH i2c: E2 [17:22:55]MH_I2C_Read... [17:22:55]Read from MH i2c: E2 0E 00 [17:22:55]MH_I2C_Read... [17:22:55]Read from MH i2c: E2 0E 00 81 A4 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 F8 [17:22:55]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:22:55]wFMCommunicate OK [17:22:55]SAM_PROTO_GetShiftState done [17:22:55]FM_GetShiftState done [17:22:55]opened in 1706659486 [17:22:55]opened+sec_in_day 1706745886 [17:22:55]quantity*price = 100037 [17:22:55]sum+1 = 100039 [17:22:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 88 31.01.2024 17:23 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49363 ФПД: 56675270037036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T172320&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49363&fm=56675270037036&tin=02508201610067®Number=0000000000092723&sum=100000 [17:22:56]StoreToDocumentArchive [17:22:56]shift 247 fd 49363 [17:22:56]save to /storage/0247/doc_00049363 [17:22:56]save last doc name /storage/0247/doc_00049363 to /storage/kkm_last_doc_name [17:22:56]save OK [17:22:56]Clear old archive folders... [17:22:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:22:56]tlvbuf is 01306470 [17:22:56]SAM_PROTO_ClearQueue [17:22:56]wFMCommunicate request_size=4 [17:22:56]MH_SAM_APDU [17:22:56]CAPDU: 80 09 00 00 [17:22:56]Write to MH i2c: E2 08 00 8E A4 80 09 00 00 00 00 00 00 A4 [17:22:56]Write i2c OK [17:22:56]MH_I2C_Read... [17:22:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:22:56]Read from MH i2c: E2 [17:22:56]MH_I2C_Read... [17:22:56]Read from MH i2c: E2 03 00 [17:22:56]MH_I2C_Read... [17:22:56]Read from MH i2c: E2 03 00 8E A4 00 90 00 A6 [17:22:56]RAPDU: 90 00 [17:22:56]wFMCommunicate OK [17:22:56]SAM_PROTO_ClearQueue done [17:22:56]KKMCreateOFDPacket [17:22:56]OFDProtocolAddRootSTLVToBuf [17:22:56]FM_MakeSignedData [17:22:56]FM_MakeSignedData [17:22:56]SAM_PROTO_SignData [17:22:56]wFMCommunicate request_size=4 [17:22:56]MH_SAM_APDU [17:22:56]CAPDU: 80 0D 01 02 [17:22:56]Write to MH i2c: E2 08 00 8F A4 80 0D 01 02 00 00 00 00 AC [17:22:56]Write i2c OK [17:22:56]MH_I2C_Read... [17:22:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:22:56]Read from MH i2c: E2 [17:22:56]MH_I2C_Read... [17:22:56]Read from MH i2c: E2 03 00 [17:22:56]MH_I2C_Read... [17:22:56]Read from MH i2c: E2 03 00 8F A4 00 90 00 A7 [17:22:56]RAPDU: 90 00 [17:22:56]wFMCommunicate OK [17:22:56]wFMCommunicate request_size=255 [17:22:56]MH_SAM_APDU [17:22:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 08 82 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D3 C0 00 00 35 04 06 00 33 [17:22:56]Write to MH i2c: E2 02 01 90 A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 08 82 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D3 C0 00 00 35 04 06 00 33 00 00 DA [17:22:56]Write i2c OK [17:22:56]MH_I2C_Read... [17:22:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:57]Read from MH i2c: E2 [17:22:57]MH_I2C_Read... [17:22:57]Read from MH i2c: E2 03 00 [17:22:57]MH_I2C_Read... [17:22:57]Read from MH i2c: E2 03 00 90 A4 00 90 00 A8 [17:22:57]RAPDU: 90 00 [17:22:57]wFMCommunicate OK [17:22:57]wFMCommunicate request_size=10 [17:22:57]MH_SAM_APDU [17:22:57]CAPDU: 80 0D 02 02 05 8B BD 56 8E 2C [17:22:57]Write to MH i2c: E2 0D 00 91 A4 80 0D 02 02 05 00 8B BD 56 8E 2C 00 00 11 [17:22:57]Write i2c OK [17:22:57]MH_I2C_Read... [17:22:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:22:57]Read from MH i2c: E2 [17:22:57]MH_I2C_Read... [17:22:57]Read from MH i2c: E2 03 00 [17:22:57]MH_I2C_Read... [17:22:57]Read from MH i2c: E2 03 00 91 A4 00 90 00 A9 [17:22:57]RAPDU: 90 00 [17:22:57]wFMCommunicate OK [17:22:57]wFMCommunicate request_size=4 [17:22:57]MH_SAM_APDU [17:22:57]CAPDU: 80 0D 03 02 [17:22:57]Write to MH i2c: E2 08 00 92 A4 80 0D 03 02 00 00 00 00 B1 [17:22:57]Write i2c OK [17:22:57]MH_I2C_Read... [17:22:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:22:57]Read from MH i2c: E2 [17:22:57]MH_I2C_Read... [17:22:57]Read from MH i2c: E2 0B 00 [17:22:57]MH_I2C_Read... [17:22:57]Read from MH i2c: E2 0B 00 92 A4 00 85 A3 13 B5 11 74 0A 57 90 00 88 [17:22:57]RAPDU: 85 A3 13 B5 11 74 0A 57 90 00 [17:22:57]wFMCommunicate OK [17:22:57]SAM_PROTO_SignData done [17:22:57]FM_MakeSignedData done [17:22:57]CreateOFDProtocolMessage [17:22:57]wFMCommunicate request_size=4 [17:22:57]MH_SAM_APDU [17:22:57]CAPDU: 80 11 00 00 [17:22:57]Write to MH i2c: E2 08 00 93 A4 80 11 00 00 00 00 00 00 B1 [17:22:57]Write i2c OK [17:22:57]MH_I2C_Read... [17:22:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:57]Read from MH i2c: E2 [17:22:57]MH_I2C_Read... [17:22:57]Read from MH i2c: E2 17 00 [17:22:57]MH_I2C_Read... [17:22:57]Read from MH i2c: E2 17 00 93 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FE [17:22:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:22:57]wFMCommunicate OK [17:22:57]CreateOFDProtocolMessage done [17:22:57]OFDSenderStorePacket 49363 [17:22:57]StoreOFDPacket docnum=49363 [17:22:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6B F8 07 01 C5 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 08 82 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D3 C0 00 00 35 04 06 00 33 8B BD 56 8E 2C 85 A3 13 B5 11 74 0A 57 [17:22:57]CheckFolder [17:22:57]dirname=/storage/ofd_packets [17:22:57]CheckFolder done [17:22:57]ProducePacketName [17:22:57]name=ofd_packets/00049363 [17:22:57]NVStorageSaveData ofd_packets/00049363 [17:22:57]File name is /storage/ofd_packets/00049363 [17:22:57]Write 301 bytes [17:22:57]NVStorageSaveData done [17:22:57]OFDSenderStorePacket done [17:22:57]KKMCreateOFDPacket done [17:22:57]NVStorageSaveData kkm_last_timestamp [17:22:57]File name is /storage/kkm_last_timestamp [17:22:57]Write 4 bytes [17:22:57]NVStorageSaveData done [17:22:57]ExternCall_PrintAddStr [17:22:57]wPrintStart [17:22:57]Write to MH i2c: 01 00 00 94 A4 38 [17:22:57]Write i2c OK [17:22:57]MH_I2C_Read... [17:22:57]Read from MH i2c: 01 [17:22:57]MH_I2C_Read... [17:22:57]Read from MH i2c: 01 07 00 [17:22:57]MH_I2C_Read... [17:22:57]Read from MH i2c: 01 07 00 94 A4 00 00 00 00 00 FF 0F 4D [17:22:57]RasterBufferAndPrint [17:22:57]line Счет N : (1)216467 [17:22:57]line ИНН: 02508201610067 [17:22:57]line Контрольно-Кассовый Чек [17:22:57]line ПРОДАЖА [17:22:57]line ТРК (МРК, ГНК) : 12 [17:22:57]line Товар: 2710124130 [17:22:57]line Аи-92-К-5 [17:22:57]line 16.590 * 60.30 [17:22:57]line = 1000.38 [17:22:57]line НДС 12% НСП 1% [17:22:57]line > о реализуемом товаре [17:22:57]line ОКРУГЛЕНИЕ: -0.38 [17:22:57]line ИТОГО: 1000.00 [17:22:57]line Внесено: 1000.00 [17:22:57]line СДАЧА: 0.00 [17:22:57]line НСП 1% : 8.85 [17:22:57]line НДС 12% : 106.23 [17:22:57]line Наличными: 1000.00 [17:22:57]line Безнал.: 0.00 [17:22:57]line Место: АЗС № 102 "Партнер Нефть" [17:22:57]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:22:57]line СНО: Общий режим [17:22:57]line Чек 88 31.01.2024 17:23 [17:22:57]line Смена: 247 ФФД: 1.0 [17:22:57]line ЗНМ: 0300000040 [17:22:57]line РНМ: 0000000000092723 [17:22:57]line Версия ККМ: 001 [17:22:57]line ФМ: 0000000000875060 [17:22:57]line ФД: 49363 [17:22:57]line ФПД: 56675270037036 [17:22:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T172320&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49363&fm=56675270037036&tin=02508201610067®Number=0000000000092723&sum=100000 [17:22:57]written 0, free lines is 4095 [17:22:57]OFD Sender: Processing packet 49363 [packets to send 12, broken 11] [17:22:57]ProducePacketName [17:22:57]name=ofd_packets/00049363 [17:22:57]OFD Sender: To server: pG, [17:22:57]CommunicateWithHost lk.salyk.kg:30040 [17:22:57]ConnectInit lk.salyk.kg [17:22:57]Connected sock=9 [17:22:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 6B F8 07 01 C5 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 08 82 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D3 C0 00 00 35 04 06 00 33 8B BD 56 8E 2C 85 A3 13 B5 11 74 0A 57 [17:22:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 8A D9 47 00 4D 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D3 C0 00 00 F4 03 04 00 FA 2D BA 65 B6 04 01 00 00 C8 02 F7 3C 20 C5 18 56 [17:22:57]CommunicateWithHost err = 0 [17:22:57]CheckOFDResponse [17:22:57]1017 (14) - 77093643461234 [17:22:57]1041 (16) - 0000000000875060 [17:22:57]1040 (4) - 49363 [17:22:57]1012 (4) - 31.01.2024 11:24 [17:22:57]1206 (1) - 0 [17:22:57]OFD Sender: Remove packet 49363 [17:22:57]ProducePacketName [17:22:57]name=ofd_packets/00049363 [17:22:57]NVStorageDeleteData [17:22:58]Write to MH i2c: 01 00 00 BF A4 63 [17:22:58]Write i2c OK [17:22:58]MH_I2C_Read... [17:22:58]Read from MH i2c: 01 [17:22:58]MH_I2C_Read... [17:22:58]Read from MH i2c: 01 07 00 [17:22:58]MH_I2C_Read... [17:22:58]Read from MH i2c: 01 07 00 BF A4 00 00 00 00 00 F2 0C 68 [17:22:58]RasterBufferAndPrint [17:22:58]line [17:22:58]line [17:22:58]line [17:22:58]line [17:22:58]line [17:22:58]written 0, free lines is 3323 [17:22:58]MH_Cut [17:22:58]Write to MH i2c: D1 01 00 C6 A4 01 3C [17:22:58]Write i2c OK [17:22:58]MH_I2C_Read... [17:22:58]Read from MH i2c: D1 [17:22:58]MH_I2C_Read... [17:22:58]Read from MH i2c: D1 01 00 [17:22:58]MH_I2C_Read... [17:22:58]Read from MH i2c: D1 01 00 C6 A4 00 3B [17:22:58]Write to MH i2c: 01 00 00 C7 A4 6B [17:22:58]Write i2c OK [17:22:58]MH_I2C_Read... [17:22:58]OFD Sender: No OFD packet to send [17:22:58]*** Cut start [17:22:58]*** Partial cut [17:22:58]*** CUTSNS_PIN = 1 [17:22:58]*** CUTSNS_PIN = 0 [17:22:59]*** Brake cut motor [17:22:59]Read from MH i2c: 01 [17:22:59]MH_I2C_Read... [17:22:59]*** Stop cut motor [17:22:59]*** Cut end [17:22:59]Read from MH i2c: 01 07 00 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: 01 07 00 C7 A4 00 00 00 00 00 FF 0F 80 [17:22:59]process_action close_receipt done [17:22:59]requested_data is exist [17:22:59]produce_requested_data [17:22:59]requested_item fm.sn is exist - process it [17:22:59]wFMCommunicate request_size=4 [17:22:59]MH_SAM_APDU [17:22:59]CAPDU: 80 11 00 00 [17:22:59]Write to MH i2c: E2 08 00 C8 A4 80 11 00 00 00 00 00 00 E6 [17:22:59]Write i2c OK [17:22:59]MH_I2C_Read... [17:22:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:22:59]Read from MH i2c: E2 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 17 00 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 17 00 C8 A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 33 [17:22:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:22:59]wFMCommunicate OK [17:22:59]requested_item fd.num is exist - process it [17:22:59]SAM_PROTO_GetFieldsCounters [17:22:59]wFMCommunicate request_size=4 [17:22:59]MH_SAM_APDU [17:22:59]CAPDU: 80 13 00 00 [17:22:59]Write to MH i2c: E2 08 00 C9 A4 80 13 00 00 00 00 00 00 E9 [17:22:59]Write i2c OK [17:22:59]MH_I2C_Read... [17:22:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:22:59]Read from MH i2c: E2 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 62 00 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 62 00 C9 A4 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D3 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [17: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D3 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:22:59]wFMCommunicate OK [17:22:59]SAM_PROTO_GetFieldsCounters done [17:22:59]requested_item shift.num is exist - process it [17:22:59]requested_item shift.opened is exist - process it [17:22:59]req_shift_opened [17:22:59]FM_GetShiftState [17:22:59]SAM_PROTO_GetShiftState [17:22:59]wFMCommunicate request_size=4 [17:22:59]MH_SAM_APDU [17:22:59]CAPDU: 80 13 01 00 [17:22:59]Write to MH i2c: E2 08 00 CA A4 80 13 01 00 00 00 00 00 EB [17:22:59]Write i2c OK [17:22:59]MH_I2C_Read... [17:22:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:22:59]Read from MH i2c: E2 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 0E 00 [17:22:59]MH_I2C_Read... [17:22:59]Read from MH i2c: E2 0E 00 CA A4 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 41 [17:22:59]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:22:59]wFMCommunicate OK [17:22:59]SAM_PROTO_GetShiftState done [17:22:59]FM_GetShiftState done [17:22:59]req_shift_opened done [17:22:59]requested_item shift.open_date is exist - process it [17:22:59]req_shift_open_date [17:22:59]req_shift_open_date done [17:22:59]produce_requested_data done [17:22:59]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49363,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [17:22:59]process_action_free close_receipt [17:22:59]json_value_free [17:22:59]json_value_free done [17:22:59]process_json_proto returns [17:22:59]Send response to host [17:22:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49363,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [17:22:59]free response buf [17:22:59]execute_script done [17:22:59]execute_script returns [17:22:59]free content buf [17:22:59]Sock 7.Close socket [17:22:59]Sock 7.Thread stoped [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:46]accept exits with 10 [17:25:46]New connection [17:25:46]New thread 3066670436 created [17:25:46]Thread 3066813796 joined [17:25:46]Waiting for new connection... [17:25:46] Sock 10.Parse request [17:25:46]Sock 10.Check first char [17:25:46]Sock 10.First char is OK [17:25:46]request: POST /json_proto HTTP/1.0 [17:25:46]Method: POST [17:25:46]URL: /json_proto [17:25:46]Method is POST - this is cgi request [17:25:46]url: /json_proto [17:25:46]query_string will be loaded in cgi processing [17:25:46]execute_cgi json_proto POST (null) [17:25:46]execute_cgi path=json_proto method=POST [17:25:46]POST find Content-Length [17:25:46]Host: 172.17.56.67:8080 [17:25:46]Content-Length: 682 [17:25:46]Content-Type: application/json [17:25:46] [17:25:46]POST finish read [17:25:46]Found Content-Length = 682 [17:25:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:46]execute_script... [17: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)216468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:46]POST & json_proto [17:25:46]process_json_proto [17:25:46]json parsed OK: [17:25:46]protocol is kg_v1.0 [17:25:46]action value=close_receipt [17:25:46]process_action close_receipt [17:25:46]cmd_close_receipt [17:25:46]MH_GetDate [17:25:46]Write to MH i2c: F0 00 00 CB A4 5E [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: F0 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: F0 09 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: F0 09 00 CB A4 00 B3 82 BA 65 26 5D 9E 65 41 [17:25:46]GetLastDocTimeStamp 1706721800 [17:25:46]current date 1706721971 [17:25:46]FM_GetShiftState [17:25:46]SAM_PROTO_GetShiftState [17:25:46]wFMCommunicate request_size=4 [17:25:46]MH_SAM_APDU [17:25:46]CAPDU: 80 13 01 00 [17:25:46]Write to MH i2c: E2 08 00 CC A4 80 13 01 00 00 00 00 00 ED [17:25:46]Write i2c OK [17:25:46]MH_I2C_Read... [17:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:46]Read from MH i2c: E2 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 0E 00 [17:25:46]MH_I2C_Read... [17:25:46]Read from MH i2c: E2 0E 00 CC A4 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 43 [17:25:46]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:25:46]wFMCommunicate OK [17:25:46]SAM_PROTO_GetShiftState done [17:25:46]FM_GetShiftState done [17:25:46]opened in 1706659486 [17:25:46]opened+sec_in_day 1706745886 [17:25:46]quantity*price = 100037 [17:25:46]sum+1 = 100039 [17:25:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 89 31.01.2024 17:26 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49364 ФПД: 138952994575006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T172611&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49364&fm=138952994575006&tin=02508201610067®Number=0000000000092723&sum=100000 [17:25:47]StoreToDocumentArchive [17:25:47]shift 247 fd 49364 [17:25:47]save to /storage/0247/doc_00049364 [17:25:47]save last doc name /storage/0247/doc_00049364 to /storage/kkm_last_doc_name [17:25:47]save OK [17:25:47]Clear old archive folders... [17:25:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:47]tlvbuf is 011D8710 [17:25:47]SAM_PROTO_ClearQueue [17:25:47]wFMCommunicate request_size=4 [17:25:47]MH_SAM_APDU [17:25:47]CAPDU: 80 09 00 00 [17:25:47]Write to MH i2c: E2 08 00 D9 A4 80 09 00 00 00 00 00 00 EF [17:25:47]Write i2c OK [17:25:47]MH_I2C_Read... [17:25:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:47]Read from MH i2c: E2 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 03 00 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 03 00 D9 A4 00 90 00 F1 [17:25:47]RAPDU: 90 00 [17:25:47]wFMCommunicate OK [17:25:47]SAM_PROTO_ClearQueue done [17:25:47]KKMCreateOFDPacket [17:25:47]OFDProtocolAddRootSTLVToBuf [17:25:47]FM_MakeSignedData [17:25:47]FM_MakeSignedData [17:25:47]SAM_PROTO_SignData [17:25:47]wFMCommunicate request_size=4 [17:25:47]MH_SAM_APDU [17:25:47]CAPDU: 80 0D 01 02 [17:25:47]Write to MH i2c: E2 08 00 DA A4 80 0D 01 02 00 00 00 00 F7 [17:25:47]Write i2c OK [17:25:47]MH_I2C_Read... [17:25:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:47]Read from MH i2c: E2 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 03 00 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 03 00 DA A4 00 90 00 F2 [17:25:47]RAPDU: 90 00 [17:25:47]wFMCommunicate OK [17:25:47]wFMCommunicate request_size=255 [17:25:47]MH_SAM_APDU [17: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 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 B3 82 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D4 C0 00 00 35 04 06 00 7E [17:25:47]Write to MH i2c: E2 02 01 DB A4 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 B3 82 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D4 C0 00 00 35 04 06 00 7E 00 00 1D [17:25:47]Write i2c OK [17:25:47]MH_I2C_Read... [17:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:47]Read from MH i2c: E2 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 03 00 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 03 00 DB A4 00 90 00 F3 [17:25:47]RAPDU: 90 00 [17:25:47]wFMCommunicate OK [17:25:47]wFMCommunicate request_size=10 [17:25:47]MH_SAM_APDU [17:25:47]CAPDU: 80 0D 02 02 05 60 83 E1 D2 9E [17:25:47]Write to MH i2c: E2 0D 00 DC A4 80 0D 02 02 05 00 60 83 E1 D2 9E 00 00 38 [17:25:47]Write i2c OK [17:25:47]MH_I2C_Read... [17:25:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:47]Read from MH i2c: E2 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 03 00 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 03 00 DC A4 00 90 00 F4 [17:25:47]RAPDU: 90 00 [17:25:47]wFMCommunicate OK [17:25:47]wFMCommunicate request_size=4 [17:25:47]MH_SAM_APDU [17:25:47]CAPDU: 80 0D 03 02 [17:25:47]Write to MH i2c: E2 08 00 DD A4 80 0D 03 02 00 00 00 00 FC [17:25:47]Write i2c OK [17:25:47]MH_I2C_Read... [17:25:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:47]Read from MH i2c: E2 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 0B 00 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 0B 00 DD A4 00 26 78 BA 95 3E AF 56 02 90 00 2F [17:25:47]RAPDU: 26 78 BA 95 3E AF 56 02 90 00 [17:25:47]wFMCommunicate OK [17:25:47]SAM_PROTO_SignData done [17:25:47]FM_MakeSignedData done [17:25:47]CreateOFDProtocolMessage [17:25:47]wFMCommunicate request_size=4 [17:25:47]MH_SAM_APDU [17:25:47]CAPDU: 80 11 00 00 [17:25:47]Write to MH i2c: E2 08 00 DE A4 80 11 00 00 00 00 00 00 FC [17:25:47]Write i2c OK [17:25:47]MH_I2C_Read... [17:25:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:47]Read from MH i2c: E2 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 17 00 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: E2 17 00 DE A4 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 49 [17:25:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:25:47]wFMCommunicate OK [17:25:47]CreateOFDProtocolMessage done [17:25:47]OFDSenderStorePacket 49364 [17:25:47]StoreOFDPacket docnum=49364 [17:25:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 C6 CC 07 01 AD 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 B3 82 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D4 C0 00 00 35 04 06 00 7E 60 83 E1 D2 9E 26 78 BA 95 3E AF 56 02 [17:25:47]CheckFolder [17:25:47]dirname=/storage/ofd_packets [17:25:47]CheckFolder done [17:25:47]ProducePacketName [17:25:47]name=ofd_packets/00049364 [17:25:47]NVStorageSaveData ofd_packets/00049364 [17:25:47]File name is /storage/ofd_packets/00049364 [17:25:47]Write 301 bytes [17:25:47]NVStorageSaveData done [17:25:47]OFDSenderStorePacket done [17:25:47]KKMCreateOFDPacket done [17:25:47]NVStorageSaveData kkm_last_timestamp [17:25:47]File name is /storage/kkm_last_timestamp [17:25:47]Write 4 bytes [17:25:47]NVStorageSaveData done [17:25:47]ExternCall_PrintAddStr [17:25:47]wPrintStart [17:25:47]Write to MH i2c: 01 00 00 DF A4 83 [17:25:47]Write i2c OK [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: 01 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: 01 07 00 [17:25:47]MH_I2C_Read... [17:25:47]Read from MH i2c: 01 07 00 DF A4 00 00 00 00 00 FF 0F 98 [17:25:47]RasterBufferAndPrint [17:25:47]line Счет N : (1)216468 [17:25:47]line ИНН: 02508201610067 [17:25:47]line Контрольно-Кассовый Чек [17:25:47]line ПРОДАЖА [17:25:47]line ТРК (МРК, ГНК) : 22 [17:25:47]line Товар: 2710124130 [17:25:47]line Аи-92-К-5 [17:25:47]line 16.590 * 60.30 [17:25:47]line = 1000.38 [17:25:47]line НДС 12% НСП 1% [17:25:47]line > о реализуемом товаре [17:25:47]line ОКРУГЛЕНИЕ: -0.38 [17:25:47]line ИТОГО: 1000.00 [17:25:47]line Внесено: 1000.00 [17:25:47]line СДАЧА: 0.00 [17:25:47]line НСП 1% : 8.85 [17:25:47]line НДС 12% : 106.23 [17:25:47]line Наличными: 1000.00 [17:25:47]line Безнал.: 0.00 [17:25:47]line Место: АЗС № 102 "Партнер Нефть" [17:25:47]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:25:47]line СНО: Общий режим [17:25:47]line Чек 89 31.01.2024 17:26 [17:25:47]line Смена: 247 ФФД: 1.0 [17:25:47]line ЗНМ: 0300000040 [17:25:47]line РНМ: 0000000000092723 [17:25:47]line Версия ККМ: 001 [17:25:47]line ФМ: 0000000000875060 [17:25:47]line ФД: 49364 [17:25:47]line ФПД: 138952994575006 [17:25:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T172611&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49364&fm=138952994575006&tin=02508201610067®Number=0000000000092723&sum=100000 [17:25:48]OFD Sender: Processing packet 49364 [packets to send 12, broken 11] [17:25:48]ProducePacketName [17:25:48]name=ofd_packets/00049364 [17:25:48]OFD Sender: To server: pG, [17:25:48]CommunicateWithHost lk.salyk.kg:30040 [17:25:48]ConnectInit lk.salyk.kg [17:25:48]written 0, free lines is 4095 [17:25:48]Connected sock=9 [17: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 35 30 36 30 0F 01 00 00 C6 CC 07 01 AD 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 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 B3 82 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D4 C0 00 00 35 04 06 00 7E 60 83 E1 D2 9E 26 78 BA 95 3E AF 56 02 [17:25:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 27 DB 47 00 FD C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D4 C0 00 00 F4 03 04 00 A5 2E BA 65 B6 04 01 00 00 64 0B F3 1E 82 61 2B D5 [17:25:48]CommunicateWithHost err = 0 [17:25:48]CheckOFDResponse [17:25:48]1017 (14) - 77093643461234 [17:25:48]1041 (16) - 0000000000875060 [17:25:48]1040 (4) - 49364 [17:25:48]1012 (4) - 31.01.2024 11:27 [17:25:48]1206 (1) - 0 [17:25:48]OFD Sender: Remove packet 49364 [17:25:48]ProducePacketName [17:25:48]name=ofd_packets/00049364 [17:25:48]NVStorageDeleteData [17:25:48]Write to MH i2c: 01 00 00 0A A5 AF [17:25:48]Write i2c OK [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: 01 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: 01 07 00 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: 01 07 00 0A A5 00 00 00 00 00 FA 0C BC [17:25:48]RasterBufferAndPrint [17:25:48]line [17:25:48]line [17:25:48]line [17:25:48]line [17:25:48]line [17:25:48]written 0, free lines is 3332 [17:25:48]MH_Cut [17:25:48]Write to MH i2c: D1 01 00 11 A5 01 88 [17:25:48]Write i2c OK [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: D1 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: D1 01 00 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: D1 01 00 11 A5 00 87 [17:25:48]Write to MH i2c: 01 00 00 12 A5 B7 [17:25:48]Write i2c OK [17:25:48]MH_I2C_Read... [17:25:48]OFD Sender: No OFD packet to send [17:25:49]*** Cut start [17:25:49]*** Partial cut [17:25:49]*** CUTSNS_PIN = 1 [17:25:49]*** CUTSNS_PIN = 0 [17:25:49]*** Brake cut motor [17:25:49]Read from MH i2c: 01 [17:25:49]MH_I2C_Read... [17:25:49]*** Stop cut motor [17:25:49]*** Cut end [17:25:49]Read from MH i2c: 01 07 00 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: 01 07 00 12 A5 00 00 00 00 00 FF 0F CC [17:25:49]process_action close_receipt done [17:25:49]requested_data is exist [17:25:49]produce_requested_data [17:25:49]requested_item fm.sn is exist - process it [17:25:49]wFMCommunicate request_size=4 [17:25:49]MH_SAM_APDU [17:25:49]CAPDU: 80 11 00 00 [17:25:49]Write to MH i2c: E2 08 00 13 A5 80 11 00 00 00 00 00 00 32 [17:25:49]Write i2c OK [17:25:49]MH_I2C_Read... [17:25:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:49]Read from MH i2c: E2 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 17 00 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 17 00 13 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7F [17:25:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:25:49]wFMCommunicate OK [17:25:49]requested_item fd.num is exist - process it [17:25:49]SAM_PROTO_GetFieldsCounters [17:25:49]wFMCommunicate request_size=4 [17:25:49]MH_SAM_APDU [17:25:49]CAPDU: 80 13 00 00 [17:25:49]Write to MH i2c: E2 08 00 14 A5 80 13 00 00 00 00 00 00 35 [17:25:49]Write i2c OK [17:25:49]MH_I2C_Read... [17:25:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:50]Read from MH i2c: E2 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: E2 62 00 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: E2 62 00 14 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D4 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [17: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D4 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:50]wFMCommunicate OK [17:25:50]SAM_PROTO_GetFieldsCounters done [17:25:50]requested_item shift.num is exist - process it [17:25:50]requested_item shift.opened is exist - process it [17:25:50]req_shift_opened [17:25:50]FM_GetShiftState [17:25:50]SAM_PROTO_GetShiftState [17:25:50]wFMCommunicate request_size=4 [17:25:50]MH_SAM_APDU [17:25:50]CAPDU: 80 13 01 00 [17:25:50]Write to MH i2c: E2 08 00 15 A5 80 13 01 00 00 00 00 00 37 [17:25:50]Write i2c OK [17:25:50]MH_I2C_Read... [17:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:50]Read from MH i2c: E2 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: E2 0E 00 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: E2 0E 00 15 A5 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 8D [17:25:50]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:25:50]wFMCommunicate OK [17:25:50]SAM_PROTO_GetShiftState done [17:25:50]FM_GetShiftState done [17:25:50]req_shift_opened done [17:25:50]requested_item shift.open_date is exist - process it [17:25:50]req_shift_open_date [17:25:50]req_shift_open_date done [17:25:50]produce_requested_data done [17:25:50]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49364,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [17:25:50]process_action_free close_receipt [17:25:50]json_value_free [17:25:50]json_value_free done [17:25:50]process_json_proto returns [17:25:50]Send response to host [17:25:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49364,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [17:25:50]free response buf [17:25:50]execute_script done [17:25:50]execute_script returns [17:25:50]free content buf [17:25:50]Sock 10.Close socket [17:25:50]Sock 10.Thread stoped [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:14]OFD Sender: No OFD packet to send [17:26:19]OFD Sender: No OFD packet to send [17:26:24]OFD Sender: No OFD packet to send [17:26:29]OFD Sender: No OFD packet to send [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:53]accept exits with 7 [17:26:53]New connection [17:26:53]New thread 3066813796 created [17:26:53]Thread 3066670436 joined [17:26:53]Waiting for new connection... [17:26:53] Sock 7.Parse request [17:26:53]Sock 7.Check first char [17:26:53]Sock 7.First char is OK [17:26:53]request: POST /json_proto HTTP/1.0 [17:26:53]Method: POST [17:26:53]URL: /json_proto [17:26:53]Method is POST - this is cgi request [17:26:53]url: /json_proto [17:26:53]query_string will be loaded in cgi processing [17:26:53]execute_cgi json_proto POST (null) [17:26:53]execute_cgi path=json_proto method=POST [17:26:53]POST find Content-Length [17:26:53]Host: 172.17.56.67:8080 [17:26:53]Content-Length: 677 [17:26:53]Content-Type: application/json [17:26:53] [17:26:53]POST finish read [17:26:53]Found Content-Length = 677 [17:26:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:26:53]execute_script... [17:26: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)216469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:26:53]POST & json_proto [17:26:53]process_json_proto [17:26:53]json parsed OK: [17:26:53]protocol is kg_v1.0 [17:26:53]action value=close_receipt [17:26:53]process_action close_receipt [17:26:53]cmd_close_receipt [17:26:53]MH_GetDate [17:26:53]Write to MH i2c: F0 00 00 16 A5 AA [17:26:53]Write i2c OK [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: F0 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: F0 09 00 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: F0 09 00 16 A5 00 F6 82 BA 65 26 5D 9E 65 D0 [17:26:53]GetLastDocTimeStamp 1706721971 [17:26:53]current date 1706722038 [17:26:53]FM_GetShiftState [17:26:53]SAM_PROTO_GetShiftState [17:26:53]wFMCommunicate request_size=4 [17:26:53]MH_SAM_APDU [17:26:53]CAPDU: 80 13 01 00 [17:26:53]Write to MH i2c: E2 08 00 17 A5 80 13 01 00 00 00 00 00 39 [17:26:53]Write i2c OK [17:26:53]MH_I2C_Read... [17:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:53]Read from MH i2c: E2 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: E2 0E 00 [17:26:53]MH_I2C_Read... [17:26:53]Read from MH i2c: E2 0E 00 17 A5 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 8F [17:26:53]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:26:53]wFMCommunicate OK [17:26:53]SAM_PROTO_GetShiftState done [17:26:53]FM_GetShiftState done [17:26:53]opened in 1706659486 [17:26:53]opened+sec_in_day 1706745886 [17:26:53]quantity*price = 30029 [17:26:53]sum+1 = 30030 [17:26:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 90 31.01.2024 17:27 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49365 ФПД: 174753222016133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T172718&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49365&fm=174753222016133&tin=02508201610067®Number=0000000000092723&sum=30000 [17:26:54]StoreToDocumentArchive [17:26:54]shift 247 fd 49365 [17:26:54]save to /storage/0247/doc_00049365 [17:26:54]save last doc name /storage/0247/doc_00049365 to /storage/kkm_last_doc_name [17:26:54]save OK [17:26:54]Clear old archive folders... [17:26:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:54]tlvbuf is 01384AB0 [17:26:54]SAM_PROTO_ClearQueue [17:26:54]wFMCommunicate request_size=4 [17:26:54]MH_SAM_APDU [17:26:54]CAPDU: 80 09 00 00 [17:26:54]Write to MH i2c: E2 08 00 24 A5 80 09 00 00 00 00 00 00 3B [17:26:54]Write i2c OK [17:26:54]MH_I2C_Read... [17:26:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:54]Read from MH i2c: E2 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 03 00 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 03 00 24 A5 00 90 00 3D [17:26:54]RAPDU: 90 00 [17:26:54]wFMCommunicate OK [17:26:54]SAM_PROTO_ClearQueue done [17:26:54]KKMCreateOFDPacket [17:26:54]OFDProtocolAddRootSTLVToBuf [17:26:54]FM_MakeSignedData [17:26:54]FM_MakeSignedData [17:26:54]SAM_PROTO_SignData [17:26:54]wFMCommunicate request_size=4 [17:26:54]MH_SAM_APDU [17:26:54]CAPDU: 80 0D 01 02 [17:26:54]Write to MH i2c: E2 08 00 25 A5 80 0D 01 02 00 00 00 00 43 [17:26:54]Write i2c OK [17:26:54]MH_I2C_Read... [17:26:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:54]Read from MH i2c: E2 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 03 00 [17:26:54]MH_I2C_Read... [17:26:54]Read from MH i2c: E2 03 00 25 A5 00 90 00 3E [17:26:54]RAPDU: 90 00 [17:26:54]wFMCommunicate OK [17:26:54]wFMCommunicate request_size=255 [17:26:54]MH_SAM_APDU [17:26:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F6 82 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D5 C0 00 00 35 04 06 00 9E [17:26:54]Write to MH i2c: E2 02 01 26 A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F6 82 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D5 C0 00 00 35 04 06 00 9E 00 00 24 [17:26:54]Write i2c OK [17:26:54]MH_I2C_Read... [17:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:55]Read from MH i2c: E2 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 03 00 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 03 00 26 A5 00 90 00 3F [17:26:55]RAPDU: 90 00 [17:26:55]wFMCommunicate OK [17:26:55]wFMCommunicate request_size=10 [17:26:55]MH_SAM_APDU [17:26:55]CAPDU: 80 0D 02 02 05 EF E7 B8 BC 85 [17:26:55]Write to MH i2c: E2 0D 00 27 A5 80 0D 02 02 05 00 EF E7 B8 BC 85 00 00 1F [17:26:55]Write i2c OK [17:26:55]MH_I2C_Read... [17:26:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:55]Read from MH i2c: E2 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 03 00 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 03 00 27 A5 00 90 00 40 [17:26:55]RAPDU: 90 00 [17:26:55]wFMCommunicate OK [17:26:55]wFMCommunicate request_size=4 [17:26:55]MH_SAM_APDU [17:26:55]CAPDU: 80 0D 03 02 [17:26:55]Write to MH i2c: E2 08 00 28 A5 80 0D 03 02 00 00 00 00 48 [17:26:55]Write i2c OK [17:26:55]MH_I2C_Read... [17:26:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:55]Read from MH i2c: E2 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 0B 00 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 0B 00 28 A5 00 B5 5B 1F CC F7 95 07 27 90 00 FE [17:26:55]RAPDU: B5 5B 1F CC F7 95 07 27 90 00 [17:26:55]wFMCommunicate OK [17:26:55]SAM_PROTO_SignData done [17:26:55]FM_MakeSignedData done [17:26:55]CreateOFDProtocolMessage [17:26:55]wFMCommunicate request_size=4 [17:26:55]MH_SAM_APDU [17:26:55]CAPDU: 80 11 00 00 [17:26:55]Write to MH i2c: E2 08 00 29 A5 80 11 00 00 00 00 00 00 48 [17:26:55]Write i2c OK [17:26:55]MH_I2C_Read... [17:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:55]Read from MH i2c: E2 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 17 00 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: E2 17 00 29 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 95 [17:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:26:55]wFMCommunicate OK [17:26:55]CreateOFDProtocolMessage done [17:26:55]OFDSenderStorePacket 49365 [17:26:55]StoreOFDPacket docnum=49365 [17:26:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 06 3F 07 01 21 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F6 82 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D5 C0 00 00 35 04 06 00 9E EF E7 B8 BC 85 B5 5B 1F CC F7 95 07 27 [17:26:55]CheckFolder [17:26:55]dirname=/storage/ofd_packets [17:26:55]CheckFolder done [17:26:55]ProducePacketName [17:26:55]name=ofd_packets/00049365 [17:26:55]NVStorageSaveData ofd_packets/00049365 [17:26:55]File name is /storage/ofd_packets/00049365 [17:26:55]Write 301 bytes [17:26:55]NVStorageSaveData done [17:26:55]OFDSenderStorePacket done [17:26:55]KKMCreateOFDPacket done [17:26:55]NVStorageSaveData kkm_last_timestamp [17:26:55]File name is /storage/kkm_last_timestamp [17:26:55]Write 4 bytes [17:26:55]NVStorageSaveData done [17:26:55]ExternCall_PrintAddStr [17:26:55]wPrintStart [17:26:55]Write to MH i2c: 01 00 00 2A A5 CF [17:26:55]Write i2c OK [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: 01 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: 01 07 00 [17:26:55]MH_I2C_Read... [17:26:55]Read from MH i2c: 01 07 00 2A A5 00 00 00 00 00 FF 0F E4 [17:26:55]RasterBufferAndPrint [17:26:55]line Счет N : (1)216469 [17:26:55]line ИНН: 02508201610067 [17:26:55]line Контрольно-Кассовый Чек [17:26:55]line ПРОДАЖА [17:26:55]line ТРК (МРК, ГНК) : 22 [17:26:55]line Товар: 2710124130 [17:26:55]line Аи-92-К-5 [17:26:55]line 4.980 * 60.30 [17:26:55]line = 300.29 [17:26:55]line НДС 12% НСП 1% [17:26:55]line > о реализуемом товаре [17:26:55]line ОКРУГЛЕНИЕ: -0.29 [17:26:55]line ИТОГО: 300.00 [17:26:55]line Внесено: 300.00 [17:26:55]line СДАЧА: 0.00 [17:26:55]line НСП 1% : 2.66 [17:26:55]line НДС 12% : 31.89 [17:26:55]line Наличными: 300.00 [17:26:55]line Безнал.: 0.00 [17:26:55]line Место: АЗС № 102 "Партнер Нефть" [17:26:55]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:26:55]line СНО: Общий режим [17:26:55]line Чек 90 31.01.2024 17:27 [17:26:55]line Смена: 247 ФФД: 1.0 [17:26:55]line ЗНМ: 0300000040 [17:26:55]line РНМ: 0000000000092723 [17:26:55]line Версия ККМ: 001 [17:26:55]line ФМ: 0000000000875060 [17:26:55]line ФД: 49365 [17:26:55]line ФПД: 174753222016133 [17:26:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T172718&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49365&fm=174753222016133&tin=02508201610067®Number=0000000000092723&sum=30000 [17:26:55]OFD Sender: Processing packet 49365 [packets to send 12, broken 11] [17:26:55]ProducePacketName [17:26:55]name=ofd_packets/00049365 [17:26:55]OFD Sender: To server: pG, [17:26:55]CommunicateWithHost lk.salyk.kg:30040 [17:26:55]ConnectInit lk.salyk.kg [17:26:55]written 0, free lines is 4095 [17:26:55]Connected sock=9 [17:26:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 06 3F 07 01 21 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F6 82 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D5 C0 00 00 35 04 06 00 9E EF E7 B8 BC 85 B5 5B 1F CC F7 95 07 27 [17:26:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 4D D1 47 00 6A 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 35 30 36 30 10 04 04 00 D5 C0 00 00 F4 03 04 00 E8 2E BA 65 B6 04 01 00 00 BE 62 F3 89 75 85 23 2E [17:26:55]CommunicateWithHost err = 0 [17:26:55]CheckOFDResponse [17:26:55]1017 (14) - 77093643461234 [17:26:55]1041 (16) - 0000000000875060 [17:26:55]1040 (4) - 49365 [17:26:55]1012 (4) - 31.01.2024 11:28 [17:26:55]1206 (1) - 0 [17:26:55]OFD Sender: Remove packet 49365 [17:26:55]ProducePacketName [17:26:55]name=ofd_packets/00049365 [17:26:55]NVStorageDeleteData [17:26:56]Write to MH i2c: 01 00 00 55 A5 FA [17:26:56]Write i2c OK [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: 01 [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: 01 07 00 [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: 01 07 00 55 A5 00 00 00 00 00 F3 0C 00 [17:26:56]RasterBufferAndPrint [17:26:56]line [17:26:56]line [17:26:56]line [17:26:56]line [17:26:56]line [17:26:56]written 0, free lines is 3326 [17:26:56]MH_Cut [17:26:56]Write to MH i2c: D1 01 00 5C A5 01 D3 [17:26:56]Write i2c OK [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: D1 [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: D1 01 00 [17:26:56]MH_I2C_Read... [17:26:56]Read from MH i2c: D1 01 00 5C A5 00 D2 [17:26:56]Write to MH i2c: 01 00 00 5D A5 02 [17:26:56]Write i2c OK [17:26:56]MH_I2C_Read... [17:26:56]OFD Sender: No OFD packet to send [17:26:56]*** Cut start [17:26:56]*** Partial cut [17:26:56]*** CUTSNS_PIN = 1 [17:26:56]*** CUTSNS_PIN = 0 [17:26:56]*** Brake cut motor [17:26:57]Read from MH i2c: 01 [17:26:57]MH_I2C_Read... [17:26:57]*** Stop cut motor [17:26:57]*** Cut end [17:26:57]Read from MH i2c: 01 07 00 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: 01 07 00 5D A5 00 00 00 00 00 FF 0F 17 [17:26:57]process_action close_receipt done [17:26:57]requested_data is exist [17:26:57]produce_requested_data [17:26:57]requested_item fm.sn is exist - process it [17:26:57]wFMCommunicate request_size=4 [17:26:57]MH_SAM_APDU [17:26:57]CAPDU: 80 11 00 00 [17:26:57]Write to MH i2c: E2 08 00 5E A5 80 11 00 00 00 00 00 00 7D [17:26:57]Write i2c OK [17:26:57]MH_I2C_Read... [17:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:57]Read from MH i2c: E2 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 17 00 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 17 00 5E A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CA [17:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:26:57]wFMCommunicate OK [17:26:57]requested_item fd.num is exist - process it [17:26:57]SAM_PROTO_GetFieldsCounters [17:26:57]wFMCommunicate request_size=4 [17:26:57]MH_SAM_APDU [17:26:57]CAPDU: 80 13 00 00 [17:26:57]Write to MH i2c: E2 08 00 5F A5 80 13 00 00 00 00 00 00 80 [17:26:57]Write i2c OK [17:26:57]MH_I2C_Read... [17:26:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:57]Read from MH i2c: E2 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 62 00 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 62 00 5F A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D5 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [17: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D5 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:57]wFMCommunicate OK [17:26:57]SAM_PROTO_GetFieldsCounters done [17:26:57]requested_item shift.num is exist - process it [17:26:57]requested_item shift.opened is exist - process it [17:26:57]req_shift_opened [17:26:57]FM_GetShiftState [17:26:57]SAM_PROTO_GetShiftState [17:26:57]wFMCommunicate request_size=4 [17:26:57]MH_SAM_APDU [17:26:57]CAPDU: 80 13 01 00 [17:26:57]Write to MH i2c: E2 08 00 60 A5 80 13 01 00 00 00 00 00 82 [17:26:57]Write i2c OK [17:26:57]MH_I2C_Read... [17:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:57]Read from MH i2c: E2 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 0E 00 [17:26:57]MH_I2C_Read... [17:26:57]Read from MH i2c: E2 0E 00 60 A5 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 D8 [17:26:57]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:26:57]wFMCommunicate OK [17:26:57]SAM_PROTO_GetShiftState done [17:26:57]FM_GetShiftState done [17:26:57]req_shift_opened done [17:26:57]requested_item shift.open_date is exist - process it [17:26:57]req_shift_open_date [17:26:57]req_shift_open_date done [17:26:57]produce_requested_data done [17:26:57]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49365,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [17:26:57]process_action_free close_receipt [17:26:57]json_value_free [17:26:57]json_value_free done [17:26:57]process_json_proto returns [17:26:57]Send response to host [17:26:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49365,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [17:26:57]free response buf [17:26:57]execute_script done [17:26:57]execute_script returns [17:26:57]free content buf [17:26:57]Sock 7.Close socket [17:26:57]Sock 7.Thread stoped [17:27:01]OFD Sender: No OFD packet to send [17:27:06]OFD Sender: No OFD packet to send [17:27:11]OFD Sender: No OFD packet to send [17:27:16]OFD Sender: No OFD packet to send [17:27:21]OFD Sender: No OFD packet to send [17:27:26]OFD Sender: No OFD packet to send [17:27:31]OFD Sender: No OFD packet to send [17:27:36]OFD Sender: No OFD packet to send [17:27:41]OFD Sender: No OFD packet to send [17:27:46]OFD Sender: No OFD packet to send [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:16]accept exits with 10 [17:29:16]New connection [17:29:16]New thread 3066670436 created [17:29:16]Thread 3066813796 joined [17:29:16]Waiting for new connection... [17:29:16] Sock 10.Parse request [17:29:16]Sock 10.Check first char [17:29:16]Sock 10.First char is OK [17:29:16]request: POST /json_proto HTTP/1.0 [17:29:16]Method: POST [17:29:16]URL: /json_proto [17:29:16]Method is POST - this is cgi request [17:29:16]url: /json_proto [17:29:16]query_string will be loaded in cgi processing [17:29:16]execute_cgi json_proto POST (null) [17:29:16]execute_cgi path=json_proto method=POST [17:29:16]POST find Content-Length [17:29:16]Host: 172.17.56.67:8080 [17:29:16]Content-Length: 677 [17:29:16]Content-Type: application/json [17:29:16] [17:29:16]POST finish read [17:29:16]Found Content-Length = 677 [17:29:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:29:16]execute_script... [17: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)216470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 4.980, "sum" : 300.29, "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:29:16]POST & json_proto [17:29:16]process_json_proto [17:29:16]json parsed OK: [17:29:16]protocol is kg_v1.0 [17:29:16]action value=close_receipt [17:29:16]process_action close_receipt [17:29:16]cmd_close_receipt [17:29:16]MH_GetDate [17:29:16]Write to MH i2c: F0 00 00 61 A5 F5 [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: F0 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: F0 09 00 [17:29:16]MH_I2C_Read... [17:29:16]Read from MH i2c: F0 09 00 61 A5 00 85 83 BA 65 26 5D 9E 65 AB [17:29:16]GetLastDocTimeStamp 1706722038 [17:29:16]current date 1706722181 [17:29:16]FM_GetShiftState [17:29:16]SAM_PROTO_GetShiftState [17:29:16]wFMCommunicate request_size=4 [17:29:16]MH_SAM_APDU [17:29:16]CAPDU: 80 13 01 00 [17:29:16]Write to MH i2c: E2 08 00 62 A5 80 13 01 00 00 00 00 00 84 [17:29:16]Write i2c OK [17:29:16]MH_I2C_Read... [17:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:17]Read from MH i2c: E2 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: E2 0E 00 [17:29:17]MH_I2C_Read... [17:29:17]Read from MH i2c: E2 0E 00 62 A5 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 DA [17:29:17]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:29:17]wFMCommunicate OK [17:29:17]SAM_PROTO_GetShiftState done [17:29:17]FM_GetShiftState done [17:29:17]opened in 1706659486 [17:29:17]opened+sec_in_day 1706745886 [17:29:17]quantity*price = 30029 [17:29:17]sum+1 = 30030 [17:29:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 91 31.01.2024 17:29 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49366 ФПД: 62144759266120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T172941&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49366&fm=62144759266120&tin=02508201610067®Number=0000000000092723&sum=30000 [17:29:18]StoreToDocumentArchive [17:29:18]shift 247 fd 49366 [17:29:18]save to /storage/0247/doc_00049366 [17:29:18]save last doc name /storage/0247/doc_00049366 to /storage/kkm_last_doc_name [17:29:18]save OK [17:29:18]Clear old archive folders... [17:29:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:29:18]tlvbuf is 013064D0 [17:29:18]SAM_PROTO_ClearQueue [17:29:18]wFMCommunicate request_size=4 [17:29:18]MH_SAM_APDU [17:29:18]CAPDU: 80 09 00 00 [17:29:18]Write to MH i2c: E2 08 00 6F A5 80 09 00 00 00 00 00 00 86 [17:29:18]Write i2c OK [17:29:18]MH_I2C_Read... [17:29:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:18]Read from MH i2c: E2 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: E2 03 00 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: E2 03 00 6F A5 00 90 00 88 [17:29:18]RAPDU: 90 00 [17:29:18]wFMCommunicate OK [17:29:18]SAM_PROTO_ClearQueue done [17:29:18]KKMCreateOFDPacket [17:29:18]OFDProtocolAddRootSTLVToBuf [17:29:18]FM_MakeSignedData [17:29:18]FM_MakeSignedData [17:29:18]SAM_PROTO_SignData [17:29:18]wFMCommunicate request_size=4 [17:29:18]MH_SAM_APDU [17:29:18]CAPDU: 80 0D 01 02 [17:29:18]Write to MH i2c: E2 08 00 70 A5 80 0D 01 02 00 00 00 00 8E [17:29:18]Write i2c OK [17:29:18]MH_I2C_Read... [17:29:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:18]Read from MH i2c: E2 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: E2 03 00 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: E2 03 00 70 A5 00 90 00 89 [17:29:18]RAPDU: 90 00 [17:29:18]wFMCommunicate OK [17:29:18]wFMCommunicate request_size=255 [17:29:18]MH_SAM_APDU [17:29:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 85 83 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D6 C0 00 00 35 04 06 00 38 [17:29:18]Write to MH i2c: E2 02 01 71 A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 85 83 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D6 C0 00 00 35 04 06 00 38 00 00 9B [17:29:18]Write i2c OK [17:29:18]MH_I2C_Read... [17:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:18]Read from MH i2c: E2 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: E2 03 00 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: E2 03 00 71 A5 00 90 00 8A [17:29:18]RAPDU: 90 00 [17:29:18]wFMCommunicate OK [17:29:18]wFMCommunicate request_size=10 [17:29:18]MH_SAM_APDU [17:29:18]CAPDU: 80 0D 02 02 05 85 34 4C FB 48 [17:29:18]Write to MH i2c: E2 0D 00 72 A5 80 0D 02 02 05 00 85 34 4C FB 48 00 00 E3 [17:29:18]Write i2c OK [17:29:18]MH_I2C_Read... [17:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:18]Read from MH i2c: E2 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: E2 03 00 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: E2 03 00 72 A5 00 90 00 8B [17:29:18]RAPDU: 90 00 [17:29:18]wFMCommunicate OK [17:29:18]wFMCommunicate request_size=4 [17:29:18]MH_SAM_APDU [17:29:18]CAPDU: 80 0D 03 02 [17:29:18]Write to MH i2c: E2 08 00 73 A5 80 0D 03 02 00 00 00 00 93 [17:29:18]Write i2c OK [17:29:18]MH_I2C_Read... [17:29:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:18]Read from MH i2c: E2 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: E2 0B 00 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: E2 0B 00 73 A5 00 A3 33 4D 3D 63 DB 69 A7 90 00 42 [17:29:18]RAPDU: A3 33 4D 3D 63 DB 69 A7 90 00 [17:29:18]wFMCommunicate OK [17:29:18]SAM_PROTO_SignData done [17:29:18]FM_MakeSignedData done [17:29:18]CreateOFDProtocolMessage [17:29:18]wFMCommunicate request_size=4 [17:29:18]MH_SAM_APDU [17:29:18]CAPDU: 80 11 00 00 [17:29:18]Write to MH i2c: E2 08 00 74 A5 80 11 00 00 00 00 00 00 93 [17:29:18]Write i2c OK [17:29:18]MH_I2C_Read... [17:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:18]Read from MH i2c: E2 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: E2 17 00 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: E2 17 00 74 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E0 [17:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:29:18]wFMCommunicate OK [17:29:18]CreateOFDProtocolMessage done [17:29:18]OFDSenderStorePacket 49366 [17:29:18]StoreOFDPacket docnum=49366 [17:29:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 8E DB 07 01 D5 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 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 85 83 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D6 C0 00 00 35 04 06 00 38 85 34 4C FB 48 A3 33 4D 3D 63 DB 69 A7 [17:29:18]CheckFolder [17:29:18]dirname=/storage/ofd_packets [17:29:18]CheckFolder done [17:29:18]ProducePacketName [17:29:18]name=ofd_packets/00049366 [17:29:18]NVStorageSaveData ofd_packets/00049366 [17:29:18]File name is /storage/ofd_packets/00049366 [17:29:18]Write 301 bytes [17:29:18]NVStorageSaveData done [17:29:18]OFDSenderStorePacket done [17:29:18]KKMCreateOFDPacket done [17:29:18]NVStorageSaveData kkm_last_timestamp [17:29:18]File name is /storage/kkm_last_timestamp [17:29:18]Write 4 bytes [17:29:18]NVStorageSaveData done [17:29:18]ExternCall_PrintAddStr [17:29:18]wPrintStart [17:29:18]Write to MH i2c: 01 00 00 75 A5 1A [17:29:18]Write i2c OK [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: 01 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: 01 07 00 [17:29:18]MH_I2C_Read... [17:29:18]Read from MH i2c: 01 07 00 75 A5 00 00 00 00 00 FF 0F 2F [17:29:18]RasterBufferAndPrint [17:29:18]line Счет N : (1)216470 [17:29:18]line ИНН: 02508201610067 [17:29:18]line Контрольно-Кассовый Чек [17:29:18]line ПРОДАЖА [17:29:18]line ТРК (МРК, ГНК) : 22 [17:29:18]line Товар: 2710124130 [17:29:18]line Аи-92-К-5 [17:29:18]line 4.980 * 60.30 [17:29:18]line = 300.29 [17:29:18]line НДС 12% НСП 1% [17:29:18]line > о реализуемом товаре [17:29:18]line ОКРУГЛЕНИЕ: -0.29 [17:29:18]line ИТОГО: 300.00 [17:29:18]line Внесено: 300.00 [17:29:18]line СДАЧА: 0.00 [17:29:18]line НСП 1% : 2.66 [17:29:18]line НДС 12% : 31.89 [17:29:18]line Наличными: 300.00 [17:29:18]line Безнал.: 0.00 [17:29:18]line Место: АЗС № 102 "Партнер Нефть" [17:29:18]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:29:18]line СНО: Общий режим [17:29:18]line Чек 91 31.01.2024 17:29 [17:29:18]line Смена: 247 ФФД: 1.0 [17:29:18]line ЗНМ: 0300000040 [17:29:18]line РНМ: 0000000000092723 [17:29:18]line Версия ККМ: 001 [17:29:18]line ФМ: 0000000000875060 [17:29:18]line ФД: 49366 [17:29:18]line ФПД: 62144759266120 [17:29:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T172941&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49366&fm=62144759266120&tin=02508201610067®Number=0000000000092723&sum=30000 [17:29:19]OFD Sender: Processing packet 49366 [packets to send 12, broken 11] [17:29:19]ProducePacketName [17:29:19]name=ofd_packets/00049366 [17:29:19]OFD Sender: To server: pG, [17:29:19]CommunicateWithHost lk.salyk.kg:30040 [17:29:19]ConnectInit lk.salyk.kg [17:29:19]written 0, free lines is 4095 [17:29:19]Connected sock=9 [17:29:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 8E DB 07 01 D5 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 35 FF 03 08 00 03 74 13 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4D 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 85 83 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D6 C0 00 00 35 04 06 00 38 85 34 4C FB 48 A3 33 4D 3D 63 DB 69 A7 [17:29:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 41 5A 47 00 58 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 35 30 36 30 10 04 04 00 D6 C0 00 00 F4 03 04 00 77 2F BA 65 B6 04 01 00 00 CC 32 DF 3A 81 C2 A5 D9 [17:29:19]CommunicateWithHost err = 0 [17:29:19]CheckOFDResponse [17:29:19]1017 (14) - 77093643461234 [17:29:19]1041 (16) - 0000000000875060 [17:29:19]1040 (4) - 49366 [17:29:19]1012 (4) - 31.01.2024 11:31 [17:29:19]1206 (1) - 0 [17:29:19]OFD Sender: Remove packet 49366 [17:29:19]ProducePacketName [17:29:19]name=ofd_packets/00049366 [17:29:19]NVStorageDeleteData [17:29:19]Write to MH i2c: 01 00 00 A0 A5 45 [17:29:19]Write i2c OK [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: 01 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: 01 07 00 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: 01 07 00 A0 A5 00 00 00 00 00 F0 0C 48 [17:29:19]RasterBufferAndPrint [17:29:19]line [17:29:19]line [17:29:19]line [17:29:19]line [17:29:19]line [17:29:19]written 0, free lines is 3318 [17:29:19]MH_Cut [17:29:19]Write to MH i2c: D1 01 00 A7 A5 01 1E [17:29:19]Write i2c OK [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: D1 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: D1 01 00 [17:29:19]MH_I2C_Read... [17:29:19]Read from MH i2c: D1 01 00 A7 A5 00 1D [17:29:19]Write to MH i2c: 01 00 00 A8 A5 4D [17:29:19]Write i2c OK [17:29:19]MH_I2C_Read... [17:29:19]OFD Sender: No OFD packet to send [17:29:20]*** Cut start [17:29:20]*** Partial cut [17:29:20]*** CUTSNS_PIN = 1 [17:29:20]*** CUTSNS_PIN = 0 [17:29:20]*** Brake cut motor [17:29:20]Read from MH i2c: 01 [17:29:20]MH_I2C_Read... [17:29:20]*** Stop cut motor [17:29:20]*** Cut end [17:29:20]Read from MH i2c: 01 07 00 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: 01 07 00 A8 A5 00 00 00 00 00 FF 0F 62 [17:29:20]process_action close_receipt done [17:29:20]requested_data is exist [17:29:20]produce_requested_data [17:29:20]requested_item fm.sn is exist - process it [17:29:20]wFMCommunicate request_size=4 [17:29:20]MH_SAM_APDU [17:29:20]CAPDU: 80 11 00 00 [17:29:20]Write to MH i2c: E2 08 00 A9 A5 80 11 00 00 00 00 00 00 C8 [17:29:20]Write i2c OK [17:29:20]MH_I2C_Read... [17:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:20]Read from MH i2c: E2 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: E2 17 00 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: E2 17 00 A9 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 15 [17:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:29:20]wFMCommunicate OK [17:29:20]requested_item fd.num is exist - process it [17:29:20]SAM_PROTO_GetFieldsCounters [17:29:20]wFMCommunicate request_size=4 [17:29:20]MH_SAM_APDU [17:29:20]CAPDU: 80 13 00 00 [17:29:20]Write to MH i2c: E2 08 00 AA A5 80 13 00 00 00 00 00 00 CB [17:29:20]Write i2c OK [17:29:20]MH_I2C_Read... [17:29:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:20]Read from MH i2c: E2 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: E2 62 00 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: E2 62 00 AA A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D6 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [17:29: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D6 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:20]wFMCommunicate OK [17:29:20]SAM_PROTO_GetFieldsCounters done [17:29:20]requested_item shift.num is exist - process it [17:29:20]requested_item shift.opened is exist - process it [17:29:20]req_shift_opened [17:29:20]FM_GetShiftState [17:29:20]SAM_PROTO_GetShiftState [17:29:20]wFMCommunicate request_size=4 [17:29:20]MH_SAM_APDU [17:29:20]CAPDU: 80 13 01 00 [17:29:20]Write to MH i2c: E2 08 00 AB A5 80 13 01 00 00 00 00 00 CD [17:29:20]Write i2c OK [17:29:20]MH_I2C_Read... [17:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:20]Read from MH i2c: E2 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: E2 0E 00 [17:29:20]MH_I2C_Read... [17:29:20]Read from MH i2c: E2 0E 00 AB A5 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 23 [17:29:20]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:29:20]wFMCommunicate OK [17:29:20]SAM_PROTO_GetShiftState done [17:29:20]FM_GetShiftState done [17:29:20]req_shift_opened done [17:29:20]requested_item shift.open_date is exist - process it [17:29:20]req_shift_open_date [17:29:20]req_shift_open_date done [17:29:20]produce_requested_data done [17:29:20]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49366,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [17:29:20]process_action_free close_receipt [17:29:20]json_value_free [17:29:20]json_value_free done [17:29:20]process_json_proto returns [17:29:20]Send response to host [17:29:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49366,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [17:29:20]free response buf [17:29:20]execute_script done [17:29:20]execute_script returns [17:29:20]free content buf [17:29:20]Sock 10.Close socket [17:29:20]Sock 10.Thread stoped [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]accept exits with 7 [17:29:59]New connection [17:29:59]New thread 3066813796 created [17:29:59]Thread 3066670436 joined [17:29:59]Waiting for new connection... [17:29:59] Sock 7.Parse request [17:29:59]Sock 7.Check first char [17:29:59]Sock 7.First char is OK [17:29:59]request: POST /json_proto HTTP/1.0 [17:29:59]Method: POST [17:29:59]URL: /json_proto [17:29:59]Method is POST - this is cgi request [17:29:59]url: /json_proto [17:29:59]query_string will be loaded in cgi processing [17:29:59]execute_cgi json_proto POST (null) [17:29:59]execute_cgi path=json_proto method=POST [17:29:59]POST find Content-Length [17:29:59]Host: 172.17.56.67:8080 [17:29:59]Content-Length: 677 [17:29:59]Content-Type: application/json [17:29:59] [17:29:59]POST finish read [17:29:59]Found Content-Length = 677 [17:29:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:59]execute_script... [17:29: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)216471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:59]POST & json_proto [17:29:59]process_json_proto [17:29:59]json parsed OK: [17:29:59]protocol is kg_v1.0 [17:29:59]action value=close_receipt [17:29:59]process_action close_receipt [17:29:59]cmd_close_receipt [17:29:59]MH_GetDate [17:29:59]Write to MH i2c: F0 00 00 AC A5 40 [17:29:59]Write i2c OK [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: F0 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: F0 09 00 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: F0 09 00 AC A5 00 B0 83 BA 65 26 5D 9E 65 21 [17:29:59]GetLastDocTimeStamp 1706722181 [17:29:59]current date 1706722224 [17:29:59]FM_GetShiftState [17:29:59]SAM_PROTO_GetShiftState [17:29:59]wFMCommunicate request_size=4 [17:29:59]MH_SAM_APDU [17:29:59]CAPDU: 80 13 01 00 [17:29:59]Write to MH i2c: E2 08 00 AD A5 80 13 01 00 00 00 00 00 CF [17:29:59]Write i2c OK [17:29:59]MH_I2C_Read... [17:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:59]Read from MH i2c: E2 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: E2 0E 00 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: E2 0E 00 AD A5 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 25 [17:29:59]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:29:59]wFMCommunicate OK [17:29:59]SAM_PROTO_GetShiftState done [17:29:59]FM_GetShiftState done [17:29:59]opened in 1706659486 [17:29:59]opened+sec_in_day 1706745886 [17:29:59]quantity*price = 60058 [17:29:59]sum+1 = 60060 [17:29:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 92 31.01.2024 17:30 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49367 ФПД: 153776175439867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T173024&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49367&fm=153776175439867&tin=02508201610067®Number=0000000000092723&sum=60000 [17:30:00]StoreToDocumentArchive [17:30:00]shift 247 fd 49367 [17:30:00]save to /storage/0247/doc_00049367 [17:30:00]save last doc name /storage/0247/doc_00049367 to /storage/kkm_last_doc_name [17:30:00]save OK [17:30:00]Clear old archive folders... [17:30:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:00]tlvbuf is 0119A470 [17:30:00]SAM_PROTO_ClearQueue [17:30:00]wFMCommunicate request_size=4 [17:30:00]MH_SAM_APDU [17:30:00]CAPDU: 80 09 00 00 [17:30:00]Write to MH i2c: E2 08 00 BA A5 80 09 00 00 00 00 00 00 D1 [17:30:00]Write i2c OK [17:30:00]MH_I2C_Read... [17:30:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:00]Read from MH i2c: E2 [17:30:00]MH_I2C_Read... [17:30:00]Read from MH i2c: E2 03 00 [17:30:00]MH_I2C_Read... [17:30:00]Read from MH i2c: E2 03 00 BA A5 00 90 00 D3 [17:30:00]RAPDU: 90 00 [17:30:00]wFMCommunicate OK [17:30:00]SAM_PROTO_ClearQueue done [17:30:00]KKMCreateOFDPacket [17:30:00]OFDProtocolAddRootSTLVToBuf [17:30:00]FM_MakeSignedData [17:30:00]FM_MakeSignedData [17:30:00]SAM_PROTO_SignData [17:30:00]wFMCommunicate request_size=4 [17:30:00]MH_SAM_APDU [17:30:00]CAPDU: 80 0D 01 02 [17:30:00]Write to MH i2c: E2 08 00 BB A5 80 0D 01 02 00 00 00 00 D9 [17:30:00]Write i2c OK [17:30:00]MH_I2C_Read... [17:30:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:00]Read from MH i2c: E2 [17:30:00]MH_I2C_Read... [17:30:00]Read from MH i2c: E2 03 00 [17:30:00]MH_I2C_Read... [17:30:00]Read from MH i2c: E2 03 00 BB A5 00 90 00 D4 [17:30:00]RAPDU: 90 00 [17:30:00]wFMCommunicate OK [17:30:00]wFMCommunicate request_size=255 [17:30:00]MH_SAM_APDU [17:30:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 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 5C 00 00 00 F4 03 04 00 B0 83 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D7 C0 00 00 35 04 06 00 8B [17:30:00]Write to MH i2c: E2 02 01 BC A5 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 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 5C 00 00 00 F4 03 04 00 B0 83 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D7 C0 00 00 35 04 06 00 8B 00 00 85 [17:30:00]Write i2c OK [17:30:00]MH_I2C_Read... [17:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:01]Read from MH i2c: E2 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 03 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 03 00 BC A5 00 90 00 D5 [17:30:01]RAPDU: 90 00 [17:30:01]wFMCommunicate OK [17:30:01]wFMCommunicate request_size=10 [17:30:01]MH_SAM_APDU [17:30:01]CAPDU: 80 0D 02 02 05 DB CE 4F DF FB [17:30:01]Write to MH i2c: E2 0D 00 BD A5 80 0D 02 02 05 00 DB CE 4F DF FB 00 00 B8 [17:30:01]Write i2c OK [17:30:01]MH_I2C_Read... [17:30:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:01]Read from MH i2c: E2 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 03 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 03 00 BD A5 00 90 00 D6 [17:30:01]RAPDU: 90 00 [17:30:01]wFMCommunicate OK [17:30:01]wFMCommunicate request_size=4 [17:30:01]MH_SAM_APDU [17:30:01]CAPDU: 80 0D 03 02 [17:30:01]Write to MH i2c: E2 08 00 BE A5 80 0D 03 02 00 00 00 00 DE [17:30:01]Write i2c OK [17:30:01]MH_I2C_Read... [17:30:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:01]Read from MH i2c: E2 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 0B 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 0B 00 BE A5 00 D5 3C C9 DB 33 0E 74 94 90 00 DD [17:30:01]RAPDU: D5 3C C9 DB 33 0E 74 94 90 00 [17:30:01]wFMCommunicate OK [17:30:01]SAM_PROTO_SignData done [17:30:01]FM_MakeSignedData done [17:30:01]CreateOFDProtocolMessage [17:30:01]wFMCommunicate request_size=4 [17:30:01]MH_SAM_APDU [17:30:01]CAPDU: 80 11 00 00 [17:30:01]Write to MH i2c: E2 08 00 BF A5 80 11 00 00 00 00 00 00 DE [17:30:01]Write i2c OK [17:30:01]MH_I2C_Read... [17:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:01]Read from MH i2c: E2 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 17 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 17 00 BF A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2B [17:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:30:01]wFMCommunicate OK [17:30:01]CreateOFDProtocolMessage done [17:30:01]OFDSenderStorePacket 49367 [17:30:01]StoreOFDPacket docnum=49367 [17:30:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 4C 8A 07 01 FC 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 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 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 5C 00 00 00 F4 03 04 00 B0 83 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D7 C0 00 00 35 04 06 00 8B DB CE 4F DF FB D5 3C C9 DB 33 0E 74 94 [17:30:01]CheckFolder [17:30:01]dirname=/storage/ofd_packets [17:30:01]CheckFolder done [17:30:01]ProducePacketName [17:30:01]name=ofd_packets/00049367 [17:30:01]NVStorageSaveData ofd_packets/00049367 [17:30:01]File name is /storage/ofd_packets/00049367 [17:30:01]Write 301 bytes [17:30:01]NVStorageSaveData done [17:30:01]OFDSenderStorePacket done [17:30:01]KKMCreateOFDPacket done [17:30:01]NVStorageSaveData kkm_last_timestamp [17:30:01]File name is /storage/kkm_last_timestamp [17:30:01]Write 4 bytes [17:30:01]NVStorageSaveData done [17:30:01]ExternCall_PrintAddStr [17:30:01]wPrintStart [17:30:01]Write to MH i2c: 01 00 00 C0 A5 65 [17:30:01]Write i2c OK [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: 01 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: 01 07 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: 01 07 00 C0 A5 00 00 00 00 00 FF 0F 7A [17:30:01]RasterBufferAndPrint [17:30:01]line Счет N : (1)216471 [17:30:01]line ИНН: 02508201610067 [17:30:01]line Контрольно-Кассовый Чек [17:30:01]line ПРОДАЖА [17:30:01]line ТРК (МРК, ГНК) : 12 [17:30:01]line Товар: 2710124130 [17:30:01]line Аи-92-К-5 [17:30:01]line 9.960 * 60.30 [17:30:01]line = 600.59 [17:30:01]line НДС 12% НСП 1% [17:30:01]line > о реализуемом товаре [17:30:01]line ОКРУГЛЕНИЕ: -0.59 [17:30:01]line ИТОГО: 600.00 [17:30:01]line Внесено: 600.00 [17:30:01]line СДАЧА: 0.00 [17:30:01]line НСП 1% : 5.31 [17:30:01]line НДС 12% : 63.78 [17:30:01]line Наличными: 600.00 [17:30:01]line Безнал.: 0.00 [17:30:01]line Место: АЗС № 102 "Партнер Нефть" [17:30:01]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:30:01]line СНО: Общий режим [17:30:01]line Чек 92 31.01.2024 17:30 [17:30:01]line Смена: 247 ФФД: 1.0 [17:30:01]line ЗНМ: 0300000040 [17:30:01]line РНМ: 0000000000092723 [17:30:01]line Версия ККМ: 001 [17:30:01]line ФМ: 0000000000875060 [17:30:01]line ФД: 49367 [17:30:01]line ФПД: 153776175439867 [17:30:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T173024&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49367&fm=153776175439867&tin=02508201610067®Number=0000000000092723&sum=60000 [17:30:01]OFD Sender: Processing packet 49367 [packets to send 12, broken 11] [17:30:01]ProducePacketName [17:30:01]name=ofd_packets/00049367 [17:30:01]OFD Sender: To server: pG, [17:30:01]CommunicateWithHost lk.salyk.kg:30040 [17:30:01]ConnectInit lk.salyk.kg [17:30:01]written 0, free lines is 4095 [17:30:01]Connected sock=10 [17:30:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 4C 8A 07 01 FC 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 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 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 5C 00 00 00 F4 03 04 00 B0 83 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D7 C0 00 00 35 04 06 00 8B DB CE 4F DF FB D5 3C C9 DB 33 0E 74 94 [17:30:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 FF 59 47 00 E8 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D7 C0 00 00 F4 03 04 00 A2 2F BA 65 B6 04 01 00 00 AF 7D D1 6C 48 C3 CE D5 [17:30:01]CommunicateWithHost err = 0 [17:30:01]CheckOFDResponse [17:30:01]1017 (14) - 77093643461234 [17:30:01]1041 (16) - 0000000000875060 [17:30:01]1040 (4) - 49367 [17:30:01]1012 (4) - 31.01.2024 11:31 [17:30:01]1206 (1) - 0 [17:30:01]OFD Sender: Remove packet 49367 [17:30:01]ProducePacketName [17:30:01]name=ofd_packets/00049367 [17:30:01]NVStorageDeleteData [17:30:02]Write to MH i2c: 01 00 00 EB A5 90 [17:30:02]Write i2c OK [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: 01 [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: 01 07 00 [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: 01 07 00 EB A5 00 00 00 00 00 F6 0C 99 [17:30:02]RasterBufferAndPrint [17:30:02]line [17:30:02]line [17:30:02]line [17:30:02]line [17:30:02]line [17:30:02]written 0, free lines is 3328 [17:30:02]MH_Cut [17:30:02]Write to MH i2c: D1 01 00 F2 A5 01 69 [17:30:02]Write i2c OK [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: D1 [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: D1 01 00 [17:30:02]MH_I2C_Read... [17:30:02]Read from MH i2c: D1 01 00 F2 A5 00 68 [17:30:02]Write to MH i2c: 01 00 00 F3 A5 98 [17:30:02]Write i2c OK [17:30:02]MH_I2C_Read... [17:30:02]OFD Sender: No OFD packet to send [17:30:02]*** Cut start [17:30:02]*** Partial cut [17:30:02]*** CUTSNS_PIN = 1 [17:30:02]*** CUTSNS_PIN = 0 [17:30:02]*** Brake cut motor [17:30:03]Read from MH i2c: 01 [17:30:03]MH_I2C_Read... [17:30:03]*** Stop cut motor [17:30:03]*** Cut end [17:30:03]Read from MH i2c: 01 07 00 [17:30:03]MH_I2C_Read... [17:30:03]Read from MH i2c: 01 07 00 F3 A5 00 00 00 00 00 FF 0F AD [17:30:03]process_action close_receipt done [17:30:03]requested_data is exist [17:30:03]produce_requested_data [17:30:03]requested_item fm.sn is exist - process it [17:30:03]wFMCommunicate request_size=4 [17:30:03]MH_SAM_APDU [17:30:03]CAPDU: 80 11 00 00 [17:30:03]Write to MH i2c: E2 08 00 F4 A5 80 11 00 00 00 00 00 00 13 [17:30:03]Write i2c OK [17:30:03]MH_I2C_Read... [17:30:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:03]Read from MH i2c: E2 [17:30:03]MH_I2C_Read... [17:30:03]Read from MH i2c: E2 17 00 [17:30:03]MH_I2C_Read... [17:30:03]Read from MH i2c: E2 17 00 F4 A5 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 60 [17:30:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:30:03]wFMCommunicate OK [17:30:03]requested_item fd.num is exist - process it [17:30:03]SAM_PROTO_GetFieldsCounters [17:30:03]wFMCommunicate request_size=4 [17:30:03]MH_SAM_APDU [17:30:03]CAPDU: 80 13 00 00 [17:30:03]Write to MH i2c: E2 08 00 F5 A5 80 13 00 00 00 00 00 00 16 [17:30:03]Write i2c OK [17:30:03]MH_I2C_Read... [17:30:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:03]Read from MH i2c: E2 [17:30:03]MH_I2C_Read... [17:30:03]Read from MH i2c: E2 62 00 [17:30:03]MH_I2C_Read... [17:30:03]Read from MH i2c: E2 62 00 F5 A5 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D7 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [17:30:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D7 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:03]wFMCommunicate OK [17:30:03]SAM_PROTO_GetFieldsCounters done [17:30:03]requested_item shift.num is exist - process it [17:30:03]requested_item shift.opened is exist - process it [17:30:03]req_shift_opened [17:30:03]FM_GetShiftState [17:30:03]SAM_PROTO_GetShiftState [17:30:03]wFMCommunicate request_size=4 [17:30:03]MH_SAM_APDU [17:30:03]CAPDU: 80 13 01 00 [17:30:03]Write to MH i2c: E2 08 00 F6 A5 80 13 01 00 00 00 00 00 18 [17:30:03]Write i2c OK [17:30:03]MH_I2C_Read... [17:30:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:03]Read from MH i2c: E2 [17:30:03]MH_I2C_Read... [17:30:03]Read from MH i2c: E2 0E 00 [17:30:03]MH_I2C_Read... [17:30:03]Read from MH i2c: E2 0E 00 F6 A5 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 6E [17:30:03]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:30:03]wFMCommunicate OK [17:30:03]SAM_PROTO_GetShiftState done [17:30:03]FM_GetShiftState done [17:30:03]req_shift_opened done [17:30:03]requested_item shift.open_date is exist - process it [17:30:03]req_shift_open_date [17:30:03]req_shift_open_date done [17:30:03]produce_requested_data done [17:30:03]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49367,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [17:30:03]process_action_free close_receipt [17:30:03]json_value_free [17:30:03]json_value_free done [17:30:03]process_json_proto returns [17:30:03]Send response to host [17:30:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49367,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [17:30:03]free response buf [17:30:03]execute_script done [17:30:03]execute_script returns [17:30:03]free content buf [17:30:03]Sock 7.Close socket [17:30:03]Sock 7.Thread stoped [17:30:07]OFD Sender: No OFD packet to send [17:30:12]OFD Sender: No OFD packet to send [17:30:17]OFD Sender: No OFD packet to send [17:30:22]OFD Sender: No OFD packet to send [17:30:27]OFD Sender: No OFD packet to send [17:30:32]OFD Sender: No OFD packet to send [17:30:37]OFD Sender: No OFD packet to send [17:30:42]OFD Sender: No OFD packet to send [17:30:47]OFD Sender: No OFD packet to send [17:30:52]OFD Sender: No OFD packet to send [17:30:57]OFD Sender: No OFD packet to send [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]accept exits with 9 [17:32:17]New connection [17:32:17]New thread 3066670436 created [17:32:17]Thread 3066813796 joined [17:32:17]Waiting for new connection... [17:32:17] Sock 9.Parse request [17:32:17]Sock 9.Check first char [17:32:17]Sock 9.First char is OK [17:32:17]request: POST /json_proto HTTP/1.0 [17:32:17]Method: POST [17:32:17]URL: /json_proto [17:32:17]Method is POST - this is cgi request [17:32:17]url: /json_proto [17:32:17]query_string will be loaded in cgi processing [17:32:17]execute_cgi json_proto POST (null) [17:32:17]execute_cgi path=json_proto method=POST [17:32:17]POST find Content-Length [17:32:17]Host: 172.17.56.67:8080 [17:32:17]Content-Length: 677 [17:32:17]Content-Type: application/json [17:32:17] [17:32:17]POST finish read [17:32:17]Found Content-Length = 677 [17:32:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:17]execute_script... [17:32: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)216472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:17]POST & json_proto [17:32:17]process_json_proto [17:32:17]json parsed OK: [17:32:17]protocol is kg_v1.0 [17:32:17]action value=close_receipt [17:32:17]process_action close_receipt [17:32:17]cmd_close_receipt [17:32:17]MH_GetDate [17:32:17]Write to MH i2c: F0 00 00 F7 A5 8B [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: F0 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: F0 09 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: F0 09 00 F7 A5 00 3A 84 BA 65 26 5D 9E 65 F7 [17:32:17]GetLastDocTimeStamp 1706722224 [17:32:17]current date 1706722362 [17:32:17]FM_GetShiftState [17:32:17]SAM_PROTO_GetShiftState [17:32:17]wFMCommunicate request_size=4 [17:32:17]MH_SAM_APDU [17:32:17]CAPDU: 80 13 01 00 [17:32:17]Write to MH i2c: E2 08 00 F8 A5 80 13 01 00 00 00 00 00 1A [17:32:17]Write i2c OK [17:32:17]MH_I2C_Read... [17:32:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:17]Read from MH i2c: E2 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 0E 00 [17:32:17]MH_I2C_Read... [17:32:17]Read from MH i2c: E2 0E 00 F8 A5 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 70 [17:32:17]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:32:17]wFMCommunicate OK [17:32:17]SAM_PROTO_GetShiftState done [17:32:17]FM_GetShiftState done [17:32:17]opened in 1706659486 [17:32:17]opened+sec_in_day 1706745886 [17:32:17]quantity*price = 40039 [17:32:17]sum+1 = 40040 [17:32:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 93 31.01.2024 17:32 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49368 ФПД: 98179010585628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T173242&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49368&fm=98179010585628&tin=02508201610067®Number=0000000000092723&sum=40000 [17:32:18]StoreToDocumentArchive [17:32:18]shift 247 fd 49368 [17:32:18]save to /storage/0247/doc_00049368 [17:32:18]save last doc name /storage/0247/doc_00049368 to /storage/kkm_last_doc_name [17:32:18]save OK [17:32:18]Clear old archive folders... [17:32:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:18]tlvbuf is 01312A10 [17:32:18]SAM_PROTO_ClearQueue [17:32:18]wFMCommunicate request_size=4 [17:32:18]MH_SAM_APDU [17:32:18]CAPDU: 80 09 00 00 [17:32:18]Write to MH i2c: E2 08 00 05 A6 80 09 00 00 00 00 00 00 1D [17:32:18]Write i2c OK [17:32:18]MH_I2C_Read... [17:32:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:18]Read from MH i2c: E2 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 03 00 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 03 00 05 A6 00 90 00 1F [17:32:18]RAPDU: 90 00 [17:32:18]wFMCommunicate OK [17:32:18]SAM_PROTO_ClearQueue done [17:32:18]KKMCreateOFDPacket [17:32:18]OFDProtocolAddRootSTLVToBuf [17:32:18]FM_MakeSignedData [17:32:18]FM_MakeSignedData [17:32:18]SAM_PROTO_SignData [17:32:18]wFMCommunicate request_size=4 [17:32:18]MH_SAM_APDU [17:32:18]CAPDU: 80 0D 01 02 [17:32:18]Write to MH i2c: E2 08 00 06 A6 80 0D 01 02 00 00 00 00 25 [17:32:18]Write i2c OK [17:32:18]MH_I2C_Read... [17:32:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:18]Read from MH i2c: E2 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 03 00 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 03 00 06 A6 00 90 00 20 [17:32:18]RAPDU: 90 00 [17:32:18]wFMCommunicate OK [17:32:18]wFMCommunicate request_size=255 [17:32:18]MH_SAM_APDU [17:32:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 5D 00 00 00 F4 03 04 00 3A 84 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D8 C0 00 00 35 04 06 00 59 [17:32:18]Write to MH i2c: E2 02 01 07 A6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 5D 00 00 00 F4 03 04 00 3A 84 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D8 C0 00 00 35 04 06 00 59 00 00 C1 [17:32:18]Write i2c OK [17:32:18]MH_I2C_Read... [17:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:18]Read from MH i2c: E2 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 03 00 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 03 00 07 A6 00 90 00 21 [17:32:18]RAPDU: 90 00 [17:32:18]wFMCommunicate OK [17:32:18]wFMCommunicate request_size=10 [17:32:18]MH_SAM_APDU [17:32:18]CAPDU: 80 0D 02 02 05 4B 15 0C E4 1C [17:32:18]Write to MH i2c: E2 0D 00 08 A6 80 0D 02 02 05 00 4B 15 0C E4 1C 00 00 9E [17:32:18]Write i2c OK [17:32:18]MH_I2C_Read... [17:32:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:18]Read from MH i2c: E2 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 03 00 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 03 00 08 A6 00 90 00 22 [17:32:18]RAPDU: 90 00 [17:32:18]wFMCommunicate OK [17:32:18]wFMCommunicate request_size=4 [17:32:18]MH_SAM_APDU [17:32:18]CAPDU: 80 0D 03 02 [17:32:18]Write to MH i2c: E2 08 00 09 A6 80 0D 03 02 00 00 00 00 2A [17:32:18]Write i2c OK [17:32:18]MH_I2C_Read... [17:32:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:18]Read from MH i2c: E2 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 0B 00 [17:32:18]MH_I2C_Read... [17:32:18]Read from MH i2c: E2 0B 00 09 A6 00 ED D8 30 52 AB 56 F4 84 90 00 EB [17:32:18]RAPDU: ED D8 30 52 AB 56 F4 84 90 00 [17:32:18]wFMCommunicate OK [17:32:18]SAM_PROTO_SignData done [17:32:18]FM_MakeSignedData done [17:32:18]CreateOFDProtocolMessage [17:32:18]wFMCommunicate request_size=4 [17:32:18]MH_SAM_APDU [17:32:18]CAPDU: 80 11 00 00 [17:32:18]Write to MH i2c: E2 08 00 0A A6 80 11 00 00 00 00 00 00 2A [17:32:18]Write i2c OK [17:32:18]MH_I2C_Read... [17:32:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:19]Read from MH i2c: E2 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 17 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 17 00 0A A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 77 [17:32:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:32:19]wFMCommunicate OK [17:32:19]CreateOFDProtocolMessage done [17:32:19]OFDSenderStorePacket 49368 [17:32:19]StoreOFDPacket docnum=49368 [17:32:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 77 74 07 01 8C 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 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 5D 00 00 00 F4 03 04 00 3A 84 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D8 C0 00 00 35 04 06 00 59 4B 15 0C E4 1C ED D8 30 52 AB 56 F4 84 [17:32:19]CheckFolder [17:32:19]dirname=/storage/ofd_packets [17:32:19]CheckFolder done [17:32:19]ProducePacketName [17:32:19]name=ofd_packets/00049368 [17:32:19]NVStorageSaveData ofd_packets/00049368 [17:32:19]File name is /storage/ofd_packets/00049368 [17:32:19]Write 301 bytes [17:32:19]NVStorageSaveData done [17:32:19]OFDSenderStorePacket done [17:32:19]KKMCreateOFDPacket done [17:32:19]NVStorageSaveData kkm_last_timestamp [17:32:19]File name is /storage/kkm_last_timestamp [17:32:19]Write 4 bytes [17:32:19]NVStorageSaveData done [17:32:19]ExternCall_PrintAddStr [17:32:19]wPrintStart [17:32:19]Write to MH i2c: 01 00 00 0B A6 B1 [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 07 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 07 00 0B A6 00 00 00 00 00 FF 0F C6 [17:32:19]RasterBufferAndPrint [17:32:19]line Счет N : (1)216472 [17:32:19]line ИНН: 02508201610067 [17:32:19]line Контрольно-Кассовый Чек [17:32:19]line ПРОДАЖА [17:32:19]line ТРК (МРК, ГНК) : 22 [17:32:19]line Товар: 2710124130 [17:32:19]line Аи-92-К-5 [17:32:19]line 6.640 * 60.30 [17:32:19]line = 400.39 [17:32:19]line НДС 12% НСП 1% [17:32:19]line > о реализуемом товаре [17:32:19]line ОКРУГЛЕНИЕ: -0.39 [17:32:19]line ИТОГО: 400.00 [17:32:19]line Внесено: 400.00 [17:32:19]line СДАЧА: 0.00 [17:32:19]line НСП 1% : 3.54 [17:32:19]line НДС 12% : 42.52 [17:32:19]line Наличными: 400.00 [17:32:19]line Безнал.: 0.00 [17:32:19]line Место: АЗС № 102 "Партнер Нефть" [17:32:19]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:32:19]line СНО: Общий режим [17:32:19]line Чек 93 31.01.2024 17:32 [17:32:19]line Смена: 247 ФФД: 1.0 [17:32:19]line ЗНМ: 0300000040 [17:32:19]line РНМ: 0000000000092723 [17:32:19]line Версия ККМ: 001 [17:32:19]line ФМ: 0000000000875060 [17:32:19]line ФД: 49368 [17:32:19]line ФПД: 98179010585628 [17:32:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T173242&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49368&fm=98179010585628&tin=02508201610067®Number=0000000000092723&sum=40000 [17:32:19]OFD Sender: Processing packet 49368 [packets to send 12, broken 11] [17:32:19]ProducePacketName [17:32:19]name=ofd_packets/00049368 [17:32:19]OFD Sender: To server: pG, [17:32:19]CommunicateWithHost lk.salyk.kg:30040 [17:32:19]ConnectInit lk.salyk.kg [17:32:19]written 0, free lines is 4095 [17:32:19]Write to MH i2c: 01 00 00 36 A6 DC [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 07 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: 01 07 00 36 A6 00 00 00 00 00 EF 0C DE [17:32:19]RasterBufferAndPrint [17:32:19]line [17:32:19]line [17:32:19]line [17:32:19]line [17:32:19]line [17:32:19]written 0, free lines is 3317 [17:32:19]MH_Cut [17:32:19]Write to MH i2c: D1 01 00 3D A6 01 B5 [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: D1 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: D1 01 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: D1 01 00 3D A6 00 B4 [17:32:19]Write to MH i2c: 01 00 00 3E A6 E4 [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:20]*** Cut start [17:32:20]*** Partial cut [17:32:20]*** CUTSNS_PIN = 1 [17:32:20]*** CUTSNS_PIN = 0 [17:32:20]*** Brake cut motor [17:32:21]Read from MH i2c: 01 [17:32:21]MH_I2C_Read... [17:32:21]*** Stop cut motor [17:32:21]*** Cut end [17:32:21]Read from MH i2c: 01 07 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: 01 07 00 3E A6 00 00 00 00 00 FF 0F F9 [17:32:21]process_action close_receipt done [17:32:21]requested_data is exist [17:32:21]produce_requested_data [17:32:21]requested_item fm.sn is exist - process it [17:32:21]wFMCommunicate request_size=4 [17:32:21]MH_SAM_APDU [17:32:21]CAPDU: 80 11 00 00 [17:32:21]Write to MH i2c: E2 08 00 3F A6 80 11 00 00 00 00 00 00 5F [17:32:21]Write i2c OK [17:32:21]MH_I2C_Read... [17:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:21]Read from MH i2c: E2 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 17 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 17 00 3F A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AC [17:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:32:21]wFMCommunicate OK [17:32:21]requested_item fd.num is exist - process it [17:32:21]SAM_PROTO_GetFieldsCounters [17:32:21]wFMCommunicate request_size=4 [17:32:21]MH_SAM_APDU [17:32:21]CAPDU: 80 13 00 00 [17:32:21]Write to MH i2c: E2 08 00 40 A6 80 13 00 00 00 00 00 00 62 [17:32:21]Write i2c OK [17:32:21]MH_I2C_Read... [17:32:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:21]Read from MH i2c: E2 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 62 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 62 00 40 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D8 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [17:32: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D8 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:21]wFMCommunicate OK [17:32:21]SAM_PROTO_GetFieldsCounters done [17:32:21]requested_item shift.num is exist - process it [17:32:21]requested_item shift.opened is exist - process it [17:32:21]req_shift_opened [17:32:21]FM_GetShiftState [17:32:21]SAM_PROTO_GetShiftState [17:32:21]wFMCommunicate request_size=4 [17:32:21]MH_SAM_APDU [17:32:21]CAPDU: 80 13 01 00 [17:32:21]Write to MH i2c: E2 08 00 41 A6 80 13 01 00 00 00 00 00 64 [17:32:21]Write i2c OK [17:32:21]MH_I2C_Read... [17:32:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:21]Read from MH i2c: E2 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 0E 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 0E 00 41 A6 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 BA [17:32:21]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:32:21]wFMCommunicate OK [17:32:21]SAM_PROTO_GetShiftState done [17:32:21]FM_GetShiftState done [17:32:21]req_shift_opened done [17:32:21]requested_item shift.open_date is exist - process it [17:32:21]req_shift_open_date [17:32:21]req_shift_open_date done [17:32:21]produce_requested_data done [17:32:21]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49368,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [17:32:21]process_action_free close_receipt [17:32:21]json_value_free [17:32:21]json_value_free done [17:32:21]process_json_proto returns [17:32:21]Send response to host [17:32:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49368,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [17:32:21]free response buf [17:32:21]execute_script done [17:32:21]execute_script returns [17:32:21]free content buf [17:32:21]Sock 9.Close socket [17:32:21]Sock 9.Thread stoped [17:33:53]accept exits with 7 [17:33:53]New connection [17:33:53]New thread 3066813796 created [17:33:53]Thread 3066670436 joined [17:33:53]Waiting for new connection... [17:33:53] Sock 7.Parse request [17:33:53]Sock 7.Check first char [17:33:53]Sock 7.First char is OK [17:33:53]request: POST /json_proto HTTP/1.0 [17:33:53]Method: POST [17:33:53]URL: /json_proto [17:33:53]Method is POST - this is cgi request [17:33:53]url: /json_proto [17:33:53]query_string will be loaded in cgi processing [17:33:53]execute_cgi json_proto POST (null) [17:33:53]execute_cgi path=json_proto method=POST [17:33:53]POST find Content-Length [17:33:53]Host: 172.17.56.67:8080 [17:33:53]Content-Length: 677 [17:33:53]Content-Type: application/json [17:33:53] [17:33:53]POST finish read [17:33:53]Found Content-Length = 677 [17:33:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:53]execute_script... [17:33: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)216473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 9.960, "sum" : 600.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:53]POST & json_proto [17:33:53]process_json_proto [17:33:53]json parsed OK: [17:33:53]protocol is kg_v1.0 [17:33:53]action value=close_receipt [17:33:53]process_action close_receipt [17:33:53]cmd_close_receipt [17:33:53]MH_GetDate [17:33:53]Write to MH i2c: F0 00 00 42 A6 D7 [17:33:53]Write i2c OK [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: F0 [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: F0 09 00 [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: F0 09 00 42 A6 00 9A 84 BA 65 26 5D 9E 65 A3 [17:33:53]GetLastDocTimeStamp 1706722362 [17:33:53]current date 1706722458 [17:33:53]FM_GetShiftState [17:33:53]SAM_PROTO_GetShiftState [17:33:53]wFMCommunicate request_size=4 [17:33:53]MH_SAM_APDU [17:33:53]CAPDU: 80 13 01 00 [17:33:53]Write to MH i2c: E2 08 00 43 A6 80 13 01 00 00 00 00 00 66 [17:33:53]Write i2c OK [17:33:53]MH_I2C_Read... [17:33:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:53]Read from MH i2c: E2 [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: E2 0E 00 [17:33:53]MH_I2C_Read... [17:33:53]Read from MH i2c: E2 0E 00 43 A6 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 BC [17:33:53]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:33:53]wFMCommunicate OK [17:33:53]SAM_PROTO_GetShiftState done [17:33:53]FM_GetShiftState done [17:33:53]opened in 1706659486 [17:33:53]opened+sec_in_day 1706745886 [17:33:53]quantity*price = 60058 [17:33:53]sum+1 = 60060 [17:33:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 94 31.01.2024 17:34 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49369 ФПД: 65194974189973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T173418&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49369&fm=65194974189973&tin=02508201610067®Number=0000000000092723&sum=60000 [17:33:54]StoreToDocumentArchive [17:33:54]shift 247 fd 49369 [17:33:54]save to /storage/0247/doc_00049369 [17:33:54]save last doc name /storage/0247/doc_00049369 to /storage/kkm_last_doc_name [17:33:54]save OK [17:33:54]Clear old archive folders... [17:33:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:54]tlvbuf is 01318370 [17:33:54]SAM_PROTO_ClearQueue [17:33:54]wFMCommunicate request_size=4 [17:33:54]MH_SAM_APDU [17:33:54]CAPDU: 80 09 00 00 [17:33:54]Write to MH i2c: E2 08 00 50 A6 80 09 00 00 00 00 00 00 68 [17:33:54]Write i2c OK [17:33:54]MH_I2C_Read... [17:33:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:54]Read from MH i2c: E2 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 03 00 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 03 00 50 A6 00 90 00 6A [17:33:54]RAPDU: 90 00 [17:33:54]wFMCommunicate OK [17:33:54]SAM_PROTO_ClearQueue done [17:33:54]KKMCreateOFDPacket [17:33:54]OFDProtocolAddRootSTLVToBuf [17:33:54]FM_MakeSignedData [17:33:54]FM_MakeSignedData [17:33:54]SAM_PROTO_SignData [17:33:54]wFMCommunicate request_size=4 [17:33:54]MH_SAM_APDU [17:33:54]CAPDU: 80 0D 01 02 [17:33:54]Write to MH i2c: E2 08 00 51 A6 80 0D 01 02 00 00 00 00 70 [17:33:54]Write i2c OK [17:33:54]MH_I2C_Read... [17:33:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:54]Read from MH i2c: E2 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 03 00 [17:33:54]MH_I2C_Read... [17:33:54]Read from MH i2c: E2 03 00 51 A6 00 90 00 6B [17:33:54]RAPDU: 90 00 [17:33:54]wFMCommunicate OK [17:33:54]wFMCommunicate request_size=255 [17:33:54]MH_SAM_APDU [17:33:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 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 5E 00 00 00 F4 03 04 00 9A 84 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D9 C0 00 00 35 04 06 00 3B [17:33:54]Write to MH i2c: E2 02 01 52 A6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 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 5E 00 00 00 F4 03 04 00 9A 84 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D9 C0 00 00 35 04 06 00 3B 00 00 BB [17:33:54]Write i2c OK [17:33:54]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 52 A6 00 90 00 6C [17:33:55]RAPDU: 90 00 [17:33:55]wFMCommunicate OK [17:33:55]wFMCommunicate request_size=10 [17:33:55]MH_SAM_APDU [17:33:55]CAPDU: 80 0D 02 02 05 4B 63 47 19 95 [17:33:55]Write to MH i2c: E2 0D 00 53 A6 80 0D 02 02 05 00 4B 63 47 19 95 00 00 20 [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 03 00 53 A6 00 90 00 6D [17:33:55]RAPDU: 90 00 [17:33:55]wFMCommunicate OK [17:33:55]wFMCommunicate request_size=4 [17:33:55]MH_SAM_APDU [17:33:55]CAPDU: 80 0D 03 02 [17:33:55]Write to MH i2c: E2 08 00 54 A6 80 0D 03 02 00 00 00 00 75 [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 0B 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 0B 00 54 A6 00 00 2F C5 0F 71 86 10 94 90 00 14 [17:33:55]RAPDU: 00 2F C5 0F 71 86 10 94 90 00 [17:33:55]wFMCommunicate OK [17:33:55]SAM_PROTO_SignData done [17:33:55]FM_MakeSignedData done [17:33:55]CreateOFDProtocolMessage [17:33:55]wFMCommunicate request_size=4 [17:33:55]MH_SAM_APDU [17:33:55]CAPDU: 80 11 00 00 [17:33:55]Write to MH i2c: E2 08 00 55 A6 80 11 00 00 00 00 00 00 75 [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:55]Read from MH i2c: E2 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 17 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: E2 17 00 55 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C2 [17:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:33:55]wFMCommunicate OK [17:33:55]CreateOFDProtocolMessage done [17:33:55]OFDSenderStorePacket 49369 [17:33:55]StoreOFDPacket docnum=49369 [17:33:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 EB AF 07 01 CB 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 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 5E 00 00 00 F4 03 04 00 9A 84 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D9 C0 00 00 35 04 06 00 3B 4B 63 47 19 95 00 2F C5 0F 71 86 10 94 [17:33:55]CheckFolder [17:33:55]dirname=/storage/ofd_packets [17:33:55]CheckFolder done [17:33:55]ProducePacketName [17:33:55]name=ofd_packets/00049369 [17:33:55]NVStorageSaveData ofd_packets/00049369 [17:33:55]File name is /storage/ofd_packets/00049369 [17:33:55]Write 301 bytes [17:33:55]NVStorageSaveData done [17:33:55]OFDSenderStorePacket done [17:33:55]KKMCreateOFDPacket done [17:33:55]NVStorageSaveData kkm_last_timestamp [17:33:55]File name is /storage/kkm_last_timestamp [17:33:55]Write 4 bytes [17:33:55]NVStorageSaveData done [17:33:55]ExternCall_PrintAddStr [17:33:55]wPrintStart [17:33:55]Write to MH i2c: 01 00 00 56 A6 FC [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: 01 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: 01 07 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: 01 07 00 56 A6 00 00 00 00 00 FF 0F 11 [17:33:55]RasterBufferAndPrint [17:33:55]line Счет N : (1)216473 [17:33:55]line ИНН: 02508201610067 [17:33:55]line Контрольно-Кассовый Чек [17:33:55]line ПРОДАЖА [17:33:55]line ТРК (МРК, ГНК) : 12 [17:33:55]line Товар: 2710124130 [17:33:55]line Аи-92-К-5 [17:33:55]line 9.960 * 60.30 [17:33:55]line = 600.59 [17:33:55]line НДС 12% НСП 1% [17:33:55]line > о реализуемом товаре [17:33:55]line ОКРУГЛЕНИЕ: -0.59 [17:33:55]line ИТОГО: 600.00 [17:33:55]line Внесено: 600.00 [17:33:55]line СДАЧА: 0.00 [17:33:55]line НСП 1% : 5.31 [17:33:55]line НДС 12% : 63.78 [17:33:55]line Наличными: 600.00 [17:33:55]line Безнал.: 0.00 [17:33:55]line Место: АЗС № 102 "Партнер Нефть" [17:33:55]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:33:55]line СНО: Общий режим [17:33:55]line Чек 94 31.01.2024 17:34 [17:33:55]line Смена: 247 ФФД: 1.0 [17:33:55]line ЗНМ: 0300000040 [17:33:55]line РНМ: 0000000000092723 [17:33:55]line Версия ККМ: 001 [17:33:55]line ФМ: 0000000000875060 [17:33:55]line ФД: 49369 [17:33:55]line ФПД: 65194974189973 [17:33:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T173418&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49369&fm=65194974189973&tin=02508201610067®Number=0000000000092723&sum=60000 [17:33:55]written 0, free lines is 4095 [17:33:55]Write to MH i2c: 01 00 00 81 A6 27 [17:33:55]Write i2c OK [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: 01 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: 01 07 00 [17:33:55]MH_I2C_Read... [17:33:55]Read from MH i2c: 01 07 00 81 A6 00 00 00 00 00 F3 0C 2D [17:33:55]RasterBufferAndPrint [17:33:55]line [17:33:55]line [17:33:55]line [17:33:55]line [17:33:55]line [17:33:56]written 0, free lines is 3318 [17:33:56]MH_Cut [17:33:56]Write to MH i2c: D1 01 00 88 A6 01 00 [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: D1 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: D1 01 00 [17:33:56]MH_I2C_Read... [17:33:56]Read from MH i2c: D1 01 00 88 A6 00 FF [17:33:56]Write to MH i2c: 01 00 00 89 A6 2F [17:33:56]Write i2c OK [17:33:56]MH_I2C_Read... [17:33:56]*** Cut start [17:33:56]*** Partial cut [17:33:56]*** CUTSNS_PIN = 1 [17:33:56]*** CUTSNS_PIN = 0 [17:33:56]*** Brake cut motor [17:33:57]Read from MH i2c: 01 [17:33:57]MH_I2C_Read... [17:33:57]*** Stop cut motor [17:33:57]*** Cut end [17:33:57]Read from MH i2c: 01 07 00 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: 01 07 00 89 A6 00 00 00 00 00 FF 0F 44 [17:33:57]process_action close_receipt done [17:33:57]requested_data is exist [17:33:57]produce_requested_data [17:33:57]requested_item fm.sn is exist - process it [17:33:57]wFMCommunicate request_size=4 [17:33:57]MH_SAM_APDU [17:33:57]CAPDU: 80 11 00 00 [17:33:57]Write to MH i2c: E2 08 00 8A A6 80 11 00 00 00 00 00 00 AA [17:33:57]Write i2c OK [17:33:57]MH_I2C_Read... [17:33:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:57]Read from MH i2c: E2 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: E2 17 00 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: E2 17 00 8A A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F7 [17:33:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:33:57]wFMCommunicate OK [17:33:57]requested_item fd.num is exist - process it [17:33:57]SAM_PROTO_GetFieldsCounters [17:33:57]wFMCommunicate request_size=4 [17:33:57]MH_SAM_APDU [17:33:57]CAPDU: 80 13 00 00 [17:33:57]Write to MH i2c: E2 08 00 8B A6 80 13 00 00 00 00 00 00 AD [17:33:57]Write i2c OK [17:33:57]MH_I2C_Read... [17:33:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:57]Read from MH i2c: E2 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: E2 62 00 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: E2 62 00 8B A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D9 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [17:33: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 D9 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:57]wFMCommunicate OK [17:33:57]SAM_PROTO_GetFieldsCounters done [17:33:57]requested_item shift.num is exist - process it [17:33:57]requested_item shift.opened is exist - process it [17:33:57]req_shift_opened [17:33:57]FM_GetShiftState [17:33:57]SAM_PROTO_GetShiftState [17:33:57]wFMCommunicate request_size=4 [17:33:57]MH_SAM_APDU [17:33:57]CAPDU: 80 13 01 00 [17:33:57]Write to MH i2c: E2 08 00 8C A6 80 13 01 00 00 00 00 00 AF [17:33:57]Write i2c OK [17:33:57]MH_I2C_Read... [17:33:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:57]Read from MH i2c: E2 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: E2 0E 00 [17:33:57]MH_I2C_Read... [17:33:57]Read from MH i2c: E2 0E 00 8C A6 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 05 [17:33:57]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:33:57]wFMCommunicate OK [17:33:57]SAM_PROTO_GetShiftState done [17:33:57]FM_GetShiftState done [17:33:57]req_shift_opened done [17:33:57]requested_item shift.open_date is exist - process it [17:33:57]req_shift_open_date [17:33:57]req_shift_open_date done [17:33:57]produce_requested_data done [17:33:57]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49369,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [17:33:57]process_action_free close_receipt [17:33:57]json_value_free [17:33:57]json_value_free done [17:33:57]process_json_proto returns [17:33:57]Send response to host [17:33:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49369,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [17:33:57]free response buf [17:33:57]execute_script done [17:33:57]execute_script returns [17:33:57]free content buf [17:33:57]Sock 7.Close socket [17:33:57]Sock 7.Thread stoped [17:34:31]ConnectInit Can't connect to host [17:34:31]CommunicateWithHost connect error [17:34:31]CommunicateWithHost err = -1 [17:34:31]OFD Sender: Server communicate error [17:34:31]OFD Sender: Processing packet 49368 [packets to send 13, broken 11] [17:34:31]ProducePacketName [17:34:31]name=ofd_packets/00049368 [17:34:31]OFD Sender: To server: pG, [17:34:31]CommunicateWithHost lk.salyk.kg:30040 [17:34:31]ConnectInit lk.salyk.kg [17:34:31]Connected sock=7 [17:34:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 77 74 07 01 8C 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 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 5D 00 00 00 F4 03 04 00 3A 84 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D8 C0 00 00 35 04 06 00 59 4B 15 0C E4 1C ED D8 30 52 AB 56 F4 84 [17:34:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 5F 95 47 00 C3 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 35 30 36 30 10 04 04 00 D8 C0 00 00 F4 03 04 00 B0 30 BA 65 B6 04 01 00 00 0D 43 9D 4A 29 A4 F0 AC [17:34:31]CommunicateWithHost err = 0 [17:34:31]CheckOFDResponse [17:34:31]1017 (14) - 77093643461234 [17:34:31]1041 (16) - 0000000000875060 [17:34:31]1040 (4) - 49368 [17:34:31]1012 (4) - 31.01.2024 11:36 [17:34:31]1206 (1) - 0 [17:34:31]OFD Sender: Remove packet 49368 [17:34:31]ProducePacketName [17:34:31]name=ofd_packets/00049368 [17:34:31]NVStorageDeleteData [17:34:32]OFD Sender: Processing packet 49369 [packets to send 12, broken 11] [17:34:32]ProducePacketName [17:34:32]name=ofd_packets/00049369 [17:34:32]OFD Sender: To server: pG, [17:34:32]CommunicateWithHost lk.salyk.kg:30040 [17:34:32]ConnectInit lk.salyk.kg [17:34:32]Connected sock=7 [17:34:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 EB AF 07 01 CB 95 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 9B 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 EA 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 5E 00 00 00 F4 03 04 00 9A 84 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D9 C0 00 00 35 04 06 00 3B 4B 63 47 19 95 00 2F C5 0F 71 86 10 94 [17:34:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 DD 95 47 00 0E 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 35 30 36 30 10 04 04 00 D9 C0 00 00 F4 03 04 00 B0 30 BA 65 B6 04 01 00 00 AE F2 89 B8 40 77 2A 83 [17:34:32]CommunicateWithHost err = 0 [17:34:32]CheckOFDResponse [17:34:32]1017 (14) - 77093643461234 [17:34:32]1041 (16) - 0000000000875060 [17:34:32]1040 (4) - 49369 [17:34:32]1012 (4) - 31.01.2024 11:36 [17:34:32]1206 (1) - 0 [17:34:32]OFD Sender: Remove packet 49369 [17:34:32]ProducePacketName [17:34:32]name=ofd_packets/00049369 [17:34:32]NVStorageDeleteData [17:34:32]OFD Sender: No OFD packet to send [17:34:37]OFD Sender: No OFD packet to send [17:34:42]OFD Sender: No OFD packet to send [17:34:47]OFD Sender: No OFD packet to send [17:34:52]OFD Sender: No OFD packet to send [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:31]accept exits with 9 [17:35:31]New connection [17:35:31]New thread 3066670436 created [17:35:31]Thread 3066813796 joined [17:35:31]Waiting for new connection... [17:35:31] Sock 9.Parse request [17:35:31]Sock 9.Check first char [17:35:31]Sock 9.First char is OK [17:35:31]request: POST /json_proto HTTP/1.0 [17:35:31]Method: POST [17:35:31]URL: /json_proto [17:35:31]Method is POST - this is cgi request [17:35:31]url: /json_proto [17:35:31]query_string will be loaded in cgi processing [17:35:31]execute_cgi json_proto POST (null) [17:35:31]execute_cgi path=json_proto method=POST [17:35:31]POST find Content-Length [17:35:31]Host: 172.17.56.67:8080 [17:35:31]Content-Length: 677 [17:35:31]Content-Type: application/json [17:35:31] [17:35:31]POST finish read [17:35:31]Found Content-Length = 677 [17:35:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "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:35:31]execute_script... [17:35: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)216474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "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:35:31]POST & json_proto [17:35:31]process_json_proto [17:35:31]json parsed OK: [17:35:31]protocol is kg_v1.0 [17:35:31]action value=close_receipt [17:35:31]process_action close_receipt [17:35:31]cmd_close_receipt [17:35:31]MH_GetDate [17:35:31]Write to MH i2c: F0 00 00 8D A6 22 [17:35:31]Write i2c OK [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: F0 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: F0 09 00 [17:35:31]MH_I2C_Read... [17:35:31]Read from MH i2c: F0 09 00 8D A6 00 FC 84 BA 65 26 5D 9E 65 50 [17:35:31]GetLastDocTimeStamp 1706722458 [17:35:31]current date 1706722556 [17:35:31]FM_GetShiftState [17:35:31]SAM_PROTO_GetShiftState [17:35:31]wFMCommunicate request_size=4 [17:35:31]MH_SAM_APDU [17:35:31]CAPDU: 80 13 01 00 [17:35:31]Write to MH i2c: E2 08 00 8E A6 80 13 01 00 00 00 00 00 B1 [17:35:31]Write i2c OK [17:35:31]MH_I2C_Read... [17:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:32]Read from MH i2c: E2 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: E2 0E 00 [17:35:32]MH_I2C_Read... [17:35:32]Read from MH i2c: E2 0E 00 8E A6 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 07 [17:35:32]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:35:32]wFMCommunicate OK [17:35:32]SAM_PROTO_GetShiftState done [17:35:32]FM_GetShiftState done [17:35:32]opened in 1706659486 [17:35:32]opened+sec_in_day 1706745886 [17:35:32]quantity*price = 20019 [17:35:32]sum+1 = 20021 [17:35:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 95 31.01.2024 17:35 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49370 ФПД: 20207193768952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T173556&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49370&fm=20207193768952&tin=02508201610067®Number=0000000000092723&sum=20000 [17:35:33]StoreToDocumentArchive [17:35:33]shift 247 fd 49370 [17:35:33]save to /storage/0247/doc_00049370 [17:35:33]save last doc name /storage/0247/doc_00049370 to /storage/kkm_last_doc_name [17:35:33]save OK [17:35:33]Clear old archive folders... [17:35:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:35:33]tlvbuf is 013B85E0 [17:35:33]SAM_PROTO_ClearQueue [17:35:33]wFMCommunicate request_size=4 [17:35:33]MH_SAM_APDU [17:35:33]CAPDU: 80 09 00 00 [17:35:33]Write to MH i2c: E2 08 00 9B A6 80 09 00 00 00 00 00 00 B3 [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 9B A6 00 90 00 B5 [17:35:33]RAPDU: 90 00 [17:35:33]wFMCommunicate OK [17:35:33]SAM_PROTO_ClearQueue done [17:35:33]KKMCreateOFDPacket [17:35:33]OFDProtocolAddRootSTLVToBuf [17:35:33]FM_MakeSignedData [17:35:33]FM_MakeSignedData [17:35:33]SAM_PROTO_SignData [17:35:33]wFMCommunicate request_size=4 [17:35:33]MH_SAM_APDU [17:35:33]CAPDU: 80 0D 01 02 [17:35:33]Write to MH i2c: E2 08 00 9C A6 80 0D 01 02 00 00 00 00 BB [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 9C A6 00 90 00 B6 [17:35:33]RAPDU: 90 00 [17:35:33]wFMCommunicate OK [17:35:33]wFMCommunicate request_size=255 [17:35:33]MH_SAM_APDU [17:35:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 5F 00 00 00 F4 03 04 00 FC 84 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DA C0 00 00 35 04 06 00 12 [17:35:33]Write to MH i2c: E2 02 01 9D A6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 5F 00 00 00 F4 03 04 00 FC 84 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DA C0 00 00 35 04 06 00 12 00 00 6C [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 9D A6 00 90 00 B7 [17:35:33]RAPDU: 90 00 [17:35:33]wFMCommunicate OK [17:35:33]wFMCommunicate request_size=10 [17:35:33]MH_SAM_APDU [17:35:33]CAPDU: 80 0D 02 02 05 60 DA 9B 43 F8 [17:35:33]Write to MH i2c: E2 0D 00 9E A6 80 0D 02 02 05 00 60 DA 9B 43 F8 00 00 D8 [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 03 00 9E A6 00 90 00 B8 [17:35:33]RAPDU: 90 00 [17:35:33]wFMCommunicate OK [17:35:33]wFMCommunicate request_size=4 [17:35:33]MH_SAM_APDU [17:35:33]CAPDU: 80 0D 03 02 [17:35:33]Write to MH i2c: E2 08 00 9F A6 80 0D 03 02 00 00 00 00 C0 [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 0B 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 0B 00 9F A6 00 D8 42 6E C8 9B 46 10 12 90 00 14 [17:35:33]RAPDU: D8 42 6E C8 9B 46 10 12 90 00 [17:35:33]wFMCommunicate OK [17:35:33]SAM_PROTO_SignData done [17:35:33]FM_MakeSignedData done [17:35:33]CreateOFDProtocolMessage [17:35:33]wFMCommunicate request_size=4 [17:35:33]MH_SAM_APDU [17:35:33]CAPDU: 80 11 00 00 [17:35:33]Write to MH i2c: E2 08 00 A0 A6 80 11 00 00 00 00 00 00 C0 [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:33]Read from MH i2c: E2 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 17 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: E2 17 00 A0 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0D [17:35:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:35:33]wFMCommunicate OK [17:35:33]CreateOFDProtocolMessage done [17:35:33]OFDSenderStorePacket 49370 [17:35:33]StoreOFDPacket docnum=49370 [17:35:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 78 60 07 01 75 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 5F 00 00 00 F4 03 04 00 FC 84 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DA C0 00 00 35 04 06 00 12 60 DA 9B 43 F8 D8 42 6E C8 9B 46 10 12 [17:35:33]CheckFolder [17:35:33]dirname=/storage/ofd_packets [17:35:33]CheckFolder done [17:35:33]ProducePacketName [17:35:33]name=ofd_packets/00049370 [17:35:33]NVStorageSaveData ofd_packets/00049370 [17:35:33]File name is /storage/ofd_packets/00049370 [17:35:33]Write 301 bytes [17:35:33]NVStorageSaveData done [17:35:33]OFDSenderStorePacket done [17:35:33]KKMCreateOFDPacket done [17:35:33]NVStorageSaveData kkm_last_timestamp [17:35:33]File name is /storage/kkm_last_timestamp [17:35:33]Write 4 bytes [17:35:33]NVStorageSaveData done [17:35:33]ExternCall_PrintAddStr [17:35:33]wPrintStart [17:35:33]Write to MH i2c: 01 00 00 A1 A6 47 [17:35:33]Write i2c OK [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: 01 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: 01 07 00 [17:35:33]MH_I2C_Read... [17:35:33]Read from MH i2c: 01 07 00 A1 A6 00 00 00 00 00 FF 0F 5C [17:35:33]RasterBufferAndPrint [17:35:33]line Счет N : (1)216474 [17:35:33]line ИНН: 02508201610067 [17:35:33]line Контрольно-Кассовый Чек [17:35:33]line ПРОДАЖА [17:35:33]line ТРК (МРК, ГНК) : 12 [17:35:33]line Товар: 2710124130 [17:35:33]line Аи-92-К-5 [17:35:33]line 3.320 * 60.30 [17:35:33]line = 200.20 [17:35:33]line НДС 12% НСП 1% [17:35:33]line > о реализуемом товаре [17:35:33]line ОКРУГЛЕНИЕ: -0.20 [17:35:33]line ИТОГО: 200.00 [17:35:33]line Внесено: 200.00 [17:35:33]line СДАЧА: 0.00 [17:35:33]line НСП 1% : 1.77 [17:35:33]line НДС 12% : 21.26 [17:35:33]line Наличными: 200.00 [17:35:33]line Безнал.: 0.00 [17:35:33]line Место: АЗС № 102 "Партнер Нефть" [17:35:33]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:35:33]line СНО: Общий режим [17:35:33]line Чек 95 31.01.2024 17:35 [17:35:33]line Смена: 247 ФФД: 1.0 [17:35:33]line ЗНМ: 0300000040 [17:35:33]line РНМ: 0000000000092723 [17:35:33]line Версия ККМ: 001 [17:35:33]line ФМ: 0000000000875060 [17:35:33]line ФД: 49370 [17:35:33]line ФПД: 20207193768952 [17:35:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T173556&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49370&fm=20207193768952&tin=02508201610067®Number=0000000000092723&sum=20000 [17:35:34]OFD Sender: Processing packet 49370 [packets to send 12, broken 11] [17:35:34]ProducePacketName [17:35:34]name=ofd_packets/00049370 [17:35:34]OFD Sender: To server: pG, [17:35:34]CommunicateWithHost lk.salyk.kg:30040 [17:35:34]ConnectInit lk.salyk.kg [17:35:34]written 0, free lines is 4095 [17:35:34]Connected sock=11 [17:35:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 78 60 07 01 75 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 5F 00 00 00 F4 03 04 00 FC 84 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DA C0 00 00 35 04 06 00 12 60 DA 9B 43 F8 D8 42 6E C8 9B 46 10 12 [17:35:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 E5 6B 47 00 68 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 35 30 36 30 10 04 04 00 DA C0 00 00 F4 03 04 00 EE 30 BA 65 B6 04 01 00 00 96 CE D4 12 30 EB 98 52 [17:35:34]CommunicateWithHost err = 0 [17:35:34]CheckOFDResponse [17:35:34]1017 (14) - 77093643461234 [17:35:34]1041 (16) - 0000000000875060 [17:35:34]1040 (4) - 49370 [17:35:34]1012 (4) - 31.01.2024 11:37 [17:35:34]1206 (1) - 0 [17:35:34]OFD Sender: Remove packet 49370 [17:35:34]ProducePacketName [17:35:34]name=ofd_packets/00049370 [17:35:34]NVStorageDeleteData [17:35:34]Write to MH i2c: 01 00 00 CC A6 72 [17:35:34]Write i2c OK [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: 01 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: 01 07 00 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: 01 07 00 CC A6 00 00 00 00 00 F3 0C 78 [17:35:34]RasterBufferAndPrint [17:35:34]line [17:35:34]line [17:35:34]line [17:35:34]line [17:35:34]line [17:35:34]written 0, free lines is 3321 [17:35:34]MH_Cut [17:35:34]Write to MH i2c: D1 01 00 D3 A6 01 4B [17:35:34]Write i2c OK [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: D1 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: D1 01 00 [17:35:34]MH_I2C_Read... [17:35:34]Read from MH i2c: D1 01 00 D3 A6 00 4A [17:35:34]Write to MH i2c: 01 00 00 D4 A6 7A [17:35:34]Write i2c OK [17:35:34]MH_I2C_Read... [17:35:34]OFD Sender: No OFD packet to send [17:35:35]*** Cut start [17:35:35]*** Partial cut [17:35:35]*** CUTSNS_PIN = 1 [17:35:35]*** CUTSNS_PIN = 0 [17:35:35]*** Brake cut motor [17:35:35]Read from MH i2c: 01 [17:35:35]MH_I2C_Read... [17:35:35]*** Stop cut motor [17:35:35]*** Cut end [17:35:35]Read from MH i2c: 01 07 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: 01 07 00 D4 A6 00 00 00 00 00 FF 0F 8F [17:35:35]process_action close_receipt done [17:35:35]requested_data is exist [17:35:35]produce_requested_data [17:35:35]requested_item fm.sn is exist - process it [17:35:35]wFMCommunicate request_size=4 [17:35:35]MH_SAM_APDU [17:35:35]CAPDU: 80 11 00 00 [17:35:35]Write to MH i2c: E2 08 00 D5 A6 80 11 00 00 00 00 00 00 F5 [17:35:35]Write i2c OK [17:35:35]MH_I2C_Read... [17:35:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:35]Read from MH i2c: E2 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 17 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 17 00 D5 A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 42 [17:35:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:35:35]wFMCommunicate OK [17:35:35]requested_item fd.num is exist - process it [17:35:35]SAM_PROTO_GetFieldsCounters [17:35:35]wFMCommunicate request_size=4 [17:35:35]MH_SAM_APDU [17:35:35]CAPDU: 80 13 00 00 [17:35:35]Write to MH i2c: E2 08 00 D6 A6 80 13 00 00 00 00 00 00 F8 [17:35:35]Write i2c OK [17:35:35]MH_I2C_Read... [17:35:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:35]Read from MH i2c: E2 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 62 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 62 00 D6 A6 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DA C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [17:35: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DA C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:35]wFMCommunicate OK [17:35:35]SAM_PROTO_GetFieldsCounters done [17:35:35]requested_item shift.num is exist - process it [17:35:35]requested_item shift.opened is exist - process it [17:35:35]req_shift_opened [17:35:35]FM_GetShiftState [17:35:35]SAM_PROTO_GetShiftState [17:35:35]wFMCommunicate request_size=4 [17:35:35]MH_SAM_APDU [17:35:35]CAPDU: 80 13 01 00 [17:35:35]Write to MH i2c: E2 08 00 D7 A6 80 13 01 00 00 00 00 00 FA [17:35:35]Write i2c OK [17:35:35]MH_I2C_Read... [17:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:35]Read from MH i2c: E2 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 0E 00 [17:35:35]MH_I2C_Read... [17:35:35]Read from MH i2c: E2 0E 00 D7 A6 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 50 [17:35:35]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:35:35]wFMCommunicate OK [17:35:35]SAM_PROTO_GetShiftState done [17:35:35]FM_GetShiftState done [17:35:35]req_shift_opened done [17:35:35]requested_item shift.open_date is exist - process it [17:35:35]req_shift_open_date [17:35:35]req_shift_open_date done [17:35:35]produce_requested_data done [17:35:35]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49370,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [17:35:35]process_action_free close_receipt [17:35:35]json_value_free [17:35:35]json_value_free done [17:35:35]process_json_proto returns [17:35:35]Send response to host [17:35:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49370,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [17:35:35]free response buf [17:35:35]execute_script done [17:35:35]execute_script returns [17:35:35]free content buf [17:35:35]Sock 9.Close socket [17:35:35]Sock 9.Thread stoped [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]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:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]OFD Sender: No OFD packet to send [17:45:55]OFD Sender: No OFD packet to send [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:50]OFD Sender: No OFD packet to send [17:51:55]OFD Sender: No OFD packet to send [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:28]accept exits with 7 [17:52:28]New connection [17:52:28]New thread 3066813796 created [17:52:28]Thread 3066670436 joined [17:52:28]Waiting for new connection... [17:52:28] Sock 7.Parse request [17:52:28]Sock 7.Check first char [17:52:28]Sock 7.First char is OK [17:52:28]request: POST /json_proto HTTP/1.0 [17:52:28]Method: POST [17:52:28]URL: /json_proto [17:52:28]Method is POST - this is cgi request [17:52:28]url: /json_proto [17:52:28]query_string will be loaded in cgi processing [17:52:28]execute_cgi json_proto POST (null) [17:52:28]execute_cgi path=json_proto method=POST [17:52:28]POST find Content-Length [17:52:28]Host: 172.17.56.67:8080 [17:52:28]Content-Length: 677 [17:52:28]Content-Type: application/json [17:52:28] [17:52:28]POST finish read [17:52:28]Found Content-Length = 677 [17:52:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:28]execute_script... [17:52: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)216475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:52:28]POST & json_proto [17:52:28]process_json_proto [17:52:28]json parsed OK: [17:52:28]protocol is kg_v1.0 [17:52:28]action value=close_receipt [17:52:28]process_action close_receipt [17:52:28]cmd_close_receipt [17:52:28]MH_GetDate [17:52:28]Write to MH i2c: F0 00 00 D8 A6 6D [17:52:28]Write i2c OK [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: F0 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: F0 09 00 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: F0 09 00 D8 A6 00 F5 88 BA 65 26 5D 9E 65 98 [17:52:28]GetLastDocTimeStamp 1706722556 [17:52:28]current date 1706723573 [17:52:28]FM_GetShiftState [17:52:28]SAM_PROTO_GetShiftState [17:52:28]wFMCommunicate request_size=4 [17:52:28]MH_SAM_APDU [17:52:28]CAPDU: 80 13 01 00 [17:52:28]Write to MH i2c: E2 08 00 D9 A6 80 13 01 00 00 00 00 00 FC [17:52:28]Write i2c OK [17:52:28]MH_I2C_Read... [17:52:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:28]Read from MH i2c: E2 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: E2 0E 00 [17:52:28]MH_I2C_Read... [17:52:28]Read from MH i2c: E2 0E 00 D9 A6 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 52 [17:52:28]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:52:28]wFMCommunicate OK [17:52:28]SAM_PROTO_GetShiftState done [17:52:28]FM_GetShiftState done [17:52:28]opened in 1706659486 [17:52:28]opened+sec_in_day 1706745886 [17:52:28]quantity*price = 50049 [17:52:28]sum+1 = 50050 [17:52:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 96 31.01.2024 17:52 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49371 ФПД: 245431542598004 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T175253&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49371&fm=245431542598004&tin=02508201610067®Number=0000000000092723&sum=50000 [17:52:29]StoreToDocumentArchive [17:52:29]shift 247 fd 49371 [17:52:29]save to /storage/0247/doc_00049371 [17:52:29]save last doc name /storage/0247/doc_00049371 to /storage/kkm_last_doc_name [17:52:29]save OK [17:52:29]Clear old archive folders... [17:52:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:52:29]tlvbuf is 014CF850 [17:52:29]SAM_PROTO_ClearQueue [17:52:29]wFMCommunicate request_size=4 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 09 00 00 [17:52:29]Write to MH i2c: E2 08 00 E6 A6 80 09 00 00 00 00 00 00 FE [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 E6 A6 00 90 00 00 [17:52:29]RAPDU: 90 00 [17:52:29]wFMCommunicate OK [17:52:29]SAM_PROTO_ClearQueue done [17:52:29]KKMCreateOFDPacket [17:52:29]OFDProtocolAddRootSTLVToBuf [17:52:29]FM_MakeSignedData [17:52:29]FM_MakeSignedData [17:52:29]SAM_PROTO_SignData [17:52:29]wFMCommunicate request_size=4 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 0D 01 02 [17:52:29]Write to MH i2c: E2 08 00 E7 A6 80 0D 01 02 00 00 00 00 06 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:52:29]Read from MH i2c: E2 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 [17:52:29]MH_I2C_Read... [17:52:29]Read from MH i2c: E2 03 00 E7 A6 00 90 00 01 [17:52:29]RAPDU: 90 00 [17:52:29]wFMCommunicate OK [17:52:29]wFMCommunicate request_size=255 [17:52:29]MH_SAM_APDU [17:52:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 F5 88 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DB C0 00 00 35 04 06 00 DF [17:52:29]Write to MH i2c: E2 02 01 E8 A6 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 F5 88 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DB C0 00 00 35 04 06 00 DF 00 00 A3 [17:52:29]Write i2c OK [17:52:29]MH_I2C_Read... [17:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:30]Read from MH i2c: E2 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 03 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 03 00 E8 A6 00 90 00 02 [17:52:30]RAPDU: 90 00 [17:52:30]wFMCommunicate OK [17:52:30]wFMCommunicate request_size=10 [17:52:30]MH_SAM_APDU [17:52:30]CAPDU: 80 0D 02 02 05 37 FB E9 C9 74 [17:52:30]Write to MH i2c: E2 0D 00 E9 A6 80 0D 02 02 05 00 37 FB E9 C9 74 00 00 6B [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:52:30]Read from MH i2c: E2 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 03 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 03 00 E9 A6 00 90 00 03 [17:52:30]RAPDU: 90 00 [17:52:30]wFMCommunicate OK [17:52:30]wFMCommunicate request_size=4 [17:52:30]MH_SAM_APDU [17:52:30]CAPDU: 80 0D 03 02 [17:52:30]Write to MH i2c: E2 08 00 EA A6 80 0D 03 02 00 00 00 00 0B [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:52:30]Read from MH i2c: E2 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 0B 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 0B 00 EA A6 00 C1 E1 A9 8D 24 89 BA AF 90 00 FA [17:52:30]RAPDU: C1 E1 A9 8D 24 89 BA AF 90 00 [17:52:30]wFMCommunicate OK [17:52:30]SAM_PROTO_SignData done [17:52:30]FM_MakeSignedData done [17:52:30]CreateOFDProtocolMessage [17:52:30]wFMCommunicate request_size=4 [17:52:30]MH_SAM_APDU [17:52:30]CAPDU: 80 11 00 00 [17:52:30]Write to MH i2c: E2 08 00 EB A6 80 11 00 00 00 00 00 00 0B [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:30]Read from MH i2c: E2 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 17 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: E2 17 00 EB A6 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 58 [17:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:52:30]wFMCommunicate OK [17:52:30]CreateOFDProtocolMessage done [17:52:30]OFDSenderStorePacket 49371 [17:52:30]StoreOFDPacket docnum=49371 [17:52:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 34 83 07 01 51 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 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 F5 88 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DB C0 00 00 35 04 06 00 DF 37 FB E9 C9 74 C1 E1 A9 8D 24 89 BA AF [17:52:30]CheckFolder [17:52:30]dirname=/storage/ofd_packets [17:52:30]CheckFolder done [17:52:30]ProducePacketName [17:52:30]name=ofd_packets/00049371 [17:52:30]NVStorageSaveData ofd_packets/00049371 [17:52:30]File name is /storage/ofd_packets/00049371 [17:52:30]Write 301 bytes [17:52:30]NVStorageSaveData done [17:52:30]OFDSenderStorePacket done [17:52:30]KKMCreateOFDPacket done [17:52:30]NVStorageSaveData kkm_last_timestamp [17:52:30]File name is /storage/kkm_last_timestamp [17:52:30]Write 4 bytes [17:52:30]NVStorageSaveData done [17:52:30]ExternCall_PrintAddStr [17:52:30]wPrintStart [17:52:30]Write to MH i2c: 01 00 00 EC A6 92 [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 07 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 07 00 EC A6 00 00 00 00 00 FF 0F A7 [17:52:30]RasterBufferAndPrint [17:52:30]line Счет N : (1)216475 [17:52:30]line ИНН: 02508201610067 [17:52:30]line Контрольно-Кассовый Чек [17:52:30]line ПРОДАЖА [17:52:30]line ТРК (МРК, ГНК) : 22 [17:52:30]line Товар: 2710124130 [17:52:30]line Аи-92-К-5 [17:52:30]line 8.300 * 60.30 [17:52:30]line = 500.49 [17:52:30]line НДС 12% НСП 1% [17:52:30]line > о реализуемом товаре [17:52:30]line ОКРУГЛЕНИЕ: -0.49 [17:52:30]line ИТОГО: 500.00 [17:52:30]line Внесено: 500.00 [17:52:30]line СДАЧА: 0.00 [17:52:30]line НСП 1% : 4.43 [17:52:30]line НДС 12% : 53.15 [17:52:30]line Наличными: 500.00 [17:52:30]line Безнал.: 0.00 [17:52:30]line Место: АЗС № 102 "Партнер Нефть" [17:52:30]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:52:30]line СНО: Общий режим [17:52:30]line Чек 96 31.01.2024 17:52 [17:52:30]line Смена: 247 ФФД: 1.0 [17:52:30]line ЗНМ: 0300000040 [17:52:30]line РНМ: 0000000000092723 [17:52:30]line Версия ККМ: 001 [17:52:30]line ФМ: 0000000000875060 [17:52:30]line ФД: 49371 [17:52:30]line ФПД: 245431542598004 [17:52:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T175253&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49371&fm=245431542598004&tin=02508201610067®Number=0000000000092723&sum=50000 [17:52:30]written 0, free lines is 4095 [17:52:30]OFD Sender: Processing packet 49371 [packets to send 12, broken 11] [17:52:30]ProducePacketName [17:52:30]name=ofd_packets/00049371 [17:52:30]OFD Sender: To server: pG, [17:52:30]CommunicateWithHost lk.salyk.kg:30040 [17:52:30]ConnectInit lk.salyk.kg [17:52:30]Connected sock=10 [17:52:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 34 83 07 01 51 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 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 F5 88 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DB C0 00 00 35 04 06 00 DF 37 FB E9 C9 74 C1 E1 A9 8D 24 89 BA AF [17:52:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 A6 93 47 00 73 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 35 30 36 30 10 04 04 00 DB C0 00 00 F4 03 04 00 E7 34 BA 65 B6 04 01 00 00 9A 84 6D 7A 39 92 28 54 [17:52:30]CommunicateWithHost err = 0 [17:52:30]CheckOFDResponse [17:52:30]1017 (14) - 77093643461234 [17:52:30]1041 (16) - 0000000000875060 [17:52:30]1040 (4) - 49371 [17:52:30]1012 (4) - 31.01.2024 11:54 [17:52:30]1206 (1) - 0 [17:52:30]OFD Sender: Remove packet 49371 [17:52:30]ProducePacketName [17:52:30]name=ofd_packets/00049371 [17:52:30]NVStorageDeleteData [17:52:30]Write to MH i2c: 01 00 00 17 A7 BE [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 07 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: 01 07 00 17 A7 00 00 00 00 00 EC 0C BD [17:52:30]RasterBufferAndPrint [17:52:30]line [17:52:30]line [17:52:30]line [17:52:30]line [17:52:30]line [17:52:30]written 0, free lines is 3314 [17:52:30]MH_Cut [17:52:30]Write to MH i2c: D1 01 00 1E A7 01 97 [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: D1 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: D1 01 00 [17:52:30]MH_I2C_Read... [17:52:30]Read from MH i2c: D1 01 00 1E A7 00 96 [17:52:30]Write to MH i2c: 01 00 00 1F A7 C6 [17:52:30]Write i2c OK [17:52:30]MH_I2C_Read... [17:52:31]OFD Sender: No OFD packet to send [17:52:31]*** Cut start [17:52:31]*** Partial cut [17:52:31]*** CUTSNS_PIN = 1 [17:52:31]*** CUTSNS_PIN = 0 [17:52:31]*** Brake cut motor [17:52:32]Read from MH i2c: 01 [17:52:32]MH_I2C_Read... [17:52:32]*** Stop cut motor [17:52:32]*** Cut end [17:52:32]Read from MH i2c: 01 07 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: 01 07 00 1F A7 00 00 00 00 00 FF 0F DB [17:52:32]process_action close_receipt done [17:52:32]requested_data is exist [17:52:32]produce_requested_data [17:52:32]requested_item fm.sn is exist - process it [17:52:32]wFMCommunicate request_size=4 [17:52:32]MH_SAM_APDU [17:52:32]CAPDU: 80 11 00 00 [17:52:32]Write to MH i2c: E2 08 00 20 A7 80 11 00 00 00 00 00 00 41 [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 [17:52:32]MH_I2C_Read... [17:52:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:52:32]Read from MH i2c: E2 17 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 17 00 20 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8E [17:52:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:52:32]wFMCommunicate OK [17:52:32]requested_item fd.num is exist - process it [17:52:32]SAM_PROTO_GetFieldsCounters [17:52:32]wFMCommunicate request_size=4 [17:52:32]MH_SAM_APDU [17:52:32]CAPDU: 80 13 00 00 [17:52:32]Write to MH i2c: E2 08 00 21 A7 80 13 00 00 00 00 00 00 44 [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:52:32]Read from MH i2c: E2 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 62 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 62 00 21 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DB C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [17:52:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DB C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:52:32]wFMCommunicate OK [17:52:32]SAM_PROTO_GetFieldsCounters done [17:52:32]requested_item shift.num is exist - process it [17:52:32]requested_item shift.opened is exist - process it [17:52:32]req_shift_opened [17:52:32]FM_GetShiftState [17:52:32]SAM_PROTO_GetShiftState [17:52:32]wFMCommunicate request_size=4 [17:52:32]MH_SAM_APDU [17:52:32]CAPDU: 80 13 01 00 [17:52:32]Write to MH i2c: E2 08 00 22 A7 80 13 01 00 00 00 00 00 46 [17:52:32]Write i2c OK [17:52:32]MH_I2C_Read... [17:52:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:52:32]Read from MH i2c: E2 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 0E 00 [17:52:32]MH_I2C_Read... [17:52:32]Read from MH i2c: E2 0E 00 22 A7 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 9C [17:52:32]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:52:32]wFMCommunicate OK [17:52:32]SAM_PROTO_GetShiftState done [17:52:32]FM_GetShiftState done [17:52:32]req_shift_opened done [17:52:32]requested_item shift.open_date is exist - process it [17:52:32]req_shift_open_date [17:52:32]req_shift_open_date done [17:52:32]produce_requested_data done [17:52:32]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49371,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [17:52:32]process_action_free close_receipt [17:52:32]json_value_free [17:52:32]json_value_free done [17:52:32]process_json_proto returns [17:52:32]Send response to host [17:52:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49371,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [17:52:32]free response buf [17:52:32]execute_script done [17:52:32]execute_script returns [17:52:32]free content buf [17:52:32]Sock 7.Close socket [17:52:32]Sock 7.Thread stoped [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:34]accept exits with 9 [17:54:34]New connection [17:54:34]New thread 3066670436 created [17:54:34]Thread 3066813796 joined [17:54:34]Waiting for new connection... [17:54:34] Sock 9.Parse request [17:54:34]Sock 9.Check first char [17:54:34]Sock 9.First char is OK [17:54:34]request: POST /json_proto HTTP/1.0 [17:54:34]Method: POST [17:54:34]URL: /json_proto [17:54:34]Method is POST - this is cgi request [17:54:34]url: /json_proto [17:54:34]query_string will be loaded in cgi processing [17:54:34]execute_cgi json_proto POST (null) [17:54:34]execute_cgi path=json_proto method=POST [17:54:34]POST find Content-Length [17:54:34]Host: 172.17.56.67:8080 [17:54:34]Content-Length: 677 [17:54:34]Content-Type: application/json [17:54:34] [17:54:34]POST finish read [17:54:34]Found Content-Length = 677 [17:54:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:34]execute_script... [17:54: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)216476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:34]POST & json_proto [17:54:34]process_json_proto [17:54:34]json parsed OK: [17:54:34]protocol is kg_v1.0 [17:54:34]action value=close_receipt [17:54:34]process_action close_receipt [17:54:34]cmd_close_receipt [17:54:34]MH_GetDate [17:54:34]Write to MH i2c: F0 00 00 23 A7 B9 [17:54:34]Write i2c OK [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: F0 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: F0 09 00 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: F0 09 00 23 A7 00 73 89 BA 65 26 5D 9E 65 63 [17:54:34]GetLastDocTimeStamp 1706723573 [17:54:34]current date 1706723699 [17:54:34]FM_GetShiftState [17:54:34]SAM_PROTO_GetShiftState [17:54:34]wFMCommunicate request_size=4 [17:54:34]MH_SAM_APDU [17:54:34]CAPDU: 80 13 01 00 [17:54:34]Write to MH i2c: E2 08 00 24 A7 80 13 01 00 00 00 00 00 48 [17:54:34]Write i2c OK [17:54:34]MH_I2C_Read... [17:54:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:34]Read from MH i2c: E2 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 0E 00 [17:54:34]MH_I2C_Read... [17:54:34]Read from MH i2c: E2 0E 00 24 A7 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 9E [17:54:34]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:54:34]wFMCommunicate OK [17:54:34]SAM_PROTO_GetShiftState done [17:54:34]FM_GetShiftState done [17:54:34]opened in 1706659486 [17:54:34]opened+sec_in_day 1706745886 [17:54:34]quantity*price = 40039 [17:54:34]sum+1 = 40040 [17:54:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 97 31.01.2024 17:54 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49372 ФПД: 36371261974573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T175459&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49372&fm=36371261974573&tin=02508201610067®Number=0000000000092723&sum=40000 [17:54:35]StoreToDocumentArchive [17:54:35]shift 247 fd 49372 [17:54:35]save to /storage/0247/doc_00049372 [17:54:35]save last doc name /storage/0247/doc_00049372 to /storage/kkm_last_doc_name [17:54:35]save OK [17:54:35]Clear old archive folders... [17:54:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:54:35]tlvbuf is 0119A170 [17:54:35]SAM_PROTO_ClearQueue [17:54:35]wFMCommunicate request_size=4 [17:54:35]MH_SAM_APDU [17:54:35]CAPDU: 80 09 00 00 [17:54:35]Write to MH i2c: E2 08 00 31 A7 80 09 00 00 00 00 00 00 4A [17:54:35]Write i2c OK [17:54:35]MH_I2C_Read... [17:54:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:35]Read from MH i2c: E2 [17:54:35]MH_I2C_Read... [17:54:35]Read from MH i2c: E2 03 00 [17:54:35]MH_I2C_Read... [17:54:35]Read from MH i2c: E2 03 00 31 A7 00 90 00 4C [17:54:35]RAPDU: 90 00 [17:54:35]wFMCommunicate OK [17:54:35]SAM_PROTO_ClearQueue done [17:54:35]KKMCreateOFDPacket [17:54:35]OFDProtocolAddRootSTLVToBuf [17:54:35]FM_MakeSignedData [17:54:35]FM_MakeSignedData [17:54:35]SAM_PROTO_SignData [17:54:35]wFMCommunicate request_size=4 [17:54:35]MH_SAM_APDU [17:54:35]CAPDU: 80 0D 01 02 [17:54:35]Write to MH i2c: E2 08 00 32 A7 80 0D 01 02 00 00 00 00 52 [17:54:35]Write i2c OK [17:54:35]MH_I2C_Read... [17:54:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:35]Read from MH i2c: E2 [17:54:35]MH_I2C_Read... [17:54:35]Read from MH i2c: E2 03 00 [17:54:35]MH_I2C_Read... [17:54:35]Read from MH i2c: E2 03 00 32 A7 00 90 00 4D [17:54:35]RAPDU: 90 00 [17:54:35]wFMCommunicate OK [17:54:35]wFMCommunicate request_size=255 [17:54:35]MH_SAM_APDU [17:54:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 61 00 00 00 F4 03 04 00 73 89 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DC C0 00 00 35 04 06 00 21 [17:54:35]Write to MH i2c: E2 02 01 33 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 61 00 00 00 F4 03 04 00 73 89 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DC C0 00 00 35 04 06 00 21 00 00 FC [17:54:35]Write i2c OK [17:54:35]MH_I2C_Read... [17:54:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:36]Read from MH i2c: E2 [17:54:36]MH_I2C_Read... [17:54:36]Read from MH i2c: E2 03 00 [17:54:36]MH_I2C_Read... [17:54:36]Read from MH i2c: E2 03 00 33 A7 00 90 00 4E [17:54:36]RAPDU: 90 00 [17:54:36]wFMCommunicate OK [17:54:36]wFMCommunicate request_size=10 [17:54:36]MH_SAM_APDU [17:54:36]CAPDU: 80 0D 02 02 05 14 58 26 68 2D [17:54:36]Write to MH i2c: E2 0D 00 34 A7 80 0D 02 02 05 00 14 58 26 68 2D 00 00 86 [17:54:36]Write i2c OK [17:54:36]MH_I2C_Read... [17:54:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:36]Read from MH i2c: E2 [17:54:36]MH_I2C_Read... [17:54:36]Read from MH i2c: E2 03 00 [17:54:36]MH_I2C_Read... [17:54:36]Read from MH i2c: E2 03 00 34 A7 00 90 00 4F [17:54:36]RAPDU: 90 00 [17:54:36]wFMCommunicate OK [17:54:36]wFMCommunicate request_size=4 [17:54:36]MH_SAM_APDU [17:54:36]CAPDU: 80 0D 03 02 [17:54:36]Write to MH i2c: E2 08 00 35 A7 80 0D 03 02 00 00 00 00 57 [17:54:36]Write i2c OK [17:54:36]MH_I2C_Read... [17:54:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:36]Read from MH i2c: E2 [17:54:36]MH_I2C_Read... [17:54:36]Read from MH i2c: E2 0B 00 [17:54:36]MH_I2C_Read... [17:54:36]Read from MH i2c: E2 0B 00 35 A7 00 70 35 E0 69 B0 85 81 55 90 00 51 [17:54:36]RAPDU: 70 35 E0 69 B0 85 81 55 90 00 [17:54:36]wFMCommunicate OK [17:54:36]SAM_PROTO_SignData done [17:54:36]FM_MakeSignedData done [17:54:36]CreateOFDProtocolMessage [17:54:36]wFMCommunicate request_size=4 [17:54:36]MH_SAM_APDU [17:54:36]CAPDU: 80 11 00 00 [17:54:36]Write to MH i2c: E2 08 00 36 A7 80 11 00 00 00 00 00 00 57 [17:54:36]Write i2c OK [17:54:36]MH_I2C_Read... [17:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:36]Read from MH i2c: E2 [17:54:36]MH_I2C_Read... [17:54:36]Read from MH i2c: E2 17 00 [17:54:36]MH_I2C_Read... [17:54:36]Read from MH i2c: E2 17 00 36 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A4 [17:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:54:36]wFMCommunicate OK [17:54:36]CreateOFDProtocolMessage done [17:54:36]OFDSenderStorePacket 49372 [17:54:36]StoreOFDPacket docnum=49372 [17:54:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 1C BC 07 01 5D 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 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 61 00 00 00 F4 03 04 00 73 89 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DC C0 00 00 35 04 06 00 21 14 58 26 68 2D 70 35 E0 69 B0 85 81 55 [17:54:36]CheckFolder [17:54:36]dirname=/storage/ofd_packets [17:54:36]CheckFolder done [17:54:36]ProducePacketName [17:54:36]name=ofd_packets/00049372 [17:54:36]NVStorageSaveData ofd_packets/00049372 [17:54:36]File name is /storage/ofd_packets/00049372 [17:54:36]Write 301 bytes [17:54:36]NVStorageSaveData done [17:54:36]OFDSenderStorePacket done [17:54:36]KKMCreateOFDPacket done [17:54:36]NVStorageSaveData kkm_last_timestamp [17:54:36]File name is /storage/kkm_last_timestamp [17:54:36]Write 4 bytes [17:54:36]NVStorageSaveData done [17:54:36]ExternCall_PrintAddStr [17:54:36]wPrintStart [17:54:36]Write to MH i2c: 01 00 00 37 A7 DE [17:54:36]Write i2c OK [17:54:36]MH_I2C_Read... [17:54:36]Read from MH i2c: 01 [17:54:36]MH_I2C_Read... [17:54:36]Read from MH i2c: 01 07 00 [17:54:36]MH_I2C_Read... [17:54:36]Read from MH i2c: 01 07 00 37 A7 00 00 00 00 00 FF 0F F3 [17:54:36]RasterBufferAndPrint [17:54:36]line Счет N : (1)216476 [17:54:36]line ИНН: 02508201610067 [17:54:36]line Контрольно-Кассовый Чек [17:54:36]line ПРОДАЖА [17:54:36]line ТРК (МРК, ГНК) : 12 [17:54:36]line Товар: 2710124130 [17:54:36]line Аи-92-К-5 [17:54:36]line 6.640 * 60.30 [17:54:36]line = 400.39 [17:54:36]line НДС 12% НСП 1% [17:54:36]line > о реализуемом товаре [17:54:36]line ОКРУГЛЕНИЕ: -0.39 [17:54:36]line ИТОГО: 400.00 [17:54:36]line Внесено: 400.00 [17:54:36]line СДАЧА: 0.00 [17:54:36]line НСП 1% : 3.54 [17:54:36]line НДС 12% : 42.52 [17:54:36]line Наличными: 400.00 [17:54:36]line Безнал.: 0.00 [17:54:36]line Место: АЗС № 102 "Партнер Нефть" [17:54:36]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:54:36]line СНО: Общий режим [17:54:36]line Чек 97 31.01.2024 17:54 [17:54:36]line Смена: 247 ФФД: 1.0 [17:54:36]line ЗНМ: 0300000040 [17:54:36]line РНМ: 0000000000092723 [17:54:36]line Версия ККМ: 001 [17:54:36]line ФМ: 0000000000875060 [17:54:36]line ФД: 49372 [17:54:36]line ФПД: 36371261974573 [17:54:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T175459&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49372&fm=36371261974573&tin=02508201610067®Number=0000000000092723&sum=40000 [17:54:36]OFD Sender: Processing packet 49372 [packets to send 12, broken 11] [17:54:36]ProducePacketName [17:54:36]name=ofd_packets/00049372 [17:54:36]OFD Sender: To server: pG, [17:54:36]CommunicateWithHost lk.salyk.kg:30040 [17:54:36]ConnectInit lk.salyk.kg [17:54:36]written 0, free lines is 4095 [17:54:36]Connected sock=10 [17:54:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 1C BC 07 01 5D 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 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 61 00 00 00 F4 03 04 00 73 89 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DC C0 00 00 35 04 06 00 21 14 58 26 68 2D 70 35 E0 69 B0 85 81 55 [17:54:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 36 E8 47 00 94 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DC C0 00 00 F4 03 04 00 65 35 BA 65 B6 04 01 00 00 D2 C9 2C 44 04 11 5A F8 [17:54:36]CommunicateWithHost err = 0 [17:54:36]CheckOFDResponse [17:54:36]1017 (14) - 77093643461234 [17:54:36]1041 (16) - 0000000000875060 [17:54:36]1040 (4) - 49372 [17:54:36]1012 (4) - 31.01.2024 11:56 [17:54:36]1206 (1) - 0 [17:54:36]OFD Sender: Remove packet 49372 [17:54:36]ProducePacketName [17:54:36]name=ofd_packets/00049372 [17:54:36]NVStorageDeleteData [17:54:37]Write to MH i2c: 01 00 00 62 A7 09 [17:54:37]Write i2c OK [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: 01 [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: 01 07 00 [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: 01 07 00 62 A7 00 00 00 00 00 EE 0C 0A [17:54:37]RasterBufferAndPrint [17:54:37]line [17:54:37]line [17:54:37]line [17:54:37]line [17:54:37]line [17:54:37]written 0, free lines is 3317 [17:54:37]MH_Cut [17:54:37]Write to MH i2c: D1 01 00 69 A7 01 E2 [17:54:37]Write i2c OK [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: D1 [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: D1 01 00 [17:54:37]MH_I2C_Read... [17:54:37]Read from MH i2c: D1 01 00 69 A7 00 E1 [17:54:37]Write to MH i2c: 01 00 00 6A A7 11 [17:54:37]Write i2c OK [17:54:37]MH_I2C_Read... [17:54:37]OFD Sender: No OFD packet to send [17:54:37]*** Cut start [17:54:37]*** Partial cut [17:54:37]*** CUTSNS_PIN = 1 [17:54:37]*** CUTSNS_PIN = 0 [17:54:38]*** Brake cut motor [17:54:38]Read from MH i2c: 01 [17:54:38]MH_I2C_Read... [17:54:38]*** Stop cut motor [17:54:38]*** Cut end [17:54:38]Read from MH i2c: 01 07 00 [17:54:38]MH_I2C_Read... [17:54:38]Read from MH i2c: 01 07 00 6A A7 00 00 00 00 00 FF 0F 26 [17:54:38]process_action close_receipt done [17:54:38]requested_data is exist [17:54:38]produce_requested_data [17:54:38]requested_item fm.sn is exist - process it [17:54:38]wFMCommunicate request_size=4 [17:54:38]MH_SAM_APDU [17:54:38]CAPDU: 80 11 00 00 [17:54:38]Write to MH i2c: E2 08 00 6B A7 80 11 00 00 00 00 00 00 8C [17:54:38]Write i2c OK [17:54:38]MH_I2C_Read... [17:54:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:38]Read from MH i2c: E2 [17:54:38]MH_I2C_Read... [17:54:38]Read from MH i2c: E2 17 00 [17:54:38]MH_I2C_Read... [17:54:38]Read from MH i2c: E2 17 00 6B A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D9 [17:54:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:54:38]wFMCommunicate OK [17:54:38]requested_item fd.num is exist - process it [17:54:38]SAM_PROTO_GetFieldsCounters [17:54:38]wFMCommunicate request_size=4 [17:54:38]MH_SAM_APDU [17:54:38]CAPDU: 80 13 00 00 [17:54:38]Write to MH i2c: E2 08 00 6C A7 80 13 00 00 00 00 00 00 8F [17:54:38]Write i2c OK [17:54:38]MH_I2C_Read... [17:54:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:38]Read from MH i2c: E2 [17:54:38]MH_I2C_Read... [17:54:38]Read from MH i2c: E2 62 00 [17:54:38]MH_I2C_Read... [17:54:38]Read from MH i2c: E2 62 00 6C A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DC C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [17:54: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DC C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:38]wFMCommunicate OK [17:54:38]SAM_PROTO_GetFieldsCounters done [17:54:38]requested_item shift.num is exist - process it [17:54:38]requested_item shift.opened is exist - process it [17:54:38]req_shift_opened [17:54:38]FM_GetShiftState [17:54:38]SAM_PROTO_GetShiftState [17:54:38]wFMCommunicate request_size=4 [17:54:38]MH_SAM_APDU [17:54:38]CAPDU: 80 13 01 00 [17:54:38]Write to MH i2c: E2 08 00 6D A7 80 13 01 00 00 00 00 00 91 [17:54:38]Write i2c OK [17:54:38]MH_I2C_Read... [17:54:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:38]Read from MH i2c: E2 [17:54:38]MH_I2C_Read... [17:54:38]Read from MH i2c: E2 0E 00 [17:54:38]MH_I2C_Read... [17:54:38]Read from MH i2c: E2 0E 00 6D A7 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 E7 [17:54:38]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:54:38]wFMCommunicate OK [17:54:38]SAM_PROTO_GetShiftState done [17:54:38]FM_GetShiftState done [17:54:38]req_shift_opened done [17:54:38]requested_item shift.open_date is exist - process it [17:54:38]req_shift_open_date [17:54:38]req_shift_open_date done [17:54:38]produce_requested_data done [17:54:38]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49372,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [17:54:38]process_action_free close_receipt [17:54:38]json_value_free [17:54:38]json_value_free done [17:54:38]process_json_proto returns [17:54:38]Send response to host [17:54:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49372,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [17:54:38]free response buf [17:54:38]execute_script done [17:54:38]execute_script returns [17:54:38]free content buf [17:54:38]Sock 9.Close socket [17:54:38]Sock 9.Thread stoped [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:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:48]accept exits with 7 [17:58:48]New connection [17:58:48]New thread 3066813796 created [17:58:48]Thread 3066670436 joined [17:58:48]Waiting for new connection... [17:58:48] Sock 7.Parse request [17:58:48]Sock 7.Check first char [17:58:48]Sock 7.First char is OK [17:58:48]request: POST /json_proto HTTP/1.0 [17:58:48]Method: POST [17:58:48]URL: /json_proto [17:58:48]Method is POST - this is cgi request [17:58:48]url: /json_proto [17:58:48]query_string will be loaded in cgi processing [17:58:48]execute_cgi json_proto POST (null) [17:58:48]execute_cgi path=json_proto method=POST [17:58:48]POST find Content-Length [17:58:48]Host: 172.17.56.67:8080 [17:58:48]Content-Length: 677 [17:58:48]Content-Type: application/json [17:58:48] [17:58:48]POST finish read [17:58:48]Found Content-Length = 677 [17:58:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "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:58:48]execute_script... [17:58: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)216477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 3.320, "sum" : 200.20, "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:58:48]POST & json_proto [17:58:48]process_json_proto [17:58:48]json parsed OK: [17:58:48]protocol is kg_v1.0 [17:58:48]action value=close_receipt [17:58:48]process_action close_receipt [17:58:48]cmd_close_receipt [17:58:48]MH_GetDate [17:58:48]Write to MH i2c: F0 00 00 6E A7 04 [17:58:48]Write i2c OK [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: F0 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: F0 09 00 [17:58:48]MH_I2C_Read... [17:58:48]Read from MH i2c: F0 09 00 6E A7 00 71 8A BA 65 26 5D 9E 65 AD [17:58:48]GetLastDocTimeStamp 1706723699 [17:58:48]current date 1706723953 [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 6F A7 80 13 01 00 00 00 00 00 93 [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 6F A7 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 E9 [17:58:48]RAPDU: 09 00 01 9E 8E B9 65 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]opened in 1706659486 [17:58:48]opened+sec_in_day 1706745886 [17:58:48]quantity*price = 20019 [17:58:48]sum+1 = 20021 [17:58:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 98 31.01.2024 17:59 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49373 ФПД: 102277288208561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T175913&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49373&fm=102277288208561&tin=02508201610067®Number=0000000000092723&sum=20000 [17:58:49]StoreToDocumentArchive [17:58:49]shift 247 fd 49373 [17:58:49]save to /storage/0247/doc_00049373 [17:58:49]save last doc name /storage/0247/doc_00049373 to /storage/kkm_last_doc_name [17:58:49]save OK [17:58:49]Clear old archive folders... [17:58:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:58:49]tlvbuf is 011EA130 [17:58:49]SAM_PROTO_ClearQueue [17:58:49]wFMCommunicate request_size=4 [17:58:49]MH_SAM_APDU [17:58:49]CAPDU: 80 09 00 00 [17:58:49]Write to MH i2c: E2 08 00 7C A7 80 09 00 00 00 00 00 00 95 [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:58:49]Read from MH i2c: E2 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 03 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 03 00 7C A7 00 90 00 97 [17:58:49]RAPDU: 90 00 [17:58:49]wFMCommunicate OK [17:58:49]SAM_PROTO_ClearQueue done [17:58:49]KKMCreateOFDPacket [17:58:49]OFDProtocolAddRootSTLVToBuf [17:58:49]FM_MakeSignedData [17:58:49]FM_MakeSignedData [17:58:49]SAM_PROTO_SignData [17:58:49]wFMCommunicate request_size=4 [17:58:49]MH_SAM_APDU [17:58:49]CAPDU: 80 0D 01 02 [17:58:49]Write to MH i2c: E2 08 00 7D A7 80 0D 01 02 00 00 00 00 9D [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:58:49]Read from MH i2c: E2 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 03 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 03 00 7D A7 00 90 00 98 [17:58:49]RAPDU: 90 00 [17:58:49]wFMCommunicate OK [17:58:49]wFMCommunicate request_size=255 [17:58:49]MH_SAM_APDU [17:58:49]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 62 00 00 00 F4 03 04 00 71 8A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DD C0 00 00 35 04 06 00 5D [17:58:49]Write to MH i2c: E2 02 01 7E A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 62 00 00 00 F4 03 04 00 71 8A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DD C0 00 00 35 04 06 00 5D 00 00 1A [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:49]Read from MH i2c: E2 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 03 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 03 00 7E A7 00 90 00 99 [17:58:49]RAPDU: 90 00 [17:58:49]wFMCommunicate OK [17:58:49]wFMCommunicate request_size=10 [17:58:49]MH_SAM_APDU [17:58:49]CAPDU: 80 0D 02 02 05 05 49 6E A8 B1 [17:58:49]Write to MH i2c: E2 0D 00 7F A7 80 0D 02 02 05 00 05 49 6E A8 B1 00 00 BF [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:58:49]Read from MH i2c: E2 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 03 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 03 00 7F A7 00 90 00 9A [17:58:49]RAPDU: 90 00 [17:58:49]wFMCommunicate OK [17:58:49]wFMCommunicate request_size=4 [17:58:49]MH_SAM_APDU [17:58:49]CAPDU: 80 0D 03 02 [17:58:49]Write to MH i2c: E2 08 00 80 A7 80 0D 03 02 00 00 00 00 A2 [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:58:49]Read from MH i2c: E2 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 0B 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 0B 00 80 A7 00 8A B1 44 4C 6F D5 36 AF 90 00 97 [17:58:49]RAPDU: 8A B1 44 4C 6F D5 36 AF 90 00 [17:58:49]wFMCommunicate OK [17:58:49]SAM_PROTO_SignData done [17:58:49]FM_MakeSignedData done [17:58:49]CreateOFDProtocolMessage [17:58:49]wFMCommunicate request_size=4 [17:58:49]MH_SAM_APDU [17:58:49]CAPDU: 80 11 00 00 [17:58:49]Write to MH i2c: E2 08 00 81 A7 80 11 00 00 00 00 00 00 A2 [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:49]Read from MH i2c: E2 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 17 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: E2 17 00 81 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EF [17:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:58:49]wFMCommunicate OK [17:58:49]CreateOFDProtocolMessage done [17:58:49]OFDSenderStorePacket 49373 [17:58:49]StoreOFDPacket docnum=49373 [17:58:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 DD 41 07 01 A1 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 62 00 00 00 F4 03 04 00 71 8A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DD C0 00 00 35 04 06 00 5D 05 49 6E A8 B1 8A B1 44 4C 6F D5 36 AF [17:58:49]CheckFolder [17:58:49]dirname=/storage/ofd_packets [17:58:49]CheckFolder done [17:58:49]ProducePacketName [17:58:49]name=ofd_packets/00049373 [17:58:49]NVStorageSaveData ofd_packets/00049373 [17:58:49]File name is /storage/ofd_packets/00049373 [17:58:49]Write 301 bytes [17:58:49]NVStorageSaveData done [17:58:49]OFDSenderStorePacket done [17:58:49]KKMCreateOFDPacket done [17:58:49]NVStorageSaveData kkm_last_timestamp [17:58:49]File name is /storage/kkm_last_timestamp [17:58:49]Write 4 bytes [17:58:49]NVStorageSaveData done [17:58:49]ExternCall_PrintAddStr [17:58:49]wPrintStart [17:58:49]Write to MH i2c: 01 00 00 82 A7 29 [17:58:49]Write i2c OK [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: 01 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: 01 07 00 [17:58:49]MH_I2C_Read... [17:58:49]Read from MH i2c: 01 07 00 82 A7 00 00 00 00 00 FF 0F 3E [17:58:49]RasterBufferAndPrint [17:58:49]line Счет N : (1)216477 [17:58:49]line ИНН: 02508201610067 [17:58:49]line Контрольно-Кассовый Чек [17:58:49]line ПРОДАЖА [17:58:49]line ТРК (МРК, ГНК) : 22 [17:58:49]line Товар: 2710124130 [17:58:49]line Аи-92-К-5 [17:58:49]line 3.320 * 60.30 [17:58:49]line = 200.20 [17:58:49]line НДС 12% НСП 1% [17:58:49]line > о реализуемом товаре [17:58:49]line ОКРУГЛЕНИЕ: -0.20 [17:58:49]line ИТОГО: 200.00 [17:58:49]line Внесено: 200.00 [17:58:49]line СДАЧА: 0.00 [17:58:49]line НСП 1% : 1.77 [17:58:49]line НДС 12% : 21.26 [17:58:49]line Наличными: 200.00 [17:58:49]line Безнал.: 0.00 [17:58:49]line Место: АЗС № 102 "Партнер Нефть" [17:58:49]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:58:49]line СНО: Общий режим [17:58:49]line Чек 98 31.01.2024 17:59 [17:58:49]line Смена: 247 ФФД: 1.0 [17:58:50]line ЗНМ: 0300000040 [17:58:50]line РНМ: 0000000000092723 [17:58:50]line Версия ККМ: 001 [17:58:50]line ФМ: 0000000000875060 [17:58:50]line ФД: 49373 [17:58:50]line ФПД: 102277288208561 [17:58:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T175913&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49373&fm=102277288208561&tin=02508201610067®Number=0000000000092723&sum=20000 [17:58:50]OFD Sender: Processing packet 49373 [packets to send 12, broken 11] [17:58:50]ProducePacketName [17:58:50]name=ofd_packets/00049373 [17:58:50]OFD Sender: To server: pG, [17:58:50]CommunicateWithHost lk.salyk.kg:30040 [17:58:50]ConnectInit lk.salyk.kg [17:58:50]written 0, free lines is 4095 [17:58:50]Connected sock=10 [17:58:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 DD 41 07 01 A1 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 34 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 62 00 00 00 F4 03 04 00 71 8A BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DD C0 00 00 35 04 06 00 5D 05 49 6E A8 B1 8A B1 44 4C 6F D5 36 AF [17:58:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 24 42 47 00 79 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DD C0 00 00 F4 03 04 00 63 36 BA 65 B6 04 01 00 00 E9 9C 88 BE 4D 7A 3D 98 [17:58:50]CommunicateWithHost err = 0 [17:58:50]CheckOFDResponse [17:58:50]1017 (14) - 77093643461234 [17:58:50]1041 (16) - 0000000000875060 [17:58:50]1040 (4) - 49373 [17:58:50]1012 (4) - 31.01.2024 12:00 [17:58:50]1206 (1) - 0 [17:58:50]OFD Sender: Remove packet 49373 [17:58:50]ProducePacketName [17:58:50]name=ofd_packets/00049373 [17:58:50]NVStorageDeleteData [17:58:50]Write to MH i2c: 01 00 00 AD A7 54 [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: 01 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: 01 07 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: 01 07 00 AD A7 00 00 00 00 00 FD 0C 64 [17:58:50]RasterBufferAndPrint [17:58:50]line [17:58:50]line [17:58:50]line [17:58:50]line [17:58:50]line [17:58:50]written 0, free lines is 3331 [17:58:50]MH_Cut [17:58:50]Write to MH i2c: D1 01 00 B4 A7 01 2D [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: D1 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: D1 01 00 [17:58:50]MH_I2C_Read... [17:58:50]Read from MH i2c: D1 01 00 B4 A7 00 2C [17:58:50]Write to MH i2c: 01 00 00 B5 A7 5C [17:58:50]Write i2c OK [17:58:50]MH_I2C_Read... [17:58:51]OFD Sender: No OFD packet to send [17:58:51]*** Cut start [17:58:51]*** Partial cut [17:58:51]*** CUTSNS_PIN = 1 [17:58:51]*** CUTSNS_PIN = 0 [17:58:51]*** Brake cut motor [17:58:51]Read from MH i2c: 01 [17:58:51]MH_I2C_Read... [17:58:51]*** Stop cut motor [17:58:51]*** Cut end [17:58:51]Read from MH i2c: 01 07 00 [17:58:51]MH_I2C_Read... [17:58:51]Read from MH i2c: 01 07 00 B5 A7 00 00 00 00 00 FF 0F 71 [17:58:51]process_action close_receipt done [17:58:51]requested_data is exist [17:58:51]produce_requested_data [17:58:51]requested_item fm.sn is exist - process it [17:58:51]wFMCommunicate request_size=4 [17:58:51]MH_SAM_APDU [17:58:51]CAPDU: 80 11 00 00 [17:58:51]Write to MH i2c: E2 08 00 B6 A7 80 11 00 00 00 00 00 00 D7 [17:58:51]Write i2c OK [17:58:51]MH_I2C_Read... [17:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:58:52]Read from MH i2c: E2 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 17 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 17 00 B6 A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 24 [17:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:58:52]wFMCommunicate OK [17:58:52]requested_item fd.num is exist - process it [17:58:52]SAM_PROTO_GetFieldsCounters [17:58:52]wFMCommunicate request_size=4 [17:58:52]MH_SAM_APDU [17:58:52]CAPDU: 80 13 00 00 [17:58:52]Write to MH i2c: E2 08 00 B7 A7 80 13 00 00 00 00 00 00 DA [17:58:52]Write i2c OK [17:58:52]MH_I2C_Read... [17:58:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:58:52]Read from MH i2c: E2 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 62 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 62 00 B7 A7 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DD C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [17:58: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DD C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:58:52]wFMCommunicate OK [17:58:52]SAM_PROTO_GetFieldsCounters done [17:58:52]requested_item shift.num is exist - process it [17:58:52]requested_item shift.opened is exist - process it [17:58:52]req_shift_opened [17:58:52]FM_GetShiftState [17:58:52]SAM_PROTO_GetShiftState [17:58:52]wFMCommunicate request_size=4 [17:58:52]MH_SAM_APDU [17:58:52]CAPDU: 80 13 01 00 [17:58:52]Write to MH i2c: E2 08 00 B8 A7 80 13 01 00 00 00 00 00 DC [17:58:52]Write i2c OK [17:58:52]MH_I2C_Read... [17:58:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:58:52]Read from MH i2c: E2 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 0E 00 [17:58:52]MH_I2C_Read... [17:58:52]Read from MH i2c: E2 0E 00 B8 A7 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 32 [17:58:52]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [17:58:52]wFMCommunicate OK [17:58:52]SAM_PROTO_GetShiftState done [17:58:52]FM_GetShiftState done [17:58:52]req_shift_opened done [17:58:52]requested_item shift.open_date is exist - process it [17:58:52]req_shift_open_date [17:58:52]req_shift_open_date done [17:58:52]produce_requested_data done [17:58:52]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49373,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [17:58:52]process_action_free close_receipt [17:58:52]json_value_free [17:58:52]json_value_free done [17:58:52]process_json_proto returns [17:58:52]Send response to host [17:58:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49373,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [17:58:52]free response buf [17:58:52]execute_script done [17:58:52]execute_script returns [17:58:52]free content buf [17:58:52]Sock 7.Close socket [17:58:52]Sock 7.Thread stoped [17:58:56]OFD Sender: No OFD packet to send [17:59:01]OFD Sender: No OFD packet to send [17:59:06]OFD Sender: No OFD packet to send [17:59:11]OFD Sender: No OFD packet to send [17:59:16]OFD Sender: No OFD packet to send [17:59:21]OFD Sender: No OFD packet to send [17:59:26]OFD Sender: No OFD packet to send [17:59:31]OFD Sender: No OFD packet to send [17:59:36]OFD Sender: No OFD packet to send [17:59:41]OFD Sender: No OFD packet to send [17:59:46]OFD Sender: No OFD packet to send [17:59:51]OFD Sender: No OFD packet to send [17:59:56]OFD Sender: No OFD packet to send [18:00:01]OFD Sender: No OFD packet to send [18:00:06]OFD Sender: No OFD packet to send [18:00:11]OFD Sender: No OFD packet to send [18:00:16]OFD Sender: No OFD packet to send [18:00:21]OFD Sender: No OFD packet to send [18:00:26]OFD Sender: No OFD packet to send [18:00:31]OFD Sender: No OFD packet to send [18:00:36]OFD Sender: No OFD packet to send [18:00:41]OFD Sender: No OFD packet to send [18:00:46]OFD Sender: No OFD packet to send [18:00:51]OFD Sender: No OFD packet to send [18:00:56]OFD Sender: No OFD packet to send [18:01:01]OFD Sender: No OFD packet to send [18:01:06]OFD Sender: No OFD packet to send [18:01:11]OFD Sender: No OFD packet to send [18:01:16]OFD Sender: No OFD packet to send [18:01:21]OFD Sender: No OFD packet to send [18:01:26]OFD Sender: No OFD packet to send [18:01:31]OFD Sender: No OFD packet to send [18:01:36]OFD Sender: No OFD packet to send [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:52]accept exits with 9 [18:01:52]New connection [18:01:52]New thread 3066670436 created [18:01:52]Thread 3066813796 joined [18:01:52]Waiting for new connection... [18:01:52] Sock 9.Parse request [18:01:52]Sock 9.Check first char [18:01:52]Sock 9.First char is OK [18:01:52]request: POST /json_proto HTTP/1.0 [18:01:52]Method: POST [18:01:52]URL: /json_proto [18:01:52]Method is POST - this is cgi request [18:01:52]url: /json_proto [18:01:52]query_string will be loaded in cgi processing [18:01:52]execute_cgi json_proto POST (null) [18:01:52]execute_cgi path=json_proto method=POST [18:01:52]POST find Content-Length [18:01:52]Host: 172.17.56.67:8080 [18:01:52]Content-Length: 677 [18:01:52]Content-Type: application/json [18:01:52] [18:01:52]POST finish read [18:01:52]Found Content-Length = 677 [18:01:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:52]execute_script... [18:01:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 8.300, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:01:52]POST & json_proto [18:01:52]process_json_proto [18:01:52]json parsed OK: [18:01:52]protocol is kg_v1.0 [18:01:52]action value=close_receipt [18:01:52]process_action close_receipt [18:01:52]cmd_close_receipt [18:01:52]MH_GetDate [18:01:52]Write to MH i2c: F0 00 00 B9 A7 4F [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: F0 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: F0 09 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: F0 09 00 B9 A7 00 29 8B BA 65 26 5D 9E 65 B1 [18:01:52]GetLastDocTimeStamp 1706723953 [18:01:52]current date 1706724137 [18:01:52]FM_GetShiftState [18:01:52]SAM_PROTO_GetShiftState [18:01:52]wFMCommunicate request_size=4 [18:01:52]MH_SAM_APDU [18:01:52]CAPDU: 80 13 01 00 [18:01:52]Write to MH i2c: E2 08 00 BA A7 80 13 01 00 00 00 00 00 DE [18:01:52]Write i2c OK [18:01:52]MH_I2C_Read... [18:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:52]Read from MH i2c: E2 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 0E 00 [18:01:52]MH_I2C_Read... [18:01:52]Read from MH i2c: E2 0E 00 BA A7 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 34 [18:01:52]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [18:01:52]wFMCommunicate OK [18:01:52]SAM_PROTO_GetShiftState done [18:01:52]FM_GetShiftState done [18:01:52]opened in 1706659486 [18:01:52]opened+sec_in_day 1706745886 [18:01:52]quantity*price = 50049 [18:01:52]sum+1 = 50050 [18:01:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 99 31.01.2024 18:02 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49374 ФПД: 131106949852432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T180217&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49374&fm=131106949852432&tin=02508201610067®Number=0000000000092723&sum=50000 [18:01:54]StoreToDocumentArchive [18:01:54]shift 247 fd 49374 [18:01:54]save to /storage/0247/doc_00049374 [18:01:54]save last doc name /storage/0247/doc_00049374 to /storage/kkm_last_doc_name [18:01:54]save OK [18:01:54]Clear old archive folders... [18:01:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:54]tlvbuf is 011AD530 [18:01:54]SAM_PROTO_ClearQueue [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 09 00 00 [18:01:54]Write to MH i2c: E2 08 00 C7 A7 80 09 00 00 00 00 00 00 E0 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 C7 A7 00 90 00 E2 [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]SAM_PROTO_ClearQueue done [18:01:54]KKMCreateOFDPacket [18:01:54]OFDProtocolAddRootSTLVToBuf [18:01:54]FM_MakeSignedData [18:01:54]FM_MakeSignedData [18:01:54]SAM_PROTO_SignData [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 0D 01 02 [18:01:54]Write to MH i2c: E2 08 00 C8 A7 80 0D 01 02 00 00 00 00 E8 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 C8 A7 00 90 00 E3 [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]wFMCommunicate request_size=255 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 29 8B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DE C0 00 00 35 04 06 00 77 [18:01:54]Write to MH i2c: E2 02 01 C9 A7 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 29 8B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DE C0 00 00 35 04 06 00 77 00 00 5A [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 C9 A7 00 90 00 E4 [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]wFMCommunicate request_size=10 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 0D 02 02 05 3D B7 2C 6D 10 [18:01:54]Write to MH i2c: E2 0D 00 CA A7 80 0D 02 02 05 00 3D B7 2C 6D 10 00 00 92 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 03 00 CA A7 00 90 00 E5 [18:01:54]RAPDU: 90 00 [18:01:54]wFMCommunicate OK [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 0D 03 02 [18:01:54]Write to MH i2c: E2 08 00 CB A7 80 0D 03 02 00 00 00 00 ED [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 0B 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 0B 00 CB A7 00 C0 62 6A C4 E7 98 1F A6 90 00 82 [18:01:54]RAPDU: C0 62 6A C4 E7 98 1F A6 90 00 [18:01:54]wFMCommunicate OK [18:01:54]SAM_PROTO_SignData done [18:01:54]FM_MakeSignedData done [18:01:54]CreateOFDProtocolMessage [18:01:54]wFMCommunicate request_size=4 [18:01:54]MH_SAM_APDU [18:01:54]CAPDU: 80 11 00 00 [18:01:54]Write to MH i2c: E2 08 00 CC A7 80 11 00 00 00 00 00 00 ED [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:54]Read from MH i2c: E2 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 17 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: E2 17 00 CC A7 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3A [18:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:01:54]wFMCommunicate OK [18:01:54]CreateOFDProtocolMessage done [18:01:54]OFDSenderStorePacket 49374 [18:01:54]StoreOFDPacket docnum=49374 [18:01:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D9 DA 07 01 7F D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 29 8B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DE C0 00 00 35 04 06 00 77 3D B7 2C 6D 10 C0 62 6A C4 E7 98 1F A6 [18:01:54]CheckFolder [18:01:54]dirname=/storage/ofd_packets [18:01:54]CheckFolder done [18:01:54]ProducePacketName [18:01:54]name=ofd_packets/00049374 [18:01:54]NVStorageSaveData ofd_packets/00049374 [18:01:54]File name is /storage/ofd_packets/00049374 [18:01:54]Write 301 bytes [18:01:54]NVStorageSaveData done [18:01:54]OFDSenderStorePacket done [18:01:54]KKMCreateOFDPacket done [18:01:54]NVStorageSaveData kkm_last_timestamp [18:01:54]File name is /storage/kkm_last_timestamp [18:01:54]Write 4 bytes [18:01:54]NVStorageSaveData done [18:01:54]ExternCall_PrintAddStr [18:01:54]wPrintStart [18:01:54]Write to MH i2c: 01 00 00 CD A7 74 [18:01:54]Write i2c OK [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 07 00 [18:01:54]MH_I2C_Read... [18:01:54]Read from MH i2c: 01 07 00 CD A7 00 00 00 00 00 FF 0F 89 [18:01:54]RasterBufferAndPrint [18:01:54]line Счет N : (1)216478 [18:01:54]line ИНН: 02508201610067 [18:01:54]line Контрольно-Кассовый Чек [18:01:54]line ПРОДАЖА [18:01:54]line ТРК (МРК, ГНК) : 12 [18:01:54]line Товар: 2710124130 [18:01:54]line Аи-92-К-5 [18:01:54]line 8.300 * 60.30 [18:01:54]line = 500.49 [18:01:54]line НДС 12% НСП 1% [18:01:54]line > о реализуемом товаре [18:01:54]line ОКРУГЛЕНИЕ: -0.49 [18:01:54]line ИТОГО: 500.00 [18:01:54]line Внесено: 500.00 [18:01:54]line СДАЧА: 0.00 [18:01:54]line НСП 1% : 4.43 [18:01:54]line НДС 12% : 53.15 [18:01:54]line Наличными: 500.00 [18:01:54]line Безнал.: 0.00 [18:01:54]line Место: АЗС № 102 "Партнер Нефть" [18:01:54]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:01:54]line СНО: Общий режим [18:01:54]line Чек 99 31.01.2024 18:02 [18:01:54]line Смена: 247 ФФД: 1.0 [18:01:54]line ЗНМ: 0300000040 [18:01:54]line РНМ: 0000000000092723 [18:01:54]line Версия ККМ: 001 [18:01:54]line ФМ: 0000000000875060 [18:01:54]line ФД: 49374 [18:01:54]line ФПД: 131106949852432 [18:01:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T180217&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49374&fm=131106949852432&tin=02508201610067®Number=0000000000092723&sum=50000 [18:01:54]OFD Sender: Processing packet 49374 [packets to send 12, broken 11] [18:01:54]ProducePacketName [18:01:54]name=ofd_packets/00049374 [18:01:54]OFD Sender: To server: pG, [18:01:54]CommunicateWithHost lk.salyk.kg:30040 [18:01:54]ConnectInit lk.salyk.kg [18:01:54]written 0, free lines is 4095 [18:01:54]Connected sock=10 [18:01:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D9 DA 07 01 7F D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6C 20 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 29 8B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DE C0 00 00 35 04 06 00 77 3D B7 2C 6D 10 C0 62 6A C4 E7 98 1F A6 [18:01:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 89 6B 47 00 02 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DE C0 00 00 F4 03 04 00 1B 37 BA 65 B6 04 01 00 00 C1 A5 1E C7 91 C6 D2 0A [18:01:55]CommunicateWithHost err = 0 [18:01:55]CheckOFDResponse [18:01:55]1017 (14) - 77093643461234 [18:01:55]1041 (16) - 0000000000875060 [18:01:55]1040 (4) - 49374 [18:01:55]1012 (4) - 31.01.2024 12:03 [18:01:55]1206 (1) - 0 [18:01:55]OFD Sender: Remove packet 49374 [18:01:55]ProducePacketName [18:01:55]name=ofd_packets/00049374 [18:01:55]NVStorageDeleteData [18:01:55]Write to MH i2c: 01 00 00 F8 A7 9F [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 07 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: 01 07 00 F8 A7 00 00 00 00 00 F7 0C A9 [18:01:55]RasterBufferAndPrint [18:01:55]line [18:01:55]line [18:01:55]line [18:01:55]line [18:01:55]line [18:01:55]written 0, free lines is 3325 [18:01:55]MH_Cut [18:01:55]Write to MH i2c: D1 01 00 FF A7 01 78 [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: D1 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: D1 01 00 [18:01:55]MH_I2C_Read... [18:01:55]Read from MH i2c: D1 01 00 FF A7 00 77 [18:01:55]Write to MH i2c: 01 00 00 00 A8 A8 [18:01:55]Write i2c OK [18:01:55]MH_I2C_Read... [18:01:55]OFD Sender: No OFD packet to send [18:01:56]*** Cut start [18:01:56]*** Partial cut [18:01:56]*** CUTSNS_PIN = 1 [18:01:56]*** CUTSNS_PIN = 0 [18:01:56]*** Brake cut motor [18:01:56]Read from MH i2c: 01 [18:01:56]MH_I2C_Read... [18:01:56]*** Stop cut motor [18:01:56]*** Cut end [18:01:56]Read from MH i2c: 01 07 00 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: 01 07 00 00 A8 00 00 00 00 00 FF 0F BD [18:01:56]process_action close_receipt done [18:01:56]requested_data is exist [18:01:56]produce_requested_data [18:01:56]requested_item fm.sn is exist - process it [18:01:56]wFMCommunicate request_size=4 [18:01:56]MH_SAM_APDU [18:01:56]CAPDU: 80 11 00 00 [18:01:56]Write to MH i2c: E2 08 00 01 A8 80 11 00 00 00 00 00 00 23 [18:01:56]Write i2c OK [18:01:56]MH_I2C_Read... [18:01:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:56]Read from MH i2c: E2 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 17 00 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 17 00 01 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 70 [18:01:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:01:56]wFMCommunicate OK [18:01:56]requested_item fd.num is exist - process it [18:01:56]SAM_PROTO_GetFieldsCounters [18:01:56]wFMCommunicate request_size=4 [18:01:56]MH_SAM_APDU [18:01:56]CAPDU: 80 13 00 00 [18:01:56]Write to MH i2c: E2 08 00 02 A8 80 13 00 00 00 00 00 00 26 [18:01:56]Write i2c OK [18:01:56]MH_I2C_Read... [18:01:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:56]Read from MH i2c: E2 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 62 00 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 62 00 02 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DE C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [18:01: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DE C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:56]wFMCommunicate OK [18:01:56]SAM_PROTO_GetFieldsCounters done [18:01:56]requested_item shift.num is exist - process it [18:01:56]requested_item shift.opened is exist - process it [18:01:56]req_shift_opened [18:01:56]FM_GetShiftState [18:01:56]SAM_PROTO_GetShiftState [18:01:56]wFMCommunicate request_size=4 [18:01:56]MH_SAM_APDU [18:01:56]CAPDU: 80 13 01 00 [18:01:56]Write to MH i2c: E2 08 00 03 A8 80 13 01 00 00 00 00 00 28 [18:01:56]Write i2c OK [18:01:56]MH_I2C_Read... [18:01:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:56]Read from MH i2c: E2 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 0E 00 [18:01:56]MH_I2C_Read... [18:01:56]Read from MH i2c: E2 0E 00 03 A8 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 7E [18:01:56]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [18:01:56]wFMCommunicate OK [18:01:56]SAM_PROTO_GetShiftState done [18:01:56]FM_GetShiftState done [18:01:56]req_shift_opened done [18:01:56]requested_item shift.open_date is exist - process it [18:01:56]req_shift_open_date [18:01:56]req_shift_open_date done [18:01:56]produce_requested_data done [18:01:56]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49374,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [18:01:56]process_action_free close_receipt [18:01:56]json_value_free [18:01:56]json_value_free done [18:01:56]process_json_proto returns [18:01:56]Send response to host [18:01:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49374,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [18:01:56]free response buf [18:01:56]execute_script done [18:01:56]execute_script returns [18:01:56]free content buf [18:01:56]Sock 9.Close socket [18:01:56]Sock 9.Thread stoped [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:43]accept exits with 7 [18:02:43]New connection [18:02:43]New thread 3066813796 created [18:02:43]Thread 3066670436 joined [18:02:43]Waiting for new connection... [18:02:43] Sock 7.Parse request [18:02:43]Sock 7.Check first char [18:02:43]Sock 7.First char is OK [18:02:43]request: POST /json_proto HTTP/1.0 [18:02:43]Method: POST [18:02:43]URL: /json_proto [18:02:43]Method is POST - this is cgi request [18:02:43]url: /json_proto [18:02:43]query_string will be loaded in cgi processing [18:02:43]execute_cgi json_proto POST (null) [18:02:43]execute_cgi path=json_proto method=POST [18:02:43]POST find Content-Length [18:02:43]Host: 172.17.56.67:8080 [18:02:43]Content-Length: 677 [18:02:43]Content-Type: application/json [18:02:43] [18:02:43]POST finish read [18:02:43]Found Content-Length = 677 [18:02:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.810, "sum" : 350.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:43]execute_script... [18:02: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)216479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.810, "sum" : 350.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:02:43]POST & json_proto [18:02:43]process_json_proto [18:02:43]json parsed OK: [18:02:43]protocol is kg_v1.0 [18:02:43]action value=close_receipt [18:02:43]process_action close_receipt [18:02:43]cmd_close_receipt [18:02:43]MH_GetDate [18:02:43]Write to MH i2c: F0 00 00 04 A8 9B [18:02:43]Write i2c OK [18:02:43]MH_I2C_Read... [18:02:43]Read from MH i2c: F0 [18:02:43]MH_I2C_Read... [18:02:43]Read from MH i2c: F0 09 00 [18:02:43]MH_I2C_Read... [18:02:43]Read from MH i2c: F0 09 00 04 A8 00 5C 8B BA 65 26 5D 9E 65 30 [18:02:43]GetLastDocTimeStamp 1706724137 [18:02:43]current date 1706724188 [18:02:43]FM_GetShiftState [18:02:43]SAM_PROTO_GetShiftState [18:02:43]wFMCommunicate request_size=4 [18:02:43]MH_SAM_APDU [18:02:43]CAPDU: 80 13 01 00 [18:02:43]Write to MH i2c: E2 08 00 05 A8 80 13 01 00 00 00 00 00 2A [18:02:43]Write i2c OK [18:02:43]MH_I2C_Read... [18:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:43]Read from MH i2c: E2 [18:02:43]MH_I2C_Read... [18:02:43]Read from MH i2c: E2 0E 00 [18:02:43]MH_I2C_Read... [18:02:43]Read from MH i2c: E2 0E 00 05 A8 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 80 [18:02:43]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [18:02:43]wFMCommunicate OK [18:02:43]SAM_PROTO_GetShiftState done [18:02:43]FM_GetShiftState done [18:02:43]opened in 1706659486 [18:02:43]opened+sec_in_day 1706745886 [18:02:43]quantity*price = 35034 [18:02:43]sum+1 = 35035 [18:02:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.20 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 100 31.01.2024 18:03 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49375 ФПД: 2422749550717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T180308&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49375&fm=2422749550717&tin=02508201610067®Number=0000000000092723&sum=35000 [18:02:44]StoreToDocumentArchive [18:02:44]shift 247 fd 49375 [18:02:44]save to /storage/0247/doc_00049375 [18:02:44]save last doc name /storage/0247/doc_00049375 to /storage/kkm_last_doc_name [18:02:44]save OK [18:02:44]Clear old archive folders... [18:02:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:02:44]tlvbuf is 0139F590 [18:02:44]SAM_PROTO_ClearQueue [18:02:44]wFMCommunicate request_size=4 [18:02:44]MH_SAM_APDU [18:02:44]CAPDU: 80 09 00 00 [18:02:44]Write to MH i2c: E2 08 00 12 A8 80 09 00 00 00 00 00 00 2C [18:02:44]Write i2c OK [18:02:44]MH_I2C_Read... [18:02:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:02:44]Read from MH i2c: E2 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 03 00 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 03 00 12 A8 00 90 00 2E [18:02:44]RAPDU: 90 00 [18:02:44]wFMCommunicate OK [18:02:44]SAM_PROTO_ClearQueue done [18:02:44]KKMCreateOFDPacket [18:02:44]OFDProtocolAddRootSTLVToBuf [18:02:44]FM_MakeSignedData [18:02:44]FM_MakeSignedData [18:02:44]SAM_PROTO_SignData [18:02:44]wFMCommunicate request_size=4 [18:02:44]MH_SAM_APDU [18:02:44]CAPDU: 80 0D 01 02 [18:02:44]Write to MH i2c: E2 08 00 13 A8 80 0D 01 02 00 00 00 00 34 [18:02:44]Write i2c OK [18:02:44]MH_I2C_Read... [18:02:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:02:44]Read from MH i2c: E2 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 03 00 [18:02:44]MH_I2C_Read... [18:02:44]Read from MH i2c: E2 03 00 13 A8 00 90 00 2F [18:02:44]RAPDU: 90 00 [18:02:44]wFMCommunicate OK [18:02:44]wFMCommunicate request_size=255 [18:02:44]MH_SAM_APDU [18:02:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 16 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 DA 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 5C 8B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DF C0 00 00 35 04 06 00 02 [18:02:44]Write to MH i2c: E2 02 01 14 A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 16 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 DA 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 5C 8B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DF C0 00 00 35 04 06 00 02 00 00 54 [18:02:44]Write i2c OK [18:02:44]MH_I2C_Read... [18:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:45]Read from MH i2c: E2 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: E2 03 00 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: E2 03 00 14 A8 00 90 00 30 [18:02:45]RAPDU: 90 00 [18:02:45]wFMCommunicate OK [18:02:45]wFMCommunicate request_size=10 [18:02:45]MH_SAM_APDU [18:02:45]CAPDU: 80 0D 02 02 05 34 17 20 58 7D [18:02:45]Write to MH i2c: E2 0D 00 15 A8 80 0D 02 02 05 00 34 17 20 58 7D 00 00 81 [18:02:45]Write i2c OK [18:02:45]MH_I2C_Read... [18:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:02:45]Read from MH i2c: E2 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: E2 03 00 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: E2 03 00 15 A8 00 90 00 31 [18:02:45]RAPDU: 90 00 [18:02:45]wFMCommunicate OK [18:02:45]wFMCommunicate request_size=4 [18:02:45]MH_SAM_APDU [18:02:45]CAPDU: 80 0D 03 02 [18:02:45]Write to MH i2c: E2 08 00 16 A8 80 0D 03 02 00 00 00 00 39 [18:02:45]Write i2c OK [18:02:45]MH_I2C_Read... [18:02:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:02:45]Read from MH i2c: E2 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: E2 0B 00 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: E2 0B 00 16 A8 00 F6 D8 8B B3 3F 41 0B 98 90 00 69 [18:02:45]RAPDU: F6 D8 8B B3 3F 41 0B 98 90 00 [18:02:45]wFMCommunicate OK [18:02:45]SAM_PROTO_SignData done [18:02:45]FM_MakeSignedData done [18:02:45]CreateOFDProtocolMessage [18:02:45]wFMCommunicate request_size=4 [18:02:45]MH_SAM_APDU [18:02:45]CAPDU: 80 11 00 00 [18:02:45]Write to MH i2c: E2 08 00 17 A8 80 11 00 00 00 00 00 00 39 [18:02:45]Write i2c OK [18:02:45]MH_I2C_Read... [18:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:45]Read from MH i2c: E2 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: E2 17 00 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: E2 17 00 17 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 86 [18:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:02:45]wFMCommunicate OK [18:02:45]CreateOFDProtocolMessage done [18:02:45]OFDSenderStorePacket 49375 [18:02:45]StoreOFDPacket docnum=49375 [18:02:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 94 0E 07 01 A8 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 16 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 DA 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 5C 8B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DF C0 00 00 35 04 06 00 02 34 17 20 58 7D F6 D8 8B B3 3F 41 0B 98 [18:02:45]CheckFolder [18:02:45]dirname=/storage/ofd_packets [18:02:45]CheckFolder done [18:02:45]ProducePacketName [18:02:45]name=ofd_packets/00049375 [18:02:45]NVStorageSaveData ofd_packets/00049375 [18:02:45]File name is /storage/ofd_packets/00049375 [18:02:45]Write 301 bytes [18:02:45]NVStorageSaveData done [18:02:45]OFDSenderStorePacket done [18:02:45]KKMCreateOFDPacket done [18:02:45]NVStorageSaveData kkm_last_timestamp [18:02:45]File name is /storage/kkm_last_timestamp [18:02:45]Write 4 bytes [18:02:45]NVStorageSaveData done [18:02:45]ExternCall_PrintAddStr [18:02:45]wPrintStart [18:02:45]Write to MH i2c: 01 00 00 18 A8 C0 [18:02:45]Write i2c OK [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: 01 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: 01 07 00 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: 01 07 00 18 A8 00 00 00 00 00 FF 0F D5 [18:02:45]RasterBufferAndPrint [18:02:45]line Счет N : (1)216479 [18:02:45]line ИНН: 02508201610067 [18:02:45]line Контрольно-Кассовый Чек [18:02:45]line ПРОДАЖА [18:02:45]line ТРК (МРК, ГНК) : 22 [18:02:45]line Товар: 2710124130 [18:02:45]line Аи-92-К-5 [18:02:45]line 5.810 * 60.30 [18:02:45]line = 350.34 [18:02:45]line НДС 12% НСП 1% [18:02:45]line > о реализуемом товаре [18:02:45]line ОКРУГЛЕНИЕ: -0.34 [18:02:45]line ИТОГО: 350.00 [18:02:45]line Внесено: 350.00 [18:02:45]line СДАЧА: 0.00 [18:02:45]line НСП 1% : 3.10 [18:02:45]line НДС 12% : 37.20 [18:02:45]line Наличными: 350.00 [18:02:45]line Безнал.: 0.00 [18:02:45]line Место: АЗС № 102 "Партнер Нефть" [18:02:45]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:02:45]line СНО: Общий режим [18:02:45]line Чек 100 31.01.2024 18:03 [18:02:45]line Смена: 247 ФФД: 1.0 [18:02:45]line ЗНМ: 0300000040 [18:02:45]line РНМ: 0000000000092723 [18:02:45]line Версия ККМ: 001 [18:02:45]line ФМ: 0000000000875060 [18:02:45]line ФД: 49375 [18:02:45]line ФПД: 2422749550717 [18:02:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T180308&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49375&fm=2422749550717&tin=02508201610067®Number=0000000000092723&sum=35000 [18:02:45]OFD Sender: Processing packet 49375 [packets to send 12, broken 11] [18:02:45]ProducePacketName [18:02:45]name=ofd_packets/00049375 [18:02:45]OFD Sender: To server: pG, [18:02:45]CommunicateWithHost lk.salyk.kg:30040 [18:02:45]ConnectInit lk.salyk.kg [18:02:45]written 0, free lines is 4095 [18:02:45]Connected sock=10 [18:02:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 94 0E 07 01 A8 F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B2 16 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 DA 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 5C 8B BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DF C0 00 00 35 04 06 00 02 34 17 20 58 7D F6 D8 8B B3 3F 41 0B 98 [18:02:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 7D 8B 47 00 50 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DF C0 00 00 F4 03 04 00 4E 37 BA 65 B6 04 01 00 00 0D E8 30 F2 CA 72 EF 65 [18:02:45]CommunicateWithHost err = 0 [18:02:45]CheckOFDResponse [18:02:45]1017 (14) - 77093643461234 [18:02:45]1041 (16) - 0000000000875060 [18:02:45]1040 (4) - 49375 [18:02:45]1012 (4) - 31.01.2024 12:04 [18:02:45]1206 (1) - 0 [18:02:45]OFD Sender: Remove packet 49375 [18:02:45]ProducePacketName [18:02:45]name=ofd_packets/00049375 [18:02:45]NVStorageDeleteData [18:02:45]Write to MH i2c: 01 00 00 43 A8 EB [18:02:45]Write i2c OK [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: 01 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: 01 07 00 [18:02:45]MH_I2C_Read... [18:02:45]Read from MH i2c: 01 07 00 43 A8 00 00 00 00 00 F9 0C F7 [18:02:45]RasterBufferAndPrint [18:02:45]line [18:02:45]line [18:02:45]line [18:02:45]line [18:02:45]line [18:02:45]written 0, free lines is 3328 [18:02:46]MH_Cut [18:02:46]Write to MH i2c: D1 01 00 4A A8 01 C4 [18:02:46]Write i2c OK [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: D1 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: D1 01 00 [18:02:46]MH_I2C_Read... [18:02:46]Read from MH i2c: D1 01 00 4A A8 00 C3 [18:02:46]Write to MH i2c: 01 00 00 4B A8 F3 [18:02:46]Write i2c OK [18:02:46]MH_I2C_Read... [18:02:46]OFD Sender: No OFD packet to send [18:02:46]*** Cut start [18:02:46]*** Partial cut [18:02:46]*** CUTSNS_PIN = 1 [18:02:46]*** CUTSNS_PIN = 0 [18:02:46]*** Brake cut motor [18:02:47]Read from MH i2c: 01 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 07 00 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 07 00 4B A8 00 00 00 00 00 FF 0F 08 [18:02:47]process_action close_receipt done [18:02:47]requested_data is exist [18:02:47]produce_requested_data [18:02:47]requested_item fm.sn is exist - process it [18:02:47]wFMCommunicate request_size=4 [18:02:47]MH_SAM_APDU [18:02:47]CAPDU: 80 11 00 00 [18:02:47]Write to MH i2c: E2 08 00 4C A8 80 11 00 00 00 00 00 00 6E [18:02:47]*** Stop cut motor [18:02:47]*** Cut end [18:02:47]*** FLAG_PRN_KEY set [18:02:47]int [18:02:47]Write i2c OK [18:02:47]MH_I2C_Read... [18:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:02:47]Read from MH i2c: E2 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: E2 17 00 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: E2 17 00 4C A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BB [18:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:02:47]wFMCommunicate OK [18:02:47]requested_item fd.num is exist - process it [18:02:47]SAM_PROTO_GetFieldsCounters [18:02:47]wFMCommunicate request_size=4 [18:02:47]MH_SAM_APDU [18:02:47]CAPDU: 80 13 00 00 [18:02:47]Write to MH i2c: E2 08 00 4D A8 80 13 00 00 00 00 00 00 71 [18:02:47]Write i2c OK [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: E2 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: E2 62 00 [18:02:47]MH_I2C_Read... [18:02:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:02:47]*** FLAG_PRN_KEY reset [18:02:47]Read from MH i2c: E2 62 00 4D A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DF C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [18:02: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 DF C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:02:47]wFMCommunicate OK [18:02:47]SAM_PROTO_GetFieldsCounters done [18:02:47]requested_item shift.num is exist - process it [18:02:47]requested_item shift.opened is exist - process it [18:02:47]req_shift_opened [18:02:47]FM_GetShiftState [18:02:47]SAM_PROTO_GetShiftState [18:02:47]wFMCommunicate request_size=4 [18:02:47]MH_SAM_APDU [18:02:47]CAPDU: 80 13 01 00 [18:02:47]Write to MH i2c: 01 00 00 4E A8 F6 [18:02:47]Write i2c OK [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 07 00 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 07 00 4E A8 00 00 00 00 00 FF 0F 0B [18:02:47]state=0 [18:02:47]Write to MH i2c: E2 08 00 4F A8 80 13 01 00 00 00 00 00 74 [18:02:47]Write i2c OK [18:02:47]MH_I2C_Read... [18:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:02:47]Read from MH i2c: E2 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: E2 0E 00 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: E2 0E 00 4F A8 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 CA [18:02:47]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [18:02:47]wFMCommunicate OK [18:02:47]SAM_PROTO_GetShiftState done [18:02:47]FM_GetShiftState done [18:02:47]req_shift_opened done [18:02:47]requested_item shift.open_date is exist - process it [18:02:47]req_shift_open_date [18:02:47]req_shift_open_date done [18:02:47]produce_requested_data done [18:02:47]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49375,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [18:02:47]process_action_free close_receipt [18:02:47]json_value_free [18:02:47]json_value_free done [18:02:47]process_json_proto returns [18:02:47]Send response to host [18:02:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49375,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [18:02:47]free response buf [18:02:47]execute_script done [18:02:47]execute_script returns [18:02:47]free content buf [18:02:47]Sock 7.Close socket [18:02:47]Sock 7.Thread stoped [18:02:47]int [18:02:47]Write to MH i2c: 01 00 00 50 A8 F8 [18:02:47]*** FLAG_PRN_KEY set [18:02:47]Write i2c OK [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 07 00 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 07 00 50 A8 00 08 00 00 00 FF 0F 15 [18:02:47]state=0 [18:02:47]Key pressed [18:02:47]Feed [18:02:47]Write to MH i2c: D8 00 00 51 A8 D0 [18:02:47]Write i2c OK [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: D8 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: D8 01 00 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: D8 01 00 51 A8 00 D1 [18:02:47]int [18:02:47]Write to MH i2c: 01 00 00 52 A8 FA [18:02:47]Write i2c OK [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 07 00 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 07 00 52 A8 00 48 00 00 00 3C 00 85 [18:02:47]state=2 [18:02:47]Key pressed [18:02:47]int [18:02:47]Write to MH i2c: 01 00 00 53 A8 FB [18:02:47]*** FLAG_PRN_KEY reset [18:02:47]Write i2c OK [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 07 00 [18:02:47]MH_I2C_Read... [18:02:47]Read from MH i2c: 01 07 00 53 A8 00 00 00 00 00 FF 0F 10 [18:02:47]state=2 [18:02:47]Stop feed [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:26]OFD Sender: No OFD packet to send [18:13:31]OFD Sender: No OFD packet to send [18:13:36]OFD Sender: No OFD packet to send [18:13:41]OFD Sender: No OFD packet to send [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:56]OFD Sender: No OFD packet to send [18:14:01]OFD Sender: No OFD packet to send [18:14:06]OFD Sender: No OFD packet to send [18:14:11]OFD Sender: No OFD packet to send [18:14:16]OFD Sender: No OFD packet to send [18:14:21]OFD Sender: No OFD packet to send [18:14:26]OFD Sender: No OFD packet to send [18:14:31]OFD Sender: No OFD packet to send [18:14:32]accept exits with 9 [18:14:32]New connection [18:14:32]New thread 3066670436 created [18:14:32]Thread 3066813796 joined [18:14:32]Waiting for new connection... [18:14:32] Sock 9.Parse request [18:14:32]Sock 9.Check first char [18:14:32]Sock 9.First char is OK [18:14:32]request: POST /json_proto HTTP/1.0 [18:14:32]Method: POST [18:14:32]URL: /json_proto [18:14:32]Method is POST - this is cgi request [18:14:32]url: /json_proto [18:14:32]query_string will be loaded in cgi processing [18:14:32]execute_cgi json_proto POST (null) [18:14:32]execute_cgi path=json_proto method=POST [18:14:32]POST find Content-Length [18:14:32]Host: 172.17.56.67:8080 [18:14:32]Content-Length: 677 [18:14:32]Content-Type: application/json [18:14:32] [18:14:32]POST finish read [18:14:32]Found Content-Length = 677 [18:14:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.310, "sum" : 320.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:32]execute_script... [18:14:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 5.310, "sum" : 320.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:14:32]POST & json_proto [18:14:32]process_json_proto [18:14:32]json parsed OK: [18:14:32]protocol is kg_v1.0 [18:14:32]action value=close_receipt [18:14:32]process_action close_receipt [18:14:32]cmd_close_receipt [18:14:32]MH_GetDate [18:14:32]Write to MH i2c: F0 00 00 54 A8 EB [18:14:32]Write i2c OK [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: F0 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: F0 09 00 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: F0 09 00 54 A8 00 21 8E BA 65 26 5D 9E 65 48 [18:14:32]GetLastDocTimeStamp 1706724188 [18:14:32]current date 1706724897 [18:14:32]FM_GetShiftState [18:14:32]SAM_PROTO_GetShiftState [18:14:32]wFMCommunicate request_size=4 [18:14:32]MH_SAM_APDU [18:14:32]CAPDU: 80 13 01 00 [18:14:32]Write to MH i2c: E2 08 00 55 A8 80 13 01 00 00 00 00 00 7A [18:14:32]Write i2c OK [18:14:32]MH_I2C_Read... [18:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:32]Read from MH i2c: E2 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 0E 00 [18:14:32]MH_I2C_Read... [18:14:32]Read from MH i2c: E2 0E 00 55 A8 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 D0 [18:14:32]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [18:14:32]wFMCommunicate OK [18:14:32]SAM_PROTO_GetShiftState done [18:14:32]FM_GetShiftState done [18:14:32]opened in 1706659486 [18:14:32]opened+sec_in_day 1706745886 [18:14:32]quantity*price = 32019 [18:14:32]sum+1 = 32020 [18:14:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 34.00 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 101 31.01.2024 18:14 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49376 ФПД: 22139057625649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T181457&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49376&fm=22139057625649&tin=02508201610067®Number=0000000000092723&sum=32000 [18:14:33]StoreToDocumentArchive [18:14:33]shift 247 fd 49376 [18:14:33]save to /storage/0247/doc_00049376 [18:14:33]save last doc name /storage/0247/doc_00049376 to /storage/kkm_last_doc_name [18:14:33]save OK [18:14:33]Clear old archive folders... [18:14:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:14:33]tlvbuf is B6D86390 [18:14:33]SAM_PROTO_ClearQueue [18:14:33]wFMCommunicate request_size=4 [18:14:33]MH_SAM_APDU [18:14:33]CAPDU: 80 09 00 00 [18:14:33]Write to MH i2c: E2 08 00 62 A8 80 09 00 00 00 00 00 00 7C [18:14:33]Write i2c OK [18:14:33]MH_I2C_Read... [18:14:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:14:33]Read from MH i2c: E2 [18:14:33]MH_I2C_Read... [18:14:33]Read from MH i2c: E2 03 00 [18:14:33]MH_I2C_Read... [18:14:33]Read from MH i2c: E2 03 00 62 A8 00 90 00 7E [18:14:33]RAPDU: 90 00 [18:14:33]wFMCommunicate OK [18:14:33]SAM_PROTO_ClearQueue done [18:14:33]KKMCreateOFDPacket [18:14:33]OFDProtocolAddRootSTLVToBuf [18:14:33]FM_MakeSignedData [18:14:33]FM_MakeSignedData [18:14:33]SAM_PROTO_SignData [18:14:33]wFMCommunicate request_size=4 [18:14:33]MH_SAM_APDU [18:14:33]CAPDU: 80 0D 01 02 [18:14:33]Write to MH i2c: E2 08 00 63 A8 80 0D 01 02 00 00 00 00 84 [18:14:33]Write i2c OK [18:14:33]MH_I2C_Read... [18:14:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:14:33]Read from MH i2c: E2 [18:14:33]MH_I2C_Read... [18:14:33]Read from MH i2c: E2 03 00 [18:14:33]MH_I2C_Read... [18:14:33]Read from MH i2c: E2 03 00 63 A8 00 90 00 7F [18:14:33]RAPDU: 90 00 [18:14:33]wFMCommunicate OK [18:14:33]wFMCommunicate request_size=255 [18:14:33]MH_SAM_APDU [18:14:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 13 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 65 00 00 00 F4 03 04 00 21 8E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E0 C0 00 00 35 04 06 00 14 [18:14:33]Write to MH i2c: E2 02 01 64 A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 13 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 65 00 00 00 F4 03 04 00 21 8E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E0 C0 00 00 35 04 06 00 14 00 00 D6 [18:14:33]Write i2c OK [18:14:33]MH_I2C_Read... [18:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:33]Read from MH i2c: E2 [18:14:33]MH_I2C_Read... [18:14:33]Read from MH i2c: E2 03 00 [18:14:33]MH_I2C_Read... [18:14:33]Read from MH i2c: E2 03 00 64 A8 00 90 00 80 [18:14:33]RAPDU: 90 00 [18:14:33]wFMCommunicate OK [18:14:33]wFMCommunicate request_size=10 [18:14:33]MH_SAM_APDU [18:14:33]CAPDU: 80 0D 02 02 05 22 A6 AA 5A 31 [18:14:33]Write to MH i2c: E2 0D 00 65 A8 80 0D 02 02 05 00 22 A6 AA 5A 31 00 00 8E [18:14:33]Write i2c OK [18:14:33]MH_I2C_Read... [18:14:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:14:33]Read from MH i2c: E2 [18:14:33]MH_I2C_Read... [18:14:33]Read from MH i2c: E2 03 00 [18:14:33]MH_I2C_Read... [18:14:33]Read from MH i2c: E2 03 00 65 A8 00 90 00 81 [18:14:33]RAPDU: 90 00 [18:14:33]wFMCommunicate OK [18:14:33]wFMCommunicate request_size=4 [18:14:33]MH_SAM_APDU [18:14:33]CAPDU: 80 0D 03 02 [18:14:33]Write to MH i2c: E2 08 00 66 A8 80 0D 03 02 00 00 00 00 89 [18:14:33]Write i2c OK [18:14:33]MH_I2C_Read... [18:14:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:14:33]Read from MH i2c: E2 [18:14:33]MH_I2C_Read... [18:14:33]Read from MH i2c: E2 0B 00 [18:14:33]MH_I2C_Read... [18:14:33]Read from MH i2c: E2 0B 00 66 A8 00 0C 38 FF 57 C3 A4 D0 87 90 00 E2 [18:14:33]RAPDU: 0C 38 FF 57 C3 A4 D0 87 90 00 [18:14:33]wFMCommunicate OK [18:14:33]SAM_PROTO_SignData done [18:14:33]FM_MakeSignedData done [18:14:33]CreateOFDProtocolMessage [18:14:33]wFMCommunicate request_size=4 [18:14:33]MH_SAM_APDU [18:14:33]CAPDU: 80 11 00 00 [18:14:33]Write to MH i2c: E2 08 00 67 A8 80 11 00 00 00 00 00 00 89 [18:14:33]Write i2c OK [18:14:33]MH_I2C_Read... [18:14:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:34]Read from MH i2c: E2 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: E2 17 00 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: E2 17 00 67 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D6 [18:14:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:14:34]wFMCommunicate OK [18:14:34]CreateOFDProtocolMessage done [18:14:34]OFDSenderStorePacket 49376 [18:14:34]StoreOFDPacket docnum=49376 [18:14:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 94 4C 07 01 55 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 13 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 65 00 00 00 F4 03 04 00 21 8E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E0 C0 00 00 35 04 06 00 14 22 A6 AA 5A 31 0C 38 FF 57 C3 A4 D0 87 [18:14:34]CheckFolder [18:14:34]dirname=/storage/ofd_packets [18:14:34]CheckFolder done [18:14:34]ProducePacketName [18:14:34]name=ofd_packets/00049376 [18:14:34]NVStorageSaveData ofd_packets/00049376 [18:14:34]File name is /storage/ofd_packets/00049376 [18:14:34]Write 301 bytes [18:14:34]NVStorageSaveData done [18:14:34]OFDSenderStorePacket done [18:14:34]KKMCreateOFDPacket done [18:14:34]NVStorageSaveData kkm_last_timestamp [18:14:34]File name is /storage/kkm_last_timestamp [18:14:34]Write 4 bytes [18:14:34]NVStorageSaveData done [18:14:34]ExternCall_PrintAddStr [18:14:34]wPrintStart [18:14:34]Write to MH i2c: 01 00 00 68 A8 10 [18:14:34]Write i2c OK [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: 01 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: 01 07 00 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: 01 07 00 68 A8 00 00 00 00 00 FF 0F 25 [18:14:34]RasterBufferAndPrint [18:14:34]line Счет N : (1)216480 [18:14:34]line ИНН: 02508201610067 [18:14:34]line Контрольно-Кассовый Чек [18:14:34]line ПРОДАЖА [18:14:34]line ТРК (МРК, ГНК) : 12 [18:14:34]line Товар: 2710124130 [18:14:34]line Аи-92-К-5 [18:14:34]line 5.310 * 60.30 [18:14:34]line = 320.19 [18:14:34]line НДС 12% НСП 1% [18:14:34]line > о реализуемом товаре [18:14:34]line ОКРУГЛЕНИЕ: -0.19 [18:14:34]line ИТОГО: 320.00 [18:14:34]line Внесено: 320.00 [18:14:34]line СДАЧА: 0.00 [18:14:34]line НСП 1% : 2.83 [18:14:34]line НДС 12% : 34.00 [18:14:34]line Наличными: 320.00 [18:14:34]line Безнал.: 0.00 [18:14:34]line Место: АЗС № 102 "Партнер Нефть" [18:14:34]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:14:34]line СНО: Общий режим [18:14:34]line Чек 101 31.01.2024 18:14 [18:14:34]line Смена: 247 ФФД: 1.0 [18:14:34]line ЗНМ: 0300000040 [18:14:34]line РНМ: 0000000000092723 [18:14:34]line Версия ККМ: 001 [18:14:34]line ФМ: 0000000000875060 [18:14:34]line ФД: 49376 [18:14:34]line ФПД: 22139057625649 [18:14:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T181457&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49376&fm=22139057625649&tin=02508201610067®Number=0000000000092723&sum=32000 [18:14:34]OFD Sender: Processing packet 49376 [packets to send 12, broken 11] [18:14:34]ProducePacketName [18:14:34]name=ofd_packets/00049376 [18:14:34]OFD Sender: To server: pG, [18:14:34]CommunicateWithHost lk.salyk.kg:30040 [18:14:34]ConnectInit lk.salyk.kg [18:14:34]written 0, free lines is 4095 [18:14:34]Connected sock=10 [18:14:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 94 4C 07 01 55 B7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BE 14 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 13 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 65 00 00 00 F4 03 04 00 21 8E BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E0 C0 00 00 35 04 06 00 14 22 A6 AA 5A 31 0C 38 FF 57 C3 A4 D0 87 [18:14:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 1D 8E 47 00 B7 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 35 30 36 30 10 04 04 00 E0 C0 00 00 F4 03 04 00 13 3A BA 65 B6 04 01 00 00 5D AC 2F 82 C7 30 3E 5C [18:14:34]CommunicateWithHost err = 0 [18:14:34]CheckOFDResponse [18:14:34]1017 (14) - 77093643461234 [18:14:34]1041 (16) - 0000000000875060 [18:14:34]1040 (4) - 49376 [18:14:34]1012 (4) - 31.01.2024 12:16 [18:14:34]1206 (1) - 0 [18:14:34]OFD Sender: Remove packet 49376 [18:14:34]ProducePacketName [18:14:34]name=ofd_packets/00049376 [18:14:34]NVStorageDeleteData [18:14:34]Write to MH i2c: 01 00 00 93 A8 3B [18:14:34]Write i2c OK [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: 01 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: 01 07 00 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: 01 07 00 93 A8 00 00 00 00 00 01 0D 50 [18:14:34]RasterBufferAndPrint [18:14:34]line [18:14:34]line [18:14:34]line [18:14:34]line [18:14:34]line [18:14:34]written 0, free lines is 3338 [18:14:34]MH_Cut [18:14:34]Write to MH i2c: D1 01 00 9A A8 01 14 [18:14:34]Write i2c OK [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: D1 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: D1 01 00 [18:14:34]MH_I2C_Read... [18:14:34]Read from MH i2c: D1 01 00 9A A8 00 13 [18:14:34]Write to MH i2c: 01 00 00 9B A8 43 [18:14:34]Write i2c OK [18:14:34]MH_I2C_Read... [18:14:35]OFD Sender: No OFD packet to send [18:14:35]*** Cut start [18:14:35]*** Partial cut [18:14:35]*** CUTSNS_PIN = 1 [18:14:35]*** CUTSNS_PIN = 0 [18:14:35]*** Brake cut motor [18:14:36]Read from MH i2c: 01 [18:14:36]MH_I2C_Read... [18:14:36]*** Stop cut motor [18:14:36]*** Cut end [18:14:36]Read from MH i2c: 01 07 00 [18:14:36]MH_I2C_Read... [18:14:36]Read from MH i2c: 01 07 00 9B A8 00 00 00 00 00 FF 0F 58 [18:14:36]process_action close_receipt done [18:14:36]requested_data is exist [18:14:36]produce_requested_data [18:14:36]requested_item fm.sn is exist - process it [18:14:36]wFMCommunicate request_size=4 [18:14:36]MH_SAM_APDU [18:14:36]CAPDU: 80 11 00 00 [18:14:36]Write to MH i2c: E2 08 00 9C A8 80 11 00 00 00 00 00 00 BE [18:14:36]Write i2c OK [18:14:36]MH_I2C_Read... [18:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:36]Read from MH i2c: E2 [18:14:36]MH_I2C_Read... [18:14:36]Read from MH i2c: E2 17 00 [18:14:36]MH_I2C_Read... [18:14:36]Read from MH i2c: E2 17 00 9C A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0B [18:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:14:36]wFMCommunicate OK [18:14:36]requested_item fd.num is exist - process it [18:14:36]SAM_PROTO_GetFieldsCounters [18:14:36]wFMCommunicate request_size=4 [18:14:36]MH_SAM_APDU [18:14:36]CAPDU: 80 13 00 00 [18:14:36]Write to MH i2c: E2 08 00 9D A8 80 13 00 00 00 00 00 00 C1 [18:14:36]Write i2c OK [18:14:36]MH_I2C_Read... [18:14:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:36]Read from MH i2c: E2 [18:14:36]MH_I2C_Read... [18:14:36]Read from MH i2c: E2 62 00 [18:14:36]MH_I2C_Read... [18:14:36]Read from MH i2c: E2 62 00 9D A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E0 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [18:14: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E0 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:14:36]wFMCommunicate OK [18:14:36]SAM_PROTO_GetFieldsCounters done [18:14:36]requested_item shift.num is exist - process it [18:14:36]requested_item shift.opened is exist - process it [18:14:36]req_shift_opened [18:14:36]FM_GetShiftState [18:14:36]SAM_PROTO_GetShiftState [18:14:36]wFMCommunicate request_size=4 [18:14:36]MH_SAM_APDU [18:14:36]CAPDU: 80 13 01 00 [18:14:36]Write to MH i2c: E2 08 00 9E A8 80 13 01 00 00 00 00 00 C3 [18:14:36]Write i2c OK [18:14:36]MH_I2C_Read... [18:14:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:36]Read from MH i2c: E2 [18:14:36]MH_I2C_Read... [18:14:36]Read from MH i2c: E2 0E 00 [18:14:36]MH_I2C_Read... [18:14:36]Read from MH i2c: E2 0E 00 9E A8 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 19 [18:14:36]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [18:14:36]wFMCommunicate OK [18:14:36]SAM_PROTO_GetShiftState done [18:14:36]FM_GetShiftState done [18:14:36]req_shift_opened done [18:14:36]requested_item shift.open_date is exist - process it [18:14:36]req_shift_open_date [18:14:36]req_shift_open_date done [18:14:36]produce_requested_data done [18:14:36]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49376,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [18:14:36]process_action_free close_receipt [18:14:36]json_value_free [18:14:36]json_value_free done [18:14:36]process_json_proto returns [18:14:36]Send response to host [18:14:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49376,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [18:14:36]free response buf [18:14:36]execute_script done [18:14:36]execute_script returns [18:14:36]free content buf [18:14:36]Sock 9.Close socket [18:14:36]Sock 9.Thread stoped [18:14:40]OFD Sender: No OFD packet to send [18:14:45]OFD Sender: No OFD packet to send [18:14:50]OFD Sender: No OFD packet to send [18:14:55]OFD Sender: No OFD packet to send [18:15:00]OFD Sender: No OFD packet to send [18:15:05]OFD Sender: No OFD packet to send [18:15:10]OFD Sender: No OFD packet to send [18:15:15]OFD Sender: No OFD packet to send [18:15:20]OFD Sender: No OFD packet to send [18:15:25]OFD Sender: No OFD packet to send [18:15:30]OFD Sender: No OFD packet to send [18:15:35]OFD Sender: No OFD packet to send [18:15:40]OFD Sender: No OFD packet to send [18:15:45]OFD Sender: No OFD packet to send [18:15:50]OFD Sender: No OFD packet to send [18:15:55]OFD Sender: No OFD packet to send [18:16:00]OFD Sender: No OFD packet to send [18:16:05]OFD Sender: No OFD packet to send [18:16:10]OFD Sender: No OFD packet to send [18:16:15]OFD Sender: No OFD packet to send [18:16:20]OFD Sender: No OFD packet to send [18:16:25]OFD Sender: No OFD packet to send [18:16:30]OFD Sender: No OFD packet to send [18:16:35]OFD Sender: No OFD packet to send [18:16:40]OFD Sender: No OFD packet to send [18:16:45]OFD Sender: No OFD packet to send [18:16:50]OFD Sender: No OFD packet to send [18:16:55]OFD Sender: No OFD packet to send [18:17:00]OFD Sender: No OFD packet to send [18:17:05]OFD Sender: No OFD packet to send [18:17:10]OFD Sender: No OFD packet to send [18:17:15]OFD Sender: No OFD packet to send [18:17:20]OFD Sender: No OFD packet to send [18:17:25]OFD Sender: No OFD packet to send [18:17:30]OFD Sender: No OFD packet to send [18:17:35]OFD Sender: No OFD packet to send [18:17:40]OFD Sender: No OFD packet to send [18:17:45]OFD Sender: No OFD packet to send [18:17:50]OFD Sender: No OFD packet to send [18:17:55]OFD Sender: No OFD packet to send [18:18:00]OFD Sender: No OFD packet to send [18:18:05]OFD Sender: No OFD packet to send [18:18:10]OFD Sender: No OFD packet to send [18:18:15]OFD Sender: No OFD packet to send [18:18:20]OFD Sender: No OFD packet to send [18:18:25]OFD Sender: No OFD packet to send [18:18:30]OFD Sender: No OFD packet to send [18:18:35]OFD Sender: No OFD packet to send [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:45]OFD Sender: No OFD packet to send [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [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:39]accept exits with 7 [18:28:39]New connection [18:28:39]New thread 3066813796 created [18:28:39]Thread 3066670436 joined [18:28:39]Waiting for new connection... [18:28:39] Sock 7.Parse request [18:28:39]Sock 7.Check first char [18:28:39]Sock 7.First char is OK [18:28:39]request: POST /json_proto HTTP/1.0 [18:28:39]Method: POST [18:28:39]URL: /json_proto [18:28:39]Method is POST - this is cgi request [18:28:39]url: /json_proto [18:28:39]query_string will be loaded in cgi processing [18:28:39]execute_cgi json_proto POST (null) [18:28:39]execute_cgi path=json_proto method=POST [18:28:39]POST find Content-Length [18:28:39]Host: 172.17.56.67:8080 [18:28:39]Content-Length: 677 [18:28:39]Content-Type: application/json [18:28:39] [18:28:39]POST finish read [18:28:39]Found Content-Length = 677 [18:28:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "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:28:39]execute_script... [18:28: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)216481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 6.640, "sum" : 400.39, "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:28:39]POST & json_proto [18:28:39]process_json_proto [18:28:39]json parsed OK: [18:28:39]protocol is kg_v1.0 [18:28:39]action value=close_receipt [18:28:39]process_action close_receipt [18:28:39]cmd_close_receipt [18:28:39]MH_GetDate [18:28:39]Write to MH i2c: F0 00 00 9F A8 36 [18:28:39]Write i2c OK [18:28:39]MH_I2C_Read... [18:28:39]Read from MH i2c: F0 [18:28:39]MH_I2C_Read... [18:28:39]Read from MH i2c: F0 09 00 [18:28:39]MH_I2C_Read... [18:28:39]Read from MH i2c: F0 09 00 9F A8 00 70 91 BA 65 26 5D 9E 65 E5 [18:28:39]GetLastDocTimeStamp 1706724897 [18:28:39]current date 1706725744 [18:28:39]FM_GetShiftState [18:28:39]SAM_PROTO_GetShiftState [18:28:39]wFMCommunicate request_size=4 [18:28:39]MH_SAM_APDU [18:28:39]CAPDU: 80 13 01 00 [18:28:39]Write to MH i2c: E2 08 00 A0 A8 80 13 01 00 00 00 00 00 C5 [18:28:39]Write i2c OK [18:28:39]MH_I2C_Read... [18:28:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:39]Read from MH i2c: E2 [18:28:39]MH_I2C_Read... [18:28:39]Read from MH i2c: E2 0E 00 [18:28:39]MH_I2C_Read... [18:28:39]Read from MH i2c: E2 0E 00 A0 A8 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 1B [18:28:39]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [18:28:39]wFMCommunicate OK [18:28:39]SAM_PROTO_GetShiftState done [18:28:39]FM_GetShiftState done [18:28:39]opened in 1706659486 [18:28:39]opened+sec_in_day 1706745886 [18:28:39]quantity*price = 40039 [18:28:39]sum+1 = 40040 [18:28:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 102 31.01.2024 18:29 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49377 ФПД: 131573927763558 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T182904&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49377&fm=131573927763558&tin=02508201610067®Number=0000000000092723&sum=40000 [18:28:40]StoreToDocumentArchive [18:28:40]shift 247 fd 49377 [18:28:40]save to /storage/0247/doc_00049377 [18:28:40]save last doc name /storage/0247/doc_00049377 to /storage/kkm_last_doc_name [18:28:40]save OK [18:28:40]Clear old archive folders... [18:28:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:40]tlvbuf is 0152B7A0 [18:28:40]SAM_PROTO_ClearQueue [18:28:40]wFMCommunicate request_size=4 [18:28:40]MH_SAM_APDU [18:28:40]CAPDU: 80 09 00 00 [18:28:40]Write to MH i2c: E2 08 00 AD A8 80 09 00 00 00 00 00 00 C7 [18:28:40]Write i2c OK [18:28:40]MH_I2C_Read... [18:28:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:40]Read from MH i2c: E2 [18:28:40]MH_I2C_Read... [18:28:40]Read from MH i2c: E2 03 00 [18:28:40]MH_I2C_Read... [18:28:40]Read from MH i2c: E2 03 00 AD A8 00 90 00 C9 [18:28:40]RAPDU: 90 00 [18:28:40]wFMCommunicate OK [18:28:40]SAM_PROTO_ClearQueue done [18:28:40]KKMCreateOFDPacket [18:28:40]OFDProtocolAddRootSTLVToBuf [18:28:40]FM_MakeSignedData [18:28:40]FM_MakeSignedData [18:28:40]SAM_PROTO_SignData [18:28:40]wFMCommunicate request_size=4 [18:28:40]MH_SAM_APDU [18:28:40]CAPDU: 80 0D 01 02 [18:28:40]Write to MH i2c: E2 08 00 AE A8 80 0D 01 02 00 00 00 00 CF [18:28:40]Write i2c OK [18:28:40]MH_I2C_Read... [18:28:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:40]Read from MH i2c: E2 [18:28:40]MH_I2C_Read... [18:28:40]Read from MH i2c: E2 03 00 [18:28:40]MH_I2C_Read... [18:28:40]Read from MH i2c: E2 03 00 AE A8 00 90 00 CA [18:28:40]RAPDU: 90 00 [18:28:40]wFMCommunicate OK [18:28:40]wFMCommunicate request_size=255 [18:28:40]MH_SAM_APDU [18:28:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 66 00 00 00 F4 03 04 00 70 91 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E1 C0 00 00 35 04 06 00 77 [18:28:40]Write to MH i2c: E2 02 01 AF A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 66 00 00 00 F4 03 04 00 70 91 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E1 C0 00 00 35 04 06 00 77 00 00 DE [18:28:40]Write i2c OK [18:28:40]MH_I2C_Read... [18:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:40]Read from MH i2c: E2 [18:28:40]MH_I2C_Read... [18:28:40]Read from MH i2c: E2 03 00 [18:28:40]MH_I2C_Read... [18:28:40]Read from MH i2c: E2 03 00 AF A8 00 90 00 CB [18:28:40]RAPDU: 90 00 [18:28:40]wFMCommunicate OK [18:28:40]wFMCommunicate request_size=10 [18:28:40]MH_SAM_APDU [18:28:40]CAPDU: 80 0D 02 02 05 AA 71 39 DE 66 [18:28:40]Write to MH i2c: E2 0D 00 B0 A8 80 0D 02 02 05 00 AA 71 39 DE 66 00 00 74 [18:28:40]Write i2c OK [18:28:40]MH_I2C_Read... [18:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:40]Read from MH i2c: E2 [18:28:40]MH_I2C_Read... [18:28:40]Read from MH i2c: E2 03 00 [18:28:40]MH_I2C_Read... [18:28:40]Read from MH i2c: E2 03 00 B0 A8 00 90 00 CC [18:28:40]RAPDU: 90 00 [18:28:40]wFMCommunicate OK [18:28:40]wFMCommunicate request_size=4 [18:28:40]MH_SAM_APDU [18:28:40]CAPDU: 80 0D 03 02 [18:28:40]Write to MH i2c: E2 08 00 B1 A8 80 0D 03 02 00 00 00 00 D4 [18:28:40]Write i2c OK [18:28:40]MH_I2C_Read... [18:28:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:40]Read from MH i2c: E2 [18:28:40]MH_I2C_Read... [18:28:40]Read from MH i2c: E2 0B 00 [18:28:40]MH_I2C_Read... [18:28:40]Read from MH i2c: E2 0B 00 B1 A8 00 24 9A 20 4D DB D5 E4 0E 90 00 A2 [18:28:40]RAPDU: 24 9A 20 4D DB D5 E4 0E 90 00 [18:28:40]wFMCommunicate OK [18:28:40]SAM_PROTO_SignData done [18:28:40]FM_MakeSignedData done [18:28:40]CreateOFDProtocolMessage [18:28:40]wFMCommunicate request_size=4 [18:28:40]MH_SAM_APDU [18:28:40]CAPDU: 80 11 00 00 [18:28:40]Write to MH i2c: E2 08 00 B2 A8 80 11 00 00 00 00 00 00 D4 [18:28:40]Write i2c OK [18:28:40]MH_I2C_Read... [18:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:40]Read from MH i2c: E2 [18:28:40]MH_I2C_Read... [18:28:40]Read from MH i2c: E2 17 00 [18:28:40]MH_I2C_Read... [18:28:40]Read from MH i2c: E2 17 00 B2 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 21 [18:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:28:40]wFMCommunicate OK [18:28:40]CreateOFDProtocolMessage done [18:28:40]OFDSenderStorePacket 49377 [18:28:40]StoreOFDPacket docnum=49377 [18:28:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 07 F7 07 01 DF 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 66 00 00 00 F4 03 04 00 70 91 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E1 C0 00 00 35 04 06 00 77 AA 71 39 DE 66 24 9A 20 4D DB D5 E4 0E [18:28:40]CheckFolder [18:28:40]dirname=/storage/ofd_packets [18:28:40]CheckFolder done [18:28:40]ProducePacketName [18:28:40]name=ofd_packets/00049377 [18:28:40]NVStorageSaveData ofd_packets/00049377 [18:28:40]File name is /storage/ofd_packets/00049377 [18:28:40]Write 301 bytes [18:28:40]NVStorageSaveData done [18:28:40]OFDSenderStorePacket done [18:28:40]KKMCreateOFDPacket done [18:28:40]NVStorageSaveData kkm_last_timestamp [18:28:40]File name is /storage/kkm_last_timestamp [18:28:40]Write 4 bytes [18:28:40]NVStorageSaveData done [18:28:40]ExternCall_PrintAddStr [18:28:40]wPrintStart [18:28:40]Write to MH i2c: 01 00 00 B3 A8 5B [18:28:40]Write i2c OK [18:28:40]MH_I2C_Read... [18:28:40]Read from MH i2c: 01 [18:28:40]MH_I2C_Read... [18:28:40]Read from MH i2c: 01 07 00 [18:28:40]MH_I2C_Read... [18:28:40]Read from MH i2c: 01 07 00 B3 A8 00 00 00 00 00 FF 0F 70 [18:28:40]RasterBufferAndPrint [18:28:40]line Счет N : (1)216481 [18:28:40]line ИНН: 02508201610067 [18:28:40]line Контрольно-Кассовый Чек [18:28:40]line ПРОДАЖА [18:28:40]line ТРК (МРК, ГНК) : 12 [18:28:40]line Товар: 2710124130 [18:28:40]line Аи-92-К-5 [18:28:40]line 6.640 * 60.30 [18:28:40]line = 400.39 [18:28:40]line НДС 12% НСП 1% [18:28:40]line > о реализуемом товаре [18:28:40]line ОКРУГЛЕНИЕ: -0.39 [18:28:40]line ИТОГО: 400.00 [18:28:40]line Внесено: 400.00 [18:28:40]line СДАЧА: 0.00 [18:28:40]line НСП 1% : 3.54 [18:28:40]line НДС 12% : 42.52 [18:28:40]line Наличными: 400.00 [18:28:40]line Безнал.: 0.00 [18:28:40]line Место: АЗС № 102 "Партнер Нефть" [18:28:40]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:28:40]line СНО: Общий режим [18:28:40]line Чек 102 31.01.2024 18:29 [18:28:40]line Смена: 247 ФФД: 1.0 [18:28:40]line ЗНМ: 0300000040 [18:28:40]line РНМ: 0000000000092723 [18:28:40]line Версия ККМ: 001 [18:28:40]line ФМ: 0000000000875060 [18:28:40]line ФД: 49377 [18:28:40]line ФПД: 131573927763558 [18:28:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T182904&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49377&fm=131573927763558&tin=02508201610067®Number=0000000000092723&sum=40000 [18:28:41]OFD Sender: Processing packet 49377 [packets to send 12, broken 11] [18:28:41]ProducePacketName [18:28:41]name=ofd_packets/00049377 [18:28:41]OFD Sender: To server: pG, [18:28:41]CommunicateWithHost lk.salyk.kg:30040 [18:28:41]ConnectInit lk.salyk.kg [18:28:41]written 0, free lines is 4095 [18:28:41]Connected sock=10 [18:28:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 07 F7 07 01 DF 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 19 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 67 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 66 00 00 00 F4 03 04 00 70 91 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E1 C0 00 00 35 04 06 00 77 AA 71 39 DE 66 24 9A 20 4D DB D5 E4 0E [18:28:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 E4 4D 47 00 AB A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E1 C0 00 00 F4 03 04 00 62 3D BA 65 B6 04 01 00 00 3F 2D 50 B2 F8 80 87 10 [18:28:41]CommunicateWithHost err = 0 [18:28:41]CheckOFDResponse [18:28:41]1017 (14) - 77093643461234 [18:28:41]1041 (16) - 0000000000875060 [18:28:41]1040 (4) - 49377 [18:28:41]1012 (4) - 31.01.2024 12:30 [18:28:41]1206 (1) - 0 [18:28:41]OFD Sender: Remove packet 49377 [18:28:41]ProducePacketName [18:28:41]name=ofd_packets/00049377 [18:28:41]NVStorageDeleteData [18:28:41]Write to MH i2c: 01 00 00 DE A8 86 [18:28:41]Write i2c OK [18:28:41]MH_I2C_Read... [18:28:41]Read from MH i2c: 01 [18:28:41]MH_I2C_Read... [18:28:41]Read from MH i2c: 01 07 00 [18:28:41]MH_I2C_Read... [18:28:41]Read from MH i2c: 01 07 00 DE A8 00 00 00 00 00 05 0D 9F [18:28:41]RasterBufferAndPrint [18:28:41]line [18:28:41]line [18:28:41]line [18:28:41]line [18:28:41]line [18:28:41]written 0, free lines is 3340 [18:28:41]MH_Cut [18:28:41]Write to MH i2c: D1 01 00 E5 A8 01 5F [18:28:41]Write i2c OK [18:28:41]MH_I2C_Read... [18:28:41]Read from MH i2c: D1 [18:28:41]MH_I2C_Read... [18:28:41]Read from MH i2c: D1 01 00 [18:28:41]MH_I2C_Read... [18:28:41]Read from MH i2c: D1 01 00 E5 A8 00 5E [18:28:41]Write to MH i2c: 01 00 00 E6 A8 8E [18:28:41]Write i2c OK [18:28:41]MH_I2C_Read... [18:28:42]OFD Sender: No OFD packet to send [18:28:42]*** Cut start [18:28:42]*** Partial cut [18:28:42]*** CUTSNS_PIN = 1 [18:28:42]*** CUTSNS_PIN = 0 [18:28:42]*** Brake cut motor [18:28:42]Read from MH i2c: 01 [18:28:42]MH_I2C_Read... [18:28:42]*** Stop cut motor [18:28:42]*** Cut end [18:28:42]Read from MH i2c: 01 07 00 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: 01 07 00 E6 A8 00 00 00 00 00 FF 0F A3 [18:28:42]process_action close_receipt done [18:28:42]requested_data is exist [18:28:42]produce_requested_data [18:28:42]requested_item fm.sn is exist - process it [18:28:42]wFMCommunicate request_size=4 [18:28:42]MH_SAM_APDU [18:28:42]CAPDU: 80 11 00 00 [18:28:42]Write to MH i2c: E2 08 00 E7 A8 80 11 00 00 00 00 00 00 09 [18:28:42]Write i2c OK [18:28:42]MH_I2C_Read... [18:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:42]Read from MH i2c: E2 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: E2 17 00 [18:28:42]MH_I2C_Read... [18:28:42]Read from MH i2c: E2 17 00 E7 A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 56 [18:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:28:42]wFMCommunicate OK [18:28:42]requested_item fd.num is exist - process it [18:28:42]SAM_PROTO_GetFieldsCounters [18:28:42]wFMCommunicate request_size=4 [18:28:42]MH_SAM_APDU [18:28:42]CAPDU: 80 13 00 00 [18:28:42]Write to MH i2c: E2 08 00 E8 A8 80 13 00 00 00 00 00 00 0C [18:28:42]Write i2c OK [18:28:42]MH_I2C_Read... [18:28:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:43]Read from MH i2c: E2 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 62 00 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 62 00 E8 A8 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E1 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [18:28: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E1 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:43]wFMCommunicate OK [18:28:43]SAM_PROTO_GetFieldsCounters done [18:28:43]requested_item shift.num is exist - process it [18:28:43]requested_item shift.opened is exist - process it [18:28:43]req_shift_opened [18:28:43]FM_GetShiftState [18:28:43]SAM_PROTO_GetShiftState [18:28:43]wFMCommunicate request_size=4 [18:28:43]MH_SAM_APDU [18:28:43]CAPDU: 80 13 01 00 [18:28:43]Write to MH i2c: E2 08 00 E9 A8 80 13 01 00 00 00 00 00 0E [18:28:43]Write i2c OK [18:28:43]MH_I2C_Read... [18:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:43]Read from MH i2c: E2 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 0E 00 [18:28:43]MH_I2C_Read... [18:28:43]Read from MH i2c: E2 0E 00 E9 A8 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 64 [18:28:43]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [18:28:43]wFMCommunicate OK [18:28:43]SAM_PROTO_GetShiftState done [18:28:43]FM_GetShiftState done [18:28:43]req_shift_opened done [18:28:43]requested_item shift.open_date is exist - process it [18:28:43]req_shift_open_date [18:28:43]req_shift_open_date done [18:28:43]produce_requested_data done [18:28:43]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49377,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [18:28:43]process_action_free close_receipt [18:28:43]json_value_free [18:28:43]json_value_free done [18:28:43]process_json_proto returns [18:28:43]Send response to host [18:28:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49377,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [18:28:43]free response buf [18:28:43]execute_script done [18:28:43]execute_script returns [18:28:43]free content buf [18:28:43]Sock 7.Close socket [18:28:43]Sock 7.Thread stoped [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:17]OFD Sender: No OFD packet to send [18:29:22]OFD Sender: No OFD packet to send [18:29:27]OFD Sender: No OFD packet to send [18:29:32]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:39]accept exits with 9 [18:30:39]New connection [18:30:39]New thread 3066670436 created [18:30:39]Thread 3066813796 joined [18:30:39]Waiting for new connection... [18:30:39] Sock 9.Parse request [18:30:39]Sock 9.Check first char [18:30:39]Sock 9.First char is OK [18:30:39]request: POST /json_proto HTTP/1.0 [18:30:39]Method: POST [18:30:39]URL: /json_proto [18:30:39]Method is POST - this is cgi request [18:30:39]url: /json_proto [18:30:39]query_string will be loaded in cgi processing [18:30:39]execute_cgi json_proto POST (null) [18:30:39]execute_cgi path=json_proto method=POST [18:30:39]POST find Content-Length [18:30:39]Host: 172.17.56.67:8080 [18:30:39]Content-Length: 682 [18:30:39]Content-Type: application/json [18:30:39] [18:30:39]POST finish read [18:30:39]Found Content-Length = 682 [18:30:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:39]execute_script... [18:30: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)216482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 60.30, "quantity" : 16.590, "sum" : 1000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:30:39]POST & json_proto [18:30:39]process_json_proto [18:30:39]json parsed OK: [18:30:39]protocol is kg_v1.0 [18:30:39]action value=close_receipt [18:30:39]process_action close_receipt [18:30:39]cmd_close_receipt [18:30:39]MH_GetDate [18:30:39]Write to MH i2c: F0 00 00 EA A8 81 [18:30:39]Write i2c OK [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: F0 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: F0 09 00 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: F0 09 00 EA A8 00 E8 91 BA 65 26 5D 9E 65 A8 [18:30:39]GetLastDocTimeStamp 1706725744 [18:30:39]current date 1706725864 [18:30:39]FM_GetShiftState [18:30:39]SAM_PROTO_GetShiftState [18:30:39]wFMCommunicate request_size=4 [18:30:39]MH_SAM_APDU [18:30:39]CAPDU: 80 13 01 00 [18:30:39]Write to MH i2c: E2 08 00 EB A8 80 13 01 00 00 00 00 00 10 [18:30:39]Write i2c OK [18:30:39]MH_I2C_Read... [18:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:39]Read from MH i2c: E2 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 0E 00 [18:30:39]MH_I2C_Read... [18:30:39]Read from MH i2c: E2 0E 00 EB A8 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 66 [18:30:39]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [18:30:39]wFMCommunicate OK [18:30:39]SAM_PROTO_GetShiftState done [18:30:39]FM_GetShiftState done [18:30:39]opened in 1706659486 [18:30:39]opened+sec_in_day 1706745886 [18:30:39]quantity*price = 100037 [18:30:39]sum+1 = 100039 [18:30:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.23 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 102 "Партнер Нефть" Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СНО: Общий режим Чек 103 31.01.2024 18:31 Смена: 247 ФФД: 1.0 ЗНМ: 0300000040 РНМ: 0000000000092723 Версия ККМ: 001 ФМ: 0000000000875060 ФД: 49378 ФПД: 176654437591120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T183104&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49378&fm=176654437591120&tin=02508201610067®Number=0000000000092723&sum=100000 [18:30:40]StoreToDocumentArchive [18:30:40]shift 247 fd 49378 [18:30:40]save to /storage/0247/doc_00049378 [18:30:40]save last doc name /storage/0247/doc_00049378 to /storage/kkm_last_doc_name [18:30:40]save OK [18:30:40]Clear old archive folders... [18:30:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:30:40]tlvbuf is 01284020 [18:30:40]SAM_PROTO_ClearQueue [18:30:40]wFMCommunicate request_size=4 [18:30:40]MH_SAM_APDU [18:30:40]CAPDU: 80 09 00 00 [18:30:40]Write to MH i2c: E2 08 00 F8 A8 80 09 00 00 00 00 00 00 12 [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:40]Read from MH i2c: E2 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 F8 A8 00 90 00 14 [18:30:40]RAPDU: 90 00 [18:30:40]wFMCommunicate OK [18:30:40]SAM_PROTO_ClearQueue done [18:30:40]KKMCreateOFDPacket [18:30:40]OFDProtocolAddRootSTLVToBuf [18:30:40]FM_MakeSignedData [18:30:40]FM_MakeSignedData [18:30:40]SAM_PROTO_SignData [18:30:40]wFMCommunicate request_size=4 [18:30:40]MH_SAM_APDU [18:30:40]CAPDU: 80 0D 01 02 [18:30:40]Write to MH i2c: E2 08 00 F9 A8 80 0D 01 02 00 00 00 00 1A [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:40]Read from MH i2c: E2 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 F9 A8 00 90 00 15 [18:30:40]RAPDU: 90 00 [18:30:40]wFMCommunicate OK [18:30:40]wFMCommunicate request_size=255 [18:30:40]MH_SAM_APDU [18:30:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 E8 91 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E2 C0 00 00 35 04 06 00 A0 [18:30:40]Write to MH i2c: E2 02 01 FA A8 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 E8 91 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E2 C0 00 00 35 04 06 00 A0 00 00 C2 [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:40]Read from MH i2c: E2 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 FA A8 00 90 00 16 [18:30:40]RAPDU: 90 00 [18:30:40]wFMCommunicate OK [18:30:40]wFMCommunicate request_size=10 [18:30:40]MH_SAM_APDU [18:30:40]CAPDU: 80 0D 02 02 05 AA 91 00 28 50 [18:30:40]Write to MH i2c: E2 0D 00 FB A8 80 0D 02 02 05 00 AA 91 00 28 50 00 00 DA [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:40]Read from MH i2c: E2 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 03 00 FB A8 00 90 00 17 [18:30:40]RAPDU: 90 00 [18:30:40]wFMCommunicate OK [18:30:40]wFMCommunicate request_size=4 [18:30:40]MH_SAM_APDU [18:30:40]CAPDU: 80 0D 03 02 [18:30:40]Write to MH i2c: E2 08 00 FC A8 80 0D 03 02 00 00 00 00 1F [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:40]Read from MH i2c: E2 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 0B 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 0B 00 FC A8 00 2C 98 90 93 5B 99 2F 60 90 00 8A [18:30:40]RAPDU: 2C 98 90 93 5B 99 2F 60 90 00 [18:30:40]wFMCommunicate OK [18:30:40]SAM_PROTO_SignData done [18:30:40]FM_MakeSignedData done [18:30:40]CreateOFDProtocolMessage [18:30:40]wFMCommunicate request_size=4 [18:30:40]MH_SAM_APDU [18:30:40]CAPDU: 80 11 00 00 [18:30:40]Write to MH i2c: E2 08 00 FD A8 80 11 00 00 00 00 00 00 1F [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:40]Read from MH i2c: E2 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 17 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: E2 17 00 FD A8 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6C [18:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:30:40]wFMCommunicate OK [18:30:40]CreateOFDProtocolMessage done [18:30:40]OFDSenderStorePacket 49378 [18:30:40]StoreOFDPacket docnum=49378 [18:30:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 0E 25 07 01 D7 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 E8 91 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E2 C0 00 00 35 04 06 00 A0 AA 91 00 28 50 2C 98 90 93 5B 99 2F 60 [18:30:40]CheckFolder [18:30:40]dirname=/storage/ofd_packets [18:30:40]CheckFolder done [18:30:40]ProducePacketName [18:30:40]name=ofd_packets/00049378 [18:30:40]NVStorageSaveData ofd_packets/00049378 [18:30:40]File name is /storage/ofd_packets/00049378 [18:30:40]Write 301 bytes [18:30:40]NVStorageSaveData done [18:30:40]OFDSenderStorePacket done [18:30:40]KKMCreateOFDPacket done [18:30:40]NVStorageSaveData kkm_last_timestamp [18:30:40]File name is /storage/kkm_last_timestamp [18:30:40]Write 4 bytes [18:30:40]NVStorageSaveData done [18:30:40]ExternCall_PrintAddStr [18:30:40]wPrintStart [18:30:40]Write to MH i2c: 01 00 00 FE A8 A6 [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: 01 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: 01 07 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: 01 07 00 FE A8 00 00 00 00 00 FF 0F BB [18:30:40]RasterBufferAndPrint [18:30:40]line Счет N : (1)216482 [18:30:40]line ИНН: 02508201610067 [18:30:40]line Контрольно-Кассовый Чек [18:30:40]line ПРОДАЖА [18:30:40]line ТРК (МРК, ГНК) : 22 [18:30:40]line Товар: 2710124130 [18:30:40]line Аи-92-К-5 [18:30:40]line 16.590 * 60.30 [18:30:40]line = 1000.38 [18:30:40]line НДС 12% НСП 1% [18:30:40]line > о реализуемом товаре [18:30:40]line ОКРУГЛЕНИЕ: -0.38 [18:30:40]line ИТОГО: 1000.00 [18:30:40]line Внесено: 1000.00 [18:30:40]line СДАЧА: 0.00 [18:30:40]line НСП 1% : 8.85 [18:30:40]line НДС 12% : 106.23 [18:30:40]line Наличными: 1000.00 [18:30:40]line Безнал.: 0.00 [18:30:40]line Место: АЗС № 102 "Партнер Нефть" [18:30:40]line Адрес: 720001, с. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:30:40]line СНО: Общий режим [18:30:40]line Чек 103 31.01.2024 18:31 [18:30:40]line Смена: 247 ФФД: 1.0 [18:30:40]line ЗНМ: 0300000040 [18:30:40]line РНМ: 0000000000092723 [18:30:40]line Версия ККМ: 001 [18:30:40]line ФМ: 0000000000875060 [18:30:40]line ФД: 49378 [18:30:40]line ФПД: 176654437591120 [18:30:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240131T183104&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49378&fm=176654437591120&tin=02508201610067®Number=0000000000092723&sum=100000 [18:30:41]OFD Sender: Processing packet 49378 [packets to send 12, broken 11] [18:30:41]ProducePacketName [18:30:41]name=ofd_packets/00049378 [18:30:41]OFD Sender: To server: pG, [18:30:41]CommunicateWithHost lk.salyk.kg:30040 [18:30:41]ConnectInit lk.salyk.kg [18:30:41]written 0, free lines is 4095 [18:30:41]Connected sock=10 [18:30:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 0E 25 07 01 D7 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CE 40 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 C6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 29 00 00 00 00 07 04 06 00 A0 86 01 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 E8 91 BA 65 0E 04 04 00 F7 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E2 C0 00 00 35 04 06 00 A0 AA 91 00 28 50 2C 98 90 93 5B 99 2F 60 [18:30:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 08 B9 47 00 58 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E2 C0 00 00 F4 03 04 00 DA 3D BA 65 B6 04 01 00 00 5B 17 D8 72 B0 5A A0 FD [18:30:41]CommunicateWithHost err = 0 [18:30:41]CheckOFDResponse [18:30:41]1017 (14) - 77093643461234 [18:30:41]1041 (16) - 0000000000875060 [18:30:41]1040 (4) - 49378 [18:30:41]1012 (4) - 31.01.2024 12:32 [18:30:41]1206 (1) - 0 [18:30:41]OFD Sender: Remove packet 49378 [18:30:41]ProducePacketName [18:30:41]name=ofd_packets/00049378 [18:30:41]NVStorageDeleteData [18:30:41]Write to MH i2c: 01 00 00 29 A9 D2 [18:30:41]Write i2c OK [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: 01 [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: 01 07 00 [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: 01 07 00 29 A9 00 00 00 00 00 05 0D EB [18:30:41]RasterBufferAndPrint [18:30:41]line [18:30:41]line [18:30:41]line [18:30:41]line [18:30:41]line [18:30:41]written 0, free lines is 3340 [18:30:41]MH_Cut [18:30:41]Write to MH i2c: D1 01 00 30 A9 01 AB [18:30:41]Write i2c OK [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: D1 [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: D1 01 00 [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: D1 01 00 30 A9 00 AA [18:30:41]Write to MH i2c: 01 00 00 31 A9 DA [18:30:41]Write i2c OK [18:30:41]MH_I2C_Read... [18:30:42]OFD Sender: No OFD packet to send [18:30:42]*** Cut start [18:30:42]*** Partial cut [18:30:42]*** CUTSNS_PIN = 1 [18:30:42]*** CUTSNS_PIN = 0 [18:30:42]*** Brake cut motor [18:30:42]Read from MH i2c: 01 [18:30:43]MH_I2C_Read... [18:30:43]*** Stop cut motor [18:30:43]*** Cut end [18:30:43]Read from MH i2c: 01 07 00 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: 01 07 00 31 A9 00 00 00 00 00 FF 0F EF [18:30:43]process_action close_receipt done [18:30:43]requested_data is exist [18:30:43]produce_requested_data [18:30:43]requested_item fm.sn is exist - process it [18:30:43]wFMCommunicate request_size=4 [18:30:43]MH_SAM_APDU [18:30:43]CAPDU: 80 11 00 00 [18:30:43]Write to MH i2c: E2 08 00 32 A9 80 11 00 00 00 00 00 00 55 [18:30:43]Write i2c OK [18:30:43]MH_I2C_Read... [18:30:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:43]Read from MH i2c: E2 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 17 00 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 17 00 32 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A2 [18:30:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:30:43]wFMCommunicate OK [18:30:43]requested_item fd.num is exist - process it [18:30:43]SAM_PROTO_GetFieldsCounters [18:30:43]wFMCommunicate request_size=4 [18:30:43]MH_SAM_APDU [18:30:43]CAPDU: 80 13 00 00 [18:30:43]Write to MH i2c: E2 08 00 33 A9 80 13 00 00 00 00 00 00 58 [18:30:43]Write i2c OK [18:30:43]MH_I2C_Read... [18:30:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:43]Read from MH i2c: E2 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 62 00 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 62 00 33 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [18:30: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:43]wFMCommunicate OK [18:30:43]SAM_PROTO_GetFieldsCounters done [18:30:43]requested_item shift.num is exist - process it [18:30:43]requested_item shift.opened is exist - process it [18:30:43]req_shift_opened [18:30:43]FM_GetShiftState [18:30:43]SAM_PROTO_GetShiftState [18:30:43]wFMCommunicate request_size=4 [18:30:43]MH_SAM_APDU [18:30:43]CAPDU: 80 13 01 00 [18:30:43]Write to MH i2c: E2 08 00 34 A9 80 13 01 00 00 00 00 00 5A [18:30:43]Write i2c OK [18:30:43]MH_I2C_Read... [18:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:43]Read from MH i2c: E2 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 0E 00 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 0E 00 34 A9 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 B0 [18:30:43]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [18:30:43]wFMCommunicate OK [18:30:43]SAM_PROTO_GetShiftState done [18:30:43]FM_GetShiftState done [18:30:43]req_shift_opened done [18:30:43]requested_item shift.open_date is exist - process it [18:30:43]req_shift_open_date [18:30:43]req_shift_open_date done [18:30:43]produce_requested_data done [18:30:43]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49378,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [18:30:43]process_action_free close_receipt [18:30:43]json_value_free [18:30:43]json_value_free done [18:30:43]process_json_proto returns [18:30:43]Send response to host [18:30:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49378,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [18:30:43]free response buf [18:30:43]execute_script done [18:30:43]execute_script returns [18:30:43]free content buf [18:30:43]Sock 9.Close socket [18:30:43]Sock 9.Thread stoped [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:17]OFD Sender: No OFD packet to send [18:31:22]OFD Sender: No OFD packet to send [18:31:27]OFD Sender: No OFD packet to send [18:31:32]OFD Sender: No OFD packet to send [18:31:37]OFD Sender: No OFD packet to send [18:31:42]OFD Sender: No OFD packet to send [18:31:47]OFD Sender: No OFD packet to send [18:31:52]OFD Sender: No OFD packet to send [18:31:57]OFD Sender: No OFD packet to send [18:32:02]OFD Sender: No OFD packet to send [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:12]OFD Sender: No OFD packet to send [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:37:02]OFD Sender: No OFD packet to send [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]accept exits with 7 [18:48:03]New connection [18:48:03]New thread 3066813796 created [18:48:03]Thread 3066670436 joined [18:48:03]Waiting for new connection... [18:48:03] Sock 7.Parse request [18:48:03]Sock 7.Check first char [18:48:03]Sock 7.First char is OK [18:48:03]request: POST /json_proto HTTP/1.0 [18:48:03]Method: POST [18:48:03]URL: /json_proto [18:48:03]Method is POST - this is cgi request [18:48:03]url: /json_proto [18:48:03]query_string will be loaded in cgi processing [18:48:03]execute_cgi json_proto POST (null) [18:48:03]execute_cgi path=json_proto method=POST [18:48:03]POST find Content-Length [18:48:03]Host: 172.17.56.67:8080 [18:48:03]Content-Length: 1212 [18:48:03]Content-Type: application/json [18:48:03] [18:48:03]POST finish read [18:48:03]Found Content-Length = 1212 [18:48:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 102\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0440\u044B\u043A\u0442\u0430\u0431\u0430\u0441\u043E\u0432 \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)216483\u000A31.01.2024 18:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 4.860 x 60.30\u000A\u0418\u0422\u041E\u0413: 293.06\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:03]execute_script... [18:48:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421 102\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0411\u0430\u0440\u044B\u043A\u0442\u0430\u0431\u0430\u0441\u043E\u0432 \u0422. \u000A\u0421\u0447\u0435\u0442 N : (1)216483\u000A31.01.2024 18:46\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 12\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 4.860 x 60.30\u000A\u0418\u0422\u041E\u0413: 293.06\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0435\u0445\u043D\u043E\u043B\u043E\u0433\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043E\u0442\u043F\u0443\u0441\u043A: \u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:48:03]POST & json_proto [18:48:03]process_json_proto [18:48:03]json parsed OK: [18:48:03]protocol is kg_v1.0 [18:48:03]action value=print_text [18:48:03]process_action print_text [18:48:03]cmd_print_text [18:48:03]ExternCall_PrintAddStr [18:48:03]wPrintStart [18:48:03]Write to MH i2c: 01 00 00 35 A9 DE [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: 01 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: 01 07 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: 01 07 00 35 A9 00 00 00 00 00 FF 0F F3 [18:48:03]RasterBufferAndPrint [18:48:03]line *****ТОВАРНЫЙ ЧЕК***** [18:48:03]line АЗС 102 [18:48:03]line Партнер нефть [18:48:03]line 02508201610067 [18:48:03]line Кассир : Барыктабасов Т. [18:48:03]line Счет N : (1)216483 [18:48:03]line 31.01.2024 18:46 [18:48:03]line ПРОДАЖА [18:48:03]line ТРК (МРК, ГНК): 12 [18:48:03]line Вид ГСМ : 2710124130 [18:48:03]line Аи-92-К-5 [18:48:03]line 4.860 x 60.30 [18:48:03]line ИТОГ: 293.06 [18:48:03]line Тип оплаты: Технологический отпуск: [18:48:03]line ______________________ [18:48:03]line (подпись) [18:48:03]written 0, free lines is 4095 [18:48:03]OFD Sender: No OFD packet to send [18:48:03]Write to MH i2c: 01 00 00 49 A9 F2 [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: 01 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: 01 07 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: 01 07 00 49 A9 00 00 00 00 00 0F 0E 16 [18:48:03]RasterBufferAndPrint [18:48:03]line [18:48:03]line [18:48:03]line [18:48:03]line [18:48:03]line [18:48:03]written 0, free lines is 3600 [18:48:03]MH_Cut [18:48:03]Write to MH i2c: D1 01 00 50 A9 01 CB [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: D1 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: D1 01 00 [18:48:03]MH_I2C_Read... [18:48:03]Read from MH i2c: D1 01 00 50 A9 00 CA [18:48:03]Write to MH i2c: 01 00 00 51 A9 FA [18:48:03]Write i2c OK [18:48:03]MH_I2C_Read... [18:48:03]*** Cut start [18:48:03]*** Partial cut [18:48:03]*** CUTSNS_PIN = 1 [18:48:03]*** CUTSNS_PIN = 0 [18:48:03]*** Brake cut motor [18:48:04]Read from MH i2c: 01 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: 01 07 00 [18:48:04]MH_I2C_Read... [18:48:04]*** Stop cut motor [18:48:04]*** Cut end [18:48:04]Read from MH i2c: 01 07 00 51 A9 00 00 00 00 00 FF 0F 0F [18:48:04]process_action print_text done [18:48:04]requested_data is exist [18:48:04]produce_requested_data [18:48:04]requested_item fm.sn is exist - process it [18:48:04]wFMCommunicate request_size=4 [18:48:04]MH_SAM_APDU [18:48:04]CAPDU: 80 11 00 00 [18:48:04]Write to MH i2c: E2 08 00 52 A9 80 11 00 00 00 00 00 00 75 [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 17 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 17 00 52 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C2 [18:48:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:48:04]wFMCommunicate OK [18:48:04]requested_item fd.num is exist - process it [18:48:04]SAM_PROTO_GetFieldsCounters [18:48:04]wFMCommunicate request_size=4 [18:48:04]MH_SAM_APDU [18:48:04]CAPDU: 80 13 00 00 [18:48:04]Write to MH i2c: E2 08 00 53 A9 80 13 00 00 00 00 00 00 78 [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 62 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 62 00 53 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [18: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:48:04]wFMCommunicate OK [18:48:04]SAM_PROTO_GetFieldsCounters done [18:48:04]requested_item shift.num is exist - process it [18:48:04]requested_item shift.opened is exist - process it [18:48:04]req_shift_opened [18:48:04]FM_GetShiftState [18:48:04]SAM_PROTO_GetShiftState [18:48:04]wFMCommunicate request_size=4 [18:48:04]MH_SAM_APDU [18:48:04]CAPDU: 80 13 01 00 [18:48:04]Write to MH i2c: E2 08 00 54 A9 80 13 01 00 00 00 00 00 7A [18:48:04]Write i2c OK [18:48:04]MH_I2C_Read... [18:48:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:48:04]Read from MH i2c: E2 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 0E 00 [18:48:04]MH_I2C_Read... [18:48:04]Read from MH i2c: E2 0E 00 54 A9 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 D0 [18:48:04]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [18:48:04]wFMCommunicate OK [18:48:04]SAM_PROTO_GetShiftState done [18:48:04]FM_GetShiftState done [18:48:04]req_shift_opened done [18:48:04]requested_item shift.open_date is exist - process it [18:48:04]req_shift_open_date [18:48:04]req_shift_open_date done [18:48:04]produce_requested_data done [18:48:04]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49378,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [18:48:04]process_action_free print_text [18:48:04]json_value_free [18:48:04]json_value_free done [18:48:04]process_json_proto returns [18:48:04]Send response to host [18:48:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49378,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [18:48:04]free response buf [18:48:04]execute_script done [18:48:04]execute_script returns [18:48:04]free content buf [18:48:04]Sock 7.Close socket [18:48:04]Sock 7.Thread stoped [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49:58]OFD Sender: No OFD packet to send [18:50:03]OFD Sender: No OFD packet to send [18:50:08]OFD Sender: No OFD packet to send [18:50:13]OFD Sender: No OFD packet to send [18:50:18]OFD Sender: No OFD packet to send [18:50:23]OFD Sender: No OFD packet to send [18:50:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:58]OFD Sender: No OFD packet to send [18:51:03]OFD Sender: No OFD packet to send [18:51:08]OFD Sender: No OFD packet to send [18:51:13]OFD Sender: No OFD packet to send [18:51:18]OFD Sender: No OFD packet to send [18:51:23]OFD Sender: No OFD packet to send [18:51:28]OFD Sender: No OFD packet to send [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:58]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:18]OFD Sender: No OFD packet to send [18:53:23]OFD Sender: No OFD packet to send [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:43]OFD Sender: No OFD packet to send [18:56:48]OFD Sender: No OFD packet to send [18:56:53]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:57:03]OFD Sender: No OFD packet to send [18:57:08]OFD Sender: No OFD packet to send [18:57:13]OFD Sender: No OFD packet to send [18:57:18]OFD Sender: No OFD packet to send [18:57:23]OFD Sender: No OFD packet to send [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:58:03]OFD Sender: No OFD packet to send [18:58:08]OFD Sender: No OFD packet to send [18:58:13]OFD Sender: No OFD packet to send [18:58:18]OFD Sender: No OFD packet to send [18:58:23]OFD Sender: No OFD packet to send [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:28]OFD Sender: No OFD packet to send [19:03:33]OFD Sender: No OFD packet to send [19:03:38]OFD Sender: No OFD packet to send [19:03:43]OFD Sender: No OFD packet to send [19:03:48]OFD Sender: No OFD packet to send [19:03:53]OFD Sender: No OFD packet to send [19:03:58]OFD Sender: No OFD packet to send [19:04:03]OFD Sender: No OFD packet to send [19:04:08]OFD Sender: No OFD packet to send [19:04:13]OFD Sender: No OFD packet to send [19:04:18]OFD Sender: No OFD packet to send [19:04:23]OFD Sender: No OFD packet to send [19:04:28]OFD Sender: No OFD packet to send [19:04:33]OFD Sender: No OFD packet to send [19:04:38]OFD Sender: No OFD packet to send [19:04:43]OFD Sender: No OFD packet to send [19:04:48]OFD Sender: No OFD packet to send [19:04:53]OFD Sender: No OFD packet to send [19:04:58]OFD Sender: No OFD packet to send [19:05:03]OFD Sender: No OFD packet to send [19:05:08]OFD Sender: No OFD packet to send [19:05:13]OFD Sender: No OFD packet to send [19:05:18]OFD Sender: No OFD packet to send [19:05:23]OFD Sender: No OFD packet to send [19:05:28]OFD Sender: No OFD packet to send [19:05:33]OFD Sender: No OFD packet to send [19:05:38]OFD Sender: No OFD packet to send [19:05:43]OFD Sender: No OFD packet to send [19:05:48]OFD Sender: No OFD packet to send [19:05:53]OFD Sender: No OFD packet to send [19:05:58]OFD Sender: No OFD packet to send [19:06:03]OFD Sender: No OFD packet to send [19:06:08]OFD Sender: No OFD packet to send [19:06:13]OFD Sender: No OFD packet to send [19:06:18]OFD Sender: No OFD packet to send [19:06:23]OFD Sender: No OFD packet to send [19:06:28]OFD Sender: No OFD packet to send [19:06:33]OFD Sender: No OFD packet to send [19:06:38]OFD Sender: No OFD packet to send [19:06:43]OFD Sender: No OFD packet to send [19:06:48]OFD Sender: No OFD packet to send [19:06:53]OFD Sender: No OFD packet to send [19:06:58]OFD Sender: No OFD packet to send [19:07:03]OFD Sender: No OFD packet to send [19:07:08]OFD Sender: No OFD packet to send [19:07:13]OFD Sender: No OFD packet to send [19:07:18]OFD Sender: No OFD packet to send [19:07:23]OFD Sender: No OFD packet to send [19:07:28]OFD Sender: No OFD packet to send [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:19]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:39]OFD Sender: No OFD packet to send [19:08:44]OFD Sender: No OFD packet to send [19:08:49]OFD Sender: No OFD packet to send [19:08:54]OFD Sender: No OFD packet to send [19:08:59]OFD Sender: No OFD packet to send [19:09:04]OFD Sender: No OFD packet to send [19:09:09]OFD Sender: No OFD packet to send [19:09:14]OFD Sender: No OFD packet to send [19:09:19]OFD Sender: No OFD packet to send [19:09:24]OFD Sender: No OFD packet to send [19:09:29]OFD Sender: No OFD packet to send [19:09:34]OFD Sender: No OFD packet to send [19:09:39]OFD Sender: No OFD packet to send [19:09:44]OFD Sender: No OFD packet to send [19:09:49]OFD Sender: No OFD packet to send [19:09:54]OFD Sender: No OFD packet to send [19:09:59]OFD Sender: No OFD packet to send [19:10:04]OFD Sender: No OFD packet to send [19:10:09]OFD Sender: No OFD packet to send [19:10:14]OFD Sender: No OFD packet to send [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]OFD Sender: No OFD packet to send [19:15:29]OFD Sender: No OFD packet to send [19:15:34]OFD Sender: No OFD packet to send [19:15:39]OFD Sender: No OFD packet to send [19:15:44]OFD Sender: No OFD packet to send [19:15:49]OFD Sender: No OFD packet to send [19:15:54]OFD Sender: No OFD packet to send [19:15:59]OFD Sender: No OFD packet to send [19:16:04]OFD Sender: No OFD packet to send [19:16:09]OFD Sender: No OFD packet to send [19:16:14]OFD Sender: No OFD packet to send [19:16:19]OFD Sender: No OFD packet to send [19:16:24]OFD Sender: No OFD packet to send [19:16:29]OFD Sender: No OFD packet to send [19:16:34]OFD Sender: No OFD packet to send [19:16:39]OFD Sender: No OFD packet to send [19:16:44]OFD Sender: No OFD packet to send [19:16:49]OFD Sender: No OFD packet to send [19:16:54]OFD Sender: No OFD packet to send [19:16:59]OFD Sender: No OFD packet to send [19:17:04]OFD Sender: No OFD packet to send [19:17:09]OFD Sender: No OFD packet to send [19:17:14]OFD Sender: No OFD packet to send [19:17:19]OFD Sender: No OFD packet to send [19:17:24]OFD Sender: No OFD packet to send [19:17:29]OFD Sender: No OFD packet to send [19:17:34]OFD Sender: No OFD packet to send [19:17:39]OFD Sender: No OFD packet to send [19:17:44]OFD Sender: No OFD packet to send [19:17:49]OFD Sender: No OFD packet to send [19:17:54]OFD Sender: No OFD packet to send [19:17:59]OFD Sender: No OFD packet to send [19:18:04]OFD Sender: No OFD packet to send [19:18:09]OFD Sender: No OFD packet to send [19:18:14]OFD Sender: No OFD packet to send [19:18:19]OFD Sender: No OFD packet to send [19:18:24]OFD Sender: No OFD packet to send [19:18:29]OFD Sender: No OFD packet to send [19:18:34]OFD Sender: No OFD packet to send [19:18:39]OFD Sender: No OFD packet to send [19:18:44]OFD Sender: No OFD packet to send [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [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:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:14]OFD Sender: No OFD packet to send [19:27:19]OFD Sender: No OFD packet to send [19:27:24]OFD Sender: No OFD packet to send [19:27:29]OFD Sender: No OFD packet to send [19:27:34]OFD Sender: No OFD packet to send [19:27:39]OFD Sender: No OFD packet to send [19:27:44]OFD Sender: No OFD packet to send [19:27:49]OFD Sender: No OFD packet to send [19:27:54]OFD Sender: No OFD packet to send [19:27:59]OFD Sender: No OFD packet to send [19:28:04]OFD Sender: No OFD packet to send [19:28:09]OFD Sender: No OFD packet to send [19:28:14]OFD Sender: No OFD packet to send [19:28:19]OFD Sender: No OFD packet to send [19:28:24]OFD Sender: No OFD packet to send [19:28:29]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:50]OFD Sender: No OFD packet to send [19:30:55]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [19:38:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]OFD Sender: No OFD packet to send [19:38:50]OFD Sender: No OFD packet to send [19:38:55]OFD Sender: No OFD packet to send [19:39:00]OFD Sender: No OFD packet to send [19:39:05]OFD Sender: No OFD packet to send [19:39:10]OFD Sender: No OFD packet to send [19:39:15]OFD Sender: No OFD packet to send [19:39:20]OFD Sender: No OFD packet to send [19:39:25]OFD Sender: No OFD packet to send [19:39:30]OFD Sender: No OFD packet to send [19:39:35]OFD Sender: No OFD packet to send [19:39:40]OFD Sender: No OFD packet to send [19:39:45]OFD Sender: No OFD packet to send [19:39:50]OFD Sender: No OFD packet to send [19:39:55]OFD Sender: No OFD packet to send [19:40:00]OFD Sender: No OFD packet to send [19:40:05]OFD Sender: No OFD packet to send [19:40:10]OFD Sender: No OFD packet to send [19:40:15]OFD Sender: No OFD packet to send [19:40:20]OFD Sender: No OFD packet to send [19:40:25]OFD Sender: No OFD packet to send [19:40:30]OFD Sender: No OFD packet to send [19:40:35]OFD Sender: No OFD packet to send [19:40:40]OFD Sender: No OFD packet to send [19:40:45]OFD Sender: No OFD packet to send [19:40:50]OFD Sender: No OFD packet to send [19:40:55]OFD Sender: No OFD packet to send [19:41:00]OFD Sender: No OFD packet to send [19:41:05]OFD Sender: No OFD packet to send [19:41:10]OFD Sender: No OFD packet to send [19:41:15]OFD Sender: No OFD packet to send [19:41:20]OFD Sender: No OFD packet to send [19:41:25]OFD Sender: No OFD packet to send [19:41:30]OFD Sender: No OFD packet to send [19:41:35]OFD Sender: No OFD packet to send [19:41:40]OFD Sender: No OFD packet to send [19:41:45]OFD Sender: No OFD packet to send [19:41:50]OFD Sender: No OFD packet to send [19:41:55]OFD Sender: No OFD packet to send [19:42:00]OFD Sender: No OFD packet to send [19:42:05]OFD Sender: No OFD packet to send [19:42:10]OFD Sender: No OFD packet to send [19:42:15]OFD Sender: No OFD packet to send [19:42:20]OFD Sender: No OFD packet to send [19:42:25]OFD Sender: No OFD packet to send [19:42:30]OFD Sender: No OFD packet to send [19:42:35]OFD Sender: No OFD packet to send [19:42:40]OFD Sender: No OFD packet to send [19:42:45]OFD Sender: No OFD packet to send [19:42:50]OFD Sender: No OFD packet to send [19:42:55]OFD Sender: No OFD packet to send [19:43:00]OFD Sender: No OFD packet to send [19:43:05]OFD Sender: No OFD packet to send [19:43:10]OFD Sender: No OFD packet to send [19:43:15]OFD Sender: No OFD packet to send [19:43:20]OFD Sender: No OFD packet to send [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]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:26]OFD Sender: No OFD packet to send [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:51]OFD Sender: No OFD packet to send [19:49:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:11]OFD Sender: No OFD packet to send [19:50:16]OFD Sender: No OFD packet to send [19:50:21]OFD Sender: No OFD packet to send [19:50:26]OFD Sender: No OFD packet to send [19:50:31]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:11]OFD Sender: No OFD packet to send [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:31]OFD Sender: No OFD packet to send [19:52:36]OFD Sender: No OFD packet to send [19:52:41]OFD Sender: No OFD packet to send [19:52:46]OFD Sender: No OFD packet to send [19:52:51]OFD Sender: No OFD packet to send [19:52:56]OFD Sender: No OFD packet to send [19:53:01]OFD Sender: No OFD packet to send [19:53:06]OFD Sender: No OFD packet to send [19:53:11]OFD Sender: No OFD packet to send [19:53:16]OFD Sender: No OFD packet to send [19:53:21]OFD Sender: No OFD packet to send [19:53:26]OFD Sender: No OFD packet to send [19:53:31]OFD Sender: No OFD packet to send [19:53:36]OFD Sender: No OFD packet to send [19:53:41]OFD Sender: No OFD packet to send [19:53:46]OFD Sender: No OFD packet to send [19:53:51]OFD Sender: No OFD packet to send [19:53:56]OFD Sender: No OFD packet to send [19:54:01]OFD Sender: No OFD packet to send [19:54:06]OFD Sender: No OFD packet to send [19:54:11]OFD Sender: No OFD packet to send [19:54:16]OFD Sender: No OFD packet to send [19:54:21]OFD Sender: No OFD packet to send [19:54:26]OFD Sender: No OFD packet to send [19:54:31]OFD Sender: No OFD packet to send [19:54:36]OFD Sender: No OFD packet to send [19:54:41]OFD Sender: No OFD packet to send [19:54:46]OFD Sender: No OFD packet to send [19:54:51]OFD Sender: No OFD packet to send [19:54:56]OFD Sender: No OFD packet to send [19:55:01]OFD Sender: No OFD packet to send [19:55:06]OFD Sender: No OFD packet to send [19:55:11]OFD Sender: No OFD packet to send [19:55:16]OFD Sender: No OFD packet to send [19:55:21]OFD Sender: No OFD packet to send [19:55:26]OFD Sender: No OFD packet to send [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:41]OFD Sender: No OFD packet to send [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:56]OFD Sender: No OFD packet to send [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10: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:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:12]OFD Sender: No OFD packet to send [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]OFD Sender: No OFD packet to send [20:29: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]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:08]OFD Sender: No OFD packet to send [20:40:13]OFD Sender: No OFD packet to send [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:49]OFD Sender: No OFD packet to send [20:52:54]OFD Sender: No OFD packet to send [20:52:59]OFD Sender: No OFD packet to send [20:53:04]OFD Sender: No OFD packet to send [20:53:09]OFD Sender: No OFD packet to send [20:53:14]OFD Sender: No OFD packet to send [20:53:19]OFD Sender: No OFD packet to send [20:53:24]OFD Sender: No OFD packet to send [20:53:29]OFD Sender: No OFD packet to send [20:53:34]OFD Sender: No OFD packet to send [20:53:39]OFD Sender: No OFD packet to send [20:53:44]OFD Sender: No OFD packet to send [20:53:49]OFD Sender: No OFD packet to send [20:53:54]OFD Sender: No OFD packet to send [20:53:59]OFD Sender: No OFD packet to send [20:54:04]OFD Sender: No OFD packet to send [20:54:09]OFD Sender: No OFD packet to send [20:54:14]OFD Sender: No OFD packet to send [20:54:19]OFD Sender: No OFD packet to send [20:54:24]OFD Sender: No OFD packet to send [20:54:29]OFD Sender: No OFD packet to send [20:54:34]OFD Sender: No OFD packet to send [20:54:39]OFD Sender: No OFD packet to send [20:54:44]OFD Sender: No OFD packet to send [20:54:49]OFD Sender: No OFD packet to send [20:54:54]OFD Sender: No OFD packet to send [20:54:59]OFD Sender: No OFD packet to send [20:55:04]OFD Sender: No OFD packet to send [20:55:09]OFD Sender: No OFD packet to send [20:55:14]OFD Sender: No OFD packet to send [20:55:19]OFD Sender: No OFD packet to send [20:55:24]OFD Sender: No OFD packet to send [20:55:29]OFD Sender: No OFD packet to send [20:55:34]OFD Sender: No OFD packet to send [20:55:39]OFD Sender: No OFD packet to send [20:55:44]OFD Sender: No OFD packet to send [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:46]int [21:00:46]Write to MH i2c: 01 00 00 55 A9 FE [21:00:46]*** FLAG_PRN_KEY set [21:00:46]Write i2c OK [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: 01 [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: 01 07 00 [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: 01 07 00 55 A9 00 08 00 00 00 FF 0F 1B [21:00:46]state=0 [21:00:46]Key pressed [21:00:46]Feed [21:00:46]Write to MH i2c: D8 00 00 56 A9 D6 [21:00:46]Write i2c OK [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: D8 [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: D8 01 00 [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: D8 01 00 56 A9 00 D7 [21:00:46]int [21:00:46]Write to MH i2c: 01 00 00 57 A9 00 [21:00:46]Write i2c OK [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: 01 [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: 01 07 00 [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: 01 07 00 57 A9 00 48 00 00 00 3C 00 8B [21:00:46]state=2 [21:00:46]Key pressed [21:00:46]int [21:00:46]Write to MH i2c: 01 00 00 58 A9 01 [21:00:46]*** FLAG_PRN_KEY reset [21:00:46]Write i2c OK [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: 01 [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: 01 07 00 [21:00:46]MH_I2C_Read... [21:00:46]Read from MH i2c: 01 07 00 58 A9 00 00 00 00 00 F6 0F 0D [21:00:46]state=2 [21:00:46]Stop feed [21:00:49]OFD Sender: No OFD packet to send [21:00:53]int [21:00:53]Write to MH i2c: 01 00 00 59 A9 02 [21:00:53]*** FLAG_PRN_KEY set [21:00:53]Write i2c OK [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 07 00 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 07 00 59 A9 00 08 00 00 00 FF 0F 1F [21:00:53]state=0 [21:00:53]Key pressed [21:00:53]Feed [21:00:53]Write to MH i2c: D8 00 00 5A A9 DA [21:00:53]Write i2c OK [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: D8 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: D8 01 00 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: D8 01 00 5A A9 00 DB [21:00:53]int [21:00:53]Write to MH i2c: 01 00 00 5B A9 04 [21:00:53]Write i2c OK [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 07 00 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 07 00 5B A9 00 48 00 00 00 3D 00 90 [21:00:53]state=2 [21:00:53]Key pressed [21:00:53]int [21:00:53]Write to MH i2c: 01 00 00 5C A9 05 [21:00:53]*** FLAG_PRN_KEY reset [21:00:53]Write i2c OK [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 07 00 [21:00:53]MH_I2C_Read... [21:00:53]Read from MH i2c: 01 07 00 5C A9 00 00 00 00 00 FD 0F 18 [21:00:53]state=2 [21:00:53]Stop feed [21:00:54]OFD Sender: No OFD packet to send [21:00:54]int [21:00:54]Write to MH i2c: 01 00 00 5D A9 06 [21:00:54]*** FLAG_PRN_KEY set [21:00:54]Write i2c OK [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: 01 [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: 01 07 00 [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: 01 07 00 5D A9 00 08 00 00 00 FF 0F 23 [21:00:54]state=0 [21:00:54]Key pressed [21:00:54]Feed [21:00:54]Write to MH i2c: D8 00 00 5E A9 DE [21:00:54]Write i2c OK [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: D8 [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: D8 01 00 [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: D8 01 00 5E A9 00 DF [21:00:54]int [21:00:54]Write to MH i2c: 01 00 00 5F A9 08 [21:00:54]Write i2c OK [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: 01 [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: 01 07 00 [21:00:54]MH_I2C_Read... [21:00:54]Read from MH i2c: 01 07 00 5F A9 00 48 00 00 00 3C 00 93 [21:00:54]state=2 [21:00:54]Key pressed [21:00:55]int [21:00:55]Write to MH i2c: 01 00 00 60 A9 09 [21:00:55]*** FLAG_PRN_KEY reset [21:00:55]Write i2c OK [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: 01 [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: 01 07 00 [21:00:55]MH_I2C_Read... [21:00:55]Read from MH i2c: 01 07 00 60 A9 00 00 00 00 00 F6 0F 15 [21:00:55]state=2 [21:00:55]Stop feed [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]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:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:26]OFD Sender: No OFD packet to send [21:49:31]OFD Sender: No OFD packet to send [21:49:36]OFD Sender: No OFD packet to send [21:49:41]OFD Sender: No OFD packet to send [21:49:46]OFD Sender: No OFD packet to send [21:49:51]OFD Sender: No OFD packet to send [21:49:56]OFD Sender: No OFD packet to send [21:50:01]OFD Sender: No OFD packet to send [21:50:06]OFD Sender: No OFD packet to send [21:50:11]OFD Sender: No OFD packet to send [21:50:16]OFD Sender: No OFD packet to send [21:50:21]OFD Sender: No OFD packet to send [21:50:26]OFD Sender: No OFD packet to send [21:50:31]OFD Sender: No OFD packet to send [21:50:36]OFD Sender: No OFD packet to send [21:50:41]OFD Sender: No OFD packet to send [21:50:46]OFD Sender: No OFD packet to send [21:50:51]OFD Sender: No OFD packet to send [21:50:56]OFD Sender: No OFD packet to send [21:51:01]OFD Sender: No OFD packet to send [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]OFD Sender: No OFD packet to send [21:53:46]OFD Sender: No OFD packet to send [21:53:51]OFD Sender: No OFD packet to send [21:53:56]OFD Sender: No OFD packet to send [21:54:01]OFD Sender: No OFD packet to send [21:54:06]OFD Sender: No OFD packet to send [21:54:11]OFD Sender: No OFD packet to send [21:54:16]OFD Sender: No OFD packet to send [21:54:21]OFD Sender: No OFD packet to send [21:54:26]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:32]OFD Sender: No OFD packet to send [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]OFD Sender: No OFD packet to send [22:06:57]OFD Sender: No OFD packet to send [22:07:02]OFD Sender: No OFD packet to send [22:07:07]OFD Sender: No OFD packet to send [22:07:12]OFD Sender: No OFD packet to send [22:07:17]OFD Sender: No OFD packet to send [22:07:22]OFD Sender: No OFD packet to send [22:07:27]OFD Sender: No OFD packet to send [22:07:32]OFD Sender: No OFD packet to send [22:07:37]OFD Sender: No OFD packet to send [22:07:42]OFD Sender: No OFD packet to send [22:07:47]OFD Sender: No OFD packet to send [22:07:52]OFD Sender: No OFD packet to send [22:07:57]OFD Sender: No OFD packet to send [22:08:02]OFD Sender: No OFD packet to send [22:08:07]OFD Sender: No OFD packet to send [22:08:12]OFD Sender: No OFD packet to send [22:08:17]OFD Sender: No OFD packet to send [22:08:22]OFD Sender: No OFD packet to send [22:08:27]OFD Sender: No OFD packet to send [22:08:32]OFD Sender: No OFD packet to send [22:08:37]OFD Sender: No OFD packet to send [22:08:42]OFD Sender: No OFD packet to send [22:08:47]OFD Sender: No OFD packet to send [22:08:52]OFD Sender: No OFD packet to send [22:08:57]OFD Sender: No OFD packet to send [22:09:02]OFD Sender: No OFD packet to send [22:09:07]OFD Sender: No OFD packet to send [22:09:12]OFD Sender: No OFD packet to send [22:09:17]OFD Sender: No OFD packet to send [22:09:22]OFD Sender: No OFD packet to send [22:09:27]OFD Sender: No OFD packet to send [22:09:32]OFD Sender: No OFD packet to send [22:09:37]OFD Sender: No OFD packet to send [22:09:42]OFD Sender: No OFD packet to send [22:09:47]OFD Sender: No OFD packet to send [22:09:52]OFD Sender: No OFD packet to send [22:09:57]OFD Sender: No OFD packet to send [22:10:02]OFD Sender: No OFD packet to send [22:10:07]OFD Sender: No OFD packet to send [22:10:12]OFD Sender: No OFD packet to send [22:10:17]OFD Sender: No OFD packet to send [22:10:22]OFD Sender: No OFD packet to send [22:10:27]OFD Sender: No OFD packet to send [22:10:32]OFD Sender: No OFD packet to send [22:10:37]OFD Sender: No OFD packet to send [22:10:42]OFD Sender: No OFD packet to send [22:10:47]OFD Sender: No OFD packet to send [22:10:52]OFD Sender: No OFD packet to send [22:10:57]OFD Sender: No OFD packet to send [22:11:02]OFD Sender: No OFD packet to send [22:11:07]OFD Sender: No OFD packet to send [22:11:12]OFD Sender: No OFD packet to send [22:11:17]OFD Sender: No OFD packet to send [22:11:22]OFD Sender: No OFD packet to send [22:11:27]OFD Sender: No OFD packet to send [22:11:32]OFD Sender: No OFD packet to send [22:11:37]OFD Sender: No OFD packet to send [22:11:42]OFD Sender: No OFD packet to send [22:11:47]OFD Sender: No OFD packet to send [22:11:52]OFD Sender: No OFD packet to send [22:11:57]OFD Sender: No OFD packet to send [22:12:02]OFD Sender: No OFD packet to send [22:12:07]OFD Sender: No OFD packet to send [22:12:12]OFD Sender: No OFD packet to send [22:12:17]OFD Sender: No OFD packet to send [22:12:22]OFD Sender: No OFD packet to send [22:12:27]OFD Sender: No OFD packet to send [22:12:32]OFD Sender: No OFD packet to send [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:22]OFD Sender: No OFD packet to send [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:48]OFD Sender: No OFD packet to send [22:21:53]OFD Sender: No OFD packet to send [22:21:58]OFD Sender: No OFD packet to send [22:22:03]OFD Sender: No OFD packet to send [22:22:08]OFD Sender: No OFD packet to send [22:22:13]OFD Sender: No OFD packet to send [22:22:18]OFD Sender: No OFD packet to send [22:22:23]OFD Sender: No OFD packet to send [22:22:28]OFD Sender: No OFD packet to send [22:22:33]OFD Sender: No OFD packet to send [22:22:38]OFD Sender: No OFD packet to send [22:22:43]OFD Sender: No OFD packet to send [22:22:48]OFD Sender: No OFD packet to send [22:22:53]OFD Sender: No OFD packet to send [22:22:58]OFD Sender: No OFD packet to send [22:23:03]OFD Sender: No OFD packet to send [22:23:08]OFD Sender: No OFD packet to send [22:23:13]OFD Sender: No OFD packet to send [22:23:18]OFD Sender: No OFD packet to send [22:23:23]OFD Sender: No OFD packet to send [22:23:28]OFD Sender: No OFD packet to send [22:23:33]OFD Sender: No OFD packet to send [22:23:38]OFD Sender: No OFD packet to send [22:23:43]OFD Sender: No OFD packet to send [22:23:48]OFD Sender: No OFD packet to send [22:23:53]OFD Sender: No OFD packet to send [22:23:58]OFD Sender: No OFD packet to send [22:24:03]OFD Sender: No OFD packet to send [22:24:08]OFD Sender: No OFD packet to send [22:24:13]OFD Sender: No OFD packet to send [22:24:18]OFD Sender: No OFD packet to send [22:24:23]OFD Sender: No OFD packet to send [22:24:28]OFD Sender: No OFD packet to send [22:24:33]OFD Sender: No OFD packet to send [22:24:38]OFD Sender: No OFD packet to send [22:24:43]OFD Sender: No OFD packet to send [22:24:48]OFD Sender: No OFD packet to send [22:24:53]OFD Sender: No OFD packet to send [22:24:58]OFD Sender: No OFD packet to send [22:25:03]OFD Sender: No OFD packet to send [22:25:08]OFD Sender: No OFD packet to send [22:25:13]OFD Sender: No OFD packet to send [22:25:18]OFD Sender: No OFD packet to send [22:25:23]OFD Sender: No OFD packet to send [22:25:28]OFD Sender: No OFD packet to send [22:25:33]OFD Sender: No OFD packet to send [22:25:38]OFD Sender: No OFD packet to send [22:25:43]OFD Sender: No OFD packet to send [22:25:48]OFD Sender: No OFD packet to send [22:25:53]OFD Sender: No OFD packet to send [22:25:58]OFD Sender: No OFD packet to send [22:26:03]OFD Sender: No OFD packet to send [22:26:08]OFD Sender: No OFD packet to send [22:26:13]OFD Sender: No OFD packet to send [22:26:18]OFD Sender: No OFD packet to send [22:26:23]OFD Sender: No OFD packet to send [22:26:28]OFD Sender: No OFD packet to send [22:26:33]OFD Sender: No OFD packet to send [22:26:38]OFD Sender: No OFD packet to send [22:26:43]OFD Sender: No OFD packet to send [22:26:48]OFD Sender: No OFD packet to send [22:26:53]OFD Sender: No OFD packet to send [22:26:58]OFD Sender: No OFD packet to send [22:27:03]OFD Sender: No OFD packet to send [22:27:08]OFD Sender: No OFD packet to send [22:27:13]OFD Sender: No OFD packet to send [22:27:18]OFD Sender: No OFD packet to send [22:27:23]OFD Sender: No OFD packet to send [22:27:28]OFD Sender: No OFD packet to send [22:27:33]OFD Sender: No OFD packet to send [22:27:38]OFD Sender: No OFD packet to send [22:27:43]OFD Sender: No OFD packet to send [22:27:48]OFD Sender: No OFD packet to send [22:27:53]OFD Sender: No OFD packet to send [22:27:58]OFD Sender: No OFD packet to send [22:28:03]OFD Sender: No OFD packet to send [22:28:08]OFD Sender: No OFD packet to send [22:28:13]OFD Sender: No OFD packet to send [22:28:18]OFD Sender: No OFD packet to send [22:28:23]OFD Sender: No OFD packet to send [22:28:28]OFD Sender: No OFD packet to send [22:28:33]OFD Sender: No OFD packet to send [22:28:38]OFD Sender: No OFD packet to send [22:28:43]OFD Sender: No OFD packet to send [22:28:48]OFD Sender: No OFD packet to send [22:28:53]OFD Sender: No OFD packet to send [22:28:58]OFD Sender: No OFD packet to send [22:29:03]OFD Sender: No OFD packet to send [22:29:08]OFD Sender: No OFD packet to send [22:29:13]OFD Sender: No OFD packet to send [22:29:18]OFD Sender: No OFD packet to send [22:29:23]OFD Sender: No OFD packet to send [22:29:28]OFD Sender: No OFD packet to send [22:29:33]OFD Sender: No OFD packet to send [22:29:38]OFD Sender: No OFD packet to send [22:29:43]OFD Sender: No OFD packet to send [22:29:48]OFD Sender: No OFD packet to send [22:29:53]OFD Sender: No OFD packet to send [22:29:58]OFD Sender: No OFD packet to send [22:30:03]OFD Sender: No OFD packet to send [22:30:08]OFD Sender: No OFD packet to send [22:30:13]OFD Sender: No OFD packet to send [22:30:18]OFD Sender: No OFD packet to send [22:30:23]OFD Sender: No OFD packet to send [22:30:28]OFD Sender: No OFD packet to send [22:30:33]OFD Sender: No OFD packet to send [22:30:38]OFD Sender: No OFD packet to send [22:30:43]OFD Sender: No OFD packet to send [22:30:48]OFD Sender: No OFD packet to send [22:30:53]OFD Sender: No OFD packet to send [22:30:58]OFD Sender: No OFD packet to send [22:31:03]OFD Sender: No OFD packet to send [22:31:08]OFD Sender: No OFD packet to send [22:31:13]OFD Sender: No OFD packet to send [22:31:18]OFD Sender: No OFD packet to send [22:31:23]OFD Sender: No OFD packet to send [22:31:28]OFD Sender: No OFD packet to send [22:31:33]OFD Sender: No OFD packet to send [22:31:38]OFD Sender: No OFD packet to send [22:31:43]OFD Sender: No OFD packet to send [22:31:48]OFD Sender: No OFD packet to send [22:31:53]OFD Sender: No OFD packet to send [22:31:58]OFD Sender: No OFD packet to send [22:32:03]OFD Sender: No OFD packet to send [22:32:08]OFD Sender: No OFD packet to send [22:32:13]OFD Sender: No OFD packet to send [22:32:18]OFD Sender: No OFD packet to send [22:32:23]OFD Sender: No OFD packet to send [22:32:28]OFD Sender: No OFD packet to send [22:32:33]OFD Sender: No OFD packet to send [22:32:38]OFD Sender: No OFD packet to send [22:32:43]OFD Sender: No OFD packet to send [22:32:48]OFD Sender: No OFD packet to send [22:32:53]OFD Sender: No OFD packet to send [22:32:58]OFD Sender: No OFD packet to send [22:33:03]OFD Sender: No OFD packet to send [22:33:08]OFD Sender: No OFD packet to send [22:33:13]OFD Sender: No OFD packet to send [22:33:18]OFD Sender: No OFD packet to send [22:33:23]OFD Sender: No OFD packet to send [22:33:28]OFD Sender: No OFD packet to send [22:33:33]OFD Sender: No OFD packet to send [22:33:38]OFD Sender: No OFD packet to send [22:33:43]OFD Sender: No OFD packet to send [22:33:48]OFD Sender: No OFD packet to send [22:33:53]OFD Sender: No OFD packet to send [22:33:58]OFD Sender: No OFD packet to send [22:34:03]OFD Sender: No OFD packet to send [22:34:08]OFD Sender: No OFD packet to send [22:34:13]OFD Sender: No OFD packet to send [22:34:18]OFD Sender: No OFD packet to send [22:34:23]OFD Sender: No OFD packet to send [22:34:28]OFD Sender: No OFD packet to send [22:34:33]OFD Sender: No OFD packet to send [22:34:38]OFD Sender: No OFD packet to send [22:34:43]OFD Sender: No OFD packet to send [22:34:48]OFD Sender: No OFD packet to send [22:34:53]OFD Sender: No OFD packet to send [22:34:58]OFD Sender: No OFD packet to send [22:35:03]OFD Sender: No OFD packet to send [22:35:08]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]OFD Sender: No OFD packet to send [22:39:39]OFD Sender: No OFD packet to send [22:39:44]OFD Sender: No OFD packet to send [22:39:49]OFD Sender: No OFD packet to send [22:39:54]OFD Sender: No OFD packet to send [22:39:59]OFD Sender: No OFD packet to send [22:40:04]OFD Sender: No OFD packet to send [22:40:09]OFD Sender: No OFD packet to send [22:40:14]OFD Sender: No OFD packet to send [22:40:19]OFD Sender: No OFD packet to send [22:40:24]OFD Sender: No OFD packet to send [22:40:29]OFD Sender: No OFD packet to send [22:40:34]OFD Sender: No OFD packet to send [22:40:39]OFD Sender: No OFD packet to send [22:40:44]OFD Sender: No OFD packet to send [22:40:49]OFD Sender: No OFD packet to send [22:40:54]OFD Sender: No OFD packet to send [22:40:59]OFD Sender: No OFD packet to send [22:41:04]OFD Sender: No OFD packet to send [22:41:09]OFD Sender: No OFD packet to send [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:44]OFD Sender: No OFD packet to send [22:47:49]OFD Sender: No OFD packet to send [22:47:54]OFD Sender: No OFD packet to send [22:47:59]OFD Sender: No OFD packet to send [22:48:04]OFD Sender: No OFD packet to send [22:48:09]OFD Sender: No OFD packet to send [22:48:14]OFD Sender: No OFD packet to send [22:48:19]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:15]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:33]accept exits with 9 [23:18:33]New connection [23:18:33]New thread 3066670436 created [23:18:33]Thread 3066813796 joined [23:18:33]Waiting for new connection... [23:18:33] Sock 9.Parse request [23:18:33]Sock 9.Check first char [23:18:33]Sock 9.First char is OK [23:18:33]request: POST /json_proto HTTP/1.0 [23:18:33]Method: POST [23:18:33]URL: /json_proto [23:18:33]Method is POST - this is cgi request [23:18:33]url: /json_proto [23:18:33]query_string will be loaded in cgi processing [23:18:33]execute_cgi json_proto POST (null) [23:18:33]execute_cgi path=json_proto method=POST [23:18:33]POST find Content-Length [23:18:33]Host: 172.17.56.67:8080 [23:18:33]Content-Length: 215 [23:18:33]Content-Type: application/json [23:18:33] [23:18:33]POST finish read [23:18:33]Found Content-Length = 215 [23:18:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:33]execute_script... [23:18:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:33]POST & json_proto [23:18:33]process_json_proto [23:18:33]json parsed OK: [23:18:33]protocol is kg_v1.0 [23:18:33]action value=get_value [23:18:33]process_action get_value [23:18:33]cmd_get_value [23:18:33]process_action get_value done [23:18:33]requested_data is exist [23:18:33]produce_requested_data [23:18:33]requested_item kkm.sn is exist - process it [23:18:33]requested_item kkm.ver is exist - process it [23:18:33]requested_item fm.sn is exist - process it [23:18:33]wFMCommunicate request_size=4 [23:18:33]MH_SAM_APDU [23:18:33]CAPDU: 80 11 00 00 [23:18:33]Write to MH i2c: E2 08 00 61 A9 80 11 00 00 00 00 00 00 84 [23:18:33]Write i2c OK [23:18:33]MH_I2C_Read... [23:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:33]Read from MH i2c: E2 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 17 00 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 17 00 61 A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D1 [23:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:18:33]wFMCommunicate OK [23:18:33]requested_item fd.num is exist - process it [23:18:33]SAM_PROTO_GetFieldsCounters [23:18:33]wFMCommunicate request_size=4 [23:18:33]MH_SAM_APDU [23:18:33]CAPDU: 80 13 00 00 [23:18:33]Write to MH i2c: E2 08 00 62 A9 80 13 00 00 00 00 00 00 87 [23:18:33]Write i2c OK [23:18:33]MH_I2C_Read... [23:18:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:33]Read from MH i2c: E2 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 62 00 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 62 00 62 A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [23:18: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:33]wFMCommunicate OK [23:18:33]SAM_PROTO_GetFieldsCounters done [23:18:33]requested_item shift.num is exist - process it [23:18:33]requested_item shift.opened is exist - process it [23:18:33]req_shift_opened [23:18:33]FM_GetShiftState [23:18:33]SAM_PROTO_GetShiftState [23:18:33]wFMCommunicate request_size=4 [23:18:33]MH_SAM_APDU [23:18:33]CAPDU: 80 13 01 00 [23:18:33]Write to MH i2c: E2 08 00 63 A9 80 13 01 00 00 00 00 00 89 [23:18:33]Write i2c OK [23:18:33]MH_I2C_Read... [23:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:33]Read from MH i2c: E2 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 0E 00 [23:18:33]MH_I2C_Read... [23:18:33]Read from MH i2c: E2 0E 00 63 A9 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 DF [23:18:33]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [23:18:33]wFMCommunicate OK [23:18:33]SAM_PROTO_GetShiftState done [23:18:33]FM_GetShiftState done [23:18:33]req_shift_opened done [23:18:33]requested_item shift.open_date is exist - process it [23:18:33]req_shift_open_date [23:18:33]req_shift_open_date done [23:18:33]produce_requested_data done [23:18:33]produce_requested_data return {"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49378,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [23:18:33]process_action_free get_value [23:18:33]json_value_free [23:18:33]json_value_free done [23:18:33]process_json_proto returns [23:18:33]Send response to host [23:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49378,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [23:18:33]free response buf [23:18:33]execute_script done [23:18:33]execute_script returns [23:18:33]free content buf [23:18:33]Sock 9.Close socket [23:18:33]Sock 9.Thread stoped [23:18:33]accept exits with 7 [23:18:33]New connection [23:18:33]New thread 3066813796 created [23:18:33]Thread 3066670436 joined [23:18:33]Waiting for new connection... [23:18:33] Sock 7.Parse request [23:18:33]Sock 7.Check first char [23:18:33]Sock 7.First char is OK [23:18:33]request: POST /json_proto HTTP/1.0 [23:18:33]Method: POST [23:18:33]URL: /json_proto [23:18:33]Method is POST - this is cgi request [23:18:33]url: /json_proto [23:18:33]query_string will be loaded in cgi processing [23:18:33]execute_cgi json_proto POST (null) [23:18:33]execute_cgi path=json_proto method=POST [23:18:33]POST find Content-Length [23:18:33]Host: 172.17.56.67:8080 [23:18:33]Content-Length: 331 [23:18:33]Content-Type: application/json [23:18:33] [23:18:33]POST finish read [23:18:33]Found Content-Length = 331 [23:18:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:18:33]execute_script... [23:18:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:18:33]POST & json_proto [23:18:33]process_json_proto [23:18:33]json parsed OK: [23:18:33]protocol is kg_v1.0 [23:18:33]action value=get_value [23:18:33]process_action get_value [23:18:33]cmd_get_value [23:18:33]process_action get_value done [23:18:33]requested_data is exist [23:18:33]produce_requested_data [23:18:33]requested_item fm.sale.total is exist - process it [23:18:33]SAM_PROTO_GetFMData [23:18:33]wFMCommunicate request_size=4 [23:18:33]MH_SAM_APDU [23:18:33]CAPDU: 80 13 03 00 [23:18:33]Write to MH i2c: E2 08 00 64 A9 80 13 03 00 00 00 00 00 8C [23:18:33]Write i2c OK [23:18:33]MH_I2C_Read... [23:18:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:18:34]Read from MH i2c: E2 [23:18:34]MH_I2C_Read... [23:18:34]Read from MH i2c: E2 FD 00 [23:18:34]MH_I2C_Read... [23:18:34]Read from MH i2c: E2 FD 00 64 A9 00 BF 04 85 04 BB 04 6E 04 04 00 F6 BE 00 00 69 04 A1 00 6F 04 04 00 F2 BE 00 00 B1 04 04 00 B9 F5 22 BD 70 04 04 00 28 ED 66 B0 72 04 04 00 91 08 BC 0C 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 C2 50 18 14 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 F3 A8 AC 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 E9 [23:18:34]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 F6 BE 00 00 69 04 A1 00 6F 04 04 00 F2 BE 00 00 B1 04 04 00 B9 F5 22 BD 70 04 04 00 28 ED 66 B0 72 04 04 00 91 08 BC 0C 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 C2 50 18 14 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 F3 A8 AC 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [23:18:34]wFMCommunicate OK [23:18:34]wFMCommunicate request_size=4 [23:18:34]MH_SAM_APDU [23:18:34]CAPDU: 80 17 00 00 [23:18:34]Write to MH i2c: E2 08 00 65 A9 80 17 00 00 00 00 00 00 8E [23:18:34]Write i2c OK [23:18:34]MH_I2C_Read... [23:18:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:34]Read from MH i2c: E2 [23:18:34]MH_I2C_Read... [23:18:34]Read from MH i2c: E2 FD 00 [23:18:34]MH_I2C_Read... [23:18:34]Read from MH i2c: E2 FD 00 65 A9 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3E [23:18:34]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:34]wFMCommunicate OK [23:18:34]wFMCommunicate request_size=4 [23:18:34]MH_SAM_APDU [23:18:34]CAPDU: 80 17 00 00 [23:18:34]Write to MH i2c: E2 08 00 66 A9 80 17 00 00 00 00 00 00 8F [23:18:34]Write i2c OK [23:18:34]MH_I2C_Read... [23:18:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:34]Read from MH i2c: E2 [23:18:34]MH_I2C_Read... [23:18:34]Read from MH i2c: E2 FD 00 [23:18:34]MH_I2C_Read... [23:18:34]Read from MH i2c: E2 FD 00 66 A9 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [23:18:34]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:34]wFMCommunicate OK [23:18:34]wFMCommunicate request_size=4 [23:18:34]MH_SAM_APDU [23:18:34]CAPDU: 80 17 00 00 [23:18:34]Write to MH i2c: E2 08 00 67 A9 80 17 00 00 00 00 00 00 90 [23:18:34]Write i2c OK [23:18:34]MH_I2C_Read... [23:18:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:35]Read from MH i2c: E2 [23:18:35]MH_I2C_Read... [23:18:35]Read from MH i2c: E2 FD 00 [23:18:35]MH_I2C_Read... [23:18:35]Read from MH i2c: E2 FD 00 67 A9 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 0A [23:18:35]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:18:35]wFMCommunicate OK [23:18:35]wFMCommunicate request_size=4 [23:18:35]MH_SAM_APDU [23:18:35]CAPDU: 80 17 00 00 [23:18:35]Write to MH i2c: E2 08 00 68 A9 80 17 00 00 00 00 00 00 91 [23:18:35]Write i2c OK [23:18:35]MH_I2C_Read... [23:18:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:18:35]Read from MH i2c: E2 [23:18:35]MH_I2C_Read... [23:18:35]Read from MH i2c: E2 DC 00 [23:18:35]MH_I2C_Read... [23:18:35]Read from MH i2c: E2 DC 00 68 A9 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [23:18:35]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:35]wFMCommunicate OK [23:18:35]SAM_PROTO_GetFMData done [23:18:35]requested_item fm.sale_refund.total is exist - process it [23:18:35]requested_item fm.buy.total is exist - process it [23:18:35]requested_item shift.sale.total is exist - process it [23:18:35]SAM_PROTO_GetShiftData [23:18:35]wFMCommunicate request_size=4 [23:18:35]MH_SAM_APDU [23:18:35]CAPDU: 80 13 02 00 [23:18:35]Write to MH i2c: E2 08 00 69 A9 80 13 02 00 00 00 00 00 90 [23:18:35]Write i2c OK [23:18:35]MH_I2C_Read... [23:18:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:18:35]Read from MH i2c: E2 [23:18:35]MH_I2C_Read... [23:18:35]Read from MH i2c: E2 FD 00 [23:18:35]MH_I2C_Read... [23:18:35]Read from MH i2c: E2 FD 00 69 A9 00 AB 04 AA 04 A7 04 6E 04 04 00 67 00 00 00 69 04 98 00 6F 04 04 00 67 00 00 00 B1 04 03 00 A4 E8 4F 70 04 03 00 A4 E8 4F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 7D 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 22 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0C [23:18:35]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 67 00 00 00 69 04 98 00 6F 04 04 00 67 00 00 00 B1 04 03 00 A4 E8 4F 70 04 03 00 A4 E8 4F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 7D 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 22 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:35]wFMCommunicate OK [23:18:35]wFMCommunicate request_size=4 [23:18:35]MH_SAM_APDU [23:18:35]CAPDU: 80 17 00 00 [23:18:35]Write to MH i2c: E2 08 00 6A A9 80 17 00 00 00 00 00 00 93 [23:18:35]Write i2c OK [23:18:35]MH_I2C_Read... [23:18:36]OFD Sender: No OFD packet to send [23:18:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:36]Read from MH i2c: E2 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: E2 FD 00 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: E2 FD 00 6A A9 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A8 [23:18:36]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:36]wFMCommunicate OK [23:18:36]wFMCommunicate request_size=4 [23:18:36]MH_SAM_APDU [23:18:36]CAPDU: 80 17 00 00 [23:18:36]Write to MH i2c: E2 08 00 6B A9 80 17 00 00 00 00 00 00 94 [23:18:36]Write i2c OK [23:18:36]MH_I2C_Read... [23:18:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:36]Read from MH i2c: E2 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: E2 FD 00 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: E2 FD 00 6B A9 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 44 [23:18:36]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:36]wFMCommunicate OK [23:18:36]wFMCommunicate request_size=4 [23:18:36]MH_SAM_APDU [23:18:36]CAPDU: 80 17 00 00 [23:18:36]Write to MH i2c: E2 08 00 6C A9 80 17 00 00 00 00 00 00 95 [23:18:36]Write i2c OK [23:18:36]MH_I2C_Read... [23:18:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:36]Read from MH i2c: E2 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: E2 FD 00 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: E2 FD 00 6C A9 00 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 90 00 1B [23:18:36]RAPDU: 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 90 00 [23:18:36]wFMCommunicate OK [23:18:36]wFMCommunicate request_size=4 [23:18:36]MH_SAM_APDU [23:18:36]CAPDU: 80 17 00 00 [23:18:36]Write to MH i2c: E2 08 00 6D A9 80 17 00 00 00 00 00 00 96 [23:18:36]Write i2c OK [23:18:36]MH_I2C_Read... [23:18:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [23:18:36]Read from MH i2c: E2 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: E2 C8 00 [23:18:36]MH_I2C_Read... [23:18:36]Read from MH i2c: E2 C8 00 6D A9 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 79 [23:18:36]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:37]wFMCommunicate OK [23:18:37]SAM_PROTO_GetShiftData done [23:18:37]requested_item shift.sale.total_cash is exist - process it [23:18:37]requested_item shift.sale_refund.total is exist - process it [23:18:37]requested_item shift.sale_refund.total_cash is exist - process it [23:18:37]requested_item shift.buy.total is exist - process it [23:18:37]requested_item shift.buy.total_cash is exist - process it [23:18:37]produce_requested_data done [23:18:37]produce_requested_data return {"fm.sale.total":31731849.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":52369.00,"shift.sale.total_cash":52369.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:18:37]process_action_free get_value [23:18:37]json_value_free [23:18:37]json_value_free done [23:18:37]process_json_proto returns [23:18:37]Send response to host [23:18:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31731849.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":52369.00,"shift.sale.total_cash":52369.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:18:37]free response buf [23:18:37]execute_script done [23:18:37]execute_script returns [23:18:37]free content buf [23:18:37]Sock 7.Close socket [23:18:37]Sock 7.Thread stoped [23:18:37]accept exits with 9 [23:18:37]New connection [23:18:37]New thread 3066670436 created [23:18:37]Thread 3066813796 joined [23:18:37]Waiting for new connection... [23:18:37] Sock 9.Parse request [23:18:37]Sock 9.Check first char [23:18:37]Sock 9.First char is OK [23:18:37]request: POST /json_proto HTTP/1.0 [23:18:37]Method: POST [23:18:37]URL: /json_proto [23:18:37]Method is POST - this is cgi request [23:18:37]url: /json_proto [23:18:37]query_string will be loaded in cgi processing [23:18:37]execute_cgi json_proto POST (null) [23:18:37]execute_cgi path=json_proto method=POST [23:18:37]POST find Content-Length [23:18:37]Host: 172.17.56.67:8080 [23:18:37]Content-Length: 331 [23:18:37]Content-Type: application/json [23:18:37] [23:18:37]POST finish read [23:18:37]Found Content-Length = 331 [23:18:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:18:37]execute_script... [23:18:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:18:37]POST & json_proto [23:18:37]process_json_proto [23:18:37]json parsed OK: [23:18:37]protocol is kg_v1.0 [23:18:37]action value=get_value [23:18:37]process_action get_value [23:18:37]cmd_get_value [23:18:37]process_action get_value done [23:18:37]requested_data is exist [23:18:37]produce_requested_data [23:18:37]requested_item fm.sale.total is exist - process it [23:18:37]SAM_PROTO_GetFMData [23:18:37]wFMCommunicate request_size=4 [23:18:37]MH_SAM_APDU [23:18:37]CAPDU: 80 13 03 00 [23:18:37]Write to MH i2c: E2 08 00 6E A9 80 13 03 00 00 00 00 00 96 [23:18:37]Write i2c OK [23:18:37]MH_I2C_Read... [23:18:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:18:37]Read from MH i2c: E2 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 FD 00 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 FD 00 6E A9 00 BF 04 85 04 BB 04 6E 04 04 00 F6 BE 00 00 69 04 A1 00 6F 04 04 00 F2 BE 00 00 B1 04 04 00 B9 F5 22 BD 70 04 04 00 28 ED 66 B0 72 04 04 00 91 08 BC 0C 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 C2 50 18 14 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 F3 A8 AC 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 F3 [23:18:37]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 F6 BE 00 00 69 04 A1 00 6F 04 04 00 F2 BE 00 00 B1 04 04 00 B9 F5 22 BD 70 04 04 00 28 ED 66 B0 72 04 04 00 91 08 BC 0C 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 C2 50 18 14 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 F3 A8 AC 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [23:18:37]wFMCommunicate OK [23:18:37]wFMCommunicate request_size=4 [23:18:37]MH_SAM_APDU [23:18:37]CAPDU: 80 17 00 00 [23:18:37]Write to MH i2c: E2 08 00 6F A9 80 17 00 00 00 00 00 00 98 [23:18:37]Write i2c OK [23:18:37]MH_I2C_Read... [23:18:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:37]Read from MH i2c: E2 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 FD 00 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 FD 00 6F A9 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 48 [23:18:37]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:38]wFMCommunicate OK [23:18:38]wFMCommunicate request_size=4 [23:18:38]MH_SAM_APDU [23:18:38]CAPDU: 80 17 00 00 [23:18:38]Write to MH i2c: E2 08 00 70 A9 80 17 00 00 00 00 00 00 99 [23:18:38]Write i2c OK [23:18:38]MH_I2C_Read... [23:18:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:38]Read from MH i2c: E2 [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: E2 FD 00 [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: E2 FD 00 70 A9 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3D [23:18:38]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:38]wFMCommunicate OK [23:18:38]wFMCommunicate request_size=4 [23:18:38]MH_SAM_APDU [23:18:38]CAPDU: 80 17 00 00 [23:18:38]Write to MH i2c: E2 08 00 71 A9 80 17 00 00 00 00 00 00 9A [23:18:38]Write i2c OK [23:18:38]MH_I2C_Read... [23:18:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:38]Read from MH i2c: E2 [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: E2 FD 00 [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: E2 FD 00 71 A9 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 14 [23:18:38]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:18:38]wFMCommunicate OK [23:18:38]wFMCommunicate request_size=4 [23:18:38]MH_SAM_APDU [23:18:38]CAPDU: 80 17 00 00 [23:18:38]Write to MH i2c: E2 08 00 72 A9 80 17 00 00 00 00 00 00 9B [23:18:38]Write i2c OK [23:18:38]MH_I2C_Read... [23:18:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:18:39]Read from MH i2c: E2 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 DC 00 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 DC 00 72 A9 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7F [23:18:39]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:39]wFMCommunicate OK [23:18:39]SAM_PROTO_GetFMData done [23:18:39]requested_item fm.sale_refund.total is exist - process it [23:18:39]requested_item fm.buy.total is exist - process it [23:18:39]requested_item shift.sale.total is exist - process it [23:18:39]SAM_PROTO_GetShiftData [23:18:39]wFMCommunicate request_size=4 [23:18:39]MH_SAM_APDU [23:18:39]CAPDU: 80 13 02 00 [23:18:39]Write to MH i2c: E2 08 00 73 A9 80 13 02 00 00 00 00 00 9A [23:18:39]Write i2c OK [23:18:39]MH_I2C_Read... [23:18:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:18:39]Read from MH i2c: E2 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 FD 00 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 FD 00 73 A9 00 AB 04 AA 04 A7 04 6E 04 04 00 67 00 00 00 69 04 98 00 6F 04 04 00 67 00 00 00 B1 04 03 00 A4 E8 4F 70 04 03 00 A4 E8 4F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 7D 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 22 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 16 [23:18:39]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 67 00 00 00 69 04 98 00 6F 04 04 00 67 00 00 00 B1 04 03 00 A4 E8 4F 70 04 03 00 A4 E8 4F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 7D 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 22 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:39]wFMCommunicate OK [23:18:39]wFMCommunicate request_size=4 [23:18:39]MH_SAM_APDU [23:18:39]CAPDU: 80 17 00 00 [23:18:39]Write to MH i2c: E2 08 00 74 A9 80 17 00 00 00 00 00 00 9D [23:18:39]Write i2c OK [23:18:39]MH_I2C_Read... [23:18:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:40]Read from MH i2c: E2 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: E2 FD 00 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: E2 FD 00 74 A9 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [23:18:40]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:40]wFMCommunicate OK [23:18:40]wFMCommunicate request_size=4 [23:18:40]MH_SAM_APDU [23:18:40]CAPDU: 80 17 00 00 [23:18:40]Write to MH i2c: E2 08 00 75 A9 80 17 00 00 00 00 00 00 9E [23:18:40]Write i2c OK [23:18:40]MH_I2C_Read... [23:18:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:40]Read from MH i2c: E2 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: E2 FD 00 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: E2 FD 00 75 A9 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [23:18:40]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:40]wFMCommunicate OK [23:18:40]wFMCommunicate request_size=4 [23:18:40]MH_SAM_APDU [23:18:40]CAPDU: 80 17 00 00 [23:18:40]Write to MH i2c: E2 08 00 76 A9 80 17 00 00 00 00 00 00 9F [23:18:40]Write i2c OK [23:18:40]MH_I2C_Read... [23:18:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:40]Read from MH i2c: E2 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: E2 FD 00 [23:18:40]MH_I2C_Read... [23:18:40]Read from MH i2c: E2 FD 00 76 A9 00 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 90 00 25 [23:18:41]RAPDU: 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 90 00 [23:18:41]wFMCommunicate OK [23:18:41]wFMCommunicate request_size=4 [23:18:41]MH_SAM_APDU [23:18:41]CAPDU: 80 17 00 00 [23:18:41]Write to MH i2c: E2 08 00 77 A9 80 17 00 00 00 00 00 00 A0 [23:18:41]OFD Sender: No OFD packet to send [23:18:41]Write i2c OK [23:18:41]MH_I2C_Read... [23:18:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [23:18:41]Read from MH i2c: E2 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: E2 C8 00 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: E2 C8 00 77 A9 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 83 [23:18:41]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:41]wFMCommunicate OK [23:18:41]SAM_PROTO_GetShiftData done [23:18:41]requested_item shift.sale.total_cash is exist - process it [23:18:41]requested_item shift.sale_refund.total is exist - process it [23:18:41]requested_item shift.sale_refund.total_cash is exist - process it [23:18:41]requested_item shift.buy.total is exist - process it [23:18:41]requested_item shift.buy.total_cash is exist - process it [23:18:41]produce_requested_data done [23:18:41]produce_requested_data return {"fm.sale.total":31731849.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":52369.00,"shift.sale.total_cash":52369.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:18:41]process_action_free get_value [23:18:41]json_value_free [23:18:41]json_value_free done [23:18:41]process_json_proto returns [23:18:41]Send response to host [23:18:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31731849.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":52369.00,"shift.sale.total_cash":52369.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:18:41]free response buf [23:18:41]execute_script done [23:18:41]execute_script returns [23:18:41]free content buf [23:18:41]Sock 9.Close socket [23:18:41]Sock 9.Thread stoped [23:18:41]accept exits with 7 [23:18:41]New connection [23:18:41]New thread 3066813796 created [23:18:41]Thread 3066670436 joined [23:18:41]Waiting for new connection... [23:18:41] Sock 7.Parse request [23:18:41]Sock 7.Check first char [23:18:41]Sock 7.First char is OK [23:18:41]request: POST /json_proto HTTP/1.0 [23:18:41]Method: POST [23:18:41]URL: /json_proto [23:18:41]Method is POST - this is cgi request [23:18:41]url: /json_proto [23:18:41]query_string will be loaded in cgi processing [23:18:41]execute_cgi json_proto POST (null) [23:18:41]execute_cgi path=json_proto method=POST [23:18:41]POST find Content-Length [23:18:41]Host: 172.17.56.67:8080 [23:18:41]Content-Length: 281 [23:18:41]Content-Type: application/json [23:18:41] [23:18:41]POST finish read [23:18:41]Found Content-Length = 281 [23:18:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u0440\u044B\u043A\u0442\u0430\u0431\u0430\u0441\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:41]execute_script... [23:18:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0430\u0440\u044B\u043A\u0442\u0430\u0431\u0430\u0441\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:41]POST & json_proto [23:18:41]process_json_proto [23:18:41]json parsed OK: [23:18:41]protocol is kg_v1.0 [23:18:41]action value=x_report [23:18:41]process_action x_report [23:18:41]cmd_x_report [23:18:41]MH_GetDate [23:18:41]Write to MH i2c: F0 00 00 78 A9 10 [23:18:41]Write i2c OK [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: F0 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: F0 09 00 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: F0 09 00 78 A9 00 6B D5 BA 65 26 5D 9E 65 FE [23:18:41]GetLastDocTimeStamp 1706725864 [23:18:41]current date 1706743147 [23:18:41]FM_GetShiftState [23:18:41]SAM_PROTO_GetShiftState [23:18:41]wFMCommunicate request_size=4 [23:18:41]MH_SAM_APDU [23:18:41]CAPDU: 80 13 01 00 [23:18:41]Write to MH i2c: E2 08 00 79 A9 80 13 01 00 00 00 00 00 9F [23:18:41]Write i2c OK [23:18:41]MH_I2C_Read... [23:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:41]Read from MH i2c: E2 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: E2 0E 00 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: E2 0E 00 79 A9 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 F5 [23:18:41]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [23:18:41]wFMCommunicate OK [23:18:41]SAM_PROTO_GetShiftState done [23:18:41]FM_GetShiftState done [23:18:41]KKMCreateXReportDocument [23:18:41]Load OK [23:18:41]Malloc new data [23:18:41]MH_GetDate [23:18:41]Write to MH i2c: F0 00 00 7A A9 12 [23:18:41]Write i2c OK [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: F0 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: F0 09 00 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: F0 09 00 7A A9 00 6B D5 BA 65 26 5D 9E 65 00 [23:18:41]Malloc new data [23:18:41]Malloc new data [23:18:41]wFMCommunicate request_size=4 [23:18:41]MH_SAM_APDU [23:18:41]CAPDU: 80 11 00 00 [23:18:41]Write to MH i2c: E2 08 00 7B A9 80 11 00 00 00 00 00 00 9E [23:18:41]Write i2c OK [23:18:41]MH_I2C_Read... [23:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:41]Read from MH i2c: E2 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: E2 17 00 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: E2 17 00 7B A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EB [23:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:18:41]wFMCommunicate OK [23:18:41]SAM_PROTO_GetFieldsCounters [23:18:41]wFMCommunicate request_size=4 [23:18:41]MH_SAM_APDU [23:18:41]CAPDU: 80 13 00 00 [23:18:41]Write to MH i2c: E2 08 00 7C A9 80 13 00 00 00 00 00 00 A1 [23:18:41]Write i2c OK [23:18:41]MH_I2C_Read... [23:18:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:41]Read from MH i2c: E2 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: E2 62 00 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: E2 62 00 7C A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [23: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:41]wFMCommunicate OK [23:18:41]SAM_PROTO_GetFieldsCounters done [23:18:41]Malloc new data [23:18:41]Malloc new data [23:18:41]Malloc new data [23:18:41]KKMCreateXReportDocument OK [23:18:41]KKMSetXReportData OK [23:18:41]KKMPrepareXReportFMData [23:18:41]SAM_PROTO_GetShiftData [23:18:41]wFMCommunicate request_size=4 [23:18:41]MH_SAM_APDU [23:18:41]CAPDU: 80 13 02 00 [23:18:41]Write to MH i2c: E2 08 00 7D A9 80 13 02 00 00 00 00 00 A4 [23:18:41]Write i2c OK [23:18:41]MH_I2C_Read... [23:18:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:18:42]Read from MH i2c: E2 [23:18:42]MH_I2C_Read... [23:18:42]Read from MH i2c: E2 FD 00 [23:18:42]MH_I2C_Read... [23:18:42]Read from MH i2c: E2 FD 00 7D A9 00 AB 04 AA 04 A7 04 6E 04 04 00 67 00 00 00 69 04 98 00 6F 04 04 00 67 00 00 00 B1 04 03 00 A4 E8 4F 70 04 03 00 A4 E8 4F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 7D 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 22 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 20 [23:18:42]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 67 00 00 00 69 04 98 00 6F 04 04 00 67 00 00 00 B1 04 03 00 A4 E8 4F 70 04 03 00 A4 E8 4F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 7D 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 22 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:42]wFMCommunicate OK [23:18:42]wFMCommunicate request_size=4 [23:18:42]MH_SAM_APDU [23:18:42]CAPDU: 80 17 00 00 [23:18:42]Write to MH i2c: E2 08 00 7E A9 80 17 00 00 00 00 00 00 A7 [23:18:42]Write i2c OK [23:18:42]MH_I2C_Read... [23:18:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:42]Read from MH i2c: E2 [23:18:42]MH_I2C_Read... [23:18:42]Read from MH i2c: E2 FD 00 [23:18:42]MH_I2C_Read... [23:18:42]Read from MH i2c: E2 FD 00 7E A9 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BC [23:18:42]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:43]wFMCommunicate OK [23:18:43]wFMCommunicate request_size=4 [23:18:43]MH_SAM_APDU [23:18:43]CAPDU: 80 17 00 00 [23:18:43]Write to MH i2c: E2 08 00 7F A9 80 17 00 00 00 00 00 00 A8 [23:18:43]Write i2c OK [23:18:43]MH_I2C_Read... [23:18:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:43]Read from MH i2c: E2 [23:18:43]MH_I2C_Read... [23:18:43]Read from MH i2c: E2 FD 00 [23:18:43]MH_I2C_Read... [23:18:43]Read from MH i2c: E2 FD 00 7F A9 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 58 [23:18:43]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:43]wFMCommunicate OK [23:18:43]wFMCommunicate request_size=4 [23:18:43]MH_SAM_APDU [23:18:43]CAPDU: 80 17 00 00 [23:18:43]Write to MH i2c: E2 08 00 80 A9 80 17 00 00 00 00 00 00 A9 [23:18:43]Write i2c OK [23:18:43]MH_I2C_Read... [23:18:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:43]Read from MH i2c: E2 [23:18:43]MH_I2C_Read... [23:18:43]Read from MH i2c: E2 FD 00 [23:18:43]MH_I2C_Read... [23:18:43]Read from MH i2c: E2 FD 00 80 A9 00 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 90 00 2F [23:18:43]RAPDU: 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 90 00 [23:18:43]wFMCommunicate OK [23:18:43]wFMCommunicate request_size=4 [23:18:43]MH_SAM_APDU [23:18:43]CAPDU: 80 17 00 00 [23:18:43]Write to MH i2c: E2 08 00 81 A9 80 17 00 00 00 00 00 00 AA [23:18:43]Write i2c OK [23:18:43]MH_I2C_Read... [23:18:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [23:18:44]Read from MH i2c: E2 [23:18:44]MH_I2C_Read... [23:18:44]Read from MH i2c: E2 C8 00 [23:18:44]MH_I2C_Read... [23:18:44]Read from MH i2c: E2 C8 00 81 A9 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8D [23:18:44]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:44]wFMCommunicate OK [23:18:44]SAM_PROTO_GetShiftData done [23:18:44]1194 (1191) - счетчики итогов смены [23:18:44] 1134 (4) - 103 - количество чеков со всеми признаками расчетов [23:18:44] 1129 (152) - счетчики операций «приход» [23:18:44] 1135 (4) - 103 - количество чеков по признаку расчетов [23:18:44] 1201 (3) - 52369.00 - общая итоговая сумма в чеках [23:18:44] 1136 (3) - 52369.00 - итоговая сумма в чеках наличными [23:18:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:18:44] 1024 (122) - суммы налогов [23:18:44] 1006 (9) - суммы НДС [23:18:44] 1010 (1) - 0% - код ставки НДС [23:18:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:18:44] 1006 (12) - суммы НДС [23:18:44] 1010 (1) - 12% - код ставки НДС [23:18:44] 1011 (3) - 5565.16 - сумма НДС по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 0% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (11) - суммы НСП [23:18:44] 1014 (1) - 1% - код ставки НСП [23:18:44] 1015 (2) - 463.70 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 2% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 3% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 5% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 0,50% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 1,50% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1130 (141) - счетчики операций «возврат прихода» [23:18:44] 1135 (4) - 0 - количество чеков по признаку расчетов [23:18:44] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:18:44] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:18:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:18:44] 1024 (117) - суммы налогов [23:18:44] 1006 (9) - суммы НДС [23:18:44] 1010 (1) - 0% - код ставки НДС [23:18:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:18:44] 1006 (9) - суммы НДС [23:18:44] 1010 (1) - 12% - код ставки НДС [23:18:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 0% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 1% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 2% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 3% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 5% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 0,50% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 1,50% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1131 (141) - счетчики операций «расход» [23:18:44] 1135 (4) - 0 - количество чеков по признаку расчетов [23:18:44] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:18:44] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:18:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:18:44] 1024 (117) - суммы налогов [23:18:44] 1006 (9) - суммы НДС [23:18:44] 1010 (1) - 0% - код ставки НДС [23:18:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:18:44] 1006 (9) - суммы НДС [23:18:44] 1010 (1) - 12% - код ставки НДС [23:18:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 0% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 1% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 2% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 3% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 5% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 0,50% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 1,50% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1132 (141) - счетчики операций «возврат расхода» [23:18:44] 1135 (4) - 0 - количество чеков по признаку расчетов [23:18:44] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:18:44] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:18:44] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:18:44] 1024 (117) - суммы налогов [23:18:44] 1006 (9) - суммы НДС [23:18:44] 1010 (1) - 0% - код ставки НДС [23:18:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:18:44] 1006 (9) - суммы НДС [23:18:44] 1010 (1) - 12% - код ставки НДС [23:18:44] 1011 (0) - 0.00 - сумма НДС по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 0% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 1% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 2% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 3% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 5% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 0,50% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1007 (9) - суммы НСП [23:18:44] 1014 (1) - 1,50% - код ставки НСП [23:18:44] 1015 (0) - 0.00 - сумма НСП по ставке [23:18:44] 1133 (588) - - счетчики коррекции - не используются [23:18:44]SetTLVBufToDocument [23:18:44]Processing tag 1194 (04AA) [23:18:44]Load OK [23:18:44]SetTLVBufToDocument [23:18:44]Processing tag 1134 (046E) [23:18:44]Malloc new data [23:18:44]Processing tag 1129 (0469) [23:18:44]Load OK [23:18:44]SetTLVBufToDocument [23:18:44]Processing tag 1135 (046F) [23:18:44]Malloc new data [23:18:44]Processing tag 1201 (04B1) [23:18:44]Malloc new data [23:18:44]Processing tag 1136 (0470) [23:18:44]Malloc new data [23:18:44]Processing tag 1138 (0472) [23:18:44]Malloc new data [23:18:44]Processing tag 1024 (0400) [23:18:44]Load OK [23:18:44]SetTLVBufToDocument [23:18:44]Processing tag 1006 (03EE) [23:18:44]Load OK [23:18:44]SetTLVBufToDocument [23:18:44]Processing tag 1010 (03F2) [23:18:44]Malloc new data [23:18:44]Processing tag 1011 (03F3) [23:18:44]Malloc new data [23:18:44]SetTLVBufToDocument err=0 [23:18:44]Processing tag 1006 (03EE) [23:18:44]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1010 (03F2) [23:18:45]Malloc new data [23:18:45]Processing tag 1011 (03F3) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]SetTLVBufToDocument err=0 [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1130 (046A) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1135 (046F) [23:18:45]Malloc new data [23:18:45]Processing tag 1201 (04B1) [23:18:45]Malloc new data [23:18:45]Processing tag 1136 (0470) [23:18:45]Malloc new data [23:18:45]Processing tag 1138 (0472) [23:18:45]Malloc new data [23:18:45]Processing tag 1024 (0400) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1006 (03EE) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1010 (03F2) [23:18:45]Malloc new data [23:18:45]Processing tag 1011 (03F3) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1006 (03EE) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1010 (03F2) [23:18:45]Malloc new data [23:18:45]Processing tag 1011 (03F3) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]SetTLVBufToDocument err=0 [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1131 (046B) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1135 (046F) [23:18:45]Malloc new data [23:18:45]Processing tag 1201 (04B1) [23:18:45]Malloc new data [23:18:45]Processing tag 1136 (0470) [23:18:45]Malloc new data [23:18:45]Processing tag 1138 (0472) [23:18:45]Malloc new data [23:18:45]Processing tag 1024 (0400) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1006 (03EE) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1010 (03F2) [23:18:45]Malloc new data [23:18:45]Processing tag 1011 (03F3) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1006 (03EE) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1010 (03F2) [23:18:45]Malloc new data [23:18:45]Processing tag 1011 (03F3) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]SetTLVBufToDocument err=0 [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1132 (046C) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1135 (046F) [23:18:45]Malloc new data [23:18:45]Processing tag 1201 (04B1) [23:18:45]Malloc new data [23:18:45]Processing tag 1136 (0470) [23:18:45]Malloc new data [23:18:45]Processing tag 1138 (0472) [23:18:45]Malloc new data [23:18:45]Processing tag 1024 (0400) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1006 (03EE) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1010 (03F2) [23:18:45]Malloc new data [23:18:45]Processing tag 1011 (03F3) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1006 (03EE) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1010 (03F2) [23:18:45]Malloc new data [23:18:45]Processing tag 1011 (03F3) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1007 (03EF) [23:18:45]Load OK [23:18:45]SetTLVBufToDocument [23:18:45]Processing tag 1014 (03F6) [23:18:45]Malloc new data [23:18:45]Processing tag 1015 (03F7) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]SetTLVBufToDocument err=0 [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Processing tag 1133 (046D) [23:18:45]Malloc new data [23:18:45]SetTLVBufToDocument err=0 [23:18:45]SetTLVBufToDocument err=0 [23:18:45]Malloc new data [23:18:45]SAM_PROTO_GetFMData [23:18:45]wFMCommunicate request_size=4 [23:18:45]MH_SAM_APDU [23:18:45]CAPDU: 80 13 03 00 [23:18:45]Write to MH i2c: E2 08 00 82 A9 80 13 03 00 00 00 00 00 AA [23:18:45]Write i2c OK [23:18:45]MH_I2C_Read... [23:18:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:18:45]Read from MH i2c: E2 [23:18:45]MH_I2C_Read... [23:18:45]Read from MH i2c: E2 FD 00 [23:18:45]MH_I2C_Read... [23:18:45]Read from MH i2c: E2 FD 00 82 A9 00 BF 04 85 04 BB 04 6E 04 04 00 F6 BE 00 00 69 04 A1 00 6F 04 04 00 F2 BE 00 00 B1 04 04 00 B9 F5 22 BD 70 04 04 00 28 ED 66 B0 72 04 04 00 91 08 BC 0C 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 C2 50 18 14 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 F3 A8 AC 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 07 [23:18:46]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 F6 BE 00 00 69 04 A1 00 6F 04 04 00 F2 BE 00 00 B1 04 04 00 B9 F5 22 BD 70 04 04 00 28 ED 66 B0 72 04 04 00 91 08 BC 0C 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 C2 50 18 14 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 F3 A8 AC 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [23:18:46]wFMCommunicate OK [23:18:46]wFMCommunicate request_size=4 [23:18:46]MH_SAM_APDU [23:18:46]CAPDU: 80 17 00 00 [23:18:46]Write to MH i2c: E2 08 00 83 A9 80 17 00 00 00 00 00 00 AC [23:18:46]Write i2c OK [23:18:46]MH_I2C_Read... [23:18:46]OFD Sender: No OFD packet to send [23:18:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:46]Read from MH i2c: E2 [23:18:46]MH_I2C_Read... [23:18:46]Read from MH i2c: E2 FD 00 [23:18:46]MH_I2C_Read... [23:18:46]Read from MH i2c: E2 FD 00 83 A9 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5C [23:18:46]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:46]wFMCommunicate OK [23:18:46]wFMCommunicate request_size=4 [23:18:46]MH_SAM_APDU [23:18:46]CAPDU: 80 17 00 00 [23:18:46]Write to MH i2c: E2 08 00 84 A9 80 17 00 00 00 00 00 00 AD [23:18:47]Write i2c OK [23:18:47]MH_I2C_Read... [23:18:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:47]Read from MH i2c: E2 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 FD 00 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 FD 00 84 A9 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [23:18:47]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:47]wFMCommunicate OK [23:18:47]wFMCommunicate request_size=4 [23:18:47]MH_SAM_APDU [23:18:47]CAPDU: 80 17 00 00 [23:18:47]Write to MH i2c: E2 08 00 85 A9 80 17 00 00 00 00 00 00 AE [23:18:47]Write i2c OK [23:18:47]MH_I2C_Read... [23:18:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:47]Read from MH i2c: E2 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 FD 00 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 FD 00 85 A9 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 28 [23:18:47]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:18:48]wFMCommunicate OK [23:18:48]wFMCommunicate request_size=4 [23:18:48]MH_SAM_APDU [23:18:48]CAPDU: 80 17 00 00 [23:18:48]Write to MH i2c: E2 08 00 86 A9 80 17 00 00 00 00 00 00 AF [23:18:48]Write i2c OK [23:18:48]MH_I2C_Read... [23:18:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:18:48]Read from MH i2c: E2 [23:18:48]MH_I2C_Read... [23:18:48]Read from MH i2c: E2 DC 00 [23:18:48]MH_I2C_Read... [23:18:48]Read from MH i2c: E2 DC 00 86 A9 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 93 [23:18:48]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:48]wFMCommunicate OK [23:18:48]SAM_PROTO_GetFMData done [23:18:48]FM_GetFMData:85 04 BB 04 6E 04 04 00 F6 BE 00 00 69 04 A1 00 6F 04 04 00 F2 BE 00 00 B1 04 04 00 B9 F5 22 BD 70 04 04 00 28 ED 66 B0 72 04 04 00 91 08 BC 0C 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 C2 50 18 14 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 F3 A8 AC 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:49]oper:6F 04 04 00 F2 BE 00 00 B1 04 04 00 B9 F5 22 BD 70 04 04 00 28 ED 66 B0 72 04 04 00 91 08 BC 0C 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 C2 50 18 14 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 F3 A8 AC 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:18:49]total:B9 F5 22 BD [23:18:49]Malloc new data [23:18:49]oper:6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:18:49]total:18 75 09 [23:18:49]Malloc new data [23:18:49]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:18:49]total: [23:18:49]Malloc new data [23:18:49]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:18:49]total: [23:18:49]Malloc new data [23:18:49]KKMPrepareXReportFMData err=0 [23:18:49]Х отчет ИНН: 02508201610067 Кассир: Барыктабасов Т. 31.01.2024 23:19 Смена: 10 РНМ: 0000000000092723 ЗНМ: 0300000040 СНО: Общий режим Всего чеков: 103 ИТОГИ ПРИХОД Чеков: 103 Общий итог: 52369.00 Итого наличными: 52369.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 5565.16 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 463.70 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 52369.00 НС Приход: 31731849.53 НС Возвр.Прихода: 6198.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875060 [23:18:49]StoreToDocumentArchive [23:18:49]MH_GetDate [23:18:49]Write to MH i2c: F0 00 00 87 A9 1F [23:18:49]Write i2c OK [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: F0 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: F0 09 00 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: F0 09 00 87 A9 00 73 D5 BA 65 26 5D 9E 65 15 [23:18:49]shift 10 fd 1706743155 [23:18:49]Create dir for shift 0010 [23:18:49]save to /storage/0010/doc_1706743155 [23:18:49]save last doc name /storage/0010/doc_1706743155 to /storage/kkm_last_doc_name [23:18:49]save OK [23:18:49]Clear old archive folders... [23:18:49]NVStorageSaveData kkm_last_timestamp [23:18:49]File name is /storage/kkm_last_timestamp [23:18:49]Write 4 bytes [23:18:49]NVStorageSaveData done [23:18:49]ExternCall_PrintAddStr [23:18:49]wPrintStart [23:18:49]Write to MH i2c: 01 00 00 88 A9 31 [23:18:49]Write i2c OK [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: 01 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: 01 07 00 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: 01 07 00 88 A9 00 00 00 00 00 FF 0F 46 [23:18:49]RasterBufferAndPrint [23:18:49]line Х отчет [23:18:49]line ИНН: 02508201610067 [23:18:49]line Кассир: Барыктабасов Т. [23:18:49]line 31.01.2024 23:19 [23:18:49]line Смена: 10 [23:18:49]line РНМ: 0000000000092723 [23:18:49]line ЗНМ: 0300000040 [23:18:49]line СНО: Общий режим [23:18:49]line Всего чеков: 103 [23:18:49]line ИТОГИ ПРИХОД [23:18:49]line Чеков: 103 [23:18:49]line Общий итог: 52369.00 [23:18:49]line Итого наличными: 52369.00 [23:18:49]line Итого безнал.: 0.00 [23:18:49]line НДС 0% : 0.00 [23:18:49]line НДС 12% : 5565.16 [23:18:49]line НСП 0% : 0.00 [23:18:49]line НСП 1,50% : 0.00 [23:18:49]line НСП 0,50% : 0.00 [23:18:49]line НСП 5% : 0.00 [23:18:49]line НСП 3% : 0.00 [23:18:49]line НСП 2% : 0.00 [23:18:49]line НСП 1% : 463.70 [23:18:49]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:18:49]line Чеков: 0 [23:18:49]line Общий итог: 0.00 [23:18:49]line Итого наличными: 0.00 [23:18:49]line Итого безнал.: 0.00 [23:18:49]line НДС 0% : 0.00 [23:18:49]line НДС 12% : 0.00 [23:18:49]line НСП 0% : 0.00 [23:18:49]line НСП 1,50% : 0.00 [23:18:49]line НСП 0,50% : 0.00 [23:18:49]line НСП 5% : 0.00 [23:18:49]line НСП 3% : 0.00 [23:18:49]line НСП 2% : 0.00 [23:18:49]line НСП 1% : 0.00 [23:18:49]line ИТОГИ РАСХОД [23:18:49]line Чеков: 0 [23:18:49]line Общий итог: 0.00 [23:18:49]line Итого наличными: 0.00 [23:18:49]line Итого безнал.: 0.00 [23:18:49]line НДС 0% : 0.00 [23:18:49]line НДС 12% : 0.00 [23:18:49]line НСП 0% : 0.00 [23:18:49]line НСП 1,50% : 0.00 [23:18:49]line НСП 0,50% : 0.00 [23:18:49]line НСП 5% : 0.00 [23:18:49]line НСП 3% : 0.00 [23:18:49]line НСП 2% : 0.00 [23:18:49]line НСП 1% : 0.00 [23:18:49]line ИТОГИ ВОЗВРАТ РАСХОДА [23:18:49]line Чеков: 0 [23:18:49]line Общий итог: 0.00 [23:18:49]line Итого наличными: 0.00 [23:18:49]line Итого безнал.: 0.00 [23:18:49]line НДС 0% : 0.00 [23:18:49]line НДС 12% : 0.00 [23:18:49]line НСП 0% : 0.00 [23:18:49]line НСП 1,50% : 0.00 [23:18:49]line НСП 0,50% : 0.00 [23:18:49]line НСП 5% : 0.00 [23:18:49]line НСП 3% : 0.00 [23:18:49]line НСП 2% : 0.00 [23:18:49]line НСП 1% : 0.00 [23:18:49]line Сумма внесений: 0.00 [23:18:49]line Сумма выплат: 0.00 [23:18:49]line Нал. в кассе: 52369.00 [23:18:49]line НС Приход: 31731849.53 [23:18:49]line НС Возвр.Прихода: 6198.00 [23:18:49]line НС Расход: 0.00 [23:18:49]line НС Возвр.Расхода: 0.00 [23:18:49]line ФМ: 0000000000875060 [23:18:49]written 0, free lines is 4095 [23:18:50]Write to MH i2c: 01 00 00 D3 A9 7C [23:18:50]Write i2c OK [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: 01 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: 01 07 00 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: 01 07 00 D3 A9 00 00 00 00 00 0B 0B 99 [23:18:50]RasterBufferAndPrint [23:18:50]line [23:18:50]line [23:18:50]line [23:18:50]line [23:18:50]line [23:18:50]written 0, free lines is 2864 [23:18:50]MH_Cut [23:18:50]Write to MH i2c: D1 01 00 DA A9 01 55 [23:18:50]Write i2c OK [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: D1 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: D1 01 00 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: D1 01 00 DA A9 00 54 [23:18:50]Write to MH i2c: 01 00 00 DB A9 84 [23:18:50]Write i2c OK [23:18:50]MH_I2C_Read... [23:18:51]OFD Sender: No OFD packet to send [23:18:51]*** Cut start [23:18:51]*** Partial cut [23:18:51]*** CUTSNS_PIN = 1 [23:18:51]*** CUTSNS_PIN = 0 [23:18:51]*** Brake cut motor [23:18:51]Read from MH i2c: 01 [23:18:51]MH_I2C_Read... [23:18:51]*** Stop cut motor [23:18:51]*** Cut end [23:18:51]Read from MH i2c: 01 07 00 [23:18:51]MH_I2C_Read... [23:18:51]Read from MH i2c: 01 07 00 DB A9 00 00 00 00 00 FF 0F 99 [23:18:51]process_action x_report done [23:18:51]requested_data is exist [23:18:51]produce_requested_data [23:18:51]requested_item fd.num is exist - process it [23:18:51]SAM_PROTO_GetFieldsCounters [23:18:51]wFMCommunicate request_size=4 [23:18:51]MH_SAM_APDU [23:18:51]CAPDU: 80 13 00 00 [23:18:51]Write to MH i2c: E2 08 00 DC A9 80 13 00 00 00 00 00 00 01 [23:18:52]Write i2c OK [23:18:52]MH_I2C_Read... [23:18:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:52]Read from MH i2c: E2 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: E2 62 00 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: E2 62 00 DC A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [23:18: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:52]wFMCommunicate OK [23:18:52]SAM_PROTO_GetFieldsCounters done [23:18:52]requested_item shift.num is exist - process it [23:18:52]requested_item shift.opened is exist - process it [23:18:52]req_shift_opened [23:18:52]FM_GetShiftState [23:18:52]SAM_PROTO_GetShiftState [23:18:52]wFMCommunicate request_size=4 [23:18:52]MH_SAM_APDU [23:18:52]CAPDU: 80 13 01 00 [23:18:52]Write to MH i2c: E2 08 00 DD A9 80 13 01 00 00 00 00 00 03 [23:18:52]Write i2c OK [23:18:52]MH_I2C_Read... [23:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:52]Read from MH i2c: E2 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: E2 0E 00 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: E2 0E 00 DD A9 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 59 [23:18:52]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [23:18:52]wFMCommunicate OK [23:18:52]SAM_PROTO_GetShiftState done [23:18:52]FM_GetShiftState done [23:18:52]req_shift_opened done [23:18:52]requested_item shift.open_date is exist - process it [23:18:52]req_shift_open_date [23:18:52]req_shift_open_date done [23:18:52]produce_requested_data done [23:18:52]produce_requested_data return {"fd.num":49378,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [23:18:52]process_action_free x_report [23:18:52]json_value_free [23:18:52]json_value_free done [23:18:52]process_json_proto returns [23:18:52]Send response to host [23:18:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":49378,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [23:18:52]free response buf [23:18:52]execute_script done [23:18:52]execute_script returns [23:18:52]free content buf [23:18:52]Sock 7.Close socket [23:18:52]Sock 7.Thread stoped [23:18:56]OFD Sender: No OFD packet to send [23:18:57]accept exits with 9 [23:18:57]New connection [23:18:57]New thread 3066670436 created [23:18:57]Thread 3066813796 joined [23:18:57]Waiting for new connection... [23:18:57] Sock 9.Parse request [23:18:57]Sock 9.Check first char [23:18:57]Sock 9.First char is OK [23:18:57]request: POST /json_proto HTTP/1.0 [23:18:57]Method: POST [23:18:57]URL: /json_proto [23:18:57]Method is POST - this is cgi request [23:18:57]url: /json_proto [23:18:57]query_string will be loaded in cgi processing [23:18:57]execute_cgi json_proto POST (null) [23:18:57]execute_cgi path=json_proto method=POST [23:18:57]POST find Content-Length [23:18:57]Host: 172.17.56.67:8080 [23:18:57]Content-Length: 215 [23:18:57]Content-Type: application/json [23:18:57] [23:18:57]POST finish read [23:18:57]Found Content-Length = 215 [23:18:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:57]execute_script... [23:18:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:57]POST & json_proto [23:18:57]process_json_proto [23:18:57]json parsed OK: [23:18:57]protocol is kg_v1.0 [23:18:57]action value=get_value [23:18:57]process_action get_value [23:18:57]cmd_get_value [23:18:57]process_action get_value done [23:18:57]requested_data is exist [23:18:57]produce_requested_data [23:18:57]requested_item kkm.sn is exist - process it [23:18:57]requested_item kkm.ver is exist - process it [23:18:57]requested_item fm.sn is exist - process it [23:18:57]wFMCommunicate request_size=4 [23:18:57]MH_SAM_APDU [23:18:57]CAPDU: 80 11 00 00 [23:18:57]Write to MH i2c: E2 08 00 DE A9 80 11 00 00 00 00 00 00 01 [23:18:57]Write i2c OK [23:18:57]MH_I2C_Read... [23:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:57]Read from MH i2c: E2 [23:18:57]MH_I2C_Read... [23:18:57]Read from MH i2c: E2 17 00 [23:18:57]MH_I2C_Read... [23:18:57]Read from MH i2c: E2 17 00 DE A9 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4E [23:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:18:57]wFMCommunicate OK [23:18:57]requested_item fd.num is exist - process it [23:18:57]SAM_PROTO_GetFieldsCounters [23:18:57]wFMCommunicate request_size=4 [23:18:57]MH_SAM_APDU [23:18:57]CAPDU: 80 13 00 00 [23:18:57]Write to MH i2c: E2 08 00 DF A9 80 13 00 00 00 00 00 00 04 [23:18:57]Write i2c OK [23:18:57]MH_I2C_Read... [23:18:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:58]Read from MH i2c: E2 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 62 00 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 62 00 DF A9 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [23:18: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E2 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:58]wFMCommunicate OK [23:18:58]SAM_PROTO_GetFieldsCounters done [23:18:58]requested_item shift.num is exist - process it [23:18:58]requested_item shift.opened is exist - process it [23:18:58]req_shift_opened [23:18:58]FM_GetShiftState [23:18:58]SAM_PROTO_GetShiftState [23:18:58]wFMCommunicate request_size=4 [23:18:58]MH_SAM_APDU [23:18:58]CAPDU: 80 13 01 00 [23:18:58]Write to MH i2c: E2 08 00 E0 A9 80 13 01 00 00 00 00 00 06 [23:18:58]Write i2c OK [23:18:58]MH_I2C_Read... [23:18:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:58]Read from MH i2c: E2 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 0E 00 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 0E 00 E0 A9 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 5C [23:18:58]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [23:18:58]wFMCommunicate OK [23:18:58]SAM_PROTO_GetShiftState done [23:18:58]FM_GetShiftState done [23:18:58]req_shift_opened done [23:18:58]requested_item shift.open_date is exist - process it [23:18:58]req_shift_open_date [23:18:58]req_shift_open_date done [23:18:58]produce_requested_data done [23:18:58]produce_requested_data return {"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49378,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486} [23:18:58]process_action_free get_value [23:18:58]json_value_free [23:18:58]json_value_free done [23:18:58]process_json_proto returns [23:18:58]Send response to host [23:18:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49378,"shift.num":247,"shift.opened":1,"shift.open_date":1706659486}}} [23:18:58]free response buf [23:18:58]execute_script done [23:18:58]execute_script returns [23:18:58]free content buf [23:18:58]Sock 9.Close socket [23:18:58]Sock 9.Thread stoped [23:18:58]accept exits with 10 [23:18:58]New connection [23:18:58]New thread 3066813796 created [23:18:58]Thread 3066670436 joined [23:18:58]Waiting for new connection... [23:18:58] Sock 10.Parse request [23:18:58]Sock 10.Check first char [23:18:58]Sock 10.First char is OK [23:18:58]request: POST /json_proto HTTP/1.0 [23:18:58]Method: POST [23:18:58]URL: /json_proto [23:18:58]Method is POST - this is cgi request [23:18:58]url: /json_proto [23:18:58]query_string will be loaded in cgi processing [23:18:58]execute_cgi json_proto POST (null) [23:18:58]execute_cgi path=json_proto method=POST [23:18:58]POST find Content-Length [23:18:58]Host: 172.17.56.67:8080 [23:18:58]Content-Length: 331 [23:18:58]Content-Type: application/json [23:18:58] [23:18:58]POST finish read [23:18:58]Found Content-Length = 331 [23:18:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:18:58]execute_script... [23:18:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:18:58]POST & json_proto [23:18:58]process_json_proto [23:18:58]json parsed OK: [23:18:58]protocol is kg_v1.0 [23:18:58]action value=get_value [23:18:58]process_action get_value [23:18:58]cmd_get_value [23:18:58]process_action get_value done [23:18:58]requested_data is exist [23:18:58]produce_requested_data [23:18:58]requested_item fm.sale.total is exist - process it [23:18:58]SAM_PROTO_GetFMData [23:18:58]wFMCommunicate request_size=4 [23:18:58]MH_SAM_APDU [23:18:58]CAPDU: 80 13 03 00 [23:18:58]Write to MH i2c: E2 08 00 E1 A9 80 13 03 00 00 00 00 00 09 [23:18:58]Write i2c OK [23:18:58]MH_I2C_Read... [23:18:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:18:58]Read from MH i2c: E2 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 FD 00 [23:18:58]MH_I2C_Read... [23:18:58]Read from MH i2c: E2 FD 00 E1 A9 00 BF 04 85 04 BB 04 6E 04 04 00 F6 BE 00 00 69 04 A1 00 6F 04 04 00 F2 BE 00 00 B1 04 04 00 B9 F5 22 BD 70 04 04 00 28 ED 66 B0 72 04 04 00 91 08 BC 0C 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 C2 50 18 14 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 F3 A8 AC 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 66 [23:18:58]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 F6 BE 00 00 69 04 A1 00 6F 04 04 00 F2 BE 00 00 B1 04 04 00 B9 F5 22 BD 70 04 04 00 28 ED 66 B0 72 04 04 00 91 08 BC 0C 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 C2 50 18 14 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 F3 A8 AC 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [23:18:58]wFMCommunicate OK [23:18:58]wFMCommunicate request_size=4 [23:18:58]MH_SAM_APDU [23:18:58]CAPDU: 80 17 00 00 [23:18:58]Write to MH i2c: E2 08 00 E2 A9 80 17 00 00 00 00 00 00 0B [23:18:58]Write i2c OK [23:18:58]MH_I2C_Read... [23:18:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:59]Read from MH i2c: E2 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 FD 00 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 FD 00 E2 A9 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BB [23:18:59]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:59]wFMCommunicate OK [23:18:59]wFMCommunicate request_size=4 [23:18:59]MH_SAM_APDU [23:18:59]CAPDU: 80 17 00 00 [23:18:59]Write to MH i2c: E2 08 00 E3 A9 80 17 00 00 00 00 00 00 0C [23:18:59]Write i2c OK [23:18:59]MH_I2C_Read... [23:18:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:18:59]Read from MH i2c: E2 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 FD 00 [23:18:59]MH_I2C_Read... [23:18:59]Read from MH i2c: E2 FD 00 E3 A9 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B0 [23:18:59]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:18:59]wFMCommunicate OK [23:18:59]wFMCommunicate request_size=4 [23:18:59]MH_SAM_APDU [23:18:59]CAPDU: 80 17 00 00 [23:18:59]Write to MH i2c: E2 08 00 E4 A9 80 17 00 00 00 00 00 00 0D [23:18:59]Write i2c OK [23:18:59]MH_I2C_Read... [23:19:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:00]Read from MH i2c: E2 [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: E2 FD 00 [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: E2 FD 00 E4 A9 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 87 [23:19:00]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:19:00]wFMCommunicate OK [23:19:00]wFMCommunicate request_size=4 [23:19:00]MH_SAM_APDU [23:19:00]CAPDU: 80 17 00 00 [23:19:00]Write to MH i2c: E2 08 00 E5 A9 80 17 00 00 00 00 00 00 0E [23:19:00]Write i2c OK [23:19:00]MH_I2C_Read... [23:19:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:19:00]Read from MH i2c: E2 [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: E2 DC 00 [23:19:00]MH_I2C_Read... [23:19:00]Read from MH i2c: E2 DC 00 E5 A9 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 [23:19:00]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:01]wFMCommunicate OK [23:19:01]SAM_PROTO_GetFMData done [23:19:01]requested_item fm.sale_refund.total is exist - process it [23:19:01]requested_item fm.buy.total is exist - process it [23:19:01]requested_item shift.sale.total is exist - process it [23:19:01]SAM_PROTO_GetShiftData [23:19:01]wFMCommunicate request_size=4 [23:19:01]MH_SAM_APDU [23:19:01]CAPDU: 80 13 02 00 [23:19:01]Write to MH i2c: E2 08 00 E6 A9 80 13 02 00 00 00 00 00 0D [23:19:01]Write i2c OK [23:19:01]MH_I2C_Read... [23:19:01]OFD Sender: No OFD packet to send [23:19:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:19:01]Read from MH i2c: E2 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 FD 00 [23:19:01]MH_I2C_Read... [23:19:01]Read from MH i2c: E2 FD 00 E6 A9 00 AB 04 AA 04 A7 04 6E 04 04 00 67 00 00 00 69 04 98 00 6F 04 04 00 67 00 00 00 B1 04 03 00 A4 E8 4F 70 04 03 00 A4 E8 4F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 7D 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 22 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 89 [23:19:01]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 67 00 00 00 69 04 98 00 6F 04 04 00 67 00 00 00 B1 04 03 00 A4 E8 4F 70 04 03 00 A4 E8 4F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 7D 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 22 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:19:01]wFMCommunicate OK [23:19:01]wFMCommunicate request_size=4 [23:19:01]MH_SAM_APDU [23:19:01]CAPDU: 80 17 00 00 [23:19:01]Write to MH i2c: E2 08 00 E7 A9 80 17 00 00 00 00 00 00 10 [23:19:01]Write i2c OK [23:19:01]MH_I2C_Read... [23:19:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:02]Read from MH i2c: E2 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: E2 FD 00 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: E2 FD 00 E7 A9 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 25 [23:19:02]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:19:02]wFMCommunicate OK [23:19:02]wFMCommunicate request_size=4 [23:19:02]MH_SAM_APDU [23:19:02]CAPDU: 80 17 00 00 [23:19:02]Write to MH i2c: E2 08 00 E8 A9 80 17 00 00 00 00 00 00 11 [23:19:02]Write i2c OK [23:19:02]MH_I2C_Read... [23:19:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:02]Read from MH i2c: E2 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: E2 FD 00 [23:19:02]MH_I2C_Read... [23:19:02]Read from MH i2c: E2 FD 00 E8 A9 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C1 [23:19:02]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:19:03]wFMCommunicate OK [23:19:03]wFMCommunicate request_size=4 [23:19:03]MH_SAM_APDU [23:19:03]CAPDU: 80 17 00 00 [23:19:03]Write to MH i2c: E2 08 00 E9 A9 80 17 00 00 00 00 00 00 12 [23:19:03]Write i2c OK [23:19:03]MH_I2C_Read... [23:19:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:03]Read from MH i2c: E2 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 FD 00 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 FD 00 E9 A9 00 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 90 00 98 [23:19:03]RAPDU: 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 90 00 [23:19:03]wFMCommunicate OK [23:19:03]wFMCommunicate request_size=4 [23:19:03]MH_SAM_APDU [23:19:03]CAPDU: 80 17 00 00 [23:19:03]Write to MH i2c: E2 08 00 EA A9 80 17 00 00 00 00 00 00 13 [23:19:03]Write i2c OK [23:19:03]MH_I2C_Read... [23:19:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [23:19:03]Read from MH i2c: E2 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 C8 00 [23:19:03]MH_I2C_Read... [23:19:03]Read from MH i2c: E2 C8 00 EA A9 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F6 [23:19:04]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:04]wFMCommunicate OK [23:19:04]SAM_PROTO_GetShiftData done [23:19:04]requested_item shift.sale.total_cash is exist - process it [23:19:04]requested_item shift.sale_refund.total is exist - process it [23:19:04]requested_item shift.sale_refund.total_cash is exist - process it [23:19:04]requested_item shift.buy.total is exist - process it [23:19:04]requested_item shift.buy.total_cash is exist - process it [23:19:04]produce_requested_data done [23:19:04]produce_requested_data return {"fm.sale.total":31731849.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":52369.00,"shift.sale.total_cash":52369.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:19:04]process_action_free get_value [23:19:04]json_value_free [23:19:04]json_value_free done [23:19:04]process_json_proto returns [23:19:04]Send response to host [23:19:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31731849.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":52369.00,"shift.sale.total_cash":52369.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:19:04]free response buf [23:19:04]execute_script done [23:19:04]execute_script returns [23:19:04]free content buf [23:19:04]Sock 10.Close socket [23:19:04]Sock 10.Thread stoped [23:19:04]accept exits with 7 [23:19:04]New connection [23:19:04]New thread 3066670436 created [23:19:04]Thread 3066813796 joined [23:19:04]Waiting for new connection... [23:19:04] Sock 7.Parse request [23:19:04]Sock 7.Check first char [23:19:04]Sock 7.First char is OK [23:19:04]request: POST /json_proto HTTP/1.0 [23:19:04]Method: POST [23:19:04]URL: /json_proto [23:19:04]Method is POST - this is cgi request [23:19:04]url: /json_proto [23:19:04]query_string will be loaded in cgi processing [23:19:04]execute_cgi json_proto POST (null) [23:19:04]execute_cgi path=json_proto method=POST [23:19:04]POST find Content-Length [23:19:04]Host: 172.17.56.67:8080 [23:19:04]Content-Length: 331 [23:19:04]Content-Type: application/json [23:19:04] [23:19:04]POST finish read [23:19:04]Found Content-Length = 331 [23:19:04]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:19:04]execute_script... [23:19:04]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:19:04]POST & json_proto [23:19:04]process_json_proto [23:19:04]json parsed OK: [23:19:04]protocol is kg_v1.0 [23:19:04]action value=get_value [23:19:04]process_action get_value [23:19:04]cmd_get_value [23:19:04]process_action get_value done [23:19:04]requested_data is exist [23:19:04]produce_requested_data [23:19:04]requested_item fm.sale.total is exist - process it [23:19:04]SAM_PROTO_GetFMData [23:19:04]wFMCommunicate request_size=4 [23:19:04]MH_SAM_APDU [23:19:04]CAPDU: 80 13 03 00 [23:19:04]Write to MH i2c: E2 08 00 EB A9 80 13 03 00 00 00 00 00 13 [23:19:04]Write i2c OK [23:19:04]MH_I2C_Read... [23:19:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:19:04]Read from MH i2c: E2 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 FD 00 [23:19:04]MH_I2C_Read... [23:19:04]Read from MH i2c: E2 FD 00 EB A9 00 BF 04 85 04 BB 04 6E 04 04 00 F6 BE 00 00 69 04 A1 00 6F 04 04 00 F2 BE 00 00 B1 04 04 00 B9 F5 22 BD 70 04 04 00 28 ED 66 B0 72 04 04 00 91 08 BC 0C 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 C2 50 18 14 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 F3 A8 AC 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 70 [23:19:04]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 F6 BE 00 00 69 04 A1 00 6F 04 04 00 F2 BE 00 00 B1 04 04 00 B9 F5 22 BD 70 04 04 00 28 ED 66 B0 72 04 04 00 91 08 BC 0C 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 C2 50 18 14 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 F3 A8 AC 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [23:19:05]wFMCommunicate OK [23:19:05]wFMCommunicate request_size=4 [23:19:05]MH_SAM_APDU [23:19:05]CAPDU: 80 17 00 00 [23:19:05]Write to MH i2c: E2 08 00 EC A9 80 17 00 00 00 00 00 00 15 [23:19:05]Write i2c OK [23:19:05]MH_I2C_Read... [23:19:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:05]Read from MH i2c: E2 [23:19:05]MH_I2C_Read... [23:19:05]Read from MH i2c: E2 FD 00 [23:19:05]MH_I2C_Read... [23:19:05]Read from MH i2c: E2 FD 00 EC A9 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C5 [23:19:05]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:19:05]wFMCommunicate OK [23:19:05]wFMCommunicate request_size=4 [23:19:05]MH_SAM_APDU [23:19:05]CAPDU: 80 17 00 00 [23:19:05]Write to MH i2c: E2 08 00 ED A9 80 17 00 00 00 00 00 00 16 [23:19:05]Write i2c OK [23:19:05]MH_I2C_Read... [23:19:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:05]Read from MH i2c: E2 [23:19:05]MH_I2C_Read... [23:19:05]Read from MH i2c: E2 FD 00 [23:19:05]MH_I2C_Read... [23:19:05]Read from MH i2c: E2 FD 00 ED A9 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BA [23:19:06]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:19:06]wFMCommunicate OK [23:19:06]wFMCommunicate request_size=4 [23:19:06]MH_SAM_APDU [23:19:06]CAPDU: 80 17 00 00 [23:19:06]Write to MH i2c: E2 08 00 EE A9 80 17 00 00 00 00 00 00 17 [23:19:06]Write i2c OK [23:19:06]MH_I2C_Read... [23:19:06]OFD Sender: No OFD packet to send [23:19:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:06]Read from MH i2c: E2 [23:19:06]MH_I2C_Read... [23:19:06]Read from MH i2c: E2 FD 00 [23:19:06]MH_I2C_Read... [23:19:06]Read from MH i2c: E2 FD 00 EE A9 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 91 [23:19:06]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:19:06]wFMCommunicate OK [23:19:06]wFMCommunicate request_size=4 [23:19:06]MH_SAM_APDU [23:19:06]CAPDU: 80 17 00 00 [23:19:06]Write to MH i2c: E2 08 00 EF A9 80 17 00 00 00 00 00 00 18 [23:19:06]Write i2c OK [23:19:06]MH_I2C_Read... [23:19:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:19:07]Read from MH i2c: E2 [23:19:07]MH_I2C_Read... [23:19:07]Read from MH i2c: E2 DC 00 [23:19:07]MH_I2C_Read... [23:19:07]Read from MH i2c: E2 DC 00 EF A9 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FC [23:19:07]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:07]wFMCommunicate OK [23:19:07]SAM_PROTO_GetFMData done [23:19:07]requested_item fm.sale_refund.total is exist - process it [23:19:07]requested_item fm.buy.total is exist - process it [23:19:07]requested_item shift.sale.total is exist - process it [23:19:07]SAM_PROTO_GetShiftData [23:19:07]wFMCommunicate request_size=4 [23:19:07]MH_SAM_APDU [23:19:07]CAPDU: 80 13 02 00 [23:19:07]Write to MH i2c: E2 08 00 F0 A9 80 13 02 00 00 00 00 00 17 [23:19:07]Write i2c OK [23:19:07]MH_I2C_Read... [23:19:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:19:07]Read from MH i2c: E2 [23:19:07]MH_I2C_Read... [23:19:07]Read from MH i2c: E2 FD 00 [23:19:07]MH_I2C_Read... [23:19:08]Read from MH i2c: E2 FD 00 F0 A9 00 AB 04 AA 04 A7 04 6E 04 04 00 67 00 00 00 69 04 98 00 6F 04 04 00 67 00 00 00 B1 04 03 00 A4 E8 4F 70 04 03 00 A4 E8 4F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 7D 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 22 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 93 [23:19:08]RAPDU: AB 04 AA 04 A7 04 6E 04 04 00 67 00 00 00 69 04 98 00 6F 04 04 00 67 00 00 00 B1 04 03 00 A4 E8 4F 70 04 03 00 A4 E8 4F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 7D 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 22 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:19:08]wFMCommunicate OK [23:19:08]wFMCommunicate request_size=4 [23:19:08]MH_SAM_APDU [23:19:08]CAPDU: 80 17 00 00 [23:19:08]Write to MH i2c: E2 08 00 F1 A9 80 17 00 00 00 00 00 00 1A [23:19:08]Write i2c OK [23:19:08]MH_I2C_Read... [23:19:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:08]Read from MH i2c: E2 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: E2 FD 00 [23:19:08]MH_I2C_Read... [23:19:08]Read from MH i2c: E2 FD 00 F1 A9 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2F [23:19:08]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:19:09]wFMCommunicate OK [23:19:09]wFMCommunicate request_size=4 [23:19:09]MH_SAM_APDU [23:19:09]CAPDU: 80 17 00 00 [23:19:09]Write to MH i2c: E2 08 00 F2 A9 80 17 00 00 00 00 00 00 1B [23:19:09]Write i2c OK [23:19:09]MH_I2C_Read... [23:19:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:09]Read from MH i2c: E2 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 FD 00 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 FD 00 F2 A9 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CB [23:19:09]RAPDU: 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:19:09]wFMCommunicate OK [23:19:09]wFMCommunicate request_size=4 [23:19:09]MH_SAM_APDU [23:19:09]CAPDU: 80 17 00 00 [23:19:09]Write to MH i2c: E2 08 00 F3 A9 80 17 00 00 00 00 00 00 1C [23:19:09]Write i2c OK [23:19:09]MH_I2C_Read... [23:19:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:09]Read from MH i2c: E2 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 FD 00 [23:19:09]MH_I2C_Read... [23:19:09]Read from MH i2c: E2 FD 00 F3 A9 00 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 90 00 A2 [23:19:10]RAPDU: 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 90 00 [23:19:10]wFMCommunicate OK [23:19:10]wFMCommunicate request_size=4 [23:19:10]MH_SAM_APDU [23:19:10]CAPDU: 80 17 00 00 [23:19:10]Write to MH i2c: E2 08 00 F4 A9 80 17 00 00 00 00 00 00 1D [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 197! [23:19:10]Read from MH i2c: E2 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 C8 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: E2 C8 00 F4 A9 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:19:10]RAPDU: EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:10]wFMCommunicate OK [23:19:10]SAM_PROTO_GetShiftData done [23:19:10]requested_item shift.sale.total_cash is exist - process it [23:19:10]requested_item shift.sale_refund.total is exist - process it [23:19:10]requested_item shift.sale_refund.total_cash is exist - process it [23:19:10]requested_item shift.buy.total is exist - process it [23:19:10]requested_item shift.buy.total_cash is exist - process it [23:19:10]produce_requested_data done [23:19:10]produce_requested_data return {"fm.sale.total":31731849.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":52369.00,"shift.sale.total_cash":52369.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:19:10]process_action_free get_value [23:19:10]json_value_free [23:19:10]json_value_free done [23:19:10]process_json_proto returns [23:19:10]Send response to host [23:19:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31731849.53,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":52369.00,"shift.sale.total_cash":52369.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:19:10]free response buf [23:19:10]execute_script done [23:19:10]execute_script returns [23:19:10]free content buf [23:19:10]Sock 7.Close socket [23:19:10]Sock 7.Thread stoped [23:19:10]accept exits with 9 [23:19:10]New connection [23:19:10]New thread 3066813796 created [23:19:10]Thread 3066670436 joined [23:19:10]Waiting for new connection... [23:19:10] Sock 9.Parse request [23:19:10]Sock 9.Check first char [23:19:10]Sock 9.First char is OK [23:19:10]request: POST /json_proto HTTP/1.0 [23:19:10]Method: POST [23:19:10]URL: /json_proto [23:19:10]Method is POST - this is cgi request [23:19:10]url: /json_proto [23:19:10]query_string will be loaded in cgi processing [23:19:10]execute_cgi json_proto POST (null) [23:19:10]execute_cgi path=json_proto method=POST [23:19:10]POST find Content-Length [23:19:10]Host: 172.17.56.67:8080 [23:19:10]Content-Length: 284 [23:19:10]Content-Type: application/json [23:19:10] [23:19:10]POST finish read [23:19:10]Found Content-Length = 284 [23:19:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0430\u0440\u044B\u043A\u0442\u0430\u0431\u0430\u0441\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:10]execute_script... [23:19:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0430\u0440\u044B\u043A\u0442\u0430\u0431\u0430\u0441\u043E\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:10]POST & json_proto [23:19:10]process_json_proto [23:19:10]json parsed OK: [23:19:10]protocol is kg_v1.0 [23:19:10]action value=close_shift [23:19:10]process_action close_shift [23:19:10]cmd_close_shift [23:19:10]MH_GetDate [23:19:10]Write to MH i2c: F0 00 00 F5 A9 8D [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: F0 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: F0 09 00 [23:19:10]MH_I2C_Read... [23:19:10]Read from MH i2c: F0 09 00 F5 A9 00 89 D5 BA 65 26 5D 9E 65 99 [23:19:10]GetLastDocTimeStamp 1706743147 [23:19:10]current date 1706743177 [23:19:10]FM_GetShiftState [23:19:10]SAM_PROTO_GetShiftState [23:19:10]wFMCommunicate request_size=4 [23:19:10]MH_SAM_APDU [23:19:10]CAPDU: 80 13 01 00 [23:19:10]Write to MH i2c: E2 08 00 F6 A9 80 13 01 00 00 00 00 00 1C [23:19:10]Write i2c OK [23:19:10]MH_I2C_Read... [23:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:11]Read from MH i2c: E2 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: E2 0E 00 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: E2 0E 00 F6 A9 00 09 00 01 9E 8E B9 65 00 00 00 00 90 00 72 [23:19:11]RAPDU: 09 00 01 9E 8E B9 65 00 00 00 00 90 00 [23:19:11]wFMCommunicate OK [23:19:11]SAM_PROTO_GetShiftState done [23:19:11]FM_GetShiftState done [23:19:11]KKMCreateCloseShiftDocument [23:19:11]Load OK [23:19:11]Malloc new data [23:19:11]MH_GetDate [23:19:11]Write to MH i2c: F0 00 00 F7 A9 8F [23:19:11]Write i2c OK [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: F0 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: F0 09 00 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: F0 09 00 F7 A9 00 89 D5 BA 65 26 5D 9E 65 9B [23:19:11]Malloc new data [23:19:11]Malloc new data [23:19:11]Malloc new data [23:19:11]Malloc new data [23:19:11]KKMCreateCloseShiftDocument OK [23:19:11]KKMSetCloseShiftData OK [23:19:11]ProcessDocumentItem done err = 0, tmpTLVsize=79 [23:19:11]tlvbuf is 0158BAF0 [23:19:11]KKMLoadAndSignCloseShiftData [23:19:11]SAM_PROTO_ProcessDocument [23:19:11]wFMCommunicate request_size=9 [23:19:11]MH_SAM_APDU [23:19:11]CAPDU: 80 15 01 00 04 05 00 4F 00 [23:19:11]Write to MH i2c: E2 0C 00 F8 A9 80 15 01 00 04 00 05 00 4F 00 00 00 7C [23:19:11]Write i2c OK [23:19:11]MH_I2C_Read... [23:19:11]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:19:11]Read from MH i2c: E2 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: E2 03 00 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: E2 03 00 F8 A9 00 90 00 15 [23:19:11]RAPDU: 90 00 [23:19:11]wFMCommunicate OK [23:19:11]wFMCommunicate request_size=23 [23:19:11]MH_SAM_APDU [23:19:11]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:19:11]Write to MH i2c: E2 1A 00 F9 A9 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 17 [23:19:11]Write i2c OK [23:19:11]MH_I2C_Read... [23:19:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:19:11]Read from MH i2c: E2 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: E2 03 00 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: E2 03 00 F9 A9 00 90 00 16 [23:19:11]RAPDU: 90 00 [23:19:11]wFMCommunicate OK [23:19:11]wFMCommunicate request_size=38 [23:19:11]MH_SAM_APDU [23:19:11]CAPDU: 80 15 02 00 21 FD 03 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 [23:19:11]Write to MH i2c: E2 29 00 FA A9 80 15 02 00 21 00 FD 03 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 00 00 B0 [23:19:11]Write i2c OK [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: E2 [23:19:11]MH_I2C_Read... [23:19:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:19:11]Read from MH i2c: E2 03 00 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: E2 03 00 FA A9 00 90 00 17 [23:19:11]RAPDU: 90 00 [23:19:11]wFMCommunicate OK [23:19:11]wFMCommunicate request_size=13 [23:19:11]MH_SAM_APDU [23:19:11]CAPDU: 80 15 02 00 08 F4 03 04 00 89 D5 BA 65 [23:19:11]Write to MH i2c: E2 10 00 FB A9 80 15 02 00 08 00 F4 03 04 00 89 D5 BA 65 00 00 AC [23:19:11]OFD Sender: No OFD packet to send [23:19:11]Write i2c OK [23:19:11]MH_I2C_Read... [23:19:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:19:11]Read from MH i2c: E2 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: E2 03 00 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: E2 03 00 FB A9 00 90 00 18 [23:19:11]RAPDU: 90 00 [23:19:11]wFMCommunicate OK [23:19:11]wFMCommunicate request_size=25 [23:19:11]MH_SAM_APDU [23:19:11]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 [23:19:11]Write to MH i2c: E2 1C 00 FC A9 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 00 00 85 [23:19:11]Write i2c OK [23:19:11]MH_I2C_Read... [23:19:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:19:11]Read from MH i2c: E2 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: E2 03 00 [23:19:11]MH_I2C_Read... [23:19:11]Read from MH i2c: E2 03 00 FC A9 00 90 00 19 [23:19:11]RAPDU: 90 00 [23:19:11]wFMCommunicate OK [23:19:11]wFMCommunicate request_size=4 [23:19:11]MH_SAM_APDU [23:19:11]CAPDU: 80 15 03 00 [23:19:11]Write to MH i2c: E2 08 00 FD A9 80 15 03 00 00 00 00 00 27 [23:19:11]Write i2c OK [23:19:11]MH_I2C_Read... [23:19:12]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:19:12]Read from MH i2c: E2 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 FD 00 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 FD 00 FD A9 00 EE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E3 C0 00 00 0E 04 04 00 F7 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 69 00 00 00 AA 04 A7 04 6E 04 04 00 67 00 00 00 69 04 98 00 6F 04 04 00 67 00 00 00 B1 04 03 00 A4 E8 4F 70 04 03 00 A4 E8 4F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 7D 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 22 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 19 [23:19:12]RAPDU: EE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E3 C0 00 00 0E 04 04 00 F7 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 69 00 00 00 AA 04 A7 04 6E 04 04 00 67 00 00 00 69 04 98 00 6F 04 04 00 67 00 00 00 B1 04 03 00 A4 E8 4F 70 04 03 00 A4 E8 4F 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 7D 08 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 22 B5 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:19:12]wFMCommunicate OK [23:19:12]SAM_PROTO_ProcessDocument answer len = 1262 [23:19:12]SAM_PROTO_ProcessDocument remain to read = 1014 [23:19:12]wFMCommunicate request_size=4 [23:19:12]MH_SAM_APDU [23:19:12]CAPDU: 80 17 00 00 [23:19:12]Write to MH i2c: E2 08 00 FE A9 80 17 00 00 00 00 00 00 27 [23:19:12]Write i2c OK [23:19:12]MH_I2C_Read... [23:19:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:12]Read from MH i2c: E2 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 FD 00 [23:19:12]MH_I2C_Read... [23:19:12]Read from MH i2c: E2 FD 00 FE A9 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 [23:19:13]RAPDU: 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:19:13]wFMCommunicate OK [23:19:13]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:19:13]SAM_PROTO_ProcessDocument remain to read = 764 [23:19:13]wFMCommunicate request_size=4 [23:19:13]MH_SAM_APDU [23:19:13]CAPDU: 80 17 00 00 [23:19:13]Write to MH i2c: E2 08 00 FF A9 80 17 00 00 00 00 00 00 28 [23:19:13]Write i2c OK [23:19:13]MH_I2C_Read... [23:19:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:13]Read from MH i2c: E2 [23:19:13]MH_I2C_Read... [23:19:13]Read from MH i2c: E2 FD 00 [23:19:13]MH_I2C_Read... [23:19:13]Read from MH i2c: E2 FD 00 FF A9 00 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 90 00 86 [23:19:13]RAPDU: 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 90 00 [23:19:14]wFMCommunicate OK [23:19:14]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:19:14]SAM_PROTO_ProcessDocument remain to read = 514 [23:19:14]wFMCommunicate request_size=4 [23:19:14]MH_SAM_APDU [23:19:14]CAPDU: 80 17 00 00 [23:19:14]Write to MH i2c: E2 08 00 00 AA 80 17 00 00 00 00 00 00 2A [23:19:14]Write i2c OK [23:19:14]MH_I2C_Read... [23:19:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:14]Read from MH i2c: E2 [23:19:14]MH_I2C_Read... [23:19:14]Read from MH i2c: E2 FD 00 [23:19:14]MH_I2C_Read... [23:19:14]Read from MH i2c: E2 FD 00 00 AA 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 B6 [23:19:14]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:19:14]wFMCommunicate OK [23:19:14]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:19:14]SAM_PROTO_ProcessDocument remain to read = 264 [23:19:14]wFMCommunicate request_size=4 [23:19:14]MH_SAM_APDU [23:19:14]CAPDU: 80 17 00 00 [23:19:14]Write to MH i2c: E2 08 00 01 AA 80 17 00 00 00 00 00 00 2B [23:19:14]Write i2c OK [23:19:14]MH_I2C_Read... [23:19:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:15]Read from MH i2c: E2 [23:19:15]MH_I2C_Read... [23:19:15]Read from MH i2c: E2 FD 00 [23:19:15]MH_I2C_Read... [23:19:15]Read from MH i2c: E2 FD 00 01 AA 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F6 [23:19:15]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:19:15]wFMCommunicate OK [23:19:15]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:19:15]SAM_PROTO_ProcessDocument remain to read = 14 [23:19:15]wFMCommunicate request_size=4 [23:19:15]MH_SAM_APDU [23:19:15]CAPDU: 80 17 00 00 [23:19:15]Write to MH i2c: E2 08 00 02 AA 80 17 00 00 00 00 00 00 2C [23:19:15]Write i2c OK [23:19:15]MH_I2C_Read... [23:19:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 14! [23:19:15]Read from MH i2c: E2 [23:19:15]MH_I2C_Read... [23:19:15]Read from MH i2c: E2 11 00 [23:19:15]MH_I2C_Read... [23:19:15]Read from MH i2c: E2 11 00 02 AA 00 F7 03 00 00 35 04 06 00 42 E3 FA FE AB 55 90 00 84 [23:19:15]RAPDU: F7 03 00 00 35 04 06 00 42 E3 FA FE AB 55 90 00 [23:19:15]wFMCommunicate OK [23:19:15]SAM_PROTO_ProcessDocument received (without SW) 14 bytes [23:19:15]SAM_PROTO_ProcessDocument done [23:19:15]1209 (1) - 1.0 - номер версии ФФД [23:19:15]1041 (16) - 0000000000875060 - номер ФМ [23:19:15]1040 (4) - 49379 - номер ФД [23:19:15]1038 (4) - 247 - номер смены [23:19:15]1118 (4) - 103 - количество кассовых чеков за смену [23:19:15]1111 (4) - 105 - общее количество ФД за смену [23:19:15]1194 (1191) - счетчики итогов смены [23:19:15] 1134 (4) - 103 - количество чеков со всеми признаками расчетов [23:19:15] 1129 (152) - счетчики операций «приход» [23:19:15] 1135 (4) - 103 - количество чеков по признаку расчетов [23:19:15] 1201 (3) - 52369.00 - общая итоговая сумма в чеках [23:19:15] 1136 (3) - 52369.00 - итоговая сумма в чеках наличными [23:19:15] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:19:15] 1024 (122) - суммы налогов [23:19:15] 1006 (9) - суммы НДС [23:19:15] 1010 (1) - 0% - код ставки НДС [23:19:15] 1011 (0) - 0.00 - сумма НДС по ставке [23:19:15] 1006 (12) - суммы НДС [23:19:15] 1010 (1) - 12% - код ставки НДС [23:19:15] 1011 (3) - 5565.16 - сумма НДС по ставке [23:19:15] 1007 (9) - суммы НСП [23:19:15] 1014 (1) - 0% - код ставки НСП [23:19:15] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:15] 1007 (11) - суммы НСП [23:19:15] 1014 (1) - 1% - код ставки НСП [23:19:15] 1015 (2) - 463.70 - сумма НСП по ставке [23:19:15] 1007 (9) - суммы НСП [23:19:15] 1014 (1) - 2% - код ставки НСП [23:19:15] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:15] 1007 (9) - суммы НСП [23:19:15] 1014 (1) - 3% - код ставки НСП [23:19:15] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:15] 1007 (9) - суммы НСП [23:19:15] 1014 (1) - 5% - код ставки НСП [23:19:15] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:15] 1007 (9) - суммы НСП [23:19:15] 1014 (1) - 0,50% - код ставки НСП [23:19:15] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:15] 1007 (9) - суммы НСП [23:19:15] 1014 (1) - 1,50% - код ставки НСП [23:19:15] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:15] 1130 (141) - счетчики операций «возврат прихода» [23:19:15] 1135 (4) - 0 - количество чеков по признаку расчетов [23:19:15] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:19:15] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:19:15] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:19:15] 1024 (117) - суммы налогов [23:19:15] 1006 (9) - суммы НДС [23:19:15] 1010 (1) - 0% - код ставки НДС [23:19:15] 1011 (0) - 0.00 - сумма НДС по ставке [23:19:15] 1006 (9) - суммы НДС [23:19:15] 1010 (1) - 12% - код ставки НДС [23:19:15] 1011 (0) - 0.00 - сумма НДС по ставке [23:19:15] 1007 (9) - суммы НСП [23:19:15] 1014 (1) - 0% - код ставки НСП [23:19:15] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:15] 1007 (9) - суммы НСП [23:19:15] 1014 (1) - 1% - код ставки НСП [23:19:15] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:15] 1007 (9) - суммы НСП [23:19:15] 1014 (1) - 2% - код ставки НСП [23:19:15] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:15] 1007 (9) - суммы НСП [23:19:15] 1014 (1) - 3% - код ставки НСП [23:19:15] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:15] 1007 (9) - суммы НСП [23:19:15] 1014 (1) - 5% - код ставки НСП [23:19:15] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:15] 1007 (9) - суммы НСП [23:19:15] 1014 (1) - 0,50% - код ставки НСП [23:19:15] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:15] 1007 (9) - суммы НСП [23:19:15] 1014 (1) - 1,50% - код ставки НСП [23:19:15] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:15] 1131 (141) - счетчики операций «расход» [23:19:15] 1135 (4) - 0 - количество чеков по признаку расчетов [23:19:15] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:19:15] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:19:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:19:16] 1024 (117) - суммы налогов [23:19:16] 1006 (9) - суммы НДС [23:19:16] 1010 (1) - 0% - код ставки НДС [23:19:16] 1011 (0) - 0.00 - сумма НДС по ставке [23:19:16] 1006 (9) - суммы НДС [23:19:16] 1010 (1) - 12% - код ставки НДС [23:19:16] 1011 (0) - 0.00 - сумма НДС по ставке [23:19:16] 1007 (9) - суммы НСП [23:19:16] 1014 (1) - 0% - код ставки НСП [23:19:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:16] 1007 (9) - суммы НСП [23:19:16] 1014 (1) - 1% - код ставки НСП [23:19:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:16] 1007 (9) - суммы НСП [23:19:16] 1014 (1) - 2% - код ставки НСП [23:19:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:16] 1007 (9) - суммы НСП [23:19:16] 1014 (1) - 3% - код ставки НСП [23:19:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:16] 1007 (9) - суммы НСП [23:19:16] 1014 (1) - 5% - код ставки НСП [23:19:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:16] 1007 (9) - суммы НСП [23:19:16] 1014 (1) - 0,50% - код ставки НСП [23:19:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:16] 1007 (9) - суммы НСП [23:19:16] 1014 (1) - 1,50% - код ставки НСП [23:19:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:16] 1132 (141) - счетчики операций «возврат расхода» [23:19:16] 1135 (4) - 0 - количество чеков по признаку расчетов [23:19:16] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:19:16] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:19:16] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:19:16] 1024 (117) - суммы налогов [23:19:16] 1006 (9) - суммы НДС [23:19:16] 1010 (1) - 0% - код ставки НДС [23:19:16] 1011 (0) - 0.00 - сумма НДС по ставке [23:19:16] 1006 (9) - суммы НДС [23:19:16] 1010 (1) - 12% - код ставки НДС [23:19:16] 1011 (0) - 0.00 - сумма НДС по ставке [23:19:16] 1007 (9) - суммы НСП [23:19:16] 1014 (1) - 0% - код ставки НСП [23:19:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:16] 1007 (9) - суммы НСП [23:19:16] 1014 (1) - 1% - код ставки НСП [23:19:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:16] 1007 (9) - суммы НСП [23:19:16] 1014 (1) - 2% - код ставки НСП [23:19:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:16] 1007 (9) - суммы НСП [23:19:16] 1014 (1) - 3% - код ставки НСП [23:19:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:16] 1007 (9) - суммы НСП [23:19:16] 1014 (1) - 5% - код ставки НСП [23:19:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:16] 1007 (9) - суммы НСП [23:19:16] 1014 (1) - 0,50% - код ставки НСП [23:19:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:16] 1007 (9) - суммы НСП [23:19:16] 1014 (1) - 1,50% - код ставки НСП [23:19:16] 1015 (0) - 0.00 - сумма НСП по ставке [23:19:16] 1133 (588) - - счетчики коррекции - не используются [23:19:16]1077 (6) - 73546936003413 - ФПД [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1209 (04B9) [23:19:16]Malloc new data [23:19:16]Processing tag 1041 (0411) [23:19:16]Processing tag 1040 (0410) [23:19:16]Malloc new data [23:19:16]Processing tag 1038 (040E) [23:19:16]Malloc new data [23:19:16]Processing tag 1118 (045E) [23:19:16]Malloc new data [23:19:16]Processing tag 1111 (0457) [23:19:16]Malloc new data [23:19:16]Processing tag 1194 (04AA) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1134 (046E) [23:19:16]Malloc new data [23:19:16]Processing tag 1129 (0469) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1135 (046F) [23:19:16]Malloc new data [23:19:16]Processing tag 1201 (04B1) [23:19:16]Malloc new data [23:19:16]Processing tag 1136 (0470) [23:19:16]Malloc new data [23:19:16]Processing tag 1138 (0472) [23:19:16]Malloc new data [23:19:16]Processing tag 1024 (0400) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1006 (03EE) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1010 (03F2) [23:19:16]Malloc new data [23:19:16]Processing tag 1011 (03F3) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1006 (03EE) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1010 (03F2) [23:19:16]Malloc new data [23:19:16]Processing tag 1011 (03F3) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]SetTLVBufToDocument err=0 [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1130 (046A) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1135 (046F) [23:19:16]Malloc new data [23:19:16]Processing tag 1201 (04B1) [23:19:16]Malloc new data [23:19:16]Processing tag 1136 (0470) [23:19:16]Malloc new data [23:19:16]Processing tag 1138 (0472) [23:19:16]Malloc new data [23:19:16]Processing tag 1024 (0400) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1006 (03EE) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1010 (03F2) [23:19:16]Malloc new data [23:19:16]Processing tag 1011 (03F3) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1006 (03EE) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1010 (03F2) [23:19:16]Malloc new data [23:19:16]Processing tag 1011 (03F3) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]SetTLVBufToDocument err=0 [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1131 (046B) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1135 (046F) [23:19:16]Malloc new data [23:19:16]Processing tag 1201 (04B1) [23:19:16]Malloc new data [23:19:16]Processing tag 1136 (0470) [23:19:16]Malloc new data [23:19:16]Processing tag 1138 (0472) [23:19:16]Malloc new data [23:19:16]Processing tag 1024 (0400) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1006 (03EE) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1010 (03F2) [23:19:16]Malloc new data [23:19:16]Processing tag 1011 (03F3) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1006 (03EE) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1010 (03F2) [23:19:16]Malloc new data [23:19:16]Processing tag 1011 (03F3) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]SetTLVBufToDocument err=0 [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1132 (046C) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1135 (046F) [23:19:16]Malloc new data [23:19:16]Processing tag 1201 (04B1) [23:19:16]Malloc new data [23:19:16]Processing tag 1136 (0470) [23:19:16]Malloc new data [23:19:16]Processing tag 1138 (0472) [23:19:16]Malloc new data [23:19:16]Processing tag 1024 (0400) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1006 (03EE) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1010 (03F2) [23:19:16]Malloc new data [23:19:16]Processing tag 1011 (03F3) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1006 (03EE) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1010 (03F2) [23:19:16]Malloc new data [23:19:16]Processing tag 1011 (03F3) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1007 (03EF) [23:19:16]Load OK [23:19:16]SetTLVBufToDocument [23:19:16]Processing tag 1014 (03F6) [23:19:16]Malloc new data [23:19:16]Processing tag 1015 (03F7) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]SetTLVBufToDocument err=0 [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1133 (046D) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Processing tag 1077 (0435) [23:19:16]Malloc new data [23:19:16]SetTLVBufToDocument err=0 [23:19:16]Malloc new data [23:19:16]SAM_PROTO_GetFMData [23:19:16]wFMCommunicate request_size=4 [23:19:16]MH_SAM_APDU [23:19:16]CAPDU: 80 13 03 00 [23:19:16]Write to MH i2c: E2 08 00 03 AA 80 13 03 00 00 00 00 00 2C [23:19:16]OFD Sender: No OFD packet to send [23:19:16]Write i2c OK [23:19:16]MH_I2C_Read... [23:19:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:19:17]Read from MH i2c: E2 [23:19:17]MH_I2C_Read... [23:19:17]Read from MH i2c: E2 FD 00 [23:19:17]MH_I2C_Read... [23:19:17]Read from MH i2c: E2 FD 00 03 AA 00 BF 04 85 04 BB 04 6E 04 04 00 F6 BE 00 00 69 04 A1 00 6F 04 04 00 F2 BE 00 00 B1 04 04 00 B9 F5 22 BD 70 04 04 00 28 ED 66 B0 72 04 04 00 91 08 BC 0C 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 C2 50 18 14 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 F3 A8 AC 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 89 [23:19:17]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 F6 BE 00 00 69 04 A1 00 6F 04 04 00 F2 BE 00 00 B1 04 04 00 B9 F5 22 BD 70 04 04 00 28 ED 66 B0 72 04 04 00 91 08 BC 0C 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 C2 50 18 14 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 F3 A8 AC 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 98 00 6F 04 04 00 04 00 00 00 B1 04 03 00 18 75 09 70 04 03 00 18 75 09 72 04 00 00 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 24 01 01 EF 03 09 00 F6 03 01 00 90 00 [23:19:17]wFMCommunicate OK [23:19:17]wFMCommunicate request_size=4 [23:19:17]MH_SAM_APDU [23:19:17]CAPDU: 80 17 00 00 [23:19:17]Write to MH i2c: E2 08 00 04 AA 80 17 00 00 00 00 00 00 2E [23:19:17]Write i2c OK [23:19:17]MH_I2C_Read... [23:19:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:17]Read from MH i2c: E2 [23:19:17]MH_I2C_Read... [23:19:17]Read from MH i2c: E2 FD 00 [23:19:17]MH_I2C_Read... [23:19:18]Read from MH i2c: E2 FD 00 04 AA 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DE [23:19:18]RAPDU: 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 6D 15 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:19:18]wFMCommunicate OK [23:19:18]wFMCommunicate request_size=4 [23:19:18]MH_SAM_APDU [23:19:18]CAPDU: 80 17 00 00 [23:19:18]Write to MH i2c: E2 08 00 05 AA 80 17 00 00 00 00 00 00 2F [23:19:18]Write i2c OK [23:19:18]MH_I2C_Read... [23:19:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:18]Read from MH i2c: E2 [23:19:18]MH_I2C_Read... [23:19:18]Read from MH i2c: E2 FD 00 [23:19:18]MH_I2C_Read... [23:19:18]Read from MH i2c: E2 FD 00 05 AA 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D3 [23:19:19]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:19:19]wFMCommunicate OK [23:19:19]wFMCommunicate request_size=4 [23:19:19]MH_SAM_APDU [23:19:19]CAPDU: 80 17 00 00 [23:19:19]Write to MH i2c: E2 08 00 06 AA 80 17 00 00 00 00 00 00 30 [23:19:19]Write i2c OK [23:19:19]MH_I2C_Read... [23:19:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:19:19]Read from MH i2c: E2 [23:19:19]MH_I2C_Read... [23:19:19]Read from MH i2c: E2 FD 00 [23:19:19]MH_I2C_Read... [23:19:19]Read from MH i2c: E2 FD 00 06 AA 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 AA [23:19:20]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:19:20]wFMCommunicate OK [23:19:20]wFMCommunicate request_size=4 [23:19:20]MH_SAM_APDU [23:19:20]CAPDU: 80 17 00 00 [23:19:20]Write to MH i2c: E2 08 00 07 AA 80 17 00 00 00 00 00 00 31 [23:19:20]Write i2c OK [23:19:20]MH_I2C_Read... [23:19:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:19:20]Read from MH i2c: E2 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: E2 DC 00 [23:19:20]MH_I2C_Read... [23:19:20]Read from MH i2c: E2 DC 00 07 AA 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 15 [23:19:20]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:19:21]wFMCommunicate OK [23:19:21]SAM_PROTO_GetFMData done [23:19:21]Malloc new data [23:19:21]Malloc new data [23:19:21]Malloc new data [23:19:21]Malloc new data [23:19:21]KKMLoadAndSignCloseShiftData err=0 [23:19:21]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Барыктабасов Т. 31.01.2024 23:19 Смена: 247 РНМ: 0000000000092723 ЗНМ: 0300000040 СНО: Общий режим Чеков за смену: 103 ФД за смену: 105 Всего чеков: 103 ИТОГИ ПРИХОД Чеков: 103 Общий итог: 52369.00 Итого наличными: 52369.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 5565.16 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 463.70 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 52369.00 НС Приход: 31731849.53 НС Возвр.Прихода: 6198.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 49379 ФМ: 0000000000875060 ФПД: 73546936003413 [23:19:21]StoreToDocumentArchive [23:19:21]shift 247 fd 49379 [23:19:21]save to /storage/0247/doc_00049379 [23:19:21]save last doc name /storage/0247/doc_00049379 to /storage/kkm_last_doc_name [23:19:21]save OK [23:19:21]Clear old archive folders... [23:19:21]Remove dir /storage/0010 [23:19:21]opendir ok [23:19:21]file . [23:19:21]file .. [23:19:21]file doc_1706743155 [23:19:21]remove file /storage/0010/doc_1706743155 [23:19:21]remove dir /storage/0010 [23:19:21]NVStorageSaveData kkm_registers [23:19:21]File name is /storage/kkm_registers [23:19:21]Write 24 bytes [23:19:21]NVStorageSaveData done [23:19:21]NVStorageSaveData kkm_registers [23:19:21]File name is /storage/kkm_registers [23:19:21]Write 24 bytes [23:19:21]NVStorageSaveData done [23:19:21]ProcessDocumentItem done err = 0, tmpTLVsize=1385 [23:19:21]tlvbuf is 0163AE60 [23:19:21]SAM_PROTO_ClearQueue [23:19:21]wFMCommunicate request_size=4 [23:19:21]MH_SAM_APDU [23:19:21]CAPDU: 80 09 00 00 [23:19:21]Write to MH i2c: E2 08 00 08 AA 80 09 00 00 00 00 00 00 24 [23:19:21]Write i2c OK [23:19:21]MH_I2C_Read... [23:19:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:21]Read from MH i2c: E2 [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: E2 03 00 [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: E2 03 00 08 AA 00 90 00 26 [23:19:21]RAPDU: 90 00 [23:19:21]wFMCommunicate OK [23:19:21]SAM_PROTO_ClearQueue done [23:19:21]KKMCreateOFDPacket [23:19:21]OFDProtocolAddRootSTLVToBuf [23:19:21]FM_MakeSignedData [23:19:21]FM_MakeSignedData [23:19:21]SAM_PROTO_SignData [23:19:21]wFMCommunicate request_size=4 [23:19:21]MH_SAM_APDU [23:19:21]CAPDU: 80 0D 01 02 [23:19:21]Write to MH i2c: E2 08 00 09 AA 80 0D 01 02 00 00 00 00 2C [23:19:21]Write i2c OK [23:19:21]MH_I2C_Read... [23:19:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:21]Read from MH i2c: E2 [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: E2 03 00 [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: E2 03 00 09 AA 00 90 00 27 [23:19:21]RAPDU: 90 00 [23:19:21]wFMCommunicate OK [23:19:21]wFMCommunicate request_size=255 [23:19:21]MH_SAM_APDU [23:19:21]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 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 89 D5 BA 65 0E 04 04 00 F7 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 5E 04 04 00 67 00 00 00 57 04 04 00 69 00 00 00 AA 04 D3 04 6E 04 04 00 67 00 00 00 69 04 A0 00 6F 04 04 00 67 00 00 00 B1 04 03 00 A4 E8 4F 70 04 03 00 A4 E8 4F 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 7D 08 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 [23:19:21]Write to MH i2c: E2 02 01 0A AA 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 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 89 D5 BA 65 0E 04 04 00 F7 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 5E 04 04 00 67 00 00 00 57 04 04 00 69 00 00 00 AA 04 D3 04 6E 04 04 00 67 00 00 00 69 04 A0 00 6F 04 04 00 67 00 00 00 B1 04 03 00 A4 E8 4F 70 04 03 00 A4 E8 4F 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 7D 08 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 00 00 F4 [23:19:21]OFD Sender: No OFD packet to send [23:19:21]Write i2c OK [23:19:21]MH_I2C_Read... [23:19:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:22]Read from MH i2c: E2 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: E2 03 00 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: E2 03 00 0A AA 00 90 00 28 [23:19:22]RAPDU: 90 00 [23:19:22]wFMCommunicate OK [23:19:22]wFMCommunicate request_size=255 [23:19:22]MH_SAM_APDU [23:19:22]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 22 B5 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 [23:19:22]Write to MH i2c: E2 02 01 0B AA 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 22 B5 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 00 00 73 [23:19:22]Write i2c OK [23:19:22]MH_I2C_Read... [23:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:23]Read from MH i2c: E2 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 0B AA 00 90 00 29 [23:19:23]RAPDU: 90 00 [23:19:23]wFMCommunicate OK [23:19:23]wFMCommunicate request_size=255 [23:19:23]MH_SAM_APDU [23:19:23]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:19:23]Write to MH i2c: E2 02 01 0C AA 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 F6 [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:23]Read from MH i2c: E2 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 0C AA 00 90 00 2A [23:19:23]RAPDU: 90 00 [23:19:23]wFMCommunicate OK [23:19:23]wFMCommunicate request_size=255 [23:19:23]MH_SAM_APDU [23:19:23]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:19:24]Write to MH i2c: E2 02 01 0D AA 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 00 [23:19:24]Write i2c OK [23:19:24]MH_I2C_Read... [23:19:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:24]Read from MH i2c: E2 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: E2 03 00 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: E2 03 00 0D AA 00 90 00 2B [23:19:24]RAPDU: 90 00 [23:19:24]wFMCommunicate OK [23:19:24]wFMCommunicate request_size=255 [23:19:24]MH_SAM_APDU [23:19:24]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:19:25]Write to MH i2c: E2 02 01 0E AA 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 C1 [23:19:25]Write i2c OK [23:19:25]MH_I2C_Read... [23:19:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:25]Read from MH i2c: E2 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 03 00 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 03 00 0E AA 00 90 00 2C [23:19:25]RAPDU: 90 00 [23:19:25]wFMCommunicate OK [23:19:25]wFMCommunicate request_size=144 [23:19:25]MH_SAM_APDU [23:19:25]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 E3 C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 35 04 06 00 42 E3 FA FE AB 55 [23:19:25]Write to MH i2c: E2 93 00 0F AA 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 E3 C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 35 04 06 00 42 E3 FA FE AB 55 00 00 2A [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:26]Read from MH i2c: E2 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 03 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 03 00 0F AA 00 90 00 2D [23:19:26]RAPDU: 90 00 [23:19:26]wFMCommunicate OK [23:19:26]wFMCommunicate request_size=4 [23:19:26]MH_SAM_APDU [23:19:26]CAPDU: 80 0D 03 02 [23:19:26]Write to MH i2c: E2 08 00 10 AA 80 0D 03 02 00 00 00 00 35 [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:26]Read from MH i2c: E2 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 0B 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 0B 00 10 AA 00 91 16 EE CC C8 94 7A C6 90 00 33 [23:19:26]RAPDU: 91 16 EE CC C8 94 7A C6 90 00 [23:19:26]wFMCommunicate OK [23:19:26]SAM_PROTO_SignData done [23:19:26]FM_MakeSignedData done [23:19:26]CreateOFDProtocolMessage [23:19:26]wFMCommunicate request_size=4 [23:19:26]MH_SAM_APDU [23:19:26]CAPDU: 80 11 00 00 [23:19:26]Write to MH i2c: E2 08 00 11 AA 80 11 00 00 00 00 00 00 35 [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 [23:19:26]MH_I2C_Read... [23:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:26]Read from MH i2c: E2 17 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: E2 17 00 11 AA 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 82 [23:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:19:26]wFMCommunicate OK [23:19:26]CreateOFDProtocolMessage done [23:19:26]OFDSenderStorePacket 49379 [23:19:26]StoreOFDPacket docnum=49379 [23:19:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 7D 05 00 00 F3 E9 75 05 B9 8B 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 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 89 D5 BA 65 0E 04 04 00 F7 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 5E 04 04 00 67 00 00 00 57 04 04 00 69 00 00 00 AA 04 D3 04 6E 04 04 00 67 00 00 00 69 04 A0 00 6F 04 04 00 67 00 00 00 B1 04 03 00 A4 E8 4F 70 04 03 00 A4 E8 4F 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 7D 08 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 22 B5 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 E3 C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 35 04 06 00 42 E3 FA FE AB 55 91 16 EE CC C8 94 7A C6 [23:19:26]CheckFolder [23:19:26]dirname=/storage/ofd_packets [23:19:26]CheckFolder done [23:19:26]ProducePacketName [23:19:26]name=ofd_packets/00049379 [23:19:26]NVStorageSaveData ofd_packets/00049379 [23:19:26]File name is /storage/ofd_packets/00049379 [23:19:26]Write 1435 bytes [23:19:26]NVStorageSaveData done [23:19:26]OFDSenderStorePacket done [23:19:26]KKMCreateOFDPacket done [23:19:26]NVStorageSaveData kkm_last_timestamp [23:19:26]File name is /storage/kkm_last_timestamp [23:19:26]Write 4 bytes [23:19:26]NVStorageSaveData done [23:19:26]ExternCall_PrintAddStr [23:19:26]wPrintStart [23:19:26]Write to MH i2c: 01 00 00 12 AA BC [23:19:26]Write i2c OK [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: 01 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: 01 07 00 [23:19:26]MH_I2C_Read... [23:19:26]Read from MH i2c: 01 07 00 12 AA 00 00 00 00 00 FF 0F D1 [23:19:26]RasterBufferAndPrint [23:19:26]line Отчет о закрытии смены [23:19:26]line ФФД: 1.0 [23:19:26]line ИНН: 02508201610067 [23:19:26]line Кассир: Барыктабасов Т. [23:19:26]line 31.01.2024 23:19 [23:19:26]line Смена: 247 [23:19:26]line РНМ: 0000000000092723 [23:19:26]line ЗНМ: 0300000040 [23:19:26]line СНО: Общий режим [23:19:26]line Чеков за смену: 103 [23:19:26]line ФД за смену: 105 [23:19:26]line Всего чеков: 103 [23:19:26]line ИТОГИ ПРИХОД [23:19:26]line Чеков: 103 [23:19:26]line Общий итог: 52369.00 [23:19:26]line Итого наличными: 52369.00 [23:19:26]line Итого безнал.: 0.00 [23:19:26]line НДС 0% : 0.00 [23:19:26]line НДС 12% : 5565.16 [23:19:26]line НСП 0% : 0.00 [23:19:26]line НСП 1,50% : 0.00 [23:19:26]line НСП 0,50% : 0.00 [23:19:26]line НСП 5% : 0.00 [23:19:26]line НСП 3% : 0.00 [23:19:26]line НСП 2% : 0.00 [23:19:26]line НСП 1% : 463.70 [23:19:26]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:19:26]line Чеков: 0 [23:19:26]line Общий итог: 0.00 [23:19:26]line Итого наличными: 0.00 [23:19:26]line Итого безнал.: 0.00 [23:19:26]line НДС 0% : 0.00 [23:19:26]line НДС 12% : 0.00 [23:19:26]line НСП 0% : 0.00 [23:19:26]line НСП 1,50% : 0.00 [23:19:26]line НСП 0,50% : 0.00 [23:19:26]line НСП 5% : 0.00 [23:19:26]line НСП 3% : 0.00 [23:19:26]line НСП 2% : 0.00 [23:19:26]line НСП 1% : 0.00 [23:19:26]line ИТОГИ РАСХОД [23:19:26]line Чеков: 0 [23:19:26]line Общий итог: 0.00 [23:19:26]line Итого наличными: 0.00 [23:19:26]line Итого безнал.: 0.00 [23:19:26]line НДС 0% : 0.00 [23:19:26]line НДС 12% : 0.00 [23:19:26]line НСП 0% : 0.00 [23:19:26]line НСП 1,50% : 0.00 [23:19:26]line НСП 0,50% : 0.00 [23:19:26]line НСП 5% : 0.00 [23:19:26]line НСП 3% : 0.00 [23:19:26]line НСП 2% : 0.00 [23:19:26]line НСП 1% : 0.00 [23:19:26]line ИТОГИ ВОЗВРАТ РАСХОДА [23:19:26]line Чеков: 0 [23:19:26]line Общий итог: 0.00 [23:19:26]line Итого наличными: 0.00 [23:19:26]line Итого безнал.: 0.00 [23:19:26]OFD Sender: Processing packet 49379 [packets to send 12, broken 11] [23:19:26]ProducePacketName [23:19:26]name=ofd_packets/00049379 [23:19:26]OFD Sender: To server: pG, [23:19:26]CommunicateWithHost lk.salyk.kg:30040 [23:19:26]ConnectInit lk.salyk.kg [23:19:26]line НДС 0% : 0.00 [23:19:26]line НДС 12% : 0.00 [23:19:26]line НСП 0% : 0.00 [23:19:26]line НСП 1,50% : 0.00 [23:19:26]line НСП 0,50% : 0.00 [23:19:26]line НСП 5% : 0.00 [23:19:26]line НСП 3% : 0.00 [23:19:26]line НСП 2% : 0.00 [23:19:26]line НСП 1% : 0.00 [23:19:26]line Сумма внесений: 0.00 [23:19:26]line Сумма выплат: 0.00 [23:19:26]line Нал. в кассе: 52369.00 [23:19:26]line НС Приход: 31731849.53 [23:19:26]line НС Возвр.Прихода: 6198.00 [23:19:26]line НС Расход: 0.00 [23:19:26]line НС Возвр.Расхода: 0.00 [23:19:26]line ФД: 49379 [23:19:26]line ФМ: 0000000000875060 [23:19:26]line ФПД: 73546936003413 [23:19:26]written 0, free lines is 4095 [23:19:27]Connected sock=10 [23:19:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 7D 05 00 00 F3 E9 75 05 B9 8B 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 1D 00 D0 91 D0 B0 D1 80 D1 8B D0 BA D1 82 D0 B0 D0 B1 D0 B0 D1 81 D0 BE D0 B2 20 D0 A2 2E 20 F4 03 04 00 89 D5 BA 65 0E 04 04 00 F7 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 5E 04 04 00 67 00 00 00 57 04 04 00 69 00 00 00 AA 04 D3 04 6E 04 04 00 67 00 00 00 69 04 A0 00 6F 04 04 00 67 00 00 00 B1 04 03 00 A4 E8 4F 70 04 03 00 A4 E8 4F 72 04 01 00 00 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 E4 7D 08 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 22 B5 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 Write to MH i2c: 03 01 01 00 00 00 62 00 AA EF 0C 03 0A 00 F6 03 01 00 06 F7 03 [23:19:27]01 00 00 EF 03 0A 00 F6 03 Write i2c OK [23:19:27]01 MH_I2C_Read... [23:19:27]00 Read from MH i2c: 05 01 F7 [23:19:27]03 MH_I2C_Read... [23:19:27]01 00 00 EF 03 0A 00 Read from MH i2c: F6 01 03 07 01 00 00 [23:19:27]04 MH_I2C_Read... [23:19:27]F7 03 01 00 00 EF 03 Read from MH i2c: 0A 01 00 07 F6 00 03 62 01 00 03 F7 03 01 00 00 EF 03 AA 0A 00 00 00 00 F6 00 03 01 00 02 F7 03 01 00 00 EF 00 03 0B 0A 0B 00 29 F6 [23:19:27]03 01 00 01 F7 03 01 00 00 6D RasterBufferAndPrint [23:19:27]04 line [23:19:27]4C line [23:19:27]02 line [23:19:27]78 line [23:19:27]line [23:19:27]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 written 0, free lines is 3053 [23:19:28]04 F7 03 00 00 EF 03 09 00 F6 03 MH_Cut [23:19:28]01 Write to MH i2c: 00 D1 05 01 00 69 AA 01 E5 [23:19:28]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 Write i2c OK [23:19:28]03 MH_I2C_Read... [23:19:28]09 Read from MH i2c: 00 D1 F6 [23:19:28]03 MH_I2C_Read... [23:19:28]01 Read from MH i2c: 00 D1 05 01 F7 00 03 [23:19:28]00 MH_I2C_Read... [23:19:28]00 EF 03 09 00 Read from MH i2c: F6 D1 03 01 01 00 00 69 06 AA F7 00 03 E4 00 [23:19:28]00 7A 04 8D 00 6F 04 04 00 00 00 Write to MH i2c: 00 01 00 00 B1 00 04 6A 00 AA 14 [23:19:28]Write i2c OK [23:19:28]MH_I2C_Read... [23:19:28]00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** Cut start [23:19:28]00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 *** Partial cut [23:19:29]00 F7 03 00 00 EF 03 09 *** CUTSNS_PIN = 1 [23:19:29]00 F6 03 01 00 *** CUTSNS_PIN = 0 [23:19:29]01 F7 03 00 00 EF 03 09 *** Brake cut motor [23:19:29]00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E3 C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 35 04 06 00 42 E3 FA FE AB 55 91 16 EE CC C8 94 7A C6 [23:19:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 4F 00 00 00 70 C4 47 00 DD 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 35 30 36 30 10 04 04 00 E3 C0 00 00 F4 03 04 00 8A 81 BA 65 B6 04 01 00 00 2A 76 F8 17 20 26 3E E5 [23:19:29]CommunicateWithHost err = 0 [23:19:29]CheckOFDResponse [23:19:29]1017 (14) - 77093643461234 [23:19:29]1041 (16) - 0000000000875060 [23:19:29]1040 (4) - 49379 [23:19:29]1012 (4) - 31.01.2024 17:21 [23:19:29]1206 (1) - 0 [23:19:29]OFD Sender: Remove packet 49379 [23:19:29]ProducePacketName [23:19:29]name=ofd_packets/00049379 [23:19:29]NVStorageDeleteData [23:19:29]Read from MH i2c: *** Stop cut motor [23:19:29]01 *** Cut end [23:19:29] [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: 01 07 00 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: 01 07 00 6A AA 00 00 00 00 00 FF 0F 29 [23:19:29]process_action close_shift done [23:19:29]requested_data is exist [23:19:29]produce_requested_data [23:19:29]requested_item fd.num is exist - process it [23:19:29]SAM_PROTO_GetFieldsCounters [23:19:29]wFMCommunicate request_size=4 [23:19:29]MH_SAM_APDU [23:19:29]CAPDU: 80 13 00 00 [23:19:29]Write to MH i2c: E2 08 00 6B AA 80 13 00 00 00 00 00 00 91 [23:19:29]Write i2c OK [23:19:29]MH_I2C_Read... [23:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:29]Read from MH i2c: E2 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: E2 62 00 [23:19:29]MH_I2C_Read... [23:19:29]Read from MH i2c: E2 62 00 6B AA 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E3 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [23:19: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 35 30 36 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E3 C0 00 00 0E 04 04 00 F7 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:30]wFMCommunicate OK [23:19:30]SAM_PROTO_GetFieldsCounters done [23:19:30]requested_item shift.num is exist - process it [23:19:30]requested_item shift.opened is exist - process it [23:19:30]req_shift_opened [23:19:30]FM_GetShiftState [23:19:30]SAM_PROTO_GetShiftState [23:19:30]wFMCommunicate request_size=4 [23:19:30]MH_SAM_APDU [23:19:30]CAPDU: 80 13 01 00 [23:19:30]Write to MH i2c: E2 08 00 6C AA 80 13 01 00 00 00 00 00 93 [23:19:30]Write i2c OK [23:19:30]MH_I2C_Read... [23:19:30]OFD Sender: No OFD packet to send [23:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:30]Read from MH i2c: E2 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 0E 00 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 0E 00 6C AA 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9E [23:19:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:19:30]wFMCommunicate OK [23:19:30]SAM_PROTO_GetShiftState done [23:19:30]FM_GetShiftState done [23:19:30]req_shift_opened done [23:19:30]requested_item shift.open_date is exist - process it [23:19:30]req_shift_open_date [23:19:30]FM_GetShiftState [23:19:30]SAM_PROTO_GetShiftState [23:19:30]wFMCommunicate request_size=4 [23:19:30]MH_SAM_APDU [23:19:30]CAPDU: 80 13 01 00 [23:19:30]Write to MH i2c: E2 08 00 6D AA 80 13 01 00 00 00 00 00 94 [23:19:30]Write i2c OK [23:19:30]MH_I2C_Read... [23:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:30]Read from MH i2c: E2 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 0E 00 [23:19:30]MH_I2C_Read... [23:19:30]Read from MH i2c: E2 0E 00 6D AA 00 09 00 00 00 00 00 00 00 00 00 00 90 00 9F [23:19:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:19:30]wFMCommunicate OK [23:19:30]SAM_PROTO_GetShiftState done [23:19:30]FM_GetShiftState done [23:19:30]req_shift_open_date done [23:19:30]produce_requested_data done [23:19:30]produce_requested_data return {"fd.num":49379,"shift.num":247,"shift.opened":0,"shift.open_date":0} [23:19:30]process_action_free close_shift [23:19:30]json_value_free [23:19:30]json_value_free done [23:19:30]process_json_proto returns [23:19:30]Send response to host [23:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":49379,"shift.num":247,"shift.opened":0,"shift.open_date":0}}} [23:19:30]free response buf [23:19:30]execute_script done [23:19:30]execute_script returns [23:19:30]free content buf [23:19:30]Sock 9.Close socket [23:19:30]Sock 9.Thread stoped [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:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:54]int [23:33:54]Write to MH i2c: 01 00 00 6E AA 18 [23:33:54]*** FLAG_PRN_KEY set [23:33:54]Write i2c OK [23:33:54]MH_I2C_Read... [23:33:54]Read from MH i2c: 01 [23:33:54]MH_I2C_Read... [23:33:54]Read from MH i2c: 01 07 00 [23:33:54]MH_I2C_Read... [23:33:54]Read from MH i2c: 01 07 00 6E AA 00 08 00 00 00 FF 0F 35 [23:33:54]state=0 [23:33:54]Key pressed [23:33:54]Feed [23:33:54]Write to MH i2c: D8 00 00 6F AA F0 [23:33:54]Write i2c OK [23:33:54]MH_I2C_Read... [23:33:54]Read from MH i2c: D8 [23:33:54]MH_I2C_Read... [23:33:54]Read from MH i2c: D8 01 00 [23:33:54]MH_I2C_Read... [23:33:54]Read from MH i2c: D8 01 00 6F AA 00 F1 [23:33:54]int [23:33:54]Write to MH i2c: 01 00 00 70 AA 1A [23:33:54]Write i2c OK [23:33:54]MH_I2C_Read... [23:33:54]Read from MH i2c: 01 [23:33:54]MH_I2C_Read... [23:33:54]Read from MH i2c: 01 07 00 [23:33:54]MH_I2C_Read... [23:33:54]Read from MH i2c: 01 07 00 70 AA 00 48 00 00 00 3C 00 A5 [23:33:54]state=2 [23:33:54]Key pressed [23:33:55]int [23:33:55]Write to MH i2c: 01 00 00 71 AA 1B [23:33:55]*** FLAG_PRN_KEY reset [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 71 AA 00 00 00 00 00 FD 0F 2E [23:33:55]state=2 [23:33:55]Stop feed [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [23:40:26]OFD Sender: No OFD packet to send [23:40:31]OFD Sender: No OFD packet to send [23:40:36]OFD Sender: No OFD packet to send [23:40:41]OFD Sender: No OFD packet to send [23:40:46]OFD Sender: No OFD packet to send [23:40:51]OFD Sender: No OFD packet to send [23:40:56]OFD Sender: No OFD packet to send [23:41:01]OFD Sender: No OFD packet to send [23:41:06]OFD Sender: No OFD packet to send [23:41:11]OFD Sender: No OFD packet to send [23:41:16]OFD Sender: No OFD packet to send [23:41:21]OFD Sender: No OFD packet to send [23:41:26]OFD Sender: No OFD packet to send [23:41:31]OFD Sender: No OFD packet to send [23:41:36]OFD Sender: No OFD packet to send [23:41:41]OFD Sender: No OFD packet to send [23:41:46]OFD Sender: No OFD packet to send [23:41:51]OFD Sender: No OFD packet to send [23:41:56]OFD Sender: No OFD packet to send [23:42:01]OFD Sender: No OFD packet to send [23:42:06]OFD Sender: No OFD packet to send [23:42:11]OFD Sender: No OFD packet to send [23:42:16]OFD Sender: No OFD packet to send [23:42:21]OFD Sender: No OFD packet to send [23:42:26]OFD Sender: No OFD packet to send [23:42:31]OFD Sender: No OFD packet to send [23:42:36]OFD Sender: No OFD packet to send [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:20]int [23:46:20]Write to MH i2c: 01 00 00 72 AA 1C [23:46:20]*** FLAG_PRN_KEY set [23:46:20]Write i2c OK [23:46:20]MH_I2C_Read... [23:46:20]Read from MH i2c: 01 [23:46:20]MH_I2C_Read... [23:46:20]Read from MH i2c: 01 07 00 [23:46:20]MH_I2C_Read... [23:46:20]Read from MH i2c: 01 07 00 72 AA 00 08 00 00 00 FF 0F 39 [23:46:20]state=0 [23:46:20]Key pressed [23:46:20]Feed [23:46:20]Write to MH i2c: D8 00 00 73 AA F4 [23:46:20]Write i2c OK [23:46:20]MH_I2C_Read... [23:46:20]Read from MH i2c: D8 [23:46:20]MH_I2C_Read... [23:46:20]Read from MH i2c: D8 01 00 [23:46:20]MH_I2C_Read... [23:46:20]Read from MH i2c: D8 01 00 73 AA 00 F5 [23:46:20]int [23:46:20]Write to MH i2c: 01 00 00 74 AA 1E [23:46:20]Write i2c OK [23:46:20]MH_I2C_Read... [23:46:20]Read from MH i2c: 01 [23:46:20]MH_I2C_Read... [23:46:20]Read from MH i2c: 01 07 00 [23:46:20]MH_I2C_Read... [23:46:20]Read from MH i2c: 01 07 00 74 AA 00 48 00 00 00 3D 00 AA [23:46:20]state=2 [23:46:20]Key pressed [23:46:21]OFD Sender: No OFD packet to send [23:46:21]int [23:46:21]Write to MH i2c: 01 00 00 75 AA 1F [23:46:21]*** FLAG_PRN_KEY reset [23:46:21]Write i2c OK [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: 01 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: 01 07 00 [23:46:21]MH_I2C_Read... [23:46:21]Read from MH i2c: 01 07 00 75 AA 00 00 00 00 00 F7 0F 2C [23:46:21]state=2 [23:46:21]Stop feed [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]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:12]OFD Sender: No OFD packet to send [23:59:17]OFD Sender: No OFD packet to send [23:59:22]OFD Sender: No OFD packet to send [23:59:27]OFD Sender: No OFD packet to send [23:59:32]OFD Sender: No OFD packet to send [23:59:37]OFD Sender: No OFD packet to send [23:59:42]OFD Sender: No OFD packet to send [23:59:47]OFD Sender: No OFD packet to send [23:59:52]OFD Sender: No OFD packet to send [23:59:57]OFD Sender: No OFD packet to send [00:00:02]OFD Sender: No OFD packet to send [00:00:07]OFD Sender: No OFD packet to send [00:00:12]OFD Sender: No OFD packet to send [00:00:17]OFD Sender: No OFD packet to send [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10: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:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:32]OFD Sender: No OFD packet to send [00:13:37]OFD Sender: No OFD packet to send [00:13:42]OFD Sender: No OFD packet to send [00:13:47]OFD Sender: No OFD packet to send [00:13:52]OFD Sender: No OFD packet to send [00:13:57]OFD Sender: No OFD packet to send [00:14:02]OFD Sender: No OFD packet to send [00:14:07]OFD Sender: No OFD packet to send [00:14:12]OFD Sender: No OFD packet to send [00:14:17]OFD Sender: No OFD packet to send [00:14:22]OFD Sender: No OFD packet to send [00:14:27]OFD Sender: No OFD packet to send [00:14:32]OFD Sender: No OFD packet to send [00:14:37]OFD Sender: No OFD packet to send [00:14:42]OFD Sender: No OFD packet to send [00:14:47]OFD Sender: No OFD packet to send [00:14:52]OFD Sender: No OFD packet to send [00:14:57]OFD Sender: No OFD packet to send [00:15:02]OFD Sender: No OFD packet to send [00:15:07]OFD Sender: No OFD packet to send [00:15:12]OFD Sender: No OFD packet to send [00:15:17]OFD Sender: No OFD packet to send [00:15:22]OFD Sender: No OFD packet to send [00:15:27]OFD Sender: No OFD packet to send [00:15:32]OFD Sender: No OFD packet to send [00:15:37]OFD Sender: No OFD packet to send [00:15:42]OFD Sender: No OFD packet to send [00:15:47]OFD Sender: No OFD packet to send [00:15:52]OFD Sender: No OFD packet to send [00:15:57]OFD Sender: No OFD packet to send [00:16:02]OFD Sender: No OFD packet to send [00:16:07]OFD Sender: No OFD packet to send [00:16:12]OFD Sender: No OFD packet to send [00:16:17]OFD Sender: No OFD packet to send [00:16:22]OFD Sender: No OFD packet to send [00:16:27]OFD Sender: No OFD packet to send [00:16:32]OFD Sender: No OFD packet to send [00:16:37]OFD Sender: No OFD packet to send [00:16:42]OFD Sender: No OFD packet to send [00:16:47]OFD Sender: No OFD packet to send [00:16:52]OFD Sender: No OFD packet to send [00:16:57]OFD Sender: No OFD packet to send [00:17:02]OFD Sender: No OFD packet to send [00:17:07]OFD Sender: No OFD packet to send [00:17:12]OFD Sender: No OFD packet to send [00:17:17]OFD Sender: No OFD packet to send [00:17:22]OFD Sender: No OFD packet to send [00:17:27]OFD Sender: No OFD packet to send [00:17:32]OFD Sender: No OFD packet to send [00:17:37]OFD Sender: No OFD packet to send [00:17:42]OFD Sender: No OFD packet to send [00:17:47]OFD Sender: No OFD packet to send [00:17:52]OFD Sender: No OFD packet to send [00:17:57]OFD Sender: No OFD packet to send [00:18:02]OFD Sender: No OFD packet to send [00:18:07]OFD Sender: No OFD packet to send [00:18:12]OFD Sender: No OFD packet to send [00:18:17]OFD Sender: No OFD packet to send [00:18:22]OFD Sender: No OFD packet to send [00:18:27]OFD Sender: No OFD packet to send [00:18:32]OFD Sender: No OFD packet to send [00:18:37]OFD Sender: No OFD packet to send [00:18:42]OFD Sender: No OFD packet to send [00:18:47]OFD Sender: No OFD packet to send [00:18:52]OFD Sender: No OFD packet to send [00:18:57]OFD Sender: No OFD packet to send [00:19:02]OFD Sender: No OFD packet to send [00:19:07]OFD Sender: No OFD packet to send [00:19:12]OFD Sender: No OFD packet to send [00:19:17]OFD Sender: No OFD packet to send [00:19:22]OFD Sender: No OFD packet to send [00:19:27]OFD Sender: No OFD packet to send [00:19:32]OFD Sender: No OFD packet to send [00:19:37]OFD Sender: No OFD packet to send [00:19:42]OFD Sender: No OFD packet to send [00:19:47]OFD Sender: No OFD packet to send [00:19:52]OFD Sender: No OFD packet to send [00:19:57]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:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:38]OFD Sender: No OFD packet to send [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send