[02:58:19]OFD Sender: No OFD packet to send [02:58:24]OFD Sender: No OFD packet to send [02:58:29]OFD Sender: No OFD packet to send [02:58:34]OFD Sender: No OFD packet to send [02:58:39]OFD Sender: No OFD packet to send [02:58:44]OFD Sender: No OFD packet to send [02:58:49]OFD Sender: No OFD packet to send [02:58:54]OFD Sender: No OFD packet to send [02:58:59]OFD Sender: No OFD packet to send [02:59:04]OFD Sender: No OFD packet to send [02:59:09]OFD Sender: No OFD packet to send [02:59:14]OFD Sender: No OFD packet to send [02:59:19]OFD Sender: No OFD packet to send [02:59:24]OFD Sender: No OFD packet to send [02:59:29]OFD Sender: No OFD packet to send [02:59:34]OFD Sender: No OFD packet to send [02:59:39]OFD Sender: No OFD packet to send [02:59:44]OFD Sender: No OFD packet to send [02:59:49]OFD Sender: No OFD packet to send [02:59:54]OFD Sender: No OFD packet to send [02:59:59]OFD Sender: No OFD packet to send [03:00:04]OFD Sender: No OFD packet to send [03:00:09]OFD Sender: No OFD packet to send [03:00:14]OFD Sender: No OFD packet to send [03:00:19]OFD Sender: No OFD packet to send [03:00:24]OFD Sender: No OFD packet to send [03:00:29]OFD Sender: No OFD packet to send [03:00:34]OFD Sender: No OFD packet to send [03:00:39]OFD Sender: No OFD packet to send [03:00:44]OFD Sender: No OFD packet to send [03:00:49]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:15]OFD Sender: No OFD packet to send [03:05:20]OFD Sender: No OFD packet to send [03:05:25]OFD Sender: No OFD packet to send [03:05:30]OFD Sender: No OFD packet to send [03:05:35]OFD Sender: No OFD packet to send [03:05:40]OFD Sender: No OFD packet to send [03:05:45]OFD Sender: No OFD packet to send [03:05:50]OFD Sender: No OFD packet to send [03:05:55]OFD Sender: No OFD packet to send [03:06:00]OFD Sender: No OFD packet to send [03:06:05]OFD Sender: No OFD packet to send [03:06:10]OFD Sender: No OFD packet to send [03:06:15]OFD Sender: No OFD packet to send [03:06:20]OFD Sender: No OFD packet to send [03:06:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]OFD Sender: No OFD packet to send [03:14:25]OFD Sender: No OFD packet to send [03:14:30]OFD Sender: No OFD packet to send [03:14:35]OFD Sender: No OFD packet to send [03:14:40]OFD Sender: No OFD packet to send [03:14:45]OFD Sender: No OFD packet to send [03:14:50]OFD Sender: No OFD packet to send [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:00]OFD Sender: No OFD packet to send [03:20:05]OFD Sender: No OFD packet to send [03:20:10]OFD Sender: No OFD packet to send [03:20:15]OFD Sender: No OFD packet to send [03:20:20]OFD Sender: No OFD packet to send [03:20:25]OFD Sender: No OFD packet to send [03:20:30]OFD Sender: No OFD packet to send [03:20:35]OFD Sender: No OFD packet to send [03:20:40]OFD Sender: No OFD packet to send [03:20:45]OFD Sender: No OFD packet to send [03:20:50]OFD Sender: No OFD packet to send [03:20:55]OFD Sender: No OFD packet to send [03:21:00]OFD Sender: No OFD packet to send [03:21:05]OFD Sender: No OFD packet to send [03:21:10]OFD Sender: No OFD packet to send [03:21:15]OFD Sender: No OFD packet to send [03:21:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]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:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]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:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]OFD Sender: No OFD packet to send [04:02:32]OFD Sender: No OFD packet to send [04:02:37]OFD Sender: No OFD packet to send [04:02:42]OFD Sender: No OFD packet to send [04:02:47]OFD Sender: No OFD packet to send [04:02:52]OFD Sender: No OFD packet to send [04:02:57]OFD Sender: No OFD packet to send [04:03:02]OFD Sender: No OFD packet to send [04:03:07]OFD Sender: No OFD packet to send [04:03:12]OFD Sender: No OFD packet to send [04:03:17]OFD Sender: No OFD packet to send [04:03:22]OFD Sender: No OFD packet to send [04:03:27]OFD Sender: No OFD packet to send [04:03:32]OFD Sender: No OFD packet to send [04:03:37]OFD Sender: No OFD packet to send [04:03:42]OFD Sender: No OFD packet to send [04:03:47]OFD Sender: No OFD packet to send [04:03:52]OFD Sender: No OFD packet to send [04:03:57]OFD Sender: No OFD packet to send [04:04:02]OFD Sender: No OFD packet to send [04:04:07]OFD Sender: No OFD packet to send [04:04:12]OFD Sender: No OFD packet to send [04:04:17]OFD Sender: No OFD packet to send [04:04:22]OFD Sender: No OFD packet to send [04:04:27]OFD Sender: No OFD packet to send [04:04:32]OFD Sender: No OFD packet to send [04:04:37]OFD Sender: No OFD packet to send [04:04:42]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:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:44]OFD Sender: No OFD packet to send [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:34]OFD Sender: No OFD packet to send [04:35:39]OFD Sender: No OFD packet to send [04:35:44]OFD Sender: No OFD packet to send [04:35:49]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:39]OFD Sender: No OFD packet to send [04:36:44]OFD Sender: No OFD packet to send [04:36:49]OFD Sender: No OFD packet to send [04:36:54]OFD Sender: No OFD packet to send [04:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04: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:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:00]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]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:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:16]OFD Sender: No OFD packet to send [05:19:21]OFD Sender: No OFD packet to send [05:19:26]OFD Sender: No OFD packet to send [05:19:31]OFD Sender: No OFD packet to send [05:19:36]OFD Sender: No OFD packet to send [05:19:41]OFD Sender: No OFD packet to send [05:19:46]OFD Sender: No OFD packet to send [05:19:51]OFD Sender: No OFD packet to send [05:19:56]OFD Sender: No OFD packet to send [05:20:01]OFD Sender: No OFD packet to send [05:20:06]OFD Sender: No OFD packet to send [05:20:11]OFD Sender: No OFD packet to send [05:20:16]OFD Sender: No OFD packet to send [05:20:21]OFD Sender: No OFD packet to send [05:20:26]OFD Sender: No OFD packet to send [05:20:31]OFD Sender: No OFD packet to send [05:20:36]OFD Sender: No OFD packet to send [05:20:41]OFD Sender: No OFD packet to send [05:20:46]OFD Sender: No OFD packet to send [05:20:51]OFD Sender: No OFD packet to send [05:20:56]OFD Sender: No OFD packet to send [05:21:01]OFD Sender: No OFD packet to send [05:21:06]OFD Sender: No OFD packet to send [05:21:11]OFD Sender: No OFD packet to send [05:21:16]OFD Sender: No OFD packet to send [05:21:21]OFD Sender: No OFD packet to send [05:21:26]OFD Sender: No OFD packet to send [05:21:31]OFD Sender: No OFD packet to send [05:21:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:12]OFD Sender: No OFD packet to send [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50: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:43]OFD Sender: No OFD packet to send [06:00:48]OFD Sender: No OFD packet to send [06:00:53]OFD Sender: No OFD packet to send [06:00:58]OFD Sender: No OFD packet to send [06:01:03]OFD Sender: No OFD packet to send [06:01:08]OFD Sender: No OFD packet to send [06:01:13]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]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:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:24]OFD Sender: No OFD packet to send [06:28:29]OFD Sender: No OFD packet to send [06:28:34]OFD Sender: No OFD packet to send [06:28:39]OFD Sender: No OFD packet to send [06:28:44]OFD Sender: No OFD packet to send [06:28:49]OFD Sender: No OFD packet to send [06:28:54]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]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:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]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:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]OFD Sender: No OFD packet to send [07:04:26]OFD Sender: No OFD packet to send [07:04:31]OFD Sender: No OFD packet to send [07:04:36]OFD Sender: No OFD packet to send [07:04:41]OFD Sender: No OFD packet to send [07:04:46]OFD Sender: No OFD packet to send [07:04:51]OFD Sender: No OFD packet to send [07:04:56]OFD Sender: No OFD packet to send [07:05:01]OFD Sender: No OFD packet to send [07:05:06]OFD Sender: No OFD packet to send [07:05:11]OFD Sender: No OFD packet to send [07:05:16]OFD Sender: No OFD packet to send [07:05:21]OFD Sender: No OFD packet to send [07:05:26]OFD Sender: No OFD packet to send [07:05:31]OFD Sender: No OFD packet to send [07:05:36]OFD Sender: No OFD packet to send [07:05:41]OFD Sender: No OFD packet to send [07:05:46]OFD Sender: No OFD packet to send [07:05:51]OFD Sender: No OFD packet to send [07:05:56]OFD Sender: No OFD packet to send [07:06:01]OFD Sender: No OFD packet to send [07:06:06]OFD Sender: No OFD packet to send [07:06:11]OFD Sender: No OFD packet to send [07:06:16]OFD Sender: No OFD packet to send [07:06:21]OFD Sender: No OFD packet to send [07:06:26]OFD Sender: No OFD packet to send [07:06:31]OFD Sender: No OFD packet to send [07:06:36]OFD Sender: No OFD packet to send [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13: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:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:13]OFD Sender: No OFD packet to send [07:35:18]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:03]OFD Sender: No OFD packet to send [07:38:08]OFD Sender: No OFD packet to send [07:38:13]OFD Sender: No OFD packet to send [07:38:18]OFD Sender: No OFD packet to send [07:38:23]OFD Sender: No OFD packet to send [07:38:28]OFD Sender: No OFD packet to send [07:38:33]OFD Sender: No OFD packet to send [07:38:38]OFD Sender: No OFD packet to send [07:38:43]OFD Sender: No OFD packet to send [07:38:48]OFD Sender: No OFD packet to send [07:38:53]OFD Sender: No OFD packet to send [07:38:58]OFD Sender: No OFD packet to send [07:39:03]OFD Sender: No OFD packet to send [07:39:08]OFD Sender: No OFD packet to send [07:39:13]OFD Sender: No OFD packet to send [07:39:18]OFD Sender: No OFD packet to send [07:39:23]OFD Sender: No OFD packet to send [07:39:28]OFD Sender: No OFD packet to send [07:39:33]OFD Sender: No OFD packet to send [07:39:38]OFD Sender: No OFD packet to send [07:39:43]OFD Sender: No OFD packet to send [07:39:48]OFD Sender: No OFD packet to send [07:39:53]OFD Sender: No OFD packet to send [07:39:58]OFD Sender: No OFD packet to send [07:40:03]OFD Sender: No OFD packet to send [07:40:08]OFD Sender: No OFD packet to send [07:40:13]OFD Sender: No OFD packet to send [07:40:18]OFD Sender: No OFD packet to send [07:40:23]OFD Sender: No OFD packet to send [07:40:28]OFD Sender: No OFD packet to send [07:40:33]OFD Sender: No OFD packet to send [07:40:38]OFD Sender: No OFD packet to send [07:40:43]OFD Sender: No OFD packet to send [07:40:48]OFD Sender: No OFD packet to send [07:40:53]OFD Sender: No OFD packet to send [07:40:58]OFD Sender: No OFD packet to send [07:41:03]OFD Sender: No OFD packet to send [07:41:08]OFD Sender: No OFD packet to send [07:41:13]OFD Sender: No OFD packet to send [07:41:18]OFD Sender: No OFD packet to send [07:41:23]OFD Sender: No OFD packet to send [07:41:28]OFD Sender: No OFD packet to send [07:41:33]OFD Sender: No OFD packet to send [07:41:38]OFD Sender: No OFD packet to send [07:41:43]OFD Sender: No OFD packet to send [07:41:48]OFD Sender: No OFD packet to send [07:41:53]OFD Sender: No OFD packet to send [07:41:58]OFD Sender: No OFD packet to send [07:42:03]OFD Sender: No OFD packet to send [07:42:08]OFD Sender: No OFD packet to send [07:42:13]OFD Sender: No OFD packet to send [07:42:18]OFD Sender: No OFD packet to send [07:42:23]OFD Sender: No OFD packet to send [07:42:28]OFD Sender: No OFD packet to send [07:42:33]OFD Sender: No OFD packet to send [07:42:38]OFD Sender: No OFD packet to send [07:42:43]OFD Sender: No OFD packet to send [07:42:48]OFD Sender: No OFD packet to send [07:42:53]OFD Sender: No OFD packet to send [07:42:58]OFD Sender: No OFD packet to send [07:43:03]OFD Sender: No OFD packet to send [07:43:08]OFD Sender: No OFD packet to send [07:43:13]OFD Sender: No OFD packet to send [07:43:18]OFD Sender: No OFD packet to send [07:43:23]OFD Sender: No OFD packet to send [07:43:28]OFD Sender: No OFD packet to send [07:43:33]OFD Sender: No OFD packet to send [07:43:38]OFD Sender: No OFD packet to send [07:43:43]OFD Sender: No OFD packet to send [07:43:48]OFD Sender: No OFD packet to send [07:43:53]OFD Sender: No OFD packet to send [07:43:58]OFD Sender: No OFD packet to send [07:44:03]OFD Sender: No OFD packet to send [07:44:08]OFD Sender: No OFD packet to send [07:44:13]OFD Sender: No OFD packet to send [07:44:18]OFD Sender: No OFD packet to send [07:44:23]OFD Sender: No OFD packet to send [07:44:28]OFD Sender: No OFD packet to send [07:44:33]OFD Sender: No OFD packet to send [07:44:38]OFD Sender: No OFD packet to send [07:44:43]OFD Sender: No OFD packet to send [07:44:48]OFD Sender: No OFD packet to send [07:44:53]OFD Sender: No OFD packet to send [07:44:58]OFD Sender: No OFD packet to send [07:45:03]OFD Sender: No OFD packet to send [07:45:08]OFD Sender: No OFD packet to send [07:45:13]OFD Sender: No OFD packet to send [07:45:18]OFD Sender: No OFD packet to send [07:45:23]OFD Sender: No OFD packet to send [07:45:28]OFD Sender: No OFD packet to send [07:45:33]OFD Sender: No OFD packet to send [07:45:38]OFD Sender: No OFD packet to send [07:45:43]OFD Sender: No OFD packet to send [07:45:48]OFD Sender: No OFD packet to send [07:45:53]OFD Sender: No OFD packet to send [07:45:58]OFD Sender: No OFD packet to send [07:46:03]OFD Sender: No OFD packet to send [07:46:08]OFD Sender: No OFD packet to send [07:46:13]OFD Sender: No OFD packet to send [07:46:18]OFD Sender: No OFD packet to send [07:46:23]OFD Sender: No OFD packet to send [07:46:28]OFD Sender: No OFD packet to send [07:46:33]OFD Sender: No OFD packet to send [07:46:38]OFD Sender: No OFD packet to send [07:46:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:43]OFD Sender: No OFD packet to send [07:47:48]OFD Sender: No OFD packet to send [07:47:53]OFD Sender: No OFD packet to send [07:47:58]OFD Sender: No OFD packet to send [07:48:03]OFD Sender: No OFD packet to send [07:48:08]OFD Sender: No OFD packet to send [07:48:13]OFD Sender: No OFD packet to send [07:48:18]OFD Sender: No OFD packet to send [07:48:23]OFD Sender: No OFD packet to send [07:48:28]OFD Sender: No OFD packet to send [07:48:33]OFD Sender: No OFD packet to send [07:48:38]OFD Sender: No OFD packet to send [07:48:43]OFD Sender: No OFD packet to send [07:48:48]OFD Sender: No OFD packet to send [07:48:53]OFD Sender: No OFD packet to send [07:48:58]OFD Sender: No OFD packet to send [07:49:03]OFD Sender: No OFD packet to send [07:49:08]OFD Sender: No OFD packet to send [07:49:13]OFD Sender: No OFD packet to send [07:49:18]OFD Sender: No OFD packet to send [07:49:23]OFD Sender: No OFD packet to send [07:49:28]OFD Sender: No OFD packet to send [07:49:33]OFD Sender: No OFD packet to send [07:49:38]OFD Sender: No OFD packet to send [07:49:43]OFD Sender: No OFD packet to send [07:49:48]OFD Sender: No OFD packet to send [07:49:53]OFD Sender: No OFD packet to send [07:49:58]OFD Sender: No OFD packet to send [07:50:03]OFD Sender: No OFD packet to send [07:50:08]OFD Sender: No OFD packet to send [07:50:13]OFD Sender: No OFD packet to send [07:50:18]OFD Sender: No OFD packet to send [07:50:23]OFD Sender: No OFD packet to send [07:50:28]OFD Sender: No OFD packet to send [07:50:33]OFD Sender: No OFD packet to send [07:50:38]OFD Sender: No OFD packet to send [07:50:43]OFD Sender: No OFD packet to send [07:50:48]OFD Sender: No OFD packet to send [07:50:53]OFD Sender: No OFD packet to send [07:50:58]OFD Sender: No OFD packet to send [07:51:03]OFD Sender: No OFD packet to send [07:51:08]OFD Sender: No OFD packet to send [07:51:13]OFD Sender: No OFD packet to send [07:51:18]OFD Sender: No OFD packet to send [07:51:23]OFD Sender: No OFD packet to send [07:51:28]OFD Sender: No OFD packet to send [07:51:33]OFD Sender: No OFD packet to send [07:51:38]OFD Sender: No OFD packet to send [07:51:43]OFD Sender: No OFD packet to send [07:51:48]OFD Sender: No OFD packet to send [07:51:53]OFD Sender: No OFD packet to send [07:51:58]OFD Sender: No OFD packet to send [07:52:03]OFD Sender: No OFD packet to send [07:52:08]OFD Sender: No OFD packet to send [07:52:13]OFD Sender: No OFD packet to send [07:52:18]OFD Sender: No OFD packet to send [07:52:23]OFD Sender: No OFD packet to send [07:52:28]OFD Sender: No OFD packet to send [07:52:33]OFD Sender: No OFD packet to send [07:52:38]OFD Sender: No OFD packet to send [07:52:43]OFD Sender: No OFD packet to send [07:52:48]OFD Sender: No OFD packet to send [07:52:53]OFD Sender: No OFD packet to send [07:52:58]OFD Sender: No OFD packet to send [07:53:03]OFD Sender: No OFD packet to send [07:53:08]OFD Sender: No OFD packet to send [07:53:13]OFD Sender: No OFD packet to send [07:53:18]OFD Sender: No OFD packet to send [07:53:23]OFD Sender: No OFD packet to send [07:53:28]OFD Sender: No OFD packet to send [07:53:33]OFD Sender: No OFD packet to send [07:53:38]OFD Sender: No OFD packet to send [07:53:43]OFD Sender: No OFD packet to send [07:53:48]OFD Sender: No OFD packet to send [07:53:53]OFD Sender: No OFD packet to send [07:53:58]OFD Sender: No OFD packet to send [07:54:03]OFD Sender: No OFD packet to send [07:54:08]OFD Sender: No OFD packet to send [07:54:13]OFD Sender: No OFD packet to send [07:54:18]OFD Sender: No OFD packet to send [07:54:23]OFD Sender: No OFD packet to send [07:54:28]OFD Sender: No OFD packet to send [07:54:33]OFD Sender: No OFD packet to send [07:54:38]OFD Sender: No OFD packet to send [07:54:43]OFD Sender: No OFD packet to send [07:54:48]OFD Sender: No OFD packet to send [07:54:53]OFD Sender: No OFD packet to send [07:54:58]OFD Sender: No OFD packet to send [07:55:03]OFD Sender: No OFD packet to send [07:55:08]OFD Sender: No OFD packet to send [07:55:13]OFD Sender: No OFD packet to send [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:24]OFD Sender: No OFD packet to send [08:08:29]OFD Sender: No OFD packet to send [08:08:34]OFD Sender: No OFD packet to send [08:08:39]OFD Sender: No OFD packet to send [08:08:44]OFD Sender: No OFD packet to send [08:08:49]OFD Sender: No OFD packet to send [08:08:54]OFD Sender: No OFD packet to send [08:08:59]OFD Sender: No OFD packet to send [08:09:04]OFD Sender: No OFD packet to send [08:09:09]OFD Sender: No OFD packet to send [08:09:14]OFD Sender: No OFD packet to send [08:09:19]OFD Sender: No OFD packet to send [08:09:24]OFD Sender: No OFD packet to send [08:09:29]OFD Sender: No OFD packet to send [08:09:34]OFD Sender: No OFD packet to send [08:09:39]OFD Sender: No OFD packet to send [08:09:44]OFD Sender: No OFD packet to send [08:09:49]OFD Sender: No OFD packet to send [08:09:54]OFD Sender: No OFD packet to send [08:09:59]OFD Sender: No OFD packet to send [08:10:04]OFD Sender: No OFD packet to send [08:10:09]OFD Sender: No OFD packet to send [08:10:14]OFD Sender: No OFD packet to send [08:10:19]OFD Sender: No OFD packet to send [08:10:24]OFD Sender: No OFD packet to send [08:10:29]OFD Sender: No OFD packet to send [08:10:34]OFD Sender: No OFD packet to send [08:10:39]OFD Sender: No OFD packet to send [08:10:44]OFD Sender: No OFD packet to send [08:10:49]OFD Sender: No OFD packet to send [08:10:54]OFD Sender: No OFD packet to send [08:10:59]OFD Sender: No OFD packet to send [08:11:04]OFD Sender: No OFD packet to send [08:11:09]OFD Sender: No OFD packet to send [08:11:14]OFD Sender: No OFD packet to send [08:11:19]OFD Sender: No OFD packet to send [08:11:24]OFD Sender: No OFD packet to send [08:11:29]OFD Sender: No OFD packet to send [08:11:34]OFD Sender: No OFD packet to send [08:11:39]OFD Sender: No OFD packet to send [08:11:44]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:54]OFD Sender: No OFD packet to send [08:12:59]OFD Sender: No OFD packet to send [08:13:04]OFD Sender: No OFD packet to send [08:13:09]OFD Sender: No OFD packet to send [08:13:14]OFD Sender: No OFD packet to send [08:13:19]OFD Sender: No OFD packet to send [08:13:24]OFD Sender: No OFD packet to send [08:13:29]OFD Sender: No OFD packet to send [08:13:34]OFD Sender: No OFD packet to send [08:13:39]OFD Sender: No OFD packet to send [08:13:44]OFD Sender: No OFD packet to send [08:13:49]OFD Sender: No OFD packet to send [08:13:54]OFD Sender: No OFD packet to send [08:13:59]OFD Sender: No OFD packet to send [08:14:04]OFD Sender: No OFD packet to send [08:14:09]OFD Sender: No OFD packet to send [08:14:14]OFD Sender: No OFD packet to send [08:14:19]OFD Sender: No OFD packet to send [08:14:24]OFD Sender: No OFD packet to send [08:14:29]OFD Sender: No OFD packet to send [08:14:34]OFD Sender: No OFD packet to send [08:14:39]OFD Sender: No OFD packet to send [08:14:44]OFD Sender: No OFD packet to send [08:14:49]OFD Sender: No OFD packet to send [08:14:54]OFD Sender: No OFD packet to send [08:14:59]OFD Sender: No OFD packet to send [08:15:04]OFD Sender: No OFD packet to send [08:15:09]OFD Sender: No OFD packet to send [08:15:14]OFD Sender: No OFD packet to send [08:15:19]OFD Sender: No OFD packet to send [08:15:24]OFD Sender: No OFD packet to send [08:15:29]OFD Sender: No OFD packet to send [08:15:30]accept exits with 9 [08:15:30]New connection [08:15:30]New thread 3066813796 created [08:15:30]Thread 3066670436 joined [08:15:30]Waiting for new connection... [08:15:30] Sock 9.Parse request [08:15:30]Sock 9.Check first char [08:15:30]Sock 9.First char is OK [08:15:30]request: POST /json_proto HTTP/1.0 [08:15:30]Method: POST [08:15:30]URL: /json_proto [08:15:30]Method is POST - this is cgi request [08:15:30]url: /json_proto [08:15:30]query_string will be loaded in cgi processing [08:15:30]execute_cgi json_proto POST (null) [08:15:30]execute_cgi path=json_proto method=POST [08:15:30]POST find Content-Length [08:15:30]Host: 172.17.56.67:8080 [08:15:30]Content-Length: 677 [08:15:30]Content-Type: application/json [08:15:30] [08:15:30]POST finish read [08:15:30]Found Content-Length = 677 [08:15:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216119", "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" ] } } [08:15:30]execute_script... [08:15:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216119", "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" ] } } [08:15:30]POST & json_proto [08:15:30]process_json_proto [08:15:30]json parsed OK: [08:15:30]protocol is kg_v1.0 [08:15:30]action value=close_receipt [08:15:30]process_action close_receipt [08:15:30]cmd_close_receipt [08:15:30]MH_GetDate [08:15:30]Write to MH i2c: F0 00 00 AC 3D D8 [08:15:30]Write i2c OK [08:15:30]MH_I2C_Read... [08:15:30]Read from MH i2c: F0 [08:15:30]MH_I2C_Read... [08:15:30]Read from MH i2c: F0 09 00 [08:15:30]MH_I2C_Read... [08:15:30]Read from MH i2c: F0 09 00 AC 3D 00 AF 5E B7 65 26 5D 9E 65 90 [08:15:30]GetLastDocTimeStamp 1706488631 [08:15:30]current date 1706516143 [08:15:30]FM_GetShiftState [08:15:30]SAM_PROTO_GetShiftState [08:15:30]wFMCommunicate request_size=4 [08:15:30]MH_SAM_APDU [08:15:30]CAPDU: 80 13 01 00 [08:15:30]Write to MH i2c: E2 08 00 AD 3D 80 13 01 00 00 00 00 00 67 [08:15:30]Write i2c OK [08:15:30]MH_I2C_Read... [08:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:30]Read from MH i2c: E2 [08:15:30]MH_I2C_Read... [08:15:30]Read from MH i2c: E2 0E 00 [08:15:30]MH_I2C_Read... [08:15:30]Read from MH i2c: E2 0E 00 AD 3D 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 D9 [08:15:30]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [08:15:30]wFMCommunicate OK [08:15:30]SAM_PROTO_GetShiftState done [08:15:30]FM_GetShiftState done [08:15:30]opened in 1706486624 [08:15:30]opened+sec_in_day 1706573024 [08:15:30]quantity*price = 20019 [08:15:30]sum+1 = 20021 [08:15:30]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 СÐО: Общий режим Чек 3 29.01.2024 08:15 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49020 ФПД: 172331481350223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T081543&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49020&fm=172331481350223&tin=02508201610067®Number=0000000000092723&sum=20000 [08:15:32]StoreToDocumentArchive [08:15:32]shift 245 fd 49020 [08:15:32]save to /storage/0245/doc_00049020 [08:15:32]save last doc name /storage/0245/doc_00049020 to /storage/kkm_last_doc_name [08:15:32]save OK [08:15:32]Clear old archive folders... [08:15:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:15:32]tlvbuf is 0121E630 [08:15:32]SAM_PROTO_ClearQueue [08:15:32]wFMCommunicate request_size=4 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 09 00 00 [08:15:32]Write to MH i2c: E2 08 00 BA 3D 80 09 00 00 00 00 00 00 69 [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 BA 3D 00 90 00 6B [08:15:32]RAPDU: 90 00 [08:15:32]wFMCommunicate OK [08:15:32]SAM_PROTO_ClearQueue done [08:15:32]KKMCreateOFDPacket [08:15:32]OFDProtocolAddRootSTLVToBuf [08:15:32]FM_MakeSignedData [08:15:32]FM_MakeSignedData [08:15:32]SAM_PROTO_SignData [08:15:32]wFMCommunicate request_size=4 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 0D 01 02 [08:15:32]Write to MH i2c: E2 08 00 BB 3D 80 0D 01 02 00 00 00 00 71 [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 BB 3D 00 90 00 6C [08:15:32]RAPDU: 90 00 [08:15:32]wFMCommunicate OK [08:15:32]wFMCommunicate request_size=255 [08:15:32]MH_SAM_APDU [08:15: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 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 03 00 00 00 F4 03 04 00 AF 5E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7C BF 00 00 35 04 06 00 9C [08:15:32]Write to MH i2c: E2 02 01 BC 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 03 00 00 00 F4 03 04 00 AF 5E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7C BF 00 00 35 04 06 00 9C 00 00 79 [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 BC 3D 00 90 00 6D [08:15:32]RAPDU: 90 00 [08:15:32]wFMCommunicate OK [08:15:32]wFMCommunicate request_size=10 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 0D 02 02 05 BC 0C BA C0 4F [08:15:32]Write to MH i2c: E2 0D 00 BD 3D 80 0D 02 02 05 00 BC 0C BA C0 4F 00 00 0F [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 03 00 BD 3D 00 90 00 6E [08:15:32]RAPDU: 90 00 [08:15:32]wFMCommunicate OK [08:15:32]wFMCommunicate request_size=4 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 0D 03 02 [08:15:32]Write to MH i2c: E2 08 00 BE 3D 80 0D 03 02 00 00 00 00 76 [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 0B 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 0B 00 BE 3D 00 D0 DD FB 45 ED A7 48 27 90 00 67 [08:15:32]RAPDU: D0 DD FB 45 ED A7 48 27 90 00 [08:15:32]wFMCommunicate OK [08:15:32]SAM_PROTO_SignData done [08:15:32]FM_MakeSignedData done [08:15:32]CreateOFDProtocolMessage [08:15:32]wFMCommunicate request_size=4 [08:15:32]MH_SAM_APDU [08:15:32]CAPDU: 80 11 00 00 [08:15:32]Write to MH i2c: E2 08 00 BF 3D 80 11 00 00 00 00 00 00 76 [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:32]Read from MH i2c: E2 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 17 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: E2 17 00 BF 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C3 [08:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:15:32]wFMCommunicate OK [08:15:32]CreateOFDProtocolMessage done [08:15:32]OFDSenderStorePacket 49020 [08:15:32]StoreOFDPacket docnum=49020 [08:15:32]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 4A 07 01 00 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 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 03 00 00 00 F4 03 04 00 AF 5E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7C BF 00 00 35 04 06 00 9C BC 0C BA C0 4F D0 DD FB 45 ED A7 48 27 [08:15:32]CheckFolder [08:15:32]dirname=/storage/ofd_packets [08:15:32]CheckFolder done [08:15:32]ProducePacketName [08:15:32]name=ofd_packets/00049020 [08:15:32]NVStorageSaveData ofd_packets/00049020 [08:15:32]File name is /storage/ofd_packets/00049020 [08:15:32]Write 301 bytes [08:15:32]NVStorageSaveData done [08:15:32]OFDSenderStorePacket done [08:15:32]KKMCreateOFDPacket done [08:15:32]NVStorageSaveData kkm_last_timestamp [08:15:32]File name is /storage/kkm_last_timestamp [08:15:32]Write 4 bytes [08:15:32]NVStorageSaveData done [08:15:32]ExternCall_PrintAddStr [08:15:32]wPrintStart [08:15:32]Write to MH i2c: 01 00 00 C0 3D FD [08:15:32]Write i2c OK [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: 01 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: 01 07 00 [08:15:32]MH_I2C_Read... [08:15:32]Read from MH i2c: 01 07 00 C0 3D 00 00 00 00 00 FF 0F 12 [08:15:32]RasterBufferAndPrint [08:15:32]line Счет N : (1)216119 [08:15:32]line ИÐÐ: 02508201610067 [08:15:32]line Контрольно-КаÑÑовый Чек [08:15:32]line ПРОДÐЖР[08:15:32]line ТРК (МРК, ГÐК) : 12 [08:15:32]line Товар: 2710124130 [08:15:32]line Ðи-92-К-5 [08:15:32]line 3.320 * 60.30 [08:15:32]line = 200.20 [08:15:32]line ÐДС 12% ÐСП 1% [08:15:32]line > о реализуемом товаре [08:15:32]line ОКРУГЛЕÐИЕ: -0.20 [08:15:32]line ИТОГО: 200.00 [08:15:32]line ВнеÑено: 200.00 [08:15:32]line СДÐЧÐ: 0.00 [08:15:32]line ÐСП 1% : 1.77 [08:15:32]line ÐДС 12% : 21.26 [08:15:32]line Ðаличными: 200.00 [08:15:32]line Безнал.: 0.00 [08:15:32]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [08:15:32]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:15:32]line СÐО: Общий режим [08:15:32]line Чек 3 29.01.2024 08:15 [08:15:32]line Смена: 245 ФФД: 1.0 [08:15:32]line ЗÐМ: 0300000040 [08:15:32]line РÐМ: 0000000000092723 [08:15:32]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:15:32]line ФМ: 0000000000875060 [08:15:32]line ФД: 49020 [08:15:32]line ФПД: 172331481350223 [08:15:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T081543&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49020&fm=172331481350223&tin=02508201610067®Number=0000000000092723&sum=20000 [08:15:32]OFD Sender: Processing packet 49020 [packets to send 12, broken 11] [08:15:32]ProducePacketName [08:15:32]name=ofd_packets/00049020 [08:15:32]OFD Sender: To server: ‡•öpG, [08:15:32]CommunicateWithHost lk.salyk.kg:30040 [08:15:32]ConnectInit lk.salyk.kg [08:15:32]written 0, free lines is 4095 [08:15:32]Connected sock=10 [08:15: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 6D 4A 07 01 00 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 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 03 00 00 00 F4 03 04 00 AF 5E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7C BF 00 00 35 04 06 00 9C BC 0C BA C0 4F D0 DD FB 45 ED A7 48 27 [08:15: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 8E 4B 47 00 27 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7C BF 00 00 F4 03 04 00 A8 0A B7 65 B6 04 01 00 00 27 62 16 39 9D 3E F0 DB [08:15:33]CommunicateWithHost err = 0 [08:15:33]CheckOFDResponse [08:15:33]1017 (14) - 77093643461234 [08:15:33]1041 (16) - 0000000000875060 [08:15:33]1040 (4) - 49020 [08:15:33]1012 (4) - 29.01.2024 02:17 [08:15:33]1206 (1) - 0 [08:15:33]OFD Sender: Remove packet 49020 [08:15:33]ProducePacketName [08:15:33]name=ofd_packets/00049020 [08:15:33]NVStorageDeleteData [08:15:33]Write to MH i2c: 01 00 00 EB 3D 28 [08:15:33]Write i2c OK [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: 01 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: 01 07 00 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: 01 07 00 EB 3D 00 00 00 00 00 EE 0C 29 [08:15:33]RasterBufferAndPrint [08:15:33]line [08:15:33]line [08:15:33]line [08:15:33]line [08:15:33]line [08:15:33]written 0, free lines is 3316 [08:15:33]MH_Cut [08:15:33]Write to MH i2c: D1 01 00 F2 3D 01 01 [08:15:33]Write i2c OK [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: D1 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: D1 01 00 [08:15:33]MH_I2C_Read... [08:15:33]Read from MH i2c: D1 01 00 F2 3D 00 00 [08:15:33]Write to MH i2c: 01 00 00 F3 3D 30 [08:15:33]Write i2c OK [08:15:33]MH_I2C_Read... [08:15:33]OFD Sender: No OFD packet to send [08:15:34]*** Cut start [08:15:34]*** Partial cut [08:15:34]*** CUTSNS_PIN = 1 [08:15:34]*** CUTSNS_PIN = 0 [08:15:34]*** Brake cut motor [08:15:34]Read from MH i2c: 01 [08:15:34]MH_I2C_Read... [08:15:34]*** Stop cut motor [08:15:34]*** Cut end [08:15:34]Read from MH i2c: 01 07 00 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: 01 07 00 F3 3D 00 00 00 00 00 FF 0F 45 [08:15:34]process_action close_receipt done [08:15:34]requested_data is exist [08:15:34]produce_requested_data [08:15:34]requested_item fm.sn is exist - process it [08:15:34]wFMCommunicate request_size=4 [08:15:34]MH_SAM_APDU [08:15:34]CAPDU: 80 11 00 00 [08:15:34]Write to MH i2c: E2 08 00 F4 3D 80 11 00 00 00 00 00 00 AB [08:15:34]Write i2c OK [08:15:34]MH_I2C_Read... [08:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:34]Read from MH i2c: E2 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 17 00 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 17 00 F4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F8 [08:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:15:34]wFMCommunicate OK [08:15:34]requested_item fd.num is exist - process it [08:15:34]SAM_PROTO_GetFieldsCounters [08:15:34]wFMCommunicate request_size=4 [08:15:34]MH_SAM_APDU [08:15:34]CAPDU: 80 13 00 00 [08:15:34]Write to MH i2c: E2 08 00 F5 3D 80 13 00 00 00 00 00 00 AE [08:15:34]Write i2c OK [08:15:34]MH_I2C_Read... [08:15:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:15:34]Read from MH i2c: E2 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 62 00 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 62 00 F5 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 7C BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [08:15:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 7C BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:15:34]wFMCommunicate OK [08:15:34]SAM_PROTO_GetFieldsCounters done [08:15:34]requested_item shift.num is exist - process it [08:15:34]requested_item shift.opened is exist - process it [08:15:34]req_shift_opened [08:15:34]FM_GetShiftState [08:15:34]SAM_PROTO_GetShiftState [08:15:34]wFMCommunicate request_size=4 [08:15:34]MH_SAM_APDU [08:15:34]CAPDU: 80 13 01 00 [08:15:34]Write to MH i2c: E2 08 00 F6 3D 80 13 01 00 00 00 00 00 B0 [08:15:34]Write i2c OK [08:15:34]MH_I2C_Read... [08:15:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:34]Read from MH i2c: E2 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 0E 00 [08:15:34]MH_I2C_Read... [08:15:34]Read from MH i2c: E2 0E 00 F6 3D 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 22 [08:15:34]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [08:15:34]wFMCommunicate OK [08:15:34]SAM_PROTO_GetShiftState done [08:15:34]FM_GetShiftState done [08:15:34]req_shift_opened done [08:15:34]requested_item shift.open_date is exist - process it [08:15:34]req_shift_open_date [08:15:34]req_shift_open_date done [08:15:34]produce_requested_data done [08:15:34]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49020,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [08:15:34]process_action_free close_receipt [08:15:34]json_value_free [08:15:34]json_value_free done [08:15:34]process_json_proto returns [08:15:34]Send response to host [08:15:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49020,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [08:15:34]free response buf [08:15:34]execute_script done [08:15:34]execute_script returns [08:15:34]free content buf [08:15:34]Sock 9.Close socket [08:15:34]Sock 9.Thread stoped [08:15:38]OFD Sender: No OFD packet to send [08:15:43]OFD Sender: No OFD packet to send [08:15:48]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [08:17:23]OFD Sender: No OFD packet to send [08:17:28]OFD Sender: No OFD packet to send [08:17:33]OFD Sender: No OFD packet to send [08:17:38]OFD Sender: No OFD packet to send [08:17:43]OFD Sender: No OFD packet to send [08:17:48]OFD Sender: No OFD packet to send [08:17:53]OFD Sender: No OFD packet to send [08:17:58]OFD Sender: No OFD packet to send [08:18:03]OFD Sender: No OFD packet to send [08:18:08]OFD Sender: No OFD packet to send [08:18:13]OFD Sender: No OFD packet to send [08:18:18]OFD Sender: No OFD packet to send [08:18:23]OFD Sender: No OFD packet to send [08:18:28]OFD Sender: No OFD packet to send [08:18:33]OFD Sender: No OFD packet to send [08:18:38]OFD Sender: No OFD packet to send [08:18:43]OFD Sender: No OFD packet to send [08:18:48]OFD Sender: No OFD packet to send [08:18:53]OFD Sender: No OFD packet to send [08:18:58]OFD Sender: No OFD packet to send [08:19:03]OFD Sender: No OFD packet to send [08:19:08]OFD Sender: No OFD packet to send [08:19:13]OFD Sender: No OFD packet to send [08:19:18]OFD Sender: No OFD packet to send [08:19:23]OFD Sender: No OFD packet to send [08:19:28]OFD Sender: No OFD packet to send [08:19:33]OFD Sender: No OFD packet to send [08:19:38]OFD Sender: No OFD packet to send [08:19:43]OFD Sender: No OFD packet to send [08:19:48]OFD Sender: No OFD packet to send [08:19:53]OFD Sender: No OFD packet to send [08:19:58]OFD Sender: No OFD packet to send [08:20:03]OFD Sender: No OFD packet to send [08:20:07]accept exits with 7 [08:20:07]New connection [08:20:07]New thread 3066670436 created [08:20:07]Thread 3066813796 joined [08:20:07]Waiting for new connection... [08:20:07] Sock 7.Parse request [08:20:07]Sock 7.Check first char [08:20:07]Sock 7.First char is OK [08:20:07]request: POST /json_proto HTTP/1.0 [08:20:07]Method: POST [08:20:07]URL: /json_proto [08:20:07]Method is POST - this is cgi request [08:20:07]url: /json_proto [08:20:07]query_string will be loaded in cgi processing [08:20:07]execute_cgi json_proto POST (null) [08:20:07]execute_cgi path=json_proto method=POST [08:20:07]POST find Content-Length [08:20:07]Host: 172.17.56.67:8080 [08:20:07]Content-Length: 677 [08:20:07]Content-Type: application/json [08:20:07] [08:20:07]POST finish read [08:20:07]Found Content-Length = 677 [08:20:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216120", "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" ] } } [08:20:07]execute_script... [08:20: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)216120", "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" ] } } [08:20:07]POST & json_proto [08:20:07]process_json_proto [08:20:07]json parsed OK: [08:20:07]protocol is kg_v1.0 [08:20:07]action value=close_receipt [08:20:07]process_action close_receipt [08:20:07]cmd_close_receipt [08:20:07]MH_GetDate [08:20:07]Write to MH i2c: F0 00 00 F7 3D 23 [08:20:07]Write i2c OK [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: F0 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: F0 09 00 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: F0 09 00 F7 3D 00 C4 5F B7 65 26 5D 9E 65 F1 [08:20:07]GetLastDocTimeStamp 1706516143 [08:20:07]current date 1706516420 [08:20:07]FM_GetShiftState [08:20:07]SAM_PROTO_GetShiftState [08:20:07]wFMCommunicate request_size=4 [08:20:07]MH_SAM_APDU [08:20:07]CAPDU: 80 13 01 00 [08:20:07]Write to MH i2c: E2 08 00 F8 3D 80 13 01 00 00 00 00 00 B2 [08:20:07]Write i2c OK [08:20:07]MH_I2C_Read... [08:20:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:07]Read from MH i2c: E2 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 0E 00 [08:20:07]MH_I2C_Read... [08:20:07]Read from MH i2c: E2 0E 00 F8 3D 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 24 [08:20:07]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [08:20:07]wFMCommunicate OK [08:20:07]SAM_PROTO_GetShiftState done [08:20:07]FM_GetShiftState done [08:20:07]opened in 1706486624 [08:20:07]opened+sec_in_day 1706573024 [08:20:07]quantity*price = 20019 [08:20:07]sum+1 = 20021 [08:20:07]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 СÐО: Общий режим Чек 4 29.01.2024 08:20 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49021 ФПД: 137627170638362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T082020&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49021&fm=137627170638362&tin=02508201610067®Number=0000000000092723&sum=20000 [08:20:08]StoreToDocumentArchive [08:20:08]shift 245 fd 49021 [08:20:08]save to /storage/0245/doc_00049021 [08:20:08]save last doc name /storage/0245/doc_00049021 to /storage/kkm_last_doc_name [08:20:08]save OK [08:20:08]Clear old archive folders... [08:20:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:08]tlvbuf is 011F8800 [08:20:08]SAM_PROTO_ClearQueue [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 09 00 00 [08:20:08]Write to MH i2c: E2 08 00 05 3E 80 09 00 00 00 00 00 00 B5 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 05 3E 00 90 00 B7 [08:20:08]RAPDU: 90 00 [08:20:08]wFMCommunicate OK [08:20:08]SAM_PROTO_ClearQueue done [08:20:08]KKMCreateOFDPacket [08:20:08]OFDProtocolAddRootSTLVToBuf [08:20:08]FM_MakeSignedData [08:20:08]FM_MakeSignedData [08:20:08]SAM_PROTO_SignData [08:20:08]wFMCommunicate request_size=4 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 0D 01 02 [08:20:08]Write to MH i2c: E2 08 00 06 3E 80 0D 01 02 00 00 00 00 BD [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 06 3E 00 90 00 B8 [08:20:08]RAPDU: 90 00 [08:20:08]wFMCommunicate OK [08:20:08]wFMCommunicate request_size=255 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 04 00 00 00 F4 03 04 00 C4 5F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7D BF 00 00 35 04 06 00 7D [08:20:08]Write to MH i2c: E2 02 01 07 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 04 00 00 00 F4 03 04 00 C4 5F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7D BF 00 00 35 04 06 00 7D 00 00 BE [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]OFD Sender: No OFD packet to send [08:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:08]Read from MH i2c: E2 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 [08:20:08]MH_I2C_Read... [08:20:08]Read from MH i2c: E2 03 00 07 3E 00 90 00 B9 [08:20:08]RAPDU: 90 00 [08:20:08]wFMCommunicate OK [08:20:08]wFMCommunicate request_size=10 [08:20:08]MH_SAM_APDU [08:20:08]CAPDU: 80 0D 02 02 05 2B D2 9E 0A 1A [08:20:08]Write to MH i2c: E2 0D 00 08 3E 80 0D 02 02 05 00 2B D2 9E 0A 1A 00 00 89 [08:20:08]Write i2c OK [08:20:08]MH_I2C_Read... [08:20:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:09]Read from MH i2c: E2 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 03 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 03 00 08 3E 00 90 00 BA [08:20:09]RAPDU: 90 00 [08:20:09]wFMCommunicate OK [08:20:09]wFMCommunicate request_size=4 [08:20:09]MH_SAM_APDU [08:20:09]CAPDU: 80 0D 03 02 [08:20:09]Write to MH i2c: E2 08 00 09 3E 80 0D 03 02 00 00 00 00 C2 [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:09]Read from MH i2c: E2 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 0B 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 0B 00 09 3E 00 26 A5 51 FA 04 CA 78 DD 90 00 FC [08:20:09]RAPDU: 26 A5 51 FA 04 CA 78 DD 90 00 [08:20:09]wFMCommunicate OK [08:20:09]SAM_PROTO_SignData done [08:20:09]FM_MakeSignedData done [08:20:09]CreateOFDProtocolMessage [08:20:09]wFMCommunicate request_size=4 [08:20:09]MH_SAM_APDU [08:20:09]CAPDU: 80 11 00 00 [08:20:09]Write to MH i2c: E2 08 00 0A 3E 80 11 00 00 00 00 00 00 C2 [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:09]Read from MH i2c: E2 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 17 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: E2 17 00 0A 3E 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:20:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:20:09]wFMCommunicate OK [08:20:09]CreateOFDProtocolMessage done [08:20:09]OFDSenderStorePacket 49021 [08:20:09]StoreOFDPacket docnum=49021 [08:20: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 E9 08 07 01 CB C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 04 00 00 00 F4 03 04 00 C4 5F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7D BF 00 00 35 04 06 00 7D 2B D2 9E 0A 1A 26 A5 51 FA 04 CA 78 DD [08:20:09]CheckFolder [08:20:09]dirname=/storage/ofd_packets [08:20:09]CheckFolder done [08:20:09]ProducePacketName [08:20:09]name=ofd_packets/00049021 [08:20:09]NVStorageSaveData ofd_packets/00049021 [08:20:09]File name is /storage/ofd_packets/00049021 [08:20:09]Write 301 bytes [08:20:09]NVStorageSaveData done [08:20:09]OFDSenderStorePacket done [08:20:09]KKMCreateOFDPacket done [08:20:09]NVStorageSaveData kkm_last_timestamp [08:20:09]File name is /storage/kkm_last_timestamp [08:20:09]Write 4 bytes [08:20:09]NVStorageSaveData done [08:20:09]ExternCall_PrintAddStr [08:20:09]wPrintStart [08:20:09]Write to MH i2c: 01 00 00 0B 3E 49 [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: 01 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: 01 07 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: 01 07 00 0B 3E 00 00 00 00 00 FF 0F 5E [08:20:09]RasterBufferAndPrint [08:20:09]line Счет N : (1)216120 [08:20:09]line ИÐÐ: 02508201610067 [08:20:09]line Контрольно-КаÑÑовый Чек [08:20:09]line ПРОДÐЖР[08:20:09]line ТРК (МРК, ГÐК) : 12 [08:20:09]line Товар: 2710124130 [08:20:09]line Ðи-92-К-5 [08:20:09]line 3.320 * 60.30 [08:20:09]line = 200.20 [08:20:09]line ÐДС 12% ÐСП 1% [08:20:09]line > о реализуемом товаре [08:20:09]line ОКРУГЛЕÐИЕ: -0.20 [08:20:09]line ИТОГО: 200.00 [08:20:09]line ВнеÑено: 200.00 [08:20:09]line СДÐЧÐ: 0.00 [08:20:09]line ÐСП 1% : 1.77 [08:20:09]line ÐДС 12% : 21.26 [08:20:09]line Ðаличными: 200.00 [08:20:09]line Безнал.: 0.00 [08:20:09]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [08:20:09]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:20:09]line СÐО: Общий режим [08:20:09]line Чек 4 29.01.2024 08:20 [08:20:09]line Смена: 245 ФФД: 1.0 [08:20:09]line ЗÐМ: 0300000040 [08:20:09]line РÐМ: 0000000000092723 [08:20:09]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:20:09]line ФМ: 0000000000875060 [08:20:09]line ФД: 49021 [08:20:09]line ФПД: 137627170638362 [08:20:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T082020&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49021&fm=137627170638362&tin=02508201610067®Number=0000000000092723&sum=20000 [08:20:09]OFD Sender: Processing packet 49021 [packets to send 12, broken 11] [08:20:09]ProducePacketName [08:20:09]name=ofd_packets/00049021 [08:20:09]OFD Sender: To server: ‡•öpG, [08:20:09]CommunicateWithHost lk.salyk.kg:30040 [08:20:09]ConnectInit lk.salyk.kg [08:20:09]written 0, free lines is 4095 [08:20:09]Connected sock=10 [08:20: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 0F 01 00 00 E9 08 07 01 CB C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 04 00 00 00 F4 03 04 00 C4 5F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7D BF 00 00 35 04 06 00 7D 2B D2 9E 0A 1A 26 A5 51 FA 04 CA 78 DD [08:20:09]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 6B A7 47 00 BC 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 7D BF 00 00 F4 03 04 00 BD 0B B7 65 B6 04 01 00 00 97 09 4D 5B FD D2 1E 4C [08:20:09]CommunicateWithHost err = 0 [08:20:09]CheckOFDResponse [08:20:09]1017 (14) - 77093643461234 [08:20:09]1041 (16) - 0000000000875060 [08:20:09]1040 (4) - 49021 [08:20:09]1012 (4) - 29.01.2024 02:21 [08:20:09]1206 (1) - 0 [08:20:09]OFD Sender: Remove packet 49021 [08:20:09]ProducePacketName [08:20:09]name=ofd_packets/00049021 [08:20:09]NVStorageDeleteData [08:20:09]Write to MH i2c: 01 00 00 36 3E 74 [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: 01 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: 01 07 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: 01 07 00 36 3E 00 00 00 00 00 FB 0C 82 [08:20:09]RasterBufferAndPrint [08:20:09]line [08:20:09]line [08:20:09]line [08:20:09]line [08:20:09]line [08:20:09]written 0, free lines is 3329 [08:20:09]MH_Cut [08:20:09]Write to MH i2c: D1 01 00 3D 3E 01 4D [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: D1 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: D1 01 00 [08:20:09]MH_I2C_Read... [08:20:09]Read from MH i2c: D1 01 00 3D 3E 00 4C [08:20:09]Write to MH i2c: 01 00 00 3E 3E 7C [08:20:09]Write i2c OK [08:20:09]MH_I2C_Read... [08:20:10]OFD Sender: No OFD packet to send [08:20:10]*** Cut start [08:20:10]*** Partial cut [08:20:10]*** CUTSNS_PIN = 1 [08:20:10]*** CUTSNS_PIN = 0 [08:20:10]*** Brake cut motor [08:20:11]Read from MH i2c: 01 [08:20:11]MH_I2C_Read... [08:20:11]*** Stop cut motor [08:20:11]*** Cut end [08:20:11]Read from MH i2c: 01 07 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: 01 07 00 3E 3E 00 00 00 00 00 FF 0F 91 [08:20:11]process_action close_receipt done [08:20:11]requested_data is exist [08:20:11]produce_requested_data [08:20:11]requested_item fm.sn is exist - process it [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 11 00 00 [08:20:11]Write to MH i2c: E2 08 00 3F 3E 80 11 00 00 00 00 00 00 F7 [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 17 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 17 00 3F 3E 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:20:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:20:11]wFMCommunicate OK [08:20:11]requested_item fd.num is exist - process it [08:20:11]SAM_PROTO_GetFieldsCounters [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 13 00 00 [08:20:11]Write to MH i2c: E2 08 00 40 3E 80 13 00 00 00 00 00 00 FA [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 62 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 62 00 40 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 7D BF 00 00 0E 04 04 00 F5 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 50 [08:20: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 7D BF 00 00 0E 04 04 00 F5 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 [08:20:11]wFMCommunicate OK [08:20:11]SAM_PROTO_GetFieldsCounters done [08:20:11]requested_item shift.num is exist - process it [08:20:11]requested_item shift.opened is exist - process it [08:20:11]req_shift_opened [08:20:11]FM_GetShiftState [08:20:11]SAM_PROTO_GetShiftState [08:20:11]wFMCommunicate request_size=4 [08:20:11]MH_SAM_APDU [08:20:11]CAPDU: 80 13 01 00 [08:20:11]Write to MH i2c: E2 08 00 41 3E 80 13 01 00 00 00 00 00 FC [08:20:11]Write i2c OK [08:20:11]MH_I2C_Read... [08:20:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:11]Read from MH i2c: E2 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 0E 00 [08:20:11]MH_I2C_Read... [08:20:11]Read from MH i2c: E2 0E 00 41 3E 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 6E [08:20:11]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [08:20:11]wFMCommunicate OK [08:20:11]SAM_PROTO_GetShiftState done [08:20:11]FM_GetShiftState done [08:20:11]req_shift_opened done [08:20:11]requested_item shift.open_date is exist - process it [08:20:11]req_shift_open_date [08:20:11]req_shift_open_date done [08:20:11]produce_requested_data done [08:20:11]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49021,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [08:20:11]process_action_free close_receipt [08:20:11]json_value_free [08:20:11]json_value_free done [08:20:11]process_json_proto returns [08:20:11]Send response to host [08:20:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49021,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [08:20:11]free response buf [08:20:11]execute_script done [08:20:11]execute_script returns [08:20:11]free content buf [08:20:11]Sock 7.Close socket [08:20:11]Sock 7.Thread stoped [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:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:48]accept exits with 9 [08:33:48]New connection [08:33:48]New thread 3066813796 created [08:33:48]Thread 3066670436 joined [08:33:48]Waiting for new connection... [08:33:48] Sock 9.Parse request [08:33:48]Sock 9.Check first char [08:33:48]Sock 9.First char is OK [08:33:48]request: POST /json_proto HTTP/1.0 [08:33:48]Method: POST [08:33:48]URL: /json_proto [08:33:48]Method is POST - this is cgi request [08:33:48]url: /json_proto [08:33:48]query_string will be loaded in cgi processing [08:33:48]execute_cgi json_proto POST (null) [08:33:48]execute_cgi path=json_proto method=POST [08:33:48]POST find Content-Length [08:33:48]Host: 172.17.56.67:8080 [08:33:48]Content-Length: 677 [08:33:48]Content-Type: application/json [08:33:48] [08:33:48]POST finish read [08:33:48]Found Content-Length = 677 [08:33:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216121", "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" ] } } [08:33:48]execute_script... [08:33: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)216121", "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" ] } } [08:33:48]POST & json_proto [08:33:48]process_json_proto [08:33:48]json parsed OK: [08:33:48]protocol is kg_v1.0 [08:33:48]action value=close_receipt [08:33:48]process_action close_receipt [08:33:48]cmd_close_receipt [08:33:48]MH_GetDate [08:33:48]Write to MH i2c: F0 00 00 42 3E 6F [08:33:48]Write i2c OK [08:33:48]MH_I2C_Read... [08:33:48]Read from MH i2c: F0 [08:33:48]MH_I2C_Read... [08:33:48]Read from MH i2c: F0 09 00 [08:33:48]MH_I2C_Read... [08:33:48]Read from MH i2c: F0 09 00 42 3E 00 F8 62 B7 65 26 5D 9E 65 74 [08:33:48]GetLastDocTimeStamp 1706516420 [08:33:48]current date 1706517240 [08:33:48]FM_GetShiftState [08:33:48]SAM_PROTO_GetShiftState [08:33:48]wFMCommunicate request_size=4 [08:33:48]MH_SAM_APDU [08:33:48]CAPDU: 80 13 01 00 [08:33:48]Write to MH i2c: E2 08 00 43 3E 80 13 01 00 00 00 00 00 FE [08:33:48]Write i2c OK [08:33:48]MH_I2C_Read... [08:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:48]Read from MH i2c: E2 [08:33:48]MH_I2C_Read... [08:33:48]Read from MH i2c: E2 0E 00 [08:33:48]MH_I2C_Read... [08:33:48]Read from MH i2c: E2 0E 00 43 3E 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 70 [08:33:48]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [08:33:48]wFMCommunicate OK [08:33:48]SAM_PROTO_GetShiftState done [08:33:48]FM_GetShiftState done [08:33:48]opened in 1706486624 [08:33:48]opened+sec_in_day 1706573024 [08:33:48]quantity*price = 60058 [08:33:48]sum+1 = 60060 [08:33:48]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 СÐО: Общий режим Чек 5 29.01.2024 08:34 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49022 ФПД: 45673740742957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T083400&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49022&fm=45673740742957&tin=02508201610067®Number=0000000000092723&sum=60000 [08:33:49]StoreToDocumentArchive [08:33:49]shift 245 fd 49022 [08:33:49]save to /storage/0245/doc_00049022 [08:33:49]save last doc name /storage/0245/doc_00049022 to /storage/kkm_last_doc_name [08:33:49]save OK [08:33:49]Clear old archive folders... [08:33:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:49]tlvbuf is B6EB8DC0 [08:33:49]SAM_PROTO_ClearQueue [08:33:49]wFMCommunicate request_size=4 [08:33:49]MH_SAM_APDU [08:33:49]CAPDU: 80 09 00 00 [08:33:49]Write to MH i2c: E2 08 00 50 3E 80 09 00 00 00 00 00 00 00 [08:33:49]Write i2c OK [08:33:49]MH_I2C_Read... [08:33:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:49]Read from MH i2c: E2 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 03 00 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 03 00 50 3E 00 90 00 02 [08:33:49]RAPDU: 90 00 [08:33:49]wFMCommunicate OK [08:33:49]SAM_PROTO_ClearQueue done [08:33:49]KKMCreateOFDPacket [08:33:49]OFDProtocolAddRootSTLVToBuf [08:33:49]FM_MakeSignedData [08:33:49]FM_MakeSignedData [08:33:49]SAM_PROTO_SignData [08:33:49]wFMCommunicate request_size=4 [08:33:49]MH_SAM_APDU [08:33:49]CAPDU: 80 0D 01 02 [08:33:49]Write to MH i2c: E2 08 00 51 3E 80 0D 01 02 00 00 00 00 08 [08:33:49]Write i2c OK [08:33:49]MH_I2C_Read... [08:33:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:49]Read from MH i2c: E2 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 03 00 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 03 00 51 3E 00 90 00 03 [08:33:49]RAPDU: 90 00 [08:33:49]wFMCommunicate OK [08:33:49]wFMCommunicate request_size=255 [08:33:49]MH_SAM_APDU [08:33: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 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 05 00 00 00 F4 03 04 00 F8 62 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7E BF 00 00 35 04 06 00 29 [08:33:49]Write to MH i2c: E2 02 01 52 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 05 00 00 00 F4 03 04 00 F8 62 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7E BF 00 00 35 04 06 00 29 00 00 C3 [08:33:49]Write i2c OK [08:33:49]MH_I2C_Read... [08:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:49]Read from MH i2c: E2 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 03 00 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 03 00 52 3E 00 90 00 04 [08:33:49]RAPDU: 90 00 [08:33:49]wFMCommunicate OK [08:33:49]wFMCommunicate request_size=10 [08:33:49]MH_SAM_APDU [08:33:49]CAPDU: 80 0D 02 02 05 8A 3F 17 B1 2D [08:33:49]Write to MH i2c: E2 0D 00 53 3E 80 0D 02 02 05 00 8A 3F 17 B1 2D 00 00 D3 [08:33:49]Write i2c OK [08:33:49]MH_I2C_Read... [08:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:49]Read from MH i2c: E2 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 03 00 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 03 00 53 3E 00 90 00 05 [08:33:49]RAPDU: 90 00 [08:33:49]wFMCommunicate OK [08:33:49]wFMCommunicate request_size=4 [08:33:49]MH_SAM_APDU [08:33:49]CAPDU: 80 0D 03 02 [08:33:49]Write to MH i2c: E2 08 00 54 3E 80 0D 03 02 00 00 00 00 0D [08:33:49]Write i2c OK [08:33:49]MH_I2C_Read... [08:33:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:49]Read from MH i2c: E2 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 0B 00 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 0B 00 54 3E 00 4F 52 A9 74 B4 52 43 E9 90 00 FE [08:33:49]RAPDU: 4F 52 A9 74 B4 52 43 E9 90 00 [08:33:49]wFMCommunicate OK [08:33:49]SAM_PROTO_SignData done [08:33:49]FM_MakeSignedData done [08:33:49]CreateOFDProtocolMessage [08:33:49]wFMCommunicate request_size=4 [08:33:49]MH_SAM_APDU [08:33:49]CAPDU: 80 11 00 00 [08:33:49]Write to MH i2c: E2 08 00 55 3E 80 11 00 00 00 00 00 00 0D [08:33:49]Write i2c OK [08:33:49]MH_I2C_Read... [08:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:49]Read from MH i2c: E2 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 17 00 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 17 00 55 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5A [08:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:33:49]wFMCommunicate OK [08:33:49]CreateOFDProtocolMessage done [08:33:49]OFDSenderStorePacket 49022 [08:33:49]StoreOFDPacket docnum=49022 [08:33: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 1C 51 07 01 17 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 05 00 00 00 F4 03 04 00 F8 62 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7E BF 00 00 35 04 06 00 29 8A 3F 17 B1 2D 4F 52 A9 74 B4 52 43 E9 [08:33:49]CheckFolder [08:33:49]dirname=/storage/ofd_packets [08:33:49]CheckFolder done [08:33:49]ProducePacketName [08:33:49]name=ofd_packets/00049022 [08:33:49]NVStorageSaveData ofd_packets/00049022 [08:33:49]File name is /storage/ofd_packets/00049022 [08:33:49]Write 301 bytes [08:33:49]NVStorageSaveData done [08:33:49]OFDSenderStorePacket done [08:33:49]KKMCreateOFDPacket done [08:33:49]NVStorageSaveData kkm_last_timestamp [08:33:49]File name is /storage/kkm_last_timestamp [08:33:49]Write 4 bytes [08:33:49]NVStorageSaveData done [08:33:49]ExternCall_PrintAddStr [08:33:49]wPrintStart [08:33:49]Write to MH i2c: 01 00 00 56 3E 94 [08:33:49]Write i2c OK [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: 01 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: 01 07 00 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: 01 07 00 56 3E 00 00 00 00 00 FF 0F A9 [08:33:49]RasterBufferAndPrint [08:33:49]line Счет N : (1)216121 [08:33:49]line ИÐÐ: 02508201610067 [08:33:49]line Контрольно-КаÑÑовый Чек [08:33:49]line ПРОДÐЖР[08:33:49]line ТРК (МРК, ГÐК) : 12 [08:33:49]line Товар: 2710124130 [08:33:49]line Ðи-92-К-5 [08:33:49]line 9.960 * 60.30 [08:33:49]line = 600.59 [08:33:49]line ÐДС 12% ÐСП 1% [08:33:49]line > о реализуемом товаре [08:33:49]line ОКРУГЛЕÐИЕ: -0.59 [08:33:49]line ИТОГО: 600.00 [08:33:49]line ВнеÑено: 600.00 [08:33:49]line СДÐЧÐ: 0.00 [08:33:49]line ÐСП 1% : 5.31 [08:33:49]line ÐДС 12% : 63.78 [08:33:49]line Ðаличными: 600.00 [08:33:49]line Безнал.: 0.00 [08:33:49]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [08:33:49]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:33:49]line СÐО: Общий режим [08:33:49]line Чек 5 29.01.2024 08:34 [08:33:49]line Смена: 245 ФФД: 1.0 [08:33:49]line ЗÐМ: 0300000040 [08:33:49]line РÐМ: 0000000000092723 [08:33:49]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:33:49]line ФМ: 0000000000875060 [08:33:49]line ФД: 49022 [08:33:49]line ФПД: 45673740742957 [08:33:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T083400&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49022&fm=45673740742957&tin=02508201610067®Number=0000000000092723&sum=60000 [08:33:50]OFD Sender: Processing packet 49022 [packets to send 12, broken 11] [08:33:50]ProducePacketName [08:33:50]name=ofd_packets/00049022 [08:33:50]OFD Sender: To server: ‡•öpG, [08:33:50]CommunicateWithHost lk.salyk.kg:30040 [08:33:50]ConnectInit lk.salyk.kg [08:33:50]written 0, free lines is 4095 [08:33:50]Connected sock=10 [08:33: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 1C 51 07 01 17 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 05 00 00 00 F4 03 04 00 F8 62 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7E BF 00 00 35 04 06 00 29 8A 3F 17 B1 2D 4F 52 A9 74 B4 52 43 E9 [08:33: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 83 F1 47 00 2C 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7E BF 00 00 F4 03 04 00 F2 0E B7 65 B6 04 01 00 00 21 1A AC 1A 99 B1 B7 7F [08:33:50]CommunicateWithHost err = 0 [08:33:50]CheckOFDResponse [08:33:50]1017 (14) - 77093643461234 [08:33:50]1041 (16) - 0000000000875060 [08:33:50]1040 (4) - 49022 [08:33:50]1012 (4) - 29.01.2024 02:35 [08:33:50]1206 (1) - 0 [08:33:50]OFD Sender: Remove packet 49022 [08:33:50]ProducePacketName [08:33:50]name=ofd_packets/00049022 [08:33:50]NVStorageDeleteData [08:33:50]Write to MH i2c: 01 00 00 81 3E BF [08:33:50]Write i2c OK [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: 01 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: 01 07 00 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: 01 07 00 81 3E 00 00 00 00 00 EE 0C C0 [08:33:50]RasterBufferAndPrint [08:33:50]line [08:33:50]line [08:33:50]line [08:33:50]line [08:33:50]line [08:33:50]written 0, free lines is 3316 [08:33:50]MH_Cut [08:33:50]Write to MH i2c: D1 01 00 88 3E 01 98 [08:33:50]Write i2c OK [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: D1 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: D1 01 00 [08:33:50]MH_I2C_Read... [08:33:50]Read from MH i2c: D1 01 00 88 3E 00 97 [08:33:50]Write to MH i2c: 01 00 00 89 3E C7 [08:33:50]Write i2c OK [08:33:50]MH_I2C_Read... [08:33:51]OFD Sender: No OFD packet to send [08:33:51]*** Cut start [08:33:51]*** Partial cut [08:33:51]*** CUTSNS_PIN = 1 [08:33:51]*** CUTSNS_PIN = 0 [08:33:51]*** Brake cut motor [08:33:51]Read from MH i2c: 01 [08:33:51]MH_I2C_Read... [08:33:51]*** Stop cut motor [08:33:51]*** Cut end [08:33:51]Read from MH i2c: 01 07 00 [08:33:51]MH_I2C_Read... [08:33:51]Read from MH i2c: 01 07 00 89 3E 00 00 00 00 00 FF 0F DC [08:33:51]process_action close_receipt done [08:33:51]requested_data is exist [08:33:51]produce_requested_data [08:33:51]requested_item fm.sn is exist - process it [08:33:51]wFMCommunicate request_size=4 [08:33:51]MH_SAM_APDU [08:33:51]CAPDU: 80 11 00 00 [08:33:51]Write to MH i2c: E2 08 00 8A 3E 80 11 00 00 00 00 00 00 42 [08:33:51]Write i2c OK [08:33:51]MH_I2C_Read... [08:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:52]Read from MH i2c: E2 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 17 00 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 17 00 8A 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8F [08:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:33:52]wFMCommunicate OK [08:33:52]requested_item fd.num is exist - process it [08:33:52]SAM_PROTO_GetFieldsCounters [08:33:52]wFMCommunicate request_size=4 [08:33:52]MH_SAM_APDU [08:33:52]CAPDU: 80 13 00 00 [08:33:52]Write to MH i2c: E2 08 00 8B 3E 80 13 00 00 00 00 00 00 45 [08:33:52]Write i2c OK [08:33:52]MH_I2C_Read... [08:33:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:52]Read from MH i2c: E2 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 62 00 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 62 00 8B 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 7E BF 00 00 0E 04 04 00 F5 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 9F [08:33: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 7E BF 00 00 0E 04 04 00 F5 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:33:52]wFMCommunicate OK [08:33:52]SAM_PROTO_GetFieldsCounters done [08:33:52]requested_item shift.num is exist - process it [08:33:52]requested_item shift.opened is exist - process it [08:33:52]req_shift_opened [08:33:52]FM_GetShiftState [08:33:52]SAM_PROTO_GetShiftState [08:33:52]wFMCommunicate request_size=4 [08:33:52]MH_SAM_APDU [08:33:52]CAPDU: 80 13 01 00 [08:33:52]Write to MH i2c: E2 08 00 8C 3E 80 13 01 00 00 00 00 00 47 [08:33:52]Write i2c OK [08:33:52]MH_I2C_Read... [08:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:52]Read from MH i2c: E2 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 0E 00 [08:33:52]MH_I2C_Read... [08:33:52]Read from MH i2c: E2 0E 00 8C 3E 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 B9 [08:33:52]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [08:33:52]wFMCommunicate OK [08:33:52]SAM_PROTO_GetShiftState done [08:33:52]FM_GetShiftState done [08:33:52]req_shift_opened done [08:33:52]requested_item shift.open_date is exist - process it [08:33:52]req_shift_open_date [08:33:52]req_shift_open_date done [08:33:52]produce_requested_data done [08:33:52]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49022,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [08:33:52]process_action_free close_receipt [08:33:52]json_value_free [08:33:52]json_value_free done [08:33:52]process_json_proto returns [08:33:52]Send response to host [08:33:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49022,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [08:33:52]free response buf [08:33:52]execute_script done [08:33:52]execute_script returns [08:33:52]free content buf [08:33:52]Sock 9.Close socket [08:33:52]Sock 9.Thread stoped [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:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:44]accept exits with 7 [08:59:44]New connection [08:59:44]New thread 3066670436 created [08:59:44]Thread 3066813796 joined [08:59:44]Waiting for new connection... [08:59:44] Sock 7.Parse request [08:59:44]Sock 7.Check first char [08:59:44]Sock 7.First char is OK [08:59:44]request: POST /json_proto HTTP/1.0 [08:59:44]Method: POST [08:59:44]URL: /json_proto [08:59:44]Method is POST - this is cgi request [08:59:44]url: /json_proto [08:59:44]query_string will be loaded in cgi processing [08:59:44]execute_cgi json_proto POST (null) [08:59:44]execute_cgi path=json_proto method=POST [08:59:44]POST find Content-Length [08:59:44]Host: 172.17.56.67:8080 [08:59:44]Content-Length: 677 [08:59:44]Content-Type: application/json [08:59:44] [08:59:44]POST finish read [08:59:44]Found Content-Length = 677 [08:59:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216122", "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:59:44]execute_script... [08:59: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)216122", "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:59:44]POST & json_proto [08:59:44]process_json_proto [08:59:44]json parsed OK: [08:59:44]protocol is kg_v1.0 [08:59:44]action value=close_receipt [08:59:44]process_action close_receipt [08:59:44]cmd_close_receipt [08:59:44]MH_GetDate [08:59:44]Write to MH i2c: F0 00 00 8D 3E BA [08:59:44]Write i2c OK [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: F0 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: F0 09 00 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: F0 09 00 8D 3E 00 0D 69 B7 65 26 5D 9E 65 DB [08:59:44]GetLastDocTimeStamp 1706517240 [08:59:44]current date 1706518797 [08:59:44]FM_GetShiftState [08:59:44]SAM_PROTO_GetShiftState [08:59:44]wFMCommunicate request_size=4 [08:59:44]MH_SAM_APDU [08:59:44]CAPDU: 80 13 01 00 [08:59:44]Write to MH i2c: E2 08 00 8E 3E 80 13 01 00 00 00 00 00 49 [08:59:44]Write i2c OK [08:59:44]MH_I2C_Read... [08:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:44]Read from MH i2c: E2 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: E2 0E 00 [08:59:44]MH_I2C_Read... [08:59:44]Read from MH i2c: E2 0E 00 8E 3E 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 BB [08:59:44]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [08:59:44]wFMCommunicate OK [08:59:44]SAM_PROTO_GetShiftState done [08:59:44]FM_GetShiftState done [08:59:44]opened in 1706486624 [08:59:44]opened+sec_in_day 1706573024 [08:59:44]quantity*price = 40039 [08:59:44]sum+1 = 40040 [08:59:44]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 СÐО: Общий режим Чек 6 29.01.2024 08:59 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49023 ФПД: 99782003522939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T085957&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49023&fm=99782003522939&tin=02508201610067®Number=0000000000092723&sum=40000 [08:59:45]StoreToDocumentArchive [08:59:45]shift 245 fd 49023 [08:59:45]save to /storage/0245/doc_00049023 [08:59:45]save last doc name /storage/0245/doc_00049023 to /storage/kkm_last_doc_name [08:59:45]save OK [08:59:45]Clear old archive folders... [08:59:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:45]tlvbuf is 0121E600 [08:59:45]SAM_PROTO_ClearQueue [08:59:45]wFMCommunicate request_size=4 [08:59:45]MH_SAM_APDU [08:59:45]CAPDU: 80 09 00 00 [08:59:45]Write to MH i2c: E2 08 00 9B 3E 80 09 00 00 00 00 00 00 4B [08:59:45]Write i2c OK [08:59:45]MH_I2C_Read... [08:59:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:45]Read from MH i2c: E2 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: E2 03 00 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: E2 03 00 9B 3E 00 90 00 4D [08:59:45]RAPDU: 90 00 [08:59:45]wFMCommunicate OK [08:59:45]SAM_PROTO_ClearQueue done [08:59:45]KKMCreateOFDPacket [08:59:45]OFDProtocolAddRootSTLVToBuf [08:59:45]FM_MakeSignedData [08:59:45]FM_MakeSignedData [08:59:45]SAM_PROTO_SignData [08:59:45]wFMCommunicate request_size=4 [08:59:45]MH_SAM_APDU [08:59:45]CAPDU: 80 0D 01 02 [08:59:45]Write to MH i2c: E2 08 00 9C 3E 80 0D 01 02 00 00 00 00 53 [08:59:45]Write i2c OK [08:59:45]MH_I2C_Read... [08:59:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:45]Read from MH i2c: E2 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: E2 03 00 [08:59:45]MH_I2C_Read... [08:59:45]Read from MH i2c: E2 03 00 9C 3E 00 90 00 4E [08:59:45]RAPDU: 90 00 [08:59:45]wFMCommunicate OK [08:59:45]wFMCommunicate request_size=255 [08:59:45]MH_SAM_APDU [08:59: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 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 06 00 00 00 F4 03 04 00 0D 69 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5A [08:59:45]Write to MH i2c: E2 02 01 9D 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 06 00 00 00 F4 03 04 00 0D 69 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5A 00 00 F2 [08:59:46]Write i2c OK [08:59:46]MH_I2C_Read... [08:59:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:46]Read from MH i2c: E2 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 03 00 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 03 00 9D 3E 00 90 00 4F [08:59:46]RAPDU: 90 00 [08:59:46]wFMCommunicate OK [08:59:46]wFMCommunicate request_size=10 [08:59:46]MH_SAM_APDU [08:59:46]CAPDU: 80 0D 02 02 05 C0 4E DF FD 7B [08:59:46]Write to MH i2c: E2 0D 00 9E 3E 80 0D 02 02 05 00 C0 4E DF FD 7B 00 00 C5 [08:59:46]Write i2c OK [08:59:46]MH_I2C_Read... [08:59:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:46]Read from MH i2c: E2 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 03 00 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 03 00 9E 3E 00 90 00 50 [08:59:46]RAPDU: 90 00 [08:59:46]wFMCommunicate OK [08:59:46]wFMCommunicate request_size=4 [08:59:46]MH_SAM_APDU [08:59:46]CAPDU: 80 0D 03 02 [08:59:46]Write to MH i2c: E2 08 00 9F 3E 80 0D 03 02 00 00 00 00 58 [08:59:46]Write i2c OK [08:59:46]MH_I2C_Read... [08:59:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:46]Read from MH i2c: E2 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 0B 00 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 0B 00 9F 3E 00 4A DA CC D3 0B DB B8 36 90 00 F0 [08:59:46]RAPDU: 4A DA CC D3 0B DB B8 36 90 00 [08:59:46]wFMCommunicate OK [08:59:46]SAM_PROTO_SignData done [08:59:46]FM_MakeSignedData done [08:59:46]CreateOFDProtocolMessage [08:59:46]wFMCommunicate request_size=4 [08:59:46]MH_SAM_APDU [08:59:46]CAPDU: 80 11 00 00 [08:59:46]Write to MH i2c: E2 08 00 A0 3E 80 11 00 00 00 00 00 00 58 [08:59:46]Write i2c OK [08:59:46]MH_I2C_Read... [08:59:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:46]Read from MH i2c: E2 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 17 00 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: E2 17 00 A0 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A5 [08:59: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:59:46]wFMCommunicate OK [08:59:46]CreateOFDProtocolMessage done [08:59:46]OFDSenderStorePacket 49023 [08:59:46]StoreOFDPacket docnum=49023 [08:59:46]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 2F 6E 07 01 12 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 06 00 00 00 F4 03 04 00 0D 69 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5A C0 4E DF FD 7B 4A DA CC D3 0B DB B8 36 [08:59:46]CheckFolder [08:59:46]dirname=/storage/ofd_packets [08:59:46]CheckFolder done [08:59:46]ProducePacketName [08:59:46]name=ofd_packets/00049023 [08:59:46]NVStorageSaveData ofd_packets/00049023 [08:59:46]File name is /storage/ofd_packets/00049023 [08:59:46]Write 301 bytes [08:59:46]NVStorageSaveData done [08:59:46]OFDSenderStorePacket done [08:59:46]KKMCreateOFDPacket done [08:59:46]NVStorageSaveData kkm_last_timestamp [08:59:46]File name is /storage/kkm_last_timestamp [08:59:46]Write 4 bytes [08:59:46]NVStorageSaveData done [08:59:46]ExternCall_PrintAddStr [08:59:46]wPrintStart [08:59:46]Write to MH i2c: 01 00 00 A1 3E DF [08:59:46]Write i2c OK [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: 01 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: 01 07 00 [08:59:46]MH_I2C_Read... [08:59:46]Read from MH i2c: 01 07 00 A1 3E 00 00 00 00 00 FF 0F F4 [08:59:46]RasterBufferAndPrint [08:59:46]line Счет N : (1)216122 [08:59:46]line ИÐÐ: 02508201610067 [08:59:46]line Контрольно-КаÑÑовый Чек [08:59:46]line ПРОДÐЖР[08:59:46]line ТРК (МРК, ГÐК) : 22 [08:59:46]line Товар: 2710124130 [08:59:46]line Ðи-92-К-5 [08:59:46]line 6.640 * 60.30 [08:59:46]line = 400.39 [08:59:46]line ÐДС 12% ÐСП 1% [08:59:46]line > о реализуемом товаре [08:59:46]line ОКРУГЛЕÐИЕ: -0.39 [08:59:46]line ИТОГО: 400.00 [08:59:46]line ВнеÑено: 400.00 [08:59:46]line СДÐЧÐ: 0.00 [08:59:46]line ÐСП 1% : 3.54 [08:59:46]line ÐДС 12% : 42.52 [08:59:46]line Ðаличными: 400.00 [08:59:46]line Безнал.: 0.00 [08:59:46]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [08:59:46]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [08:59:46]line СÐО: Общий режим [08:59:46]line Чек 6 29.01.2024 08:59 [08:59:46]line Смена: 245 ФФД: 1.0 [08:59:46]line ЗÐМ: 0300000040 [08:59:46]line РÐМ: 0000000000092723 [08:59:46]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [08:59:46]line ФМ: 0000000000875060 [08:59:46]line ФД: 49023 [08:59:46]line ФПД: 99782003522939 [08:59:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T085957&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49023&fm=99782003522939&tin=02508201610067®Number=0000000000092723&sum=40000 [08:59:46]OFD Sender: Processing packet 49023 [packets to send 12, broken 11] [08:59:46]ProducePacketName [08:59:46]name=ofd_packets/00049023 [08:59:46]OFD Sender: To server: ‡•öpG, [08:59:46]CommunicateWithHost lk.salyk.kg:30040 [08:59:46]ConnectInit lk.salyk.kg [08:59:46]written 0, free lines is 4095 [08:59:46]Connected sock=10 [08:59:46]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 2F 6E 07 01 12 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 06 00 00 00 F4 03 04 00 0D 69 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5A C0 4E DF FD 7B 4A DA CC D3 0B DB B8 36 [08:59:47]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 35 8B 47 00 79 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 7F BF 00 00 F4 03 04 00 06 15 B7 65 B6 04 01 00 00 61 75 16 A9 39 DE C7 C4 [08:59:47]CommunicateWithHost err = 0 [08:59:47]CheckOFDResponse [08:59:47]1017 (14) - 77093643461234 [08:59:47]1041 (16) - 0000000000875060 [08:59:47]1040 (4) - 49023 [08:59:47]1012 (4) - 29.01.2024 03:01 [08:59:47]1206 (1) - 0 [08:59:47]OFD Sender: Remove packet 49023 [08:59:47]ProducePacketName [08:59:47]name=ofd_packets/00049023 [08:59:47]NVStorageDeleteData [08:59:47]Write to MH i2c: 01 00 00 CC 3E 0A [08:59:47]Write i2c OK [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: 01 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: 01 07 00 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: 01 07 00 CC 3E 00 00 00 00 00 05 0D 23 [08:59:47]RasterBufferAndPrint [08:59:47]line [08:59:47]line [08:59:47]line [08:59:47]line [08:59:47]line [08:59:47]written 0, free lines is 3340 [08:59:47]MH_Cut [08:59:47]Write to MH i2c: D1 01 00 D3 3E 01 E3 [08:59:47]Write i2c OK [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: D1 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: D1 01 00 [08:59:47]MH_I2C_Read... [08:59:47]Read from MH i2c: D1 01 00 D3 3E 00 E2 [08:59:47]Write to MH i2c: 01 00 00 D4 3E 12 [08:59:47]Write i2c OK [08:59:47]MH_I2C_Read... [08:59:47]OFD Sender: No OFD packet to send [08:59:47]*** Cut start [08:59:47]*** Partial cut [08:59:47]*** CUTSNS_PIN = 1 [08:59:47]*** CUTSNS_PIN = 0 [08:59:48]*** Brake cut motor [08:59:48]Read from MH i2c: 01 [08:59:48]MH_I2C_Read... [08:59:48]*** Stop cut motor [08:59:48]*** Cut end [08:59:48]Read from MH i2c: 01 07 00 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: 01 07 00 D4 3E 00 00 00 00 00 FF 0F 27 [08:59:48]process_action close_receipt done [08:59:48]requested_data is exist [08:59:48]produce_requested_data [08:59:48]requested_item fm.sn is exist - process it [08:59:48]wFMCommunicate request_size=4 [08:59:48]MH_SAM_APDU [08:59:48]CAPDU: 80 11 00 00 [08:59:48]Write to MH i2c: E2 08 00 D5 3E 80 11 00 00 00 00 00 00 8D [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:48]Read from MH i2c: E2 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 17 00 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 17 00 D5 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DA [08:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [08:59:48]wFMCommunicate OK [08:59:48]requested_item fd.num is exist - process it [08:59:48]SAM_PROTO_GetFieldsCounters [08:59:48]wFMCommunicate request_size=4 [08:59:48]MH_SAM_APDU [08:59:48]CAPDU: 80 13 00 00 [08:59:48]Write to MH i2c: E2 08 00 D6 3E 80 13 00 00 00 00 00 00 90 [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:48]Read from MH i2c: E2 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 62 00 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 62 00 D6 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 EE [08:59: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 BF 00 00 0E 04 04 00 F5 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:59:48]wFMCommunicate OK [08:59:48]SAM_PROTO_GetFieldsCounters done [08:59:48]requested_item shift.num is exist - process it [08:59:48]requested_item shift.opened is exist - process it [08:59:48]req_shift_opened [08:59:48]FM_GetShiftState [08:59:48]SAM_PROTO_GetShiftState [08:59:48]wFMCommunicate request_size=4 [08:59:48]MH_SAM_APDU [08:59:48]CAPDU: 80 13 01 00 [08:59:48]Write to MH i2c: E2 08 00 D7 3E 80 13 01 00 00 00 00 00 92 [08:59:48]Write i2c OK [08:59:48]MH_I2C_Read... [08:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:48]Read from MH i2c: E2 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 0E 00 [08:59:48]MH_I2C_Read... [08:59:48]Read from MH i2c: E2 0E 00 D7 3E 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 04 [08:59:48]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [08:59:48]wFMCommunicate OK [08:59:48]SAM_PROTO_GetShiftState done [08:59:48]FM_GetShiftState done [08:59:48]req_shift_opened done [08:59:48]requested_item shift.open_date is exist - process it [08:59:48]req_shift_open_date [08:59:48]req_shift_open_date done [08:59:48]produce_requested_data done [08:59:48]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49023,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [08:59:48]process_action_free close_receipt [08:59:48]json_value_free [08:59:48]json_value_free done [08:59:48]process_json_proto returns [08:59:48]Send response to host [08:59:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49023,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [08:59:48]free response buf [08:59:48]execute_script done [08:59:48]execute_script returns [08:59:48]free content buf [08:59:48]Sock 7.Close socket [08:59:48]Sock 7.Thread stoped [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]accept exits with 9 [09:08:52]New connection [09:08:52]New thread 3066813796 created [09:08:52]Thread 3066670436 joined [09:08:52]Waiting for new connection... [09:08:52] Sock 9.Parse request [09:08:52]Sock 9.Check first char [09:08:52]Sock 9.First char is OK [09:08:52]request: POST /json_proto HTTP/1.0 [09:08:52]Method: POST [09:08:52]URL: /json_proto [09:08:52]Method is POST - this is cgi request [09:08:52]url: /json_proto [09:08:52]query_string will be loaded in cgi processing [09:08:52]execute_cgi json_proto POST (null) [09:08:52]execute_cgi path=json_proto method=POST [09:08:52]POST find Content-Length [09:08:52]Host: 172.17.56.67:8080 [09:08:52]Content-Length: 671 [09:08:52]Content-Type: application/json [09:08:52] [09:08:52]POST finish read [09:08:52]Found Content-Length = 671 [09:08:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216123", "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" : 0.020, "sum" : 1.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:52]execute_script... [09:08: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)216123", "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" : 0.020, "sum" : 1.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:52]POST & json_proto [09:08:52]process_json_proto [09:08:52]json parsed OK: [09:08:52]protocol is kg_v1.0 [09:08:52]action value=close_receipt [09:08:52]process_action close_receipt [09:08:52]cmd_close_receipt [09:08:52]MH_GetDate [09:08:52]Write to MH i2c: F0 00 00 D8 3E 05 [09:08:52]Write i2c OK [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: F0 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: F0 09 00 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: F0 09 00 D8 3E 00 31 6B B7 65 26 5D 9E 65 4C [09:08:52]GetLastDocTimeStamp 1706518797 [09:08:52]current date 1706519345 [09:08:52]FM_GetShiftState [09:08:52]SAM_PROTO_GetShiftState [09:08:52]wFMCommunicate request_size=4 [09:08:52]MH_SAM_APDU [09:08:52]CAPDU: 80 13 01 00 [09:08:52]Write to MH i2c: E2 08 00 D9 3E 80 13 01 00 00 00 00 00 94 [09:08:52]Write i2c OK [09:08:52]MH_I2C_Read... [09:08:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:52]Read from MH i2c: E2 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: E2 0E 00 [09:08:52]MH_I2C_Read... [09:08:52]Read from MH i2c: E2 0E 00 D9 3E 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 06 [09:08:52]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:08:52]wFMCommunicate OK [09:08:52]SAM_PROTO_GetShiftState done [09:08:52]FM_GetShiftState done [09:08:52]opened in 1706486624 [09:08:52]opened+sec_in_day 1706573024 [09:08:52]quantity*price = 120 [09:08:52]sum+1 = 122 [09:08:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.21 ИТОГО: 1.00 ВнеÑено: 200.00 СДÐЧÐ: 199.00 ÐСП 1% : 0.01 ÐДС 12% : 0.13 Ðаличными: 1.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 7 29.01.2024 09:09 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49024 ФПД: 275307306109954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T090905&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49024&fm=275307306109954&tin=02508201610067®Number=0000000000092723&sum=100 [09:08:53]StoreToDocumentArchive [09:08:53]shift 245 fd 49024 [09:08:53]save to /storage/0245/doc_00049024 [09:08:53]save last doc name /storage/0245/doc_00049024 to /storage/kkm_last_doc_name [09:08:53]save OK [09:08:53]Clear old archive folders... [09:08:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:53]tlvbuf is 012444F0 [09:08:53]SAM_PROTO_ClearQueue [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 09 00 00 [09:08:53]Write to MH i2c: E2 08 00 E6 3E 80 09 00 00 00 00 00 00 96 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 E6 3E 00 90 00 98 [09:08:53]RAPDU: 90 00 [09:08:53]wFMCommunicate OK [09:08:53]SAM_PROTO_ClearQueue done [09:08:53]KKMCreateOFDPacket [09:08:53]OFDProtocolAddRootSTLVToBuf [09:08:53]FM_MakeSignedData [09:08:53]FM_MakeSignedData [09:08:53]SAM_PROTO_SignData [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 0D 01 02 [09:08:53]Write to MH i2c: E2 08 00 E7 3E 80 0D 01 02 00 00 00 00 9E [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 E7 3E 00 90 00 99 [09:08:53]RAPDU: 90 00 [09:08:53]wFMCommunicate OK [09:08:53]wFMCommunicate request_size=255 [09:08:53]MH_SAM_APDU [09:08: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 14 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 79 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 31 6B B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 FA [09:08:53]Write to MH i2c: E2 02 01 E8 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 79 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 31 6B B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 FA 00 00 95 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 E8 3E 00 90 00 9A [09:08:53]RAPDU: 90 00 [09:08:53]wFMCommunicate OK [09:08:53]wFMCommunicate request_size=10 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 0D 02 02 05 63 FA 2F 4C 02 [09:08:53]Write to MH i2c: E2 0D 00 E9 3E 80 0D 02 02 05 00 63 FA 2F 4C 02 00 00 85 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 03 00 E9 3E 00 90 00 9B [09:08:53]RAPDU: 90 00 [09:08:53]wFMCommunicate OK [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 0D 03 02 [09:08:53]Write to MH i2c: E2 08 00 EA 3E 80 0D 03 02 00 00 00 00 A3 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 0B 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 0B 00 EA 3E 00 1C 20 29 97 16 8C 0C E5 90 00 33 [09:08:53]RAPDU: 1C 20 29 97 16 8C 0C E5 90 00 [09:08:53]wFMCommunicate OK [09:08:53]SAM_PROTO_SignData done [09:08:53]FM_MakeSignedData done [09:08:53]CreateOFDProtocolMessage [09:08:53]wFMCommunicate request_size=4 [09:08:53]MH_SAM_APDU [09:08:53]CAPDU: 80 11 00 00 [09:08:53]Write to MH i2c: E2 08 00 EB 3E 80 11 00 00 00 00 00 00 A3 [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:53]Read from MH i2c: E2 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 17 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: E2 17 00 EB 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F0 [09:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:08:53]wFMCommunicate OK [09:08:53]CreateOFDProtocolMessage done [09:08:53]OFDSenderStorePacket 49024 [09:08:53]StoreOFDPacket docnum=49024 [09:08: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 49 A7 07 01 80 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 79 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 31 6B B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 FA 63 FA 2F 4C 02 1C 20 29 97 16 8C 0C E5 [09:08:53]CheckFolder [09:08:53]dirname=/storage/ofd_packets [09:08:53]CheckFolder done [09:08:53]ProducePacketName [09:08:53]name=ofd_packets/00049024 [09:08:53]NVStorageSaveData ofd_packets/00049024 [09:08:53]File name is /storage/ofd_packets/00049024 [09:08:53]Write 301 bytes [09:08:53]NVStorageSaveData done [09:08:53]OFDSenderStorePacket done [09:08:53]KKMCreateOFDPacket done [09:08:53]NVStorageSaveData kkm_last_timestamp [09:08:53]File name is /storage/kkm_last_timestamp [09:08:53]Write 4 bytes [09:08:53]NVStorageSaveData done [09:08:53]ExternCall_PrintAddStr [09:08:53]wPrintStart [09:08:53]Write to MH i2c: 01 00 00 EC 3E 2A [09:08:53]Write i2c OK [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 07 00 [09:08:53]MH_I2C_Read... [09:08:53]Read from MH i2c: 01 07 00 EC 3E 00 00 00 00 00 FF 0F 3F [09:08:53]RasterBufferAndPrint [09:08:53]line Счет N : (1)216123 [09:08:53]line ИÐÐ: 02508201610067 [09:08:53]line Контрольно-КаÑÑовый Чек [09:08:53]line ПРОДÐЖР[09:08:53]line ТРК (МРК, ГÐК) : 12 [09:08:53]line Товар: 2710124130 [09:08:53]line Ðи-92-К-5 [09:08:53]line 0.020 * 60.30 [09:08:53]line = 1.21 [09:08:53]line ÐДС 12% ÐСП 1% [09:08:53]line > о реализуемом товаре [09:08:53]line ОКРУГЛЕÐИЕ: -0.21 [09:08:53]line ИТОГО: 1.00 [09:08:53]line ВнеÑено: 200.00 [09:08:53]line СДÐЧÐ: 199.00 [09:08:53]line ÐСП 1% : 0.01 [09:08:53]line ÐДС 12% : 0.13 [09:08:53]line Ðаличными: 1.00 [09:08:53]line Безнал.: 0.00 [09:08:53]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:08:53]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:08:53]line СÐО: Общий режим [09:08:53]line Чек 7 29.01.2024 09:09 [09:08:53]line Смена: 245 ФФД: 1.0 [09:08:53]line ЗÐМ: 0300000040 [09:08:53]line РÐМ: 0000000000092723 [09:08:53]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:08:53]line ФМ: 0000000000875060 [09:08:53]line ФД: 49024 [09:08:53]line ФПД: 275307306109954 [09:08:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T090905&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49024&fm=275307306109954&tin=02508201610067®Number=0000000000092723&sum=100 [09:08:54]OFD Sender: Processing packet 49024 [packets to send 12, broken 11] [09:08:54]ProducePacketName [09:08:54]name=ofd_packets/00049024 [09:08:54]OFD Sender: To server: ‡•öpG, [09:08:54]CommunicateWithHost lk.salyk.kg:30040 [09:08:54]ConnectInit lk.salyk.kg [09:08:54]written 0, free lines is 4095 [09:08:54]Connected sock=10 [09:08: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 49 A7 07 01 80 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 79 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 31 6B B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 FA 63 FA 2F 4C 02 1C 20 29 97 16 8C 0C E5 [09:08: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 06 BE 47 00 D0 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 80 BF 00 00 F4 03 04 00 29 17 B7 65 B6 04 01 00 00 05 A0 4E 31 70 A3 24 18 [09:08:54]CommunicateWithHost err = 0 [09:08:54]CheckOFDResponse [09:08:54]1017 (14) - 77093643461234 [09:08:54]1041 (16) - 0000000000875060 [09:08:54]1040 (4) - 49024 [09:08:54]1012 (4) - 29.01.2024 03:10 [09:08:54]1206 (1) - 0 [09:08:54]OFD Sender: Remove packet 49024 [09:08:54]ProducePacketName [09:08:54]name=ofd_packets/00049024 [09:08:54]NVStorageDeleteData [09:08:54]Write to MH i2c: 01 00 00 17 3F 56 [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: 01 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: 01 07 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: 01 07 00 17 3F 00 00 00 00 00 F0 0C 59 [09:08:54]RasterBufferAndPrint [09:08:54]line [09:08:54]line [09:08:54]line [09:08:54]line [09:08:54]line [09:08:54]written 0, free lines is 3318 [09:08:54]MH_Cut [09:08:54]Write to MH i2c: D1 01 00 1E 3F 01 2F [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: D1 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: D1 01 00 [09:08:54]MH_I2C_Read... [09:08:54]Read from MH i2c: D1 01 00 1E 3F 00 2E [09:08:54]Write to MH i2c: 01 00 00 1F 3F 5E [09:08:54]Write i2c OK [09:08:54]MH_I2C_Read... [09:08:54]OFD Sender: No OFD packet to send [09:08:55]*** Cut start [09:08:55]*** Partial cut [09:08:55]*** CUTSNS_PIN = 1 [09:08:55]*** CUTSNS_PIN = 0 [09:08:55]*** Brake cut motor [09:08:55]Read from MH i2c: 01 [09:08:55]MH_I2C_Read... [09:08:55]*** Stop cut motor [09:08:55]*** Cut end [09:08:55]Read from MH i2c: 01 07 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: 01 07 00 1F 3F 00 00 00 00 00 FF 0F 73 [09:08:55]process_action close_receipt done [09:08:55]requested_data is exist [09:08:55]produce_requested_data [09:08:55]requested_item fm.sn is exist - process it [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 11 00 00 [09:08:55]Write to MH i2c: E2 08 00 20 3F 80 11 00 00 00 00 00 00 D9 [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:55]Read from MH i2c: E2 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 17 00 [09:08:55]MH_I2C_Read... [09:08:55]Read from MH i2c: E2 17 00 20 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 26 [09:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:08:55]wFMCommunicate OK [09:08:55]requested_item fd.num is exist - process it [09:08:55]SAM_PROTO_GetFieldsCounters [09:08:55]wFMCommunicate request_size=4 [09:08:55]MH_SAM_APDU [09:08:55]CAPDU: 80 13 00 00 [09:08:55]Write to MH i2c: E2 08 00 21 3F 80 13 00 00 00 00 00 00 DC [09:08:55]Write i2c OK [09:08:55]MH_I2C_Read... [09:08:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:56]Read from MH i2c: E2 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: E2 62 00 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: E2 62 00 21 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 3E [09:08: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 80 BF 00 00 0E 04 04 00 F5 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 [09:08:56]wFMCommunicate OK [09:08:56]SAM_PROTO_GetFieldsCounters done [09:08:56]requested_item shift.num is exist - process it [09:08:56]requested_item shift.opened is exist - process it [09:08:56]req_shift_opened [09:08:56]FM_GetShiftState [09:08:56]SAM_PROTO_GetShiftState [09:08:56]wFMCommunicate request_size=4 [09:08:56]MH_SAM_APDU [09:08:56]CAPDU: 80 13 01 00 [09:08:56]Write to MH i2c: E2 08 00 22 3F 80 13 01 00 00 00 00 00 DE [09:08:56]Write i2c OK [09:08:56]MH_I2C_Read... [09:08:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:56]Read from MH i2c: E2 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: E2 0E 00 [09:08:56]MH_I2C_Read... [09:08:56]Read from MH i2c: E2 0E 00 22 3F 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 50 [09:08:56]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:08:56]wFMCommunicate OK [09:08:56]SAM_PROTO_GetShiftState done [09:08:56]FM_GetShiftState done [09:08:56]req_shift_opened done [09:08:56]requested_item shift.open_date is exist - process it [09:08:56]req_shift_open_date [09:08:56]req_shift_open_date done [09:08:56]produce_requested_data done [09:08:56]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49024,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:08:56]process_action_free close_receipt [09:08:56]json_value_free [09:08:56]json_value_free done [09:08:56]process_json_proto returns [09:08:56]Send response to host [09:08:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49024,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:08:56]free response buf [09:08:56]execute_script done [09:08:56]execute_script returns [09:08:56]free content buf [09:08:56]Sock 9.Close socket [09:08:56]Sock 9.Thread stoped [09:08:59]OFD Sender: No OFD packet to send [09:09:04]OFD Sender: No OFD packet to send [09:09:09]OFD Sender: No OFD packet to send [09:09:14]OFD Sender: No OFD packet to send [09:09:19]OFD Sender: No OFD packet to send [09:09:24]OFD Sender: No OFD packet to send [09:09:29]OFD Sender: No OFD packet to send [09:09:34]OFD Sender: No OFD packet to send [09:09:39]accept exits with 7 [09:09:39]New connection [09:09:39]New thread 3066670436 created [09:09:39]Thread 3066813796 joined [09:09:39]Waiting for new connection... [09:09:39] Sock 7.Parse request [09:09:39]Sock 7.Check first char [09:09:39]Sock 7.First char is OK [09:09:39]request: POST /json_proto HTTP/1.0 [09:09:39]Method: POST [09:09:39]URL: /json_proto [09:09:39]Method is POST - this is cgi request [09:09:39]url: /json_proto [09:09:39]query_string will be loaded in cgi processing [09:09:39]execute_cgi json_proto POST (null) [09:09:39]execute_cgi path=json_proto method=POST [09:09:39]POST find Content-Length [09:09:39]Host: 172.17.56.67:8080 [09:09:39]Content-Length: 677 [09:09:39]Content-Type: application/json [09:09:39] [09:09:39]POST finish read [09:09:39]Found Content-Length = 677 [09:09:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216124", "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.310, "sum" : 199.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 199.00, "total" : 199.00, "payments": [ { "type": 0, "sum" : 199.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:39]execute_script... [09:09: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)216124", "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.310, "sum" : 199.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 199.00, "total" : 199.00, "payments": [ { "type": 0, "sum" : 199.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:09:39]POST & json_proto [09:09:39]process_json_proto [09:09:39]json parsed OK: [09:09:39]protocol is kg_v1.0 [09:09:39]action value=close_receipt [09:09:39]process_action close_receipt [09:09:39]cmd_close_receipt [09:09:39]MH_GetDate [09:09:39]Write to MH i2c: F0 00 00 23 3F 51 [09:09:39]Write i2c OK [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: F0 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: F0 09 00 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: F0 09 00 23 3F 00 60 6B B7 65 26 5D 9E 65 C7 [09:09:39]GetLastDocTimeStamp 1706519345 [09:09:39]current date 1706519392 [09:09:39]FM_GetShiftState [09:09:39]SAM_PROTO_GetShiftState [09:09:39]wFMCommunicate request_size=4 [09:09:39]MH_SAM_APDU [09:09:39]CAPDU: 80 13 01 00 [09:09:39]Write to MH i2c: E2 08 00 24 3F 80 13 01 00 00 00 00 00 E0 [09:09:39]Write i2c OK [09:09:39]MH_I2C_Read... [09:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:39]Read from MH i2c: E2 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 0E 00 [09:09:39]MH_I2C_Read... [09:09:39]Read from MH i2c: E2 0E 00 24 3F 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 52 [09:09:39]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:09:39]wFMCommunicate OK [09:09:39]SAM_PROTO_GetShiftState done [09:09:39]FM_GetShiftState done [09:09:39]opened in 1706486624 [09:09:39]opened+sec_in_day 1706573024 [09:09:39]quantity*price = 19959 [09:09:39]sum+1 = 19960 [09:09:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.59 ИТОГО: 199.00 ВнеÑено: 199.00 СДÐЧÐ: 0.00 ÐСП 1% : 1.77 ÐДС 12% : 21.19 Ðаличными: 199.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 8 29.01.2024 09:09 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49025 ФПД: 69137879116635 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T090952&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49025&fm=69137879116635&tin=02508201610067®Number=0000000000092723&sum=19900 [09:09:40]StoreToDocumentArchive [09:09:40]shift 245 fd 49025 [09:09:40]save to /storage/0245/doc_00049025 [09:09:40]save last doc name /storage/0245/doc_00049025 to /storage/kkm_last_doc_name [09:09:40]save OK [09:09:40]Clear old archive folders... [09:09:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:40]tlvbuf is 011EA1E0 [09:09:40]SAM_PROTO_ClearQueue [09:09:40]wFMCommunicate request_size=4 [09:09:40]MH_SAM_APDU [09:09:40]CAPDU: 80 09 00 00 [09:09:40]Write to MH i2c: E2 08 00 31 3F 80 09 00 00 00 00 00 00 E2 [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:40]Read from MH i2c: E2 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 03 00 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 03 00 31 3F 00 90 00 E4 [09:09:40]RAPDU: 90 00 [09:09:40]wFMCommunicate OK [09:09:40]SAM_PROTO_ClearQueue done [09:09:40]KKMCreateOFDPacket [09:09:40]OFDProtocolAddRootSTLVToBuf [09:09:40]FM_MakeSignedData [09:09:40]FM_MakeSignedData [09:09:40]SAM_PROTO_SignData [09:09:40]wFMCommunicate request_size=4 [09:09:40]MH_SAM_APDU [09:09:40]CAPDU: 80 0D 01 02 [09:09:40]Write to MH i2c: E2 08 00 32 3F 80 0D 01 02 00 00 00 00 EA [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:40]Read from MH i2c: E2 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 03 00 [09:09:40]MH_I2C_Read... [09:09:40]Read from MH i2c: E2 03 00 32 3F 00 90 00 E5 [09:09:40]RAPDU: 90 00 [09:09:40]wFMCommunicate OK [09:09:40]wFMCommunicate request_size=255 [09:09:40]MH_SAM_APDU [09:09: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 EE 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F7 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 60 6B B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 3E [09:09:40]Write to MH i2c: E2 02 01 33 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F7 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 60 6B B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 3E 00 00 43 [09:09:40]Write i2c OK [09:09:40]MH_I2C_Read... [09:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:41]Read from MH i2c: E2 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 03 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 03 00 33 3F 00 90 00 E6 [09:09:41]RAPDU: 90 00 [09:09:41]wFMCommunicate OK [09:09:41]wFMCommunicate request_size=10 [09:09:41]MH_SAM_APDU [09:09:41]CAPDU: 80 0D 02 02 05 E1 6A B9 AB 5B [09:09:41]Write to MH i2c: E2 0D 00 34 3F 80 0D 02 02 05 00 E1 6A B9 AB 5B 00 00 01 [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:41]Read from MH i2c: E2 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 03 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 03 00 34 3F 00 90 00 E7 [09:09:41]RAPDU: 90 00 [09:09:41]wFMCommunicate OK [09:09:41]wFMCommunicate request_size=4 [09:09:41]MH_SAM_APDU [09:09:41]CAPDU: 80 0D 03 02 [09:09:41]Write to MH i2c: E2 08 00 35 3F 80 0D 03 02 00 00 00 00 EF [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:41]Read from MH i2c: E2 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 0B 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 0B 00 35 3F 00 E4 FA 7A C2 61 89 20 D4 90 00 E8 [09:09:41]RAPDU: E4 FA 7A C2 61 89 20 D4 90 00 [09:09:41]wFMCommunicate OK [09:09:41]SAM_PROTO_SignData done [09:09:41]FM_MakeSignedData done [09:09:41]CreateOFDProtocolMessage [09:09:41]wFMCommunicate request_size=4 [09:09:41]MH_SAM_APDU [09:09:41]CAPDU: 80 11 00 00 [09:09:41]Write to MH i2c: E2 08 00 36 3F 80 11 00 00 00 00 00 00 EF [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:41]Read from MH i2c: E2 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 17 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: E2 17 00 36 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3C [09:09:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:09:41]wFMCommunicate OK [09:09:41]CreateOFDProtocolMessage done [09:09:41]OFDSenderStorePacket 49025 [09:09:41]StoreOFDPacket docnum=49025 [09:09:41]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 39 07 01 C9 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F7 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 60 6B B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 3E E1 6A B9 AB 5B E4 FA 7A C2 61 89 20 D4 [09:09:41]CheckFolder [09:09:41]dirname=/storage/ofd_packets [09:09:41]CheckFolder done [09:09:41]ProducePacketName [09:09:41]name=ofd_packets/00049025 [09:09:41]NVStorageSaveData ofd_packets/00049025 [09:09:41]File name is /storage/ofd_packets/00049025 [09:09:41]Write 301 bytes [09:09:41]NVStorageSaveData done [09:09:41]OFDSenderStorePacket done [09:09:41]KKMCreateOFDPacket done [09:09:41]NVStorageSaveData kkm_last_timestamp [09:09:41]File name is /storage/kkm_last_timestamp [09:09:41]Write 4 bytes [09:09:41]NVStorageSaveData done [09:09:41]ExternCall_PrintAddStr [09:09:41]wPrintStart [09:09:41]Write to MH i2c: 01 00 00 37 3F 76 [09:09:41]Write i2c OK [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 07 00 [09:09:41]MH_I2C_Read... [09:09:41]Read from MH i2c: 01 07 00 37 3F 00 00 00 00 00 FF 0F 8B [09:09:41]RasterBufferAndPrint [09:09:41]line Счет N : (1)216124 [09:09:41]line ИÐÐ: 02508201610067 [09:09:41]line Контрольно-КаÑÑовый Чек [09:09:41]line ПРОДÐЖР[09:09:41]line ТРК (МРК, ГÐК) : 12 [09:09:41]line Товар: 2710124130 [09:09:41]line Ðи-92-К-5 [09:09:41]line 3.310 * 60.30 [09:09:41]line = 199.59 [09:09:41]line ÐДС 12% ÐСП 1% [09:09:41]line > о реализуемом товаре [09:09:41]line ОКРУГЛЕÐИЕ: -0.59 [09:09:41]line ИТОГО: 199.00 [09:09:41]line ВнеÑено: 199.00 [09:09:41]line СДÐЧÐ: 0.00 [09:09:41]line ÐСП 1% : 1.77 [09:09:41]line ÐДС 12% : 21.19 [09:09:41]line Ðаличными: 199.00 [09:09:41]line Безнал.: 0.00 [09:09:41]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:09:41]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:09:41]line СÐО: Общий режим [09:09:41]line Чек 8 29.01.2024 09:09 [09:09:41]line Смена: 245 ФФД: 1.0 [09:09:41]line ЗÐМ: 0300000040 [09:09:41]line РÐМ: 0000000000092723 [09:09:41]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:09:41]line ФМ: 0000000000875060 [09:09:41]line ФД: 49025 [09:09:41]line ФПД: 69137879116635 [09:09:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T090952&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49025&fm=69137879116635&tin=02508201610067®Number=0000000000092723&sum=19900 [09:09:41]OFD Sender: Processing packet 49025 [packets to send 12, broken 11] [09:09:41]ProducePacketName [09:09:41]name=ofd_packets/00049025 [09:09:41]OFD Sender: To server: ‡•öpG, [09:09:41]CommunicateWithHost lk.salyk.kg:30040 [09:09:41]ConnectInit lk.salyk.kg [09:09:41]written 0, free lines is 4095 [09:09:41]Connected sock=11 [09:09: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 6F 39 07 01 C9 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 0C 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 F7 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 60 6B B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 3E E1 6A B9 AB 5B E4 FA 7A C2 61 89 20 D4 [09:09: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 EF 89 47 00 8B C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 81 BF 00 00 F4 03 04 00 59 17 B7 65 B6 04 01 00 00 4D AF C2 14 8A 60 0C 95 [09:09:41]CommunicateWithHost err = 0 [09:09:41]CheckOFDResponse [09:09:41]1017 (14) - 77093643461234 [09:09:41]1041 (16) - 0000000000875060 [09:09:41]1040 (4) - 49025 [09:09:41]1012 (4) - 29.01.2024 03:11 [09:09:41]1206 (1) - 0 [09:09:41]OFD Sender: Remove packet 49025 [09:09:41]ProducePacketName [09:09:41]name=ofd_packets/00049025 [09:09:41]NVStorageDeleteData [09:09:42]Write to MH i2c: 01 00 00 62 3F A1 [09:09:42]Write i2c OK [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: 01 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: 01 07 00 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: 01 07 00 62 3F 00 00 00 00 00 F9 0C AD [09:09:42]RasterBufferAndPrint [09:09:42]line [09:09:42]line [09:09:42]line [09:09:42]line [09:09:42]line [09:09:42]written 0, free lines is 3328 [09:09:42]MH_Cut [09:09:42]Write to MH i2c: D1 01 00 69 3F 01 7A [09:09:42]Write i2c OK [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: D1 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: D1 01 00 [09:09:42]MH_I2C_Read... [09:09:42]Read from MH i2c: D1 01 00 69 3F 00 79 [09:09:42]Write to MH i2c: 01 00 00 6A 3F A9 [09:09:42]Write i2c OK [09:09:42]MH_I2C_Read... [09:09:42]OFD Sender: No OFD packet to send [09:09:42]*** Cut start [09:09:42]*** Partial cut [09:09:42]*** CUTSNS_PIN = 1 [09:09:42]*** CUTSNS_PIN = 0 [09:09:42]*** Brake cut motor [09:09:43]Read from MH i2c: 01 [09:09:43]MH_I2C_Read... [09:09:43]*** Stop cut motor [09:09:43]*** Cut end [09:09:43]Read from MH i2c: 01 07 00 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: 01 07 00 6A 3F 00 00 00 00 00 FF 0F BE [09:09:43]process_action close_receipt done [09:09:43]requested_data is exist [09:09:43]produce_requested_data [09:09:43]requested_item fm.sn is exist - process it [09:09:43]wFMCommunicate request_size=4 [09:09:43]MH_SAM_APDU [09:09:43]CAPDU: 80 11 00 00 [09:09:43]Write to MH i2c: E2 08 00 6B 3F 80 11 00 00 00 00 00 00 24 [09:09:43]Write i2c OK [09:09:43]MH_I2C_Read... [09:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:43]Read from MH i2c: E2 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 17 00 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 17 00 6B 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 71 [09: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 [09:09:43]wFMCommunicate OK [09:09:43]requested_item fd.num is exist - process it [09:09:43]SAM_PROTO_GetFieldsCounters [09:09:43]wFMCommunicate request_size=4 [09:09:43]MH_SAM_APDU [09:09:43]CAPDU: 80 13 00 00 [09:09:43]Write to MH i2c: E2 08 00 6C 3F 80 13 00 00 00 00 00 00 27 [09:09:43]Write i2c OK [09:09:43]MH_I2C_Read... [09:09:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:43]Read from MH i2c: E2 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 62 00 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 62 00 6C 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 8D [09:09: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 81 BF 00 00 0E 04 04 00 F5 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 [09:09:43]wFMCommunicate OK [09:09:43]SAM_PROTO_GetFieldsCounters done [09:09:43]requested_item shift.num is exist - process it [09:09:43]requested_item shift.opened is exist - process it [09:09:43]req_shift_opened [09:09:43]FM_GetShiftState [09:09:43]SAM_PROTO_GetShiftState [09:09:43]wFMCommunicate request_size=4 [09:09:43]MH_SAM_APDU [09:09:43]CAPDU: 80 13 01 00 [09:09:43]Write to MH i2c: E2 08 00 6D 3F 80 13 01 00 00 00 00 00 29 [09:09:43]Write i2c OK [09:09:43]MH_I2C_Read... [09:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:43]Read from MH i2c: E2 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 0E 00 [09:09:43]MH_I2C_Read... [09:09:43]Read from MH i2c: E2 0E 00 6D 3F 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 9B [09:09:43]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:09:43]wFMCommunicate OK [09:09:43]SAM_PROTO_GetShiftState done [09:09:43]FM_GetShiftState done [09:09:43]req_shift_opened done [09:09:43]requested_item shift.open_date is exist - process it [09:09:43]req_shift_open_date [09:09:43]req_shift_open_date done [09:09:43]produce_requested_data done [09:09:43]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49025,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:09:43]process_action_free close_receipt [09:09:43]json_value_free [09:09:43]json_value_free done [09:09:43]process_json_proto returns [09:09:43]Send response to host [09:09:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49025,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:09:43]free response buf [09:09:43]execute_script done [09:09:43]execute_script returns [09:09:43]free content buf [09:09:43]Sock 7.Close socket [09:09:43]Sock 7.Thread stoped [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:50]accept exits with 9 [09:12:50]New connection [09:12:50]New thread 3066813796 created [09:12:50]Thread 3066670436 joined [09:12:50]Waiting for new connection... [09:12:50] Sock 9.Parse request [09:12:50]Sock 9.Check first char [09:12:50]Sock 9.First char is OK [09:12:50]request: POST /json_proto HTTP/1.0 [09:12:50]Method: POST [09:12:50]URL: /json_proto [09:12:50]Method is POST - this is cgi request [09:12:50]url: /json_proto [09:12:50]query_string will be loaded in cgi processing [09:12:50]execute_cgi json_proto POST (null) [09:12:50]execute_cgi path=json_proto method=POST [09:12:50]POST find Content-Length [09:12:50]Host: 172.17.56.67:8080 [09:12:50]Content-Length: 682 [09:12:50]Content-Type: application/json [09:12:50] [09:12:50]POST finish read [09:12:50]Found Content-Length = 682 [09:12:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216125", "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" ] } } [09:12:50]execute_script... [09:12: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)216125", "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" ] } } [09:12:50]POST & json_proto [09:12:50]process_json_proto [09:12:50]json parsed OK: [09:12:50]protocol is kg_v1.0 [09:12:50]action value=close_receipt [09:12:50]process_action close_receipt [09:12:50]cmd_close_receipt [09:12:50]MH_GetDate [09:12:50]Write to MH i2c: F0 00 00 6E 3F 9C [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: F0 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: F0 09 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: F0 09 00 6E 3F 00 1E 6C B7 65 26 5D 9E 65 D1 [09:12:50]GetLastDocTimeStamp 1706519392 [09:12:50]current date 1706519582 [09:12:50]FM_GetShiftState [09:12:50]SAM_PROTO_GetShiftState [09:12:50]wFMCommunicate request_size=4 [09:12:50]MH_SAM_APDU [09:12:50]CAPDU: 80 13 01 00 [09:12:50]Write to MH i2c: E2 08 00 6F 3F 80 13 01 00 00 00 00 00 2B [09:12:50]Write i2c OK [09:12:50]MH_I2C_Read... [09:12:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:50]Read from MH i2c: E2 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 0E 00 [09:12:50]MH_I2C_Read... [09:12:50]Read from MH i2c: E2 0E 00 6F 3F 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 9D [09:12:50]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:12:50]wFMCommunicate OK [09:12:50]SAM_PROTO_GetShiftState done [09:12:50]FM_GetShiftState done [09:12:50]opened in 1706486624 [09:12:50]opened+sec_in_day 1706573024 [09:12:50]quantity*price = 100037 [09:12:50]sum+1 = 100039 [09:12:50]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 29.01.2024 09:13 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49026 ФПД: 26294532104238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T091302&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49026&fm=26294532104238&tin=02508201610067®Number=0000000000092723&sum=100000 [09:12:51]StoreToDocumentArchive [09:12:51]shift 245 fd 49026 [09:12:51]save to /storage/0245/doc_00049026 [09:12:51]save last doc name /storage/0245/doc_00049026 to /storage/kkm_last_doc_name [09:12:51]save OK [09:12:51]Clear old archive folders... [09:12:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:12:51]tlvbuf is 011E5F60 [09:12:51]SAM_PROTO_ClearQueue [09:12:51]wFMCommunicate request_size=4 [09:12:51]MH_SAM_APDU [09:12:51]CAPDU: 80 09 00 00 [09:12:51]Write to MH i2c: E2 08 00 7C 3F 80 09 00 00 00 00 00 00 2D [09:12:51]Write i2c OK [09:12:51]MH_I2C_Read... [09:12:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:51]Read from MH i2c: E2 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: E2 03 00 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: E2 03 00 7C 3F 00 90 00 2F [09:12:51]RAPDU: 90 00 [09:12:51]wFMCommunicate OK [09:12:51]SAM_PROTO_ClearQueue done [09:12:51]KKMCreateOFDPacket [09:12:51]OFDProtocolAddRootSTLVToBuf [09:12:51]FM_MakeSignedData [09:12:51]FM_MakeSignedData [09:12:51]SAM_PROTO_SignData [09:12:51]wFMCommunicate request_size=4 [09:12:51]MH_SAM_APDU [09:12:51]CAPDU: 80 0D 01 02 [09:12:51]Write to MH i2c: E2 08 00 7D 3F 80 0D 01 02 00 00 00 00 35 [09:12:51]Write i2c OK [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: E2 [09:12:51]MH_I2C_Read... [09:12:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:51]Read from MH i2c: E2 03 00 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: E2 03 00 7D 3F 00 90 00 30 [09:12:51]RAPDU: 90 00 [09:12:51]wFMCommunicate OK [09:12:51]wFMCommunicate request_size=255 [09:12:51]MH_SAM_APDU [09:12:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1E 6C B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 17 [09:12:51]Write to MH i2c: E2 02 01 7E 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1E 6C B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 17 00 00 A1 [09:12:51]Write i2c OK [09:12:51]MH_I2C_Read... [09:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:51]Read from MH i2c: E2 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: E2 03 00 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: E2 03 00 7E 3F 00 90 00 31 [09:12:51]RAPDU: 90 00 [09:12:51]wFMCommunicate OK [09:12:51]wFMCommunicate request_size=10 [09:12:51]MH_SAM_APDU [09:12:51]CAPDU: 80 0D 02 02 05 EA 2C 3E E0 2E [09:12:51]Write to MH i2c: E2 0D 00 7F 3F 80 0D 02 02 05 00 EA 2C 3E E0 2E 00 00 A4 [09:12:51]Write i2c OK [09:12:51]MH_I2C_Read... [09:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:51]Read from MH i2c: E2 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: E2 03 00 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: E2 03 00 7F 3F 00 90 00 32 [09:12:51]RAPDU: 90 00 [09:12:51]wFMCommunicate OK [09:12:51]wFMCommunicate request_size=4 [09:12:51]MH_SAM_APDU [09:12:51]CAPDU: 80 0D 03 02 [09:12:51]Write to MH i2c: E2 08 00 80 3F 80 0D 03 02 00 00 00 00 3A [09:12:51]Write i2c OK [09:12:51]MH_I2C_Read... [09:12:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:51]Read from MH i2c: E2 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: E2 0B 00 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: E2 0B 00 80 3F 00 53 51 40 E3 D2 FF D6 CC 90 00 75 [09:12:51]RAPDU: 53 51 40 E3 D2 FF D6 CC 90 00 [09:12:51]wFMCommunicate OK [09:12:51]SAM_PROTO_SignData done [09:12:51]FM_MakeSignedData done [09:12:51]CreateOFDProtocolMessage [09:12:51]wFMCommunicate request_size=4 [09:12:51]MH_SAM_APDU [09:12:51]CAPDU: 80 11 00 00 [09:12:51]Write to MH i2c: E2 08 00 81 3F 80 11 00 00 00 00 00 00 3A [09:12:51]Write i2c OK [09:12:51]MH_I2C_Read... [09:12:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:51]Read from MH i2c: E2 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: E2 17 00 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: E2 17 00 81 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 87 [09:12:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:12:51]wFMCommunicate OK [09:12:51]CreateOFDProtocolMessage done [09:12:51]OFDSenderStorePacket 49026 [09:12:51]StoreOFDPacket docnum=49026 [09:12: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 D5 3D 07 01 24 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1E 6C B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 17 EA 2C 3E E0 2E 53 51 40 E3 D2 FF D6 CC [09:12:51]CheckFolder [09:12:51]dirname=/storage/ofd_packets [09:12:51]CheckFolder done [09:12:51]ProducePacketName [09:12:51]name=ofd_packets/00049026 [09:12:51]NVStorageSaveData ofd_packets/00049026 [09:12:51]File name is /storage/ofd_packets/00049026 [09:12:51]Write 301 bytes [09:12:51]NVStorageSaveData done [09:12:51]OFDSenderStorePacket done [09:12:51]KKMCreateOFDPacket done [09:12:51]NVStorageSaveData kkm_last_timestamp [09:12:51]File name is /storage/kkm_last_timestamp [09:12:51]Write 4 bytes [09:12:51]NVStorageSaveData done [09:12:51]ExternCall_PrintAddStr [09:12:51]wPrintStart [09:12:51]Write to MH i2c: 01 00 00 82 3F C1 [09:12:51]Write i2c OK [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: 01 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: 01 07 00 [09:12:51]MH_I2C_Read... [09:12:51]Read from MH i2c: 01 07 00 82 3F 00 00 00 00 00 FF 0F D6 [09:12:51]RasterBufferAndPrint [09:12:51]line Счет N : (1)216125 [09:12:51]line ИÐÐ: 02508201610067 [09:12:51]line Контрольно-КаÑÑовый Чек [09:12:51]line ПРОДÐЖР[09:12:51]line ТРК (МРК, ГÐК) : 12 [09:12:51]line Товар: 2710124130 [09:12:51]line Ðи-92-К-5 [09:12:51]line 16.590 * 60.30 [09:12:51]line = 1000.38 [09:12:51]line ÐДС 12% ÐСП 1% [09:12:51]line > о реализуемом товаре [09:12:51]line ОКРУГЛЕÐИЕ: -0.38 [09:12:51]line ИТОГО: 1000.00 [09:12:51]line ВнеÑено: 1000.00 [09:12:51]line СДÐЧÐ: 0.00 [09:12:51]line ÐСП 1% : 8.85 [09:12:51]line ÐДС 12% : 106.23 [09:12:51]line Ðаличными: 1000.00 [09:12:51]line Безнал.: 0.00 [09:12:51]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:12:51]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:12:51]line СÐО: Общий режим [09:12:51]line Чек 9 29.01.2024 09:13 [09:12:51]line Смена: 245 ФФД: 1.0 [09:12:51]line ЗÐМ: 0300000040 [09:12:51]line РÐМ: 0000000000092723 [09:12:51]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:12:51]line ФМ: 0000000000875060 [09:12:51]line ФД: 49026 [09:12:52]line ФПД: 26294532104238 [09:12:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T091302&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49026&fm=26294532104238&tin=02508201610067®Number=0000000000092723&sum=100000 [09:12:52]OFD Sender: Processing packet 49026 [packets to send 12, broken 11] [09:12:52]ProducePacketName [09:12:52]name=ofd_packets/00049026 [09:12:52]OFD Sender: To server: ‡•öpG, [09:12:52]CommunicateWithHost lk.salyk.kg:30040 [09:12:52]ConnectInit lk.salyk.kg [09:12:52]written 0, free lines is 4095 [09:12:52]Connected sock=10 [09:12:52]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 D5 3D 07 01 24 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1E 6C B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 17 EA 2C 3E E0 2E 53 51 40 E3 D2 FF D6 CC [09:12:52]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 EE 47 00 1C 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 82 BF 00 00 F4 03 04 00 17 18 B7 65 B6 04 01 00 00 14 AD 81 83 6D AE 84 9C [09:12:52]CommunicateWithHost err = 0 [09:12:52]CheckOFDResponse [09:12:52]1017 (14) - 77093643461234 [09:12:52]1041 (16) - 0000000000875060 [09:12:52]1040 (4) - 49026 [09:12:52]1012 (4) - 29.01.2024 03:14 [09:12:52]1206 (1) - 0 [09:12:52]OFD Sender: Remove packet 49026 [09:12:52]ProducePacketName [09:12:52]name=ofd_packets/00049026 [09:12:52]NVStorageDeleteData [09:12:52]Write to MH i2c: 01 00 00 AD 3F EC [09:12:52]Write i2c OK [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: 01 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: 01 07 00 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: 01 07 00 AD 3F 00 00 00 00 00 FE 0C FD [09:12:52]RasterBufferAndPrint [09:12:52]line [09:12:52]line [09:12:52]line [09:12:52]line [09:12:52]line [09:12:52]written 0, free lines is 3332 [09:12:52]MH_Cut [09:12:52]Write to MH i2c: D1 01 00 B4 3F 01 C5 [09:12:52]Write i2c OK [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: D1 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: D1 01 00 [09:12:52]MH_I2C_Read... [09:12:52]Read from MH i2c: D1 01 00 B4 3F 00 C4 [09:12:52]Write to MH i2c: 01 00 00 B5 3F F4 [09:12:52]Write i2c OK [09:12:52]MH_I2C_Read... [09:12:52]OFD Sender: No OFD packet to send [09:12:53]*** Cut start [09:12:53]*** Partial cut [09:12:53]*** CUTSNS_PIN = 1 [09:12:53]*** CUTSNS_PIN = 0 [09:12:53]*** Brake cut motor [09:12:53]Read from MH i2c: 01 [09:12:53]MH_I2C_Read... [09:12:53]*** Stop cut motor [09:12:53]*** Cut end [09:12:53]Read from MH i2c: 01 07 00 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: 01 07 00 B5 3F 00 00 00 00 00 FF 0F 09 [09:12:53]process_action close_receipt done [09:12:53]requested_data is exist [09:12:53]produce_requested_data [09:12:53]requested_item fm.sn is exist - process it [09:12:53]wFMCommunicate request_size=4 [09:12:53]MH_SAM_APDU [09:12:53]CAPDU: 80 11 00 00 [09:12:53]Write to MH i2c: E2 08 00 B6 3F 80 11 00 00 00 00 00 00 6F [09:12:53]Write i2c OK [09:12:53]MH_I2C_Read... [09:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:53]Read from MH i2c: E2 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 17 00 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 17 00 B6 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BC [09:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:12:53]wFMCommunicate OK [09:12:53]requested_item fd.num is exist - process it [09:12:53]SAM_PROTO_GetFieldsCounters [09:12:53]wFMCommunicate request_size=4 [09:12:53]MH_SAM_APDU [09:12:53]CAPDU: 80 13 00 00 [09:12:53]Write to MH i2c: E2 08 00 B7 3F 80 13 00 00 00 00 00 00 72 [09:12:53]Write i2c OK [09:12:53]MH_I2C_Read... [09:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:53]Read from MH i2c: E2 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 62 00 [09:12:53]MH_I2C_Read... [09:12:53]Read from MH i2c: E2 62 00 B7 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 DC [09:12: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 82 BF 00 00 0E 04 04 00 F5 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 [09:12:53]wFMCommunicate OK [09:12:53]SAM_PROTO_GetFieldsCounters done [09:12:53]requested_item shift.num is exist - process it [09:12:53]requested_item shift.opened is exist - process it [09:12:53]req_shift_opened [09:12:53]FM_GetShiftState [09:12:53]SAM_PROTO_GetShiftState [09:12:53]wFMCommunicate request_size=4 [09:12:53]MH_SAM_APDU [09:12:53]CAPDU: 80 13 01 00 [09:12:53]Write to MH i2c: E2 08 00 B8 3F 80 13 01 00 00 00 00 00 74 [09:12:53]Write i2c OK [09:12:53]MH_I2C_Read... [09:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:54]Read from MH i2c: E2 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 0E 00 [09:12:54]MH_I2C_Read... [09:12:54]Read from MH i2c: E2 0E 00 B8 3F 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 E6 [09:12:54]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:12:54]wFMCommunicate OK [09:12:54]SAM_PROTO_GetShiftState done [09:12:54]FM_GetShiftState done [09:12:54]req_shift_opened done [09:12:54]requested_item shift.open_date is exist - process it [09:12:54]req_shift_open_date [09:12:54]req_shift_open_date done [09:12:54]produce_requested_data done [09:12:54]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49026,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:12:54]process_action_free close_receipt [09:12:54]json_value_free [09:12:54]json_value_free done [09:12:54]process_json_proto returns [09:12:54]Send response to host [09:12:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49026,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:12:54]free response buf [09:12:54]execute_script done [09:12:54]execute_script returns [09:12:54]free content buf [09:12:54]Sock 9.Close socket [09:12:54]Sock 9.Thread stoped [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:29]accept exits with 7 [09:14:29]New connection [09:14:29]New thread 3066670436 created [09:14:29]Thread 3066813796 joined [09:14:29]Waiting for new connection... [09:14:29] Sock 7.Parse request [09:14:29]Sock 7.Check first char [09:14:29]Sock 7.First char is OK [09:14:29]request: POST /json_proto HTTP/1.0 [09:14:29]Method: POST [09:14:29]URL: /json_proto [09:14:29]Method is POST - this is cgi request [09:14:29]url: /json_proto [09:14:29]query_string will be loaded in cgi processing [09:14:29]execute_cgi json_proto POST (null) [09:14:29]execute_cgi path=json_proto method=POST [09:14:29]POST find Content-Length [09:14:29]Host: 172.17.56.67:8080 [09:14:29]Content-Length: 679 [09:14:29]Content-Type: application/json [09:14:29] [09:14:29]POST finish read [09:14:29]Found Content-Length = 679 [09:14:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216126", "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" : 57.230, "sum" : 4000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:29]execute_script... [09:14: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)216126", "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" : 57.230, "sum" : 4000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:14:29]POST & json_proto [09:14:29]process_json_proto [09:14:29]json parsed OK: [09:14:29]protocol is kg_v1.0 [09:14:29]action value=close_receipt [09:14:29]process_action close_receipt [09:14:29]cmd_close_receipt [09:14:29]MH_GetDate [09:14:29]Write to MH i2c: F0 00 00 B9 3F E7 [09:14:29]Write i2c OK [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: F0 [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: F0 09 00 [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: F0 09 00 B9 3F 00 82 6C B7 65 26 5D 9E 65 80 [09:14:29]GetLastDocTimeStamp 1706519582 [09:14:29]current date 1706519682 [09:14:29]FM_GetShiftState [09:14:29]SAM_PROTO_GetShiftState [09:14:29]wFMCommunicate request_size=4 [09:14:29]MH_SAM_APDU [09:14:29]CAPDU: 80 13 01 00 [09:14:29]Write to MH i2c: E2 08 00 BA 3F 80 13 01 00 00 00 00 00 76 [09:14:29]Write i2c OK [09:14:29]MH_I2C_Read... [09:14:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:29]Read from MH i2c: E2 [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: E2 0E 00 [09:14:29]MH_I2C_Read... [09:14:29]Read from MH i2c: E2 0E 00 BA 3F 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 E8 [09:14:29]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:14:29]wFMCommunicate OK [09:14:29]SAM_PROTO_GetShiftState done [09:14:29]FM_GetShiftState done [09:14:29]opened in 1706486624 [09:14:29]opened+sec_in_day 1706573024 [09:14:29]quantity*price = 400037 [09:14:29]sum+1 = 400039 [09:14:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.38 ИТОГО: 4000.00 ВнеÑено: 4000.00 СДÐЧÐ: 0.00 ÐСП 1% : 35.40 ÐДС 12% : 424.82 Ðаличными: 4000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 10 29.01.2024 09:14 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49027 ФПД: 206926509258389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T091442&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49027&fm=206926509258389&tin=02508201610067®Number=0000000000092723&sum=400000 [09:14:30]StoreToDocumentArchive [09:14:30]shift 245 fd 49027 [09:14:30]save to /storage/0245/doc_00049027 [09:14:30]save last doc name /storage/0245/doc_00049027 to /storage/kkm_last_doc_name [09:14:30]save OK [09:14:30]Clear old archive folders... [09:14:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:14:30]tlvbuf is 01217160 [09:14:30]SAM_PROTO_ClearQueue [09:14:30]wFMCommunicate request_size=4 [09:14:30]MH_SAM_APDU [09:14:30]CAPDU: 80 09 00 00 [09:14:30]Write to MH i2c: E2 08 00 C7 3F 80 09 00 00 00 00 00 00 78 [09:14:30]Write i2c OK [09:14:30]MH_I2C_Read... [09:14:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:14:30]Read from MH i2c: E2 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 03 00 [09:14:30]MH_I2C_Read... [09:14:30]Read from MH i2c: E2 03 00 C7 3F 00 90 00 7A [09:14:30]RAPDU: 90 00 [09:14:30]wFMCommunicate OK [09:14:30]SAM_PROTO_ClearQueue done [09:14:30]KKMCreateOFDPacket [09:14:30]OFDProtocolAddRootSTLVToBuf [09:14:30]FM_MakeSignedData [09:14:30]FM_MakeSignedData [09:14:30]SAM_PROTO_SignData [09:14:30]wFMCommunicate request_size=4 [09:14:30]MH_SAM_APDU [09:14:30]CAPDU: 80 0D 01 02 [09:14:30]Write to MH i2c: E2 08 00 C8 3F 80 0D 01 02 00 00 00 00 80 [09:14:30]Write i2c OK [09:14:30]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 03 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 03 00 C8 3F 00 90 00 7B [09:14:31]RAPDU: 90 00 [09:14:31]wFMCommunicate OK [09:14:31]wFMCommunicate request_size=255 [09:14:31]MH_SAM_APDU [09:14:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E DF 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 A6 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 82 6C B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 BC 32 D5 14 [09:14:31]Write to MH i2c: E2 02 01 C9 3F 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 8E DF 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 A6 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 82 6C B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 BC 32 D5 14 00 00 4B [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 03 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 03 00 C9 3F 00 90 00 7C [09:14:31]RAPDU: 90 00 [09:14:31]wFMCommunicate OK [09:14:31]wFMCommunicate request_size=7 [09:14:31]MH_SAM_APDU [09:14:31]CAPDU: 80 0D 02 02 02 36 95 [09:14:31]Write to MH i2c: E2 0A 00 CA 3F 80 0D 02 02 02 00 36 95 00 00 52 [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 03 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 03 00 CA 3F 00 90 00 7D [09:14:31]RAPDU: 90 00 [09:14:31]wFMCommunicate OK [09:14:31]wFMCommunicate request_size=4 [09:14:31]MH_SAM_APDU [09:14:31]CAPDU: 80 0D 03 02 [09:14:31]Write to MH i2c: E2 08 00 CB 3F 80 0D 03 02 00 00 00 00 85 [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 0B 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 0B 00 CB 3F 00 D2 78 56 2C 20 F3 B0 F9 90 00 0E [09:14:31]RAPDU: D2 78 56 2C 20 F3 B0 F9 90 00 [09:14:31]wFMCommunicate OK [09:14:31]SAM_PROTO_SignData done [09:14:31]FM_MakeSignedData done [09:14:31]CreateOFDProtocolMessage [09:14:31]wFMCommunicate request_size=4 [09:14:31]MH_SAM_APDU [09:14:31]CAPDU: 80 11 00 00 [09:14:31]Write to MH i2c: E2 08 00 CC 3F 80 11 00 00 00 00 00 00 85 [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:31]Read from MH i2c: E2 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 17 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: E2 17 00 CC 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D2 [09:14: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:14:31]wFMCommunicate OK [09:14:31]CreateOFDProtocolMessage done [09:14:31]OFDSenderStorePacket 49027 [09:14:31]StoreOFDPacket docnum=49027 [09:14: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 0C 01 00 00 56 84 04 01 DE DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 8E DF 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 A6 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 82 6C B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 BC 32 D5 14 36 95 D2 78 56 2C 20 F3 B0 F9 [09:14:31]CheckFolder [09:14:31]dirname=/storage/ofd_packets [09:14:31]CheckFolder done [09:14:31]ProducePacketName [09:14:31]name=ofd_packets/00049027 [09:14:31]NVStorageSaveData ofd_packets/00049027 [09:14:31]File name is /storage/ofd_packets/00049027 [09:14:31]Write 298 bytes [09:14:31]NVStorageSaveData done [09:14:31]OFDSenderStorePacket done [09:14:31]KKMCreateOFDPacket done [09:14:31]NVStorageSaveData kkm_last_timestamp [09:14:31]File name is /storage/kkm_last_timestamp [09:14:31]Write 4 bytes [09:14:31]NVStorageSaveData done [09:14:31]ExternCall_PrintAddStr [09:14:31]wPrintStart [09:14:31]Write to MH i2c: 01 00 00 CD 3F 0C [09:14:31]Write i2c OK [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: 01 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: 01 07 00 [09:14:31]MH_I2C_Read... [09:14:31]Read from MH i2c: 01 07 00 CD 3F 00 00 00 00 00 FF 0F 21 [09:14:31]RasterBufferAndPrint [09:14:31]line Счет N : (1)216126 [09:14:31]line ИÐÐ: 02508201610067 [09:14:31]line Контрольно-КаÑÑовый Чек [09:14:31]line ПРОДÐЖР[09:14:31]line ТРК (МРК, ГÐК) : 21 [09:14:31]line Товар: 2710194210 [09:14:31]line ДТ-К-5 [09:14:31]line 57.230 * 69.90 [09:14:31]line = 4000.38 [09:14:31]line ÐДС 12% ÐСП 1% [09:14:31]line > о реализуемом товаре [09:14:31]line ОКРУГЛЕÐИЕ: -0.38 [09:14:31]line ИТОГО: 4000.00 [09:14:31]line ВнеÑено: 4000.00 [09:14:31]line СДÐЧÐ: 0.00 [09:14:31]line ÐСП 1% : 35.40 [09:14:31]line ÐДС 12% : 424.82 [09:14:31]line Ðаличными: 4000.00 [09:14:31]line Безнал.: 0.00 [09:14:31]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:14:31]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:14:31]line СÐО: Общий режим [09:14:31]line Чек 10 29.01.2024 09:14 [09:14:31]line Смена: 245 ФФД: 1.0 [09:14:31]line ЗÐМ: 0300000040 [09:14:31]line РÐМ: 0000000000092723 [09:14:31]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:14:31]line ФМ: 0000000000875060 [09:14:31]line ФД: 49027 [09:14:31]line ФПД: 206926509258389 [09:14:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T091442&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49027&fm=206926509258389&tin=02508201610067®Number=0000000000092723&sum=400000 [09:14:31]OFD Sender: Processing packet 49027 [packets to send 12, broken 11] [09:14:31]ProducePacketName [09:14:31]name=ofd_packets/00049027 [09:14:31]OFD Sender: To server: ‡•öpG, [09:14:31]CommunicateWithHost lk.salyk.kg:30040 [09:14:31]ConnectInit lk.salyk.kg [09:14:31]written 0, free lines is 4095 [09:14:31]Connected sock=10 [09:14: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 0C 01 00 00 56 84 04 01 DE DF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 8E DF 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 A6 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 82 6C B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 BC 32 D5 14 36 95 D2 78 56 2C 20 F3 B0 F9 [09:14: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 09 11 47 00 62 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 83 BF 00 00 F4 03 04 00 7B 18 B7 65 B6 04 01 00 00 DF 2C 4A 3F 98 C7 F3 3F [09:14:32]CommunicateWithHost err = 0 [09:14:32]CheckOFDResponse [09:14:32]1017 (14) - 77093643461234 [09:14:32]1041 (16) - 0000000000875060 [09:14:32]1040 (4) - 49027 [09:14:32]1012 (4) - 29.01.2024 03:16 [09:14:32]1206 (1) - 0 [09:14:32]OFD Sender: Remove packet 49027 [09:14:32]ProducePacketName [09:14:32]name=ofd_packets/00049027 [09:14:32]NVStorageDeleteData [09:14:32]Write to MH i2c: 01 00 00 F8 3F 37 [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: 01 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: 01 07 00 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: 01 07 00 F8 3F 00 00 00 00 00 08 0D 53 [09:14:32]RasterBufferAndPrint [09:14:32]line [09:14:32]line [09:14:32]line [09:14:32]line [09:14:32]line [09:14:32]written 0, free lines is 3343 [09:14:32]MH_Cut [09:14:32]Write to MH i2c: D1 01 00 FF 3F 01 10 [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: D1 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: D1 01 00 [09:14:32]MH_I2C_Read... [09:14:32]Read from MH i2c: D1 01 00 FF 3F 00 0F [09:14:32]Write to MH i2c: 01 00 00 00 40 40 [09:14:32]Write i2c OK [09:14:32]MH_I2C_Read... [09:14:32]OFD Sender: No OFD packet to send [09:14:32]*** Cut start [09:14:32]*** Partial cut [09:14:32]*** CUTSNS_PIN = 1 [09:14:32]*** CUTSNS_PIN = 0 [09:14:33]*** Brake cut motor [09:14:33]Read from MH i2c: 01 [09:14:33]MH_I2C_Read... [09:14:33]*** Stop cut motor [09:14:33]*** Cut end [09:14:33]Read from MH i2c: 01 07 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: 01 07 00 00 40 00 00 00 00 00 FF 0F 55 [09:14:33]process_action close_receipt done [09:14:33]requested_data is exist [09:14:33]produce_requested_data [09:14:33]requested_item fm.sn is exist - process it [09:14:33]wFMCommunicate request_size=4 [09:14:33]MH_SAM_APDU [09:14:33]CAPDU: 80 11 00 00 [09:14:33]Write to MH i2c: E2 08 00 01 40 80 11 00 00 00 00 00 00 BB [09:14:33]Write i2c OK [09:14:33]MH_I2C_Read... [09:14:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:14:33]Read from MH i2c: E2 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 17 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 17 00 01 40 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:14: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:14:33]wFMCommunicate OK [09:14:33]requested_item fd.num is exist - process it [09:14:33]SAM_PROTO_GetFieldsCounters [09:14:33]wFMCommunicate request_size=4 [09:14:33]MH_SAM_APDU [09:14:33]CAPDU: 80 13 00 00 [09:14:33]Write to MH i2c: E2 08 00 02 40 80 13 00 00 00 00 00 00 BE [09:14:33]Write i2c OK [09:14:33]MH_I2C_Read... [09:14:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:14:33]Read from MH i2c: E2 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 62 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 62 00 02 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 2C [09:14: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 83 BF 00 00 0E 04 04 00 F5 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 [09:14:33]wFMCommunicate OK [09:14:33]SAM_PROTO_GetFieldsCounters done [09:14:33]requested_item shift.num is exist - process it [09:14:33]requested_item shift.opened is exist - process it [09:14:33]req_shift_opened [09:14:33]FM_GetShiftState [09:14:33]SAM_PROTO_GetShiftState [09:14:33]wFMCommunicate request_size=4 [09:14:33]MH_SAM_APDU [09:14:33]CAPDU: 80 13 01 00 [09:14:33]Write to MH i2c: E2 08 00 03 40 80 13 01 00 00 00 00 00 C0 [09:14:33]Write i2c OK [09:14:33]MH_I2C_Read... [09:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:14:33]Read from MH i2c: E2 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 0E 00 [09:14:33]MH_I2C_Read... [09:14:33]Read from MH i2c: E2 0E 00 03 40 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 32 [09:14:33]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:14:33]wFMCommunicate OK [09:14:33]SAM_PROTO_GetShiftState done [09:14:33]FM_GetShiftState done [09:14:33]req_shift_opened done [09:14:33]requested_item shift.open_date is exist - process it [09:14:33]req_shift_open_date [09:14:33]req_shift_open_date done [09:14:33]produce_requested_data done [09:14:33]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49027,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:14:33]process_action_free close_receipt [09:14:33]json_value_free [09:14:33]json_value_free done [09:14:33]process_json_proto returns [09:14:33]Send response to host [09:14:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49027,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:14:33]free response buf [09:14:33]execute_script done [09:14:33]execute_script returns [09:14:33]free content buf [09:14:33]Sock 7.Close socket [09:14:33]Sock 7.Thread stoped [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:12]OFD Sender: No OFD packet to send [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:07]OFD Sender: No OFD packet to send [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:46]accept exits with 9 [09:16:46]New connection [09:16:46]New thread 3066813796 created [09:16:46]Thread 3066670436 joined [09:16:46]Waiting for new connection... [09:16:46] Sock 9.Parse request [09:16:46]Sock 9.Check first char [09:16:46]Sock 9.First char is OK [09:16:46]request: POST /json_proto HTTP/1.0 [09:16:46]Method: POST [09:16:46]URL: /json_proto [09:16:46]Method is POST - this is cgi request [09:16:46]url: /json_proto [09:16:46]query_string will be loaded in cgi processing [09:16:46]execute_cgi json_proto POST (null) [09:16:46]execute_cgi path=json_proto method=POST [09:16:46]POST find Content-Length [09:16:46]Host: 172.17.56.67:8080 [09:16:46]Content-Length: 682 [09:16:46]Content-Type: application/json [09:16:46] [09:16:46]POST finish read [09:16:46]Found Content-Length = 682 [09:16:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216127", "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:16:46]execute_script... [09:16: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)216127", "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:16:46]POST & json_proto [09:16:46]process_json_proto [09:16:46]json parsed OK: [09:16:46]protocol is kg_v1.0 [09:16:46]action value=close_receipt [09:16:46]process_action close_receipt [09:16:46]cmd_close_receipt [09:16:46]MH_GetDate [09:16:46]Write to MH i2c: F0 00 00 04 40 33 [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: F0 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: F0 09 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: F0 09 00 04 40 00 0B 6D B7 65 26 5D 9E 65 56 [09:16:46]GetLastDocTimeStamp 1706519682 [09:16:46]current date 1706519819 [09:16:46]FM_GetShiftState [09:16:46]SAM_PROTO_GetShiftState [09:16:46]wFMCommunicate request_size=4 [09:16:46]MH_SAM_APDU [09:16:46]CAPDU: 80 13 01 00 [09:16:46]Write to MH i2c: E2 08 00 05 40 80 13 01 00 00 00 00 00 C2 [09:16:46]Write i2c OK [09:16:46]MH_I2C_Read... [09:16:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:46]Read from MH i2c: E2 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 0E 00 [09:16:46]MH_I2C_Read... [09:16:46]Read from MH i2c: E2 0E 00 05 40 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 34 [09:16:46]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:16:46]wFMCommunicate OK [09:16:46]SAM_PROTO_GetShiftState done [09:16:46]FM_GetShiftState done [09:16:46]opened in 1706486624 [09:16:46]opened+sec_in_day 1706573024 [09:16:46]quantity*price = 100037 [09:16:46]sum+1 = 100039 [09:16: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 СÐО: Общий режим Чек 11 29.01.2024 09:16 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49028 ФПД: 71401260499785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T091659&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49028&fm=71401260499785&tin=02508201610067®Number=0000000000092723&sum=100000 [09:16:48]StoreToDocumentArchive [09:16:48]shift 245 fd 49028 [09:16:48]save to /storage/0245/doc_00049028 [09:16:48]save last doc name /storage/0245/doc_00049028 to /storage/kkm_last_doc_name [09:16:48]save OK [09:16:48]Clear old archive folders... [09:16:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:48]tlvbuf is 01343260 [09:16:48]SAM_PROTO_ClearQueue [09:16:48]wFMCommunicate request_size=4 [09:16:48]MH_SAM_APDU [09:16:48]CAPDU: 80 09 00 00 [09:16:48]Write to MH i2c: E2 08 00 12 40 80 09 00 00 00 00 00 00 C4 [09:16:48]Write i2c OK [09:16:48]MH_I2C_Read... [09:16:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:48]Read from MH i2c: E2 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 03 00 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 03 00 12 40 00 90 00 C6 [09:16:48]RAPDU: 90 00 [09:16:48]wFMCommunicate OK [09:16:48]SAM_PROTO_ClearQueue done [09:16:48]KKMCreateOFDPacket [09:16:48]OFDProtocolAddRootSTLVToBuf [09:16:48]FM_MakeSignedData [09:16:48]FM_MakeSignedData [09:16:48]SAM_PROTO_SignData [09:16:48]wFMCommunicate request_size=4 [09:16:48]MH_SAM_APDU [09:16:48]CAPDU: 80 0D 01 02 [09:16:48]Write to MH i2c: E2 08 00 13 40 80 0D 01 02 00 00 00 00 CC [09:16:48]Write i2c OK [09:16:48]MH_I2C_Read... [09:16:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:48]Read from MH i2c: E2 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 03 00 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 03 00 13 40 00 90 00 C7 [09:16:48]RAPDU: 90 00 [09:16:48]wFMCommunicate OK [09:16:48]wFMCommunicate request_size=255 [09:16:48]MH_SAM_APDU [09:16: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 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 0B 00 00 00 F4 03 04 00 0B 6D B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 40 [09:16:48]Write to MH i2c: E2 02 01 14 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0B 00 00 00 F4 03 04 00 0B 6D B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 40 00 00 53 [09:16:48]Write i2c OK [09:16:48]MH_I2C_Read... [09:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:48]Read from MH i2c: E2 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 03 00 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 03 00 14 40 00 90 00 C8 [09:16:48]RAPDU: 90 00 [09:16:48]wFMCommunicate OK [09:16:48]wFMCommunicate request_size=10 [09:16:48]MH_SAM_APDU [09:16:48]CAPDU: 80 0D 02 02 05 F0 66 C4 C3 49 [09:16:48]Write to MH i2c: E2 0D 00 15 40 80 0D 02 02 05 00 F0 66 C4 C3 49 00 00 FF [09:16:48]Write i2c OK [09:16:48]MH_I2C_Read... [09:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:48]Read from MH i2c: E2 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 03 00 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 03 00 15 40 00 90 00 C9 [09:16:48]RAPDU: 90 00 [09:16:48]wFMCommunicate OK [09:16:48]wFMCommunicate request_size=4 [09:16:48]MH_SAM_APDU [09:16:48]CAPDU: 80 0D 03 02 [09:16:48]Write to MH i2c: E2 08 00 16 40 80 0D 03 02 00 00 00 00 D1 [09:16:48]Write i2c OK [09:16:48]MH_I2C_Read... [09:16:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:48]Read from MH i2c: E2 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 0B 00 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 0B 00 16 40 00 34 AB 01 3B 6F DC 20 9D 90 00 F5 [09:16:48]RAPDU: 34 AB 01 3B 6F DC 20 9D 90 00 [09:16:48]wFMCommunicate OK [09:16:48]SAM_PROTO_SignData done [09:16:48]FM_MakeSignedData done [09:16:48]CreateOFDProtocolMessage [09:16:48]wFMCommunicate request_size=4 [09:16:48]MH_SAM_APDU [09:16:48]CAPDU: 80 11 00 00 [09:16:48]Write to MH i2c: E2 08 00 17 40 80 11 00 00 00 00 00 00 D1 [09:16:48]Write i2c OK [09:16:48]MH_I2C_Read... [09:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:48]Read from MH i2c: E2 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 17 00 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: E2 17 00 17 40 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:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:16:48]wFMCommunicate OK [09:16:48]CreateOFDProtocolMessage done [09:16:48]OFDSenderStorePacket 49028 [09:16:48]StoreOFDPacket docnum=49028 [09:16: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 A7 BF 07 01 B6 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0B 00 00 00 F4 03 04 00 0B 6D B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 40 F0 66 C4 C3 49 34 AB 01 3B 6F DC 20 9D [09:16:48]CheckFolder [09:16:48]dirname=/storage/ofd_packets [09:16:48]CheckFolder done [09:16:48]ProducePacketName [09:16:48]name=ofd_packets/00049028 [09:16:48]NVStorageSaveData ofd_packets/00049028 [09:16:48]File name is /storage/ofd_packets/00049028 [09:16:48]Write 301 bytes [09:16:48]NVStorageSaveData done [09:16:48]OFDSenderStorePacket done [09:16:48]KKMCreateOFDPacket done [09:16:48]NVStorageSaveData kkm_last_timestamp [09:16:48]File name is /storage/kkm_last_timestamp [09:16:48]Write 4 bytes [09:16:48]NVStorageSaveData done [09:16:48]ExternCall_PrintAddStr [09:16:48]wPrintStart [09:16:48]Write to MH i2c: 01 00 00 18 40 58 [09:16:48]Write i2c OK [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: 01 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: 01 07 00 [09:16:48]MH_I2C_Read... [09:16:48]Read from MH i2c: 01 07 00 18 40 00 00 00 00 00 FF 0F 6D [09:16:48]RasterBufferAndPrint [09:16:48]line Счет N : (1)216127 [09:16:48]line ИÐÐ: 02508201610067 [09:16:48]line Контрольно-КаÑÑовый Чек [09:16:48]line ПРОДÐЖР[09:16:48]line ТРК (МРК, ГÐК) : 22 [09:16:48]line Товар: 2710124130 [09:16:48]line Ðи-92-К-5 [09:16:48]line 16.590 * 60.30 [09:16:48]line = 1000.38 [09:16:48]line ÐДС 12% ÐСП 1% [09:16:48]line > о реализуемом товаре [09:16:48]line ОКРУГЛЕÐИЕ: -0.38 [09:16:48]line ИТОГО: 1000.00 [09:16:48]line ВнеÑено: 1000.00 [09:16:48]line СДÐЧÐ: 0.00 [09:16:48]line ÐСП 1% : 8.85 [09:16:48]line ÐДС 12% : 106.23 [09:16:48]line Ðаличными: 1000.00 [09:16:48]line Безнал.: 0.00 [09:16:48]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:16:48]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:16:48]line СÐО: Общий режим [09:16:48]line Чек 11 29.01.2024 09:16 [09:16:48]line Смена: 245 ФФД: 1.0 [09:16:48]line ЗÐМ: 0300000040 [09:16:48]line РÐМ: 0000000000092723 [09:16:48]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:16:48]line ФМ: 0000000000875060 [09:16:48]line ФД: 49028 [09:16:48]line ФПД: 71401260499785 [09:16:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T091659&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49028&fm=71401260499785&tin=02508201610067®Number=0000000000092723&sum=100000 [09:16:48]OFD Sender: Processing packet 49028 [packets to send 12, broken 11] [09:16:48]ProducePacketName [09:16:48]name=ofd_packets/00049028 [09:16:48]OFD Sender: To server: ‡•öpG, [09:16:48]CommunicateWithHost lk.salyk.kg:30040 [09:16:48]ConnectInit lk.salyk.kg [09:16:48]written 0, free lines is 4095 [09:16:48]Connected sock=10 [09:16: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 A7 BF 07 01 B6 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0B 00 00 00 F4 03 04 00 0B 6D B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 40 F0 66 C4 C3 49 34 AB 01 3B 6F DC 20 9D [09:16: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 AE 38 47 00 C0 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 84 BF 00 00 F4 03 04 00 04 19 B7 65 B6 04 01 00 00 BD C4 56 BE 8B 79 AD 85 [09:16:49]CommunicateWithHost err = 0 [09:16:49]CheckOFDResponse [09:16:49]1017 (14) - 77093643461234 [09:16:49]1041 (16) - 0000000000875060 [09:16:49]1040 (4) - 49028 [09:16:49]1012 (4) - 29.01.2024 03:18 [09:16:49]1206 (1) - 0 [09:16:49]OFD Sender: Remove packet 49028 [09:16:49]ProducePacketName [09:16:49]name=ofd_packets/00049028 [09:16:49]NVStorageDeleteData [09:16:49]Write to MH i2c: 01 00 00 43 40 83 [09:16:49]Write i2c OK [09:16:49]MH_I2C_Read... [09:16:49]Read from MH i2c: 01 [09:16:49]MH_I2C_Read... [09:16:49]Read from MH i2c: 01 07 00 [09:16:49]MH_I2C_Read... [09:16:49]Read from MH i2c: 01 07 00 43 40 00 00 00 00 00 FF 0C 95 [09:16:49]RasterBufferAndPrint [09:16:49]line [09:16:49]line [09:16:49]line [09:16:49]line [09:16:49]line [09:16:49]written 0, free lines is 3333 [09:16:49]MH_Cut [09:16:49]Write to MH i2c: D1 01 00 4A 40 01 5C [09:16:49]Write i2c OK [09:16:49]MH_I2C_Read... [09:16:49]Read from MH i2c: D1 [09:16:49]MH_I2C_Read... [09:16:49]Read from MH i2c: D1 01 00 [09:16:49]MH_I2C_Read... [09:16:49]Read from MH i2c: D1 01 00 4A 40 00 5B [09:16:49]Write to MH i2c: 01 00 00 4B 40 8B [09:16:49]Write i2c OK [09:16:49]MH_I2C_Read... [09:16:49]OFD Sender: No OFD packet to send [09:16:50]*** Cut start [09:16:50]*** Partial cut [09:16:50]*** CUTSNS_PIN = 1 [09:16:50]*** CUTSNS_PIN = 0 [09:16:50]*** Brake cut motor [09:16:50]Read from MH i2c: 01 [09:16:50]MH_I2C_Read... [09:16:50]*** Stop cut motor [09:16:50]*** Cut end [09:16:50]Read from MH i2c: 01 07 00 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: 01 07 00 4B 40 00 00 00 00 00 FF 0F A0 [09:16:50]process_action close_receipt done [09:16:50]requested_data is exist [09:16:50]produce_requested_data [09:16:50]requested_item fm.sn is exist - process it [09:16:50]wFMCommunicate request_size=4 [09:16:50]MH_SAM_APDU [09:16:50]CAPDU: 80 11 00 00 [09:16:50]Write to MH i2c: E2 08 00 4C 40 80 11 00 00 00 00 00 00 06 [09:16:50]Write i2c OK [09:16:50]MH_I2C_Read... [09:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:50]Read from MH i2c: E2 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: E2 17 00 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: E2 17 00 4C 40 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:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:16:50]wFMCommunicate OK [09:16:50]requested_item fd.num is exist - process it [09:16:50]SAM_PROTO_GetFieldsCounters [09:16:50]wFMCommunicate request_size=4 [09:16:50]MH_SAM_APDU [09:16:50]CAPDU: 80 13 00 00 [09:16:50]Write to MH i2c: E2 08 00 4D 40 80 13 00 00 00 00 00 00 09 [09:16:50]Write i2c OK [09:16:50]MH_I2C_Read... [09:16:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:50]Read from MH i2c: E2 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: E2 62 00 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: E2 62 00 4D 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 7B [09:16: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 84 BF 00 00 0E 04 04 00 F5 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 [09:16:50]wFMCommunicate OK [09:16:50]SAM_PROTO_GetFieldsCounters done [09:16:50]requested_item shift.num is exist - process it [09:16:50]requested_item shift.opened is exist - process it [09:16:50]req_shift_opened [09:16:50]FM_GetShiftState [09:16:50]SAM_PROTO_GetShiftState [09:16:50]wFMCommunicate request_size=4 [09:16:50]MH_SAM_APDU [09:16:50]CAPDU: 80 13 01 00 [09:16:50]Write to MH i2c: E2 08 00 4E 40 80 13 01 00 00 00 00 00 0B [09:16:50]Write i2c OK [09:16:50]MH_I2C_Read... [09:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:50]Read from MH i2c: E2 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: E2 0E 00 [09:16:50]MH_I2C_Read... [09:16:50]Read from MH i2c: E2 0E 00 4E 40 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 7D [09:16:50]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:16:50]wFMCommunicate OK [09:16:50]SAM_PROTO_GetShiftState done [09:16:50]FM_GetShiftState done [09:16:50]req_shift_opened done [09:16:50]requested_item shift.open_date is exist - process it [09:16:50]req_shift_open_date [09:16:50]req_shift_open_date done [09:16:50]produce_requested_data done [09:16:50]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49028,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:16:50]process_action_free close_receipt [09:16:50]json_value_free [09:16:50]json_value_free done [09:16:50]process_json_proto returns [09:16:50]Send response to host [09:16:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49028,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:16:50]free response buf [09:16:50]execute_script done [09:16:50]execute_script returns [09:16:50]free content buf [09:16:50]Sock 9.Close socket [09:16:50]Sock 9.Thread stoped [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:02]accept exits with 7 [09:17:02]New connection [09:17:02]New thread 3066670436 created [09:17:02]Thread 3066813796 joined [09:17:02]Waiting for new connection... [09:17:02] Sock 7.Parse request [09:17:02]Sock 7.Check first char [09:17:02]Sock 7.First char is OK [09:17:02]request: POST /json_proto HTTP/1.0 [09:17:02]Method: POST [09:17:02]URL: /json_proto [09:17:02]Method is POST - this is cgi request [09:17:02]url: /json_proto [09:17:02]query_string will be loaded in cgi processing [09:17:02]execute_cgi json_proto POST (null) [09:17:02]execute_cgi path=json_proto method=POST [09:17:02]POST find Content-Length [09:17:02]Host: 172.17.56.67:8080 [09:17:02]Content-Length: 678 [09:17:02]Content-Type: application/json [09:17:02] [09:17:02]POST finish read [09:17:02]Found Content-Length = 678 [09:17:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216128", "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" : 11.610, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:02]execute_script... [09:17: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)216128", "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" : 11.610, "sum" : 700.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:02]POST & json_proto [09:17:02]process_json_proto [09:17:02]json parsed OK: [09:17:02]protocol is kg_v1.0 [09:17:02]action value=close_receipt [09:17:02]process_action close_receipt [09:17:02]cmd_close_receipt [09:17:02]MH_GetDate [09:17:02]Write to MH i2c: F0 00 00 4F 40 7E [09:17:02]Write i2c OK [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: F0 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: F0 09 00 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: F0 09 00 4F 40 00 1B 6D B7 65 26 5D 9E 65 B1 [09:17:02]GetLastDocTimeStamp 1706519819 [09:17:02]current date 1706519835 [09:17:02]FM_GetShiftState [09:17:02]SAM_PROTO_GetShiftState [09:17:02]wFMCommunicate request_size=4 [09:17:02]MH_SAM_APDU [09:17:02]CAPDU: 80 13 01 00 [09:17:02]Write to MH i2c: E2 08 00 50 40 80 13 01 00 00 00 00 00 0D [09:17:02]Write i2c OK [09:17:02]MH_I2C_Read... [09:17:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:02]Read from MH i2c: E2 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: E2 0E 00 [09:17:02]MH_I2C_Read... [09:17:02]Read from MH i2c: E2 0E 00 50 40 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 7F [09:17:02]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:17:02]wFMCommunicate OK [09:17:02]SAM_PROTO_GetShiftState done [09:17:02]FM_GetShiftState done [09:17:02]opened in 1706486624 [09:17:02]opened+sec_in_day 1706573024 [09:17:02]quantity*price = 70008 [09:17:02]sum+1 = 70009 [09:17:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.08 ИТОГО: 700.00 ВнеÑено: 700.00 СДÐЧÐ: 0.00 ÐСП 1% : 6.19 ÐДС 12% : 74.34 Ðаличными: 700.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 12 29.01.2024 09:17 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49029 ФПД: 17488049547666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T091715&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49029&fm=17488049547666&tin=02508201610067®Number=0000000000092723&sum=70000 [09:17:03]StoreToDocumentArchive [09:17:03]shift 245 fd 49029 [09:17:03]save to /storage/0245/doc_00049029 [09:17:03]save last doc name /storage/0245/doc_00049029 to /storage/kkm_last_doc_name [09:17:03]save OK [09:17:03]Clear old archive folders... [09:17:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:03]tlvbuf is B6D86820 [09:17:03]SAM_PROTO_ClearQueue [09:17:03]wFMCommunicate request_size=4 [09:17:03]MH_SAM_APDU [09:17:03]CAPDU: 80 09 00 00 [09:17:03]Write to MH i2c: E2 08 00 5D 40 80 09 00 00 00 00 00 00 0F [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:03]Read from MH i2c: E2 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 03 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 03 00 5D 40 00 90 00 11 [09:17:03]RAPDU: 90 00 [09:17:03]wFMCommunicate OK [09:17:03]SAM_PROTO_ClearQueue done [09:17:03]KKMCreateOFDPacket [09:17:03]OFDProtocolAddRootSTLVToBuf [09:17:03]FM_MakeSignedData [09:17:03]FM_MakeSignedData [09:17:03]SAM_PROTO_SignData [09:17:03]wFMCommunicate request_size=4 [09:17:03]MH_SAM_APDU [09:17:03]CAPDU: 80 0D 01 02 [09:17:03]Write to MH i2c: E2 08 00 5E 40 80 0D 01 02 00 00 00 00 17 [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 [09:17:03]MH_I2C_Read... [09:17:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:03]Read from MH i2c: E2 03 00 [09:17:03]MH_I2C_Read... [09:17:03]Read from MH i2c: E2 03 00 5E 40 00 90 00 12 [09:17:03]RAPDU: 90 00 [09:17:03]wFMCommunicate OK [09:17:03]wFMCommunicate request_size=255 [09:17:03]MH_SAM_APDU [09:17: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 5A 2D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 0C 00 00 00 F4 03 04 00 1B 6D B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 0F [09:17:03]Write to MH i2c: E2 02 01 5F 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 2D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 0C 00 00 00 F4 03 04 00 1B 6D B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 0F 00 00 5F [09:17:03]Write i2c OK [09:17:03]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 5F 40 00 90 00 13 [09:17:04]RAPDU: 90 00 [09:17:04]wFMCommunicate OK [09:17:04]wFMCommunicate request_size=10 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 0D 02 02 05 E7 C0 FB 29 92 [09:17:04]Write to MH i2c: E2 0D 00 60 40 80 0D 02 02 05 00 E7 C0 FB 29 92 00 00 81 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 03 00 60 40 00 90 00 14 [09:17:04]RAPDU: 90 00 [09:17:04]wFMCommunicate OK [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 0D 03 02 [09:17:04]Write to MH i2c: E2 08 00 61 40 80 0D 03 02 00 00 00 00 1C [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 0B 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 0B 00 61 40 00 99 E6 FB A0 1C DB 07 6A 90 00 9F [09:17:04]RAPDU: 99 E6 FB A0 1C DB 07 6A 90 00 [09:17:04]wFMCommunicate OK [09:17:04]SAM_PROTO_SignData done [09:17:04]FM_MakeSignedData done [09:17:04]CreateOFDProtocolMessage [09:17:04]wFMCommunicate request_size=4 [09:17:04]MH_SAM_APDU [09:17:04]CAPDU: 80 11 00 00 [09:17:04]Write to MH i2c: E2 08 00 62 40 80 11 00 00 00 00 00 00 1C [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:04]Read from MH i2c: E2 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 17 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: E2 17 00 62 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 69 [09:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:17:04]wFMCommunicate OK [09:17:04]CreateOFDProtocolMessage done [09:17:04]OFDSenderStorePacket 49029 [09:17:04]StoreOFDPacket docnum=49029 [09:17: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 85 EA 07 01 1C BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 2D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 0C 00 00 00 F4 03 04 00 1B 6D B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 0F E7 C0 FB 29 92 99 E6 FB A0 1C DB 07 6A [09:17:04]CheckFolder [09:17:04]dirname=/storage/ofd_packets [09:17:04]CheckFolder done [09:17:04]ProducePacketName [09:17:04]name=ofd_packets/00049029 [09:17:04]NVStorageSaveData ofd_packets/00049029 [09:17:04]File name is /storage/ofd_packets/00049029 [09:17:04]Write 301 bytes [09:17:04]NVStorageSaveData done [09:17:04]OFDSenderStorePacket done [09:17:04]KKMCreateOFDPacket done [09:17:04]NVStorageSaveData kkm_last_timestamp [09:17:04]File name is /storage/kkm_last_timestamp [09:17:04]Write 4 bytes [09:17:04]NVStorageSaveData done [09:17:04]ExternCall_PrintAddStr [09:17:04]wPrintStart [09:17:04]Write to MH i2c: 01 00 00 63 40 A3 [09:17:04]Write i2c OK [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 07 00 [09:17:04]MH_I2C_Read... [09:17:04]Read from MH i2c: 01 07 00 63 40 00 00 00 00 00 FF 0F B8 [09:17:04]RasterBufferAndPrint [09:17:04]line Счет N : (1)216128 [09:17:04]line ИÐÐ: 02508201610067 [09:17:04]line Контрольно-КаÑÑовый Чек [09:17:04]line ПРОДÐЖР[09:17:04]line ТРК (МРК, ГÐК) : 12 [09:17:04]line Товар: 2710124130 [09:17:04]line Ðи-92-К-5 [09:17:04]line 11.610 * 60.30 [09:17:04]line = 700.08 [09:17:04]line ÐДС 12% ÐСП 1% [09:17:04]line > о реализуемом товаре [09:17:04]line ОКРУГЛЕÐИЕ: -0.08 [09:17:04]line ИТОГО: 700.00 [09:17:04]line ВнеÑено: 700.00 [09:17:04]line СДÐЧÐ: 0.00 [09:17:04]line ÐСП 1% : 6.19 [09:17:04]line ÐДС 12% : 74.34 [09:17:04]line Ðаличными: 700.00 [09:17:04]line Безнал.: 0.00 [09:17:04]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:17:04]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:17:04]line СÐО: Общий режим [09:17:04]line Чек 12 29.01.2024 09:17 [09:17:04]line Смена: 245 ФФД: 1.0 [09:17:04]line ЗÐМ: 0300000040 [09:17:04]line РÐМ: 0000000000092723 [09:17:04]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:17:04]line ФМ: 0000000000875060 [09:17:04]line ФД: 49029 [09:17:04]line ФПД: 17488049547666 [09:17:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T091715&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49029&fm=17488049547666&tin=02508201610067®Number=0000000000092723&sum=70000 [09:17:04]OFD Sender: Processing packet 49029 [packets to send 12, broken 11] [09:17:04]ProducePacketName [09:17:04]name=ofd_packets/00049029 [09:17:04]OFD Sender: To server: ‡•öpG, [09:17:04]CommunicateWithHost lk.salyk.kg:30040 [09:17:04]ConnectInit lk.salyk.kg [09:17:04]written 0, free lines is 4095 [09:17:04]Connected sock=10 [09:17: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 85 EA 07 01 1C BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5A 2D 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 78 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 0C 00 00 00 F4 03 04 00 1B 6D B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 0F E7 C0 FB 29 92 99 E6 FB A0 1C DB 07 6A [09:17: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 16 0E 47 00 2D 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 85 BF 00 00 F4 03 04 00 14 19 B7 65 B6 04 01 00 00 D4 A6 43 A8 85 41 49 A5 [09:17:04]CommunicateWithHost err = 0 [09:17:04]CheckOFDResponse [09:17:04]1017 (14) - 77093643461234 [09:17:04]1041 (16) - 0000000000875060 [09:17:04]1040 (4) - 49029 [09:17:04]1012 (4) - 29.01.2024 03:18 [09:17:04]1206 (1) - 0 [09:17:04]OFD Sender: Remove packet 49029 [09:17:04]ProducePacketName [09:17:04]name=ofd_packets/00049029 [09:17:04]NVStorageDeleteData [09:17:05]Write to MH i2c: 01 00 00 8E 40 CE [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 07 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: 01 07 00 8E 40 00 00 00 00 00 ED 0C CE [09:17:05]RasterBufferAndPrint [09:17:05]line [09:17:05]line [09:17:05]line [09:17:05]line [09:17:05]line [09:17:05]written 0, free lines is 3315 [09:17:05]MH_Cut [09:17:05]Write to MH i2c: D1 01 00 95 40 01 A7 [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: D1 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: D1 01 00 [09:17:05]MH_I2C_Read... [09:17:05]Read from MH i2c: D1 01 00 95 40 00 A6 [09:17:05]Write to MH i2c: 01 00 00 96 40 D6 [09:17:05]Write i2c OK [09:17:05]MH_I2C_Read... [09:17:05]OFD Sender: No OFD packet to send [09:17:05]*** Cut start [09:17:05]*** Partial cut [09:17:05]*** CUTSNS_PIN = 1 [09:17:05]*** CUTSNS_PIN = 0 [09:17:05]*** Brake cut motor [09:17:06]Read from MH i2c: 01 [09:17:06]MH_I2C_Read... [09:17:06]*** Stop cut motor [09:17:06]*** Cut end [09:17:06]Read from MH i2c: 01 07 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: 01 07 00 96 40 00 00 00 00 00 FF 0F EB [09:17:06]process_action close_receipt done [09:17:06]requested_data is exist [09:17:06]produce_requested_data [09:17:06]requested_item fm.sn is exist - process it [09:17:06]wFMCommunicate request_size=4 [09:17:06]MH_SAM_APDU [09:17:06]CAPDU: 80 11 00 00 [09:17:06]Write to MH i2c: E2 08 00 97 40 80 11 00 00 00 00 00 00 51 [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 17 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 17 00 97 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9E [09:17:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:17:06]wFMCommunicate OK [09:17:06]requested_item fd.num is exist - process it [09:17:06]SAM_PROTO_GetFieldsCounters [09:17:06]wFMCommunicate request_size=4 [09:17:06]MH_SAM_APDU [09:17:06]CAPDU: 80 13 00 00 [09:17:06]Write to MH i2c: E2 08 00 98 40 80 13 00 00 00 00 00 00 54 [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 62 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 62 00 98 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 CA [09:17: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 85 BF 00 00 0E 04 04 00 F5 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 [09:17:06]wFMCommunicate OK [09:17:06]SAM_PROTO_GetFieldsCounters done [09:17:06]requested_item shift.num is exist - process it [09:17:06]requested_item shift.opened is exist - process it [09:17:06]req_shift_opened [09:17:06]FM_GetShiftState [09:17:06]SAM_PROTO_GetShiftState [09:17:06]wFMCommunicate request_size=4 [09:17:06]MH_SAM_APDU [09:17:06]CAPDU: 80 13 01 00 [09:17:06]Write to MH i2c: E2 08 00 99 40 80 13 01 00 00 00 00 00 56 [09:17:06]Write i2c OK [09:17:06]MH_I2C_Read... [09:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:06]Read from MH i2c: E2 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 0E 00 [09:17:06]MH_I2C_Read... [09:17:06]Read from MH i2c: E2 0E 00 99 40 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 C8 [09:17:06]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:17:06]wFMCommunicate OK [09:17:06]SAM_PROTO_GetShiftState done [09:17:06]FM_GetShiftState done [09:17:06]req_shift_opened done [09:17:06]requested_item shift.open_date is exist - process it [09:17:06]req_shift_open_date [09:17:06]req_shift_open_date done [09:17:06]produce_requested_data done [09:17:06]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49029,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:17:06]process_action_free close_receipt [09:17:06]json_value_free [09:17:06]json_value_free done [09:17:06]process_json_proto returns [09:17:06]Send response to host [09:17:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49029,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:17:06]free response buf [09:17:06]execute_script done [09:17:06]execute_script returns [09:17:06]free content buf [09:17:06]Sock 7.Close socket [09:17:06]Sock 7.Thread stoped [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:35]int [09:17:35]Write to MH i2c: 01 00 00 9A 40 DA [09:17:35]*** FLAG_PRN_KEY set [09:17:35]Write i2c OK [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: 01 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: 01 07 00 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: 01 07 00 9A 40 00 08 00 00 00 FF 0F F7 [09:17:35]state=0 [09:17:35]Key pressed [09:17:35]Feed [09:17:35]Write to MH i2c: D8 00 00 9B 40 B2 [09:17:35]Write i2c OK [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: D8 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: D8 01 00 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: D8 01 00 9B 40 00 B3 [09:17:35]int [09:17:35]Write to MH i2c: 01 00 00 9C 40 DC [09:17:35]Write i2c OK [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: 01 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: 01 07 00 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: 01 07 00 9C 40 00 48 00 00 00 3C 00 67 [09:17:35]state=2 [09:17:35]Key pressed [09:17:36]int [09:17:36]Write to MH i2c: 01 00 00 9D 40 DD [09:17:36]*** FLAG_PRN_KEY reset [09:17:36]Write i2c OK [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: 01 [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: 01 07 00 [09:17:36]MH_I2C_Read... [09:17:36]Read from MH i2c: 01 07 00 9D 40 00 00 00 00 00 FF 0F F2 [09:17:36]state=2 [09:17:36]Stop feed [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:19]accept exits with 9 [09:23:19]New connection [09:23:19]New thread 3066813796 created [09:23:19]Thread 3066670436 joined [09:23:19]Waiting for new connection... [09:23:19] Sock 9.Parse request [09:23:19]Sock 9.Check first char [09:23:19]Sock 9.First char is OK [09:23:19]request: POST /json_proto HTTP/1.0 [09:23:19]Method: POST [09:23:19]URL: /json_proto [09:23:19]Method is POST - this is cgi request [09:23:19]url: /json_proto [09:23:19]query_string will be loaded in cgi processing [09:23:19]execute_cgi json_proto POST (null) [09:23:19]execute_cgi path=json_proto method=POST [09:23:19]POST find Content-Length [09:23:19]Host: 172.17.56.67:8080 [09:23:19]Content-Length: 675 [09:23:19]Content-Type: application/json [09:23:19] [09:23:19]POST finish read [09:23:19]Found Content-Length = 675 [09:23:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216129", "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" : 11.450, "sum" : 800.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:19]execute_script... [09:23: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)216129", "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" : 11.450, "sum" : 800.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:19]POST & json_proto [09:23:19]process_json_proto [09:23:19]json parsed OK: [09:23:19]protocol is kg_v1.0 [09:23:19]action value=close_receipt [09:23:19]process_action close_receipt [09:23:19]cmd_close_receipt [09:23:19]MH_GetDate [09:23:19]Write to MH i2c: F0 00 00 9E 40 CD [09:23:19]Write i2c OK [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: F0 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: F0 09 00 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: F0 09 00 9E 40 00 94 6E B7 65 26 5D 9E 65 7A [09:23:19]GetLastDocTimeStamp 1706519835 [09:23:19]current date 1706520212 [09:23:19]FM_GetShiftState [09:23:19]SAM_PROTO_GetShiftState [09:23:19]wFMCommunicate request_size=4 [09:23:19]MH_SAM_APDU [09:23:19]CAPDU: 80 13 01 00 [09:23:19]Write to MH i2c: E2 08 00 9F 40 80 13 01 00 00 00 00 00 5C [09:23:19]Write i2c OK [09:23:19]MH_I2C_Read... [09:23:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:19]Read from MH i2c: E2 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 0E 00 [09:23:19]MH_I2C_Read... [09:23:19]Read from MH i2c: E2 0E 00 9F 40 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 CE [09:23:19]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:23:19]wFMCommunicate OK [09:23:19]SAM_PROTO_GetShiftState done [09:23:19]FM_GetShiftState done [09:23:19]opened in 1706486624 [09:23:19]opened+sec_in_day 1706573024 [09:23:19]quantity*price = 80035 [09:23:19]sum+1 = 80037 [09:23:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.36 ИТОГО: 800.00 ВнеÑено: 800.00 СДÐЧÐ: 0.00 ÐСП 1% : 7.08 ÐДС 12% : 84.99 Ðаличными: 800.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 13 29.01.2024 09:23 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49030 ФПД: 118010067923936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T092332&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49030&fm=118010067923936&tin=02508201610067®Number=0000000000092723&sum=80000 [09:23:20]StoreToDocumentArchive [09:23:20]shift 245 fd 49030 [09:23:20]save to /storage/0245/doc_00049030 [09:23:20]save last doc name /storage/0245/doc_00049030 to /storage/kkm_last_doc_name [09:23:20]save OK [09:23:20]Clear old archive folders... [09:23:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:23:20]tlvbuf is 01210A40 [09:23:20]SAM_PROTO_ClearQueue [09:23:20]wFMCommunicate request_size=4 [09:23:20]MH_SAM_APDU [09:23:20]CAPDU: 80 09 00 00 [09:23:20]Write to MH i2c: E2 08 00 AC 40 80 09 00 00 00 00 00 00 5E [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:20]Read from MH i2c: E2 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 03 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 03 00 AC 40 00 90 00 60 [09:23:20]RAPDU: 90 00 [09:23:20]wFMCommunicate OK [09:23:20]SAM_PROTO_ClearQueue done [09:23:20]KKMCreateOFDPacket [09:23:20]OFDProtocolAddRootSTLVToBuf [09:23:20]FM_MakeSignedData [09:23:20]FM_MakeSignedData [09:23:20]SAM_PROTO_SignData [09:23:20]wFMCommunicate request_size=4 [09:23:20]MH_SAM_APDU [09:23:20]CAPDU: 80 0D 01 02 [09:23:20]Write to MH i2c: E2 08 00 AD 40 80 0D 01 02 00 00 00 00 66 [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:20]Read from MH i2c: E2 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 03 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 03 00 AD 40 00 90 00 61 [09:23:20]RAPDU: 90 00 [09:23:20]wFMCommunicate OK [09:23:20]wFMCommunicate request_size=255 [09:23:20]MH_SAM_APDU [09:23:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BA 2C 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 A4 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 94 6E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 6B 54 5C 2D [09:23:20]Write to MH i2c: E2 02 01 AE 40 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 BA 2C 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 A4 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 94 6E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 6B 54 5C 2D 00 00 20 [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]OFD Sender: No OFD packet to send [09:23:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:20]Read from MH i2c: E2 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 03 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 03 00 AE 40 00 90 00 62 [09:23:20]RAPDU: 90 00 [09:23:20]wFMCommunicate OK [09:23:20]wFMCommunicate request_size=7 [09:23:20]MH_SAM_APDU [09:23:20]CAPDU: 80 0D 02 02 02 B3 E0 [09:23:20]Write to MH i2c: E2 0A 00 AF 40 80 0D 02 02 02 00 B3 E0 00 00 00 [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:20]Read from MH i2c: E2 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 03 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 03 00 AF 40 00 90 00 63 [09:23:20]RAPDU: 90 00 [09:23:20]wFMCommunicate OK [09:23:20]wFMCommunicate request_size=4 [09:23:20]MH_SAM_APDU [09:23:20]CAPDU: 80 0D 03 02 [09:23:20]Write to MH i2c: E2 08 00 B0 40 80 0D 03 02 00 00 00 00 6B [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:20]Read from MH i2c: E2 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 0B 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 0B 00 B0 40 00 15 D6 2A 15 65 5B E9 92 90 00 D1 [09:23:20]RAPDU: 15 D6 2A 15 65 5B E9 92 90 00 [09:23:20]wFMCommunicate OK [09:23:20]SAM_PROTO_SignData done [09:23:20]FM_MakeSignedData done [09:23:20]CreateOFDProtocolMessage [09:23:20]wFMCommunicate request_size=4 [09:23:20]MH_SAM_APDU [09:23:20]CAPDU: 80 11 00 00 [09:23:20]Write to MH i2c: E2 08 00 B1 40 80 11 00 00 00 00 00 00 6B [09:23:20]Write i2c OK [09:23:20]MH_I2C_Read... [09:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:20]Read from MH i2c: E2 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 17 00 [09:23:20]MH_I2C_Read... [09:23:20]Read from MH i2c: E2 17 00 B1 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B8 [09:23:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:23:21]wFMCommunicate OK [09:23:21]CreateOFDProtocolMessage done [09:23:21]OFDSenderStorePacket 49030 [09:23:21]StoreOFDPacket docnum=49030 [09:23: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 18 4E 04 01 B2 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 BA 2C 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 A4 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 94 6E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 6B 54 5C 2D B3 E0 15 D6 2A 15 65 5B E9 92 [09:23:21]CheckFolder [09:23:21]dirname=/storage/ofd_packets [09:23:21]CheckFolder done [09:23:21]ProducePacketName [09:23:21]name=ofd_packets/00049030 [09:23:21]NVStorageSaveData ofd_packets/00049030 [09:23:21]File name is /storage/ofd_packets/00049030 [09:23:21]Write 298 bytes [09:23:21]NVStorageSaveData done [09:23:21]OFDSenderStorePacket done [09:23:21]KKMCreateOFDPacket done [09:23:21]NVStorageSaveData kkm_last_timestamp [09:23:21]File name is /storage/kkm_last_timestamp [09:23:21]Write 4 bytes [09:23:21]NVStorageSaveData done [09:23:21]ExternCall_PrintAddStr [09:23:21]wPrintStart [09:23:21]Write to MH i2c: 01 00 00 B2 40 F2 [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: 01 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: 01 07 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: 01 07 00 B2 40 00 00 00 00 00 FF 0F 07 [09:23:21]RasterBufferAndPrint [09:23:21]line Счет N : (1)216129 [09:23:21]line ИÐÐ: 02508201610067 [09:23:21]line Контрольно-КаÑÑовый Чек [09:23:21]line ПРОДÐЖР[09:23:21]line ТРК (МРК, ГÐК) : 11 [09:23:21]line Товар: 2710194210 [09:23:21]line ДТ-К-5 [09:23:21]line 11.450 * 69.90 [09:23:21]line = 800.36 [09:23:21]line ÐДС 12% ÐСП 1% [09:23:21]line > о реализуемом товаре [09:23:21]line ОКРУГЛЕÐИЕ: -0.36 [09:23:21]line ИТОГО: 800.00 [09:23:21]line ВнеÑено: 800.00 [09:23:21]line СДÐЧÐ: 0.00 [09:23:21]line ÐСП 1% : 7.08 [09:23:21]line ÐДС 12% : 84.99 [09:23:21]line Ðаличными: 800.00 [09:23:21]line Безнал.: 0.00 [09:23:21]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:23:21]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:23:21]line СÐО: Общий режим [09:23:21]line Чек 13 29.01.2024 09:23 [09:23:21]line Смена: 245 ФФД: 1.0 [09:23:21]line ЗÐМ: 0300000040 [09:23:21]line РÐМ: 0000000000092723 [09:23:21]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:23:21]line ФМ: 0000000000875060 [09:23:21]line ФД: 49030 [09:23:21]line ФПД: 118010067923936 [09:23:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T092332&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49030&fm=118010067923936&tin=02508201610067®Number=0000000000092723&sum=80000 [09:23:21]OFD Sender: Processing packet 49030 [packets to send 12, broken 11] [09:23:21]ProducePacketName [09:23:21]name=ofd_packets/00049030 [09:23:21]OFD Sender: To server: ‡•öpG, [09:23:21]CommunicateWithHost lk.salyk.kg:30040 [09:23:21]ConnectInit lk.salyk.kg [09:23:21]written 0, free lines is 4095 [09:23:21]Connected sock=10 [09:23: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 18 4E 04 01 B2 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 BA 2C 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 A4 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 94 6E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 6B 54 5C 2D B3 E0 15 D6 2A 15 65 5B E9 92 [09:23: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 F6 CC 47 00 CB 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 86 BF 00 00 F4 03 04 00 8D 1A B7 65 B6 04 01 00 00 DE 54 A4 03 0A AA CE D2 [09:23:21]CommunicateWithHost err = 0 [09:23:21]CheckOFDResponse [09:23:21]1017 (14) - 77093643461234 [09:23:21]1041 (16) - 0000000000875060 [09:23:21]1040 (4) - 49030 [09:23:21]1012 (4) - 29.01.2024 03:25 [09:23:21]1206 (1) - 0 [09:23:21]OFD Sender: Remove packet 49030 [09:23:21]ProducePacketName [09:23:21]name=ofd_packets/00049030 [09:23:21]NVStorageDeleteData [09:23:21]Write to MH i2c: 01 00 00 DD 40 1D [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: 01 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: 01 07 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: 01 07 00 DD 40 00 00 00 00 00 10 0D 41 [09:23:21]RasterBufferAndPrint [09:23:21]line [09:23:21]line [09:23:21]line [09:23:21]line [09:23:21]line [09:23:21]written 0, free lines is 3350 [09:23:21]MH_Cut [09:23:21]Write to MH i2c: D1 01 00 E4 40 01 F6 [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: D1 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: D1 01 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: D1 01 00 E4 40 00 F5 [09:23:21]Write to MH i2c: 01 00 00 E5 40 25 [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:22]OFD Sender: No OFD packet to send [09:23:22]*** Cut start [09:23:22]*** Partial cut [09:23:22]*** CUTSNS_PIN = 1 [09:23:22]*** CUTSNS_PIN = 0 [09:23:22]*** Brake cut motor [09:23:23]Read from MH i2c: 01 [09:23:23]MH_I2C_Read... [09:23:23]*** Stop cut motor [09:23:23]*** Cut end [09:23:23]Read from MH i2c: 01 07 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: 01 07 00 E5 40 00 00 00 00 00 FF 0F 3A [09:23:23]process_action close_receipt done [09:23:23]requested_data is exist [09:23:23]produce_requested_data [09:23:23]requested_item fm.sn is exist - process it [09:23:23]wFMCommunicate request_size=4 [09:23:23]MH_SAM_APDU [09:23:23]CAPDU: 80 11 00 00 [09:23:23]Write to MH i2c: E2 08 00 E6 40 80 11 00 00 00 00 00 00 A0 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:23]Read from MH i2c: E2 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 17 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 17 00 E6 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 ED [09:23:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:23:23]wFMCommunicate OK [09:23:23]requested_item fd.num is exist - process it [09:23:23]SAM_PROTO_GetFieldsCounters [09:23:23]wFMCommunicate request_size=4 [09:23:23]MH_SAM_APDU [09:23:23]CAPDU: 80 13 00 00 [09:23:23]Write to MH i2c: E2 08 00 E7 40 80 13 00 00 00 00 00 00 A3 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:23]Read from MH i2c: E2 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 62 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 62 00 E7 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 1D [09:23: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 86 BF 00 00 0E 04 04 00 F5 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:23:23]wFMCommunicate OK [09:23:23]SAM_PROTO_GetFieldsCounters done [09:23:23]requested_item shift.num is exist - process it [09:23:23]requested_item shift.opened is exist - process it [09:23:23]req_shift_opened [09:23:23]FM_GetShiftState [09:23:23]SAM_PROTO_GetShiftState [09:23:23]wFMCommunicate request_size=4 [09:23:23]MH_SAM_APDU [09:23:23]CAPDU: 80 13 01 00 [09:23:23]Write to MH i2c: E2 08 00 E8 40 80 13 01 00 00 00 00 00 A5 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:23]Read from MH i2c: E2 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 0E 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 0E 00 E8 40 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 17 [09:23:23]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:23:23]wFMCommunicate OK [09:23:23]SAM_PROTO_GetShiftState done [09:23:23]FM_GetShiftState done [09:23:23]req_shift_opened done [09:23:23]requested_item shift.open_date is exist - process it [09:23:23]req_shift_open_date [09:23:23]req_shift_open_date done [09:23:23]produce_requested_data done [09:23:23]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49030,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:23:23]process_action_free close_receipt [09:23:23]json_value_free [09:23:23]json_value_free done [09:23:23]process_json_proto returns [09:23:23]Send response to host [09:23:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49030,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:23:23]free response buf [09:23:23]execute_script done [09:23:23]execute_script returns [09:23:23]free content buf [09:23:23]Sock 9.Close socket [09:23:23]Sock 9.Thread stoped [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:51]accept exits with 7 [09:28:51]New connection [09:28:51]New thread 3066670436 created [09:28:51]Thread 3066813796 joined [09:28:51]Waiting for new connection... [09:28:51] Sock 7.Parse request [09:28:51]Sock 7.Check first char [09:28:51]Sock 7.First char is OK [09:28:51]request: POST /json_proto HTTP/1.0 [09:28:51]Method: POST [09:28:51]URL: /json_proto [09:28:51]Method is POST - this is cgi request [09:28:51]url: /json_proto [09:28:51]query_string will be loaded in cgi processing [09:28:51]execute_cgi json_proto POST (null) [09:28:51]execute_cgi path=json_proto method=POST [09:28:51]POST find Content-Length [09:28:51]Host: 172.17.56.67:8080 [09:28:51]Content-Length: 677 [09:28:51]Content-Type: application/json [09:28:51] [09:28:51]POST finish read [09:28:51]Found Content-Length = 677 [09:28:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216130", "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:28:51]execute_script... [09:28: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)216130", "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:28:51]POST & json_proto [09:28:51]process_json_proto [09:28:51]json parsed OK: [09:28:51]protocol is kg_v1.0 [09:28:51]action value=close_receipt [09:28:51]process_action close_receipt [09:28:51]cmd_close_receipt [09:28:51]MH_GetDate [09:28:51]Write to MH i2c: F0 00 00 E9 40 18 [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: F0 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: F0 09 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: F0 09 00 E9 40 00 E0 6F B7 65 26 5D 9E 65 12 [09:28:51]GetLastDocTimeStamp 1706520212 [09:28:51]current date 1706520544 [09:28:51]FM_GetShiftState [09:28:51]SAM_PROTO_GetShiftState [09:28:51]wFMCommunicate request_size=4 [09:28:51]MH_SAM_APDU [09:28:51]CAPDU: 80 13 01 00 [09:28:51]Write to MH i2c: E2 08 00 EA 40 80 13 01 00 00 00 00 00 A7 [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:51]Read from MH i2c: E2 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 0E 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 0E 00 EA 40 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 19 [09:28:51]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:28:51]wFMCommunicate OK [09:28:51]SAM_PROTO_GetShiftState done [09:28:51]FM_GetShiftState done [09:28:51]opened in 1706486624 [09:28:51]opened+sec_in_day 1706573024 [09:28:51]quantity*price = 50049 [09:28:51]sum+1 = 50050 [09:28:51]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 СÐО: Общий режим Чек 14 29.01.2024 09:29 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49031 ФПД: 188337325162839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T092904&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49031&fm=188337325162839&tin=02508201610067®Number=0000000000092723&sum=50000 [09:28:52]StoreToDocumentArchive [09:28:52]shift 245 fd 49031 [09:28:52]save to /storage/0245/doc_00049031 [09:28:52]save last doc name /storage/0245/doc_00049031 to /storage/kkm_last_doc_name [09:28:52]save OK [09:28:52]Clear old archive folders... [09:28:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:52]tlvbuf is 01210B40 [09:28:52]SAM_PROTO_ClearQueue [09:28:52]wFMCommunicate request_size=4 [09:28:52]MH_SAM_APDU [09:28:52]CAPDU: 80 09 00 00 [09:28:52]Write to MH i2c: E2 08 00 F7 40 80 09 00 00 00 00 00 00 A9 [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:52]Read from MH i2c: E2 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 03 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 03 00 F7 40 00 90 00 AB [09:28:52]RAPDU: 90 00 [09:28:52]wFMCommunicate OK [09:28:52]SAM_PROTO_ClearQueue done [09:28:52]KKMCreateOFDPacket [09:28:52]OFDProtocolAddRootSTLVToBuf [09:28:52]FM_MakeSignedData [09:28:52]FM_MakeSignedData [09:28:52]SAM_PROTO_SignData [09:28:52]wFMCommunicate request_size=4 [09:28:52]MH_SAM_APDU [09:28:52]CAPDU: 80 0D 01 02 [09:28:52]Write to MH i2c: E2 08 00 F8 40 80 0D 01 02 00 00 00 00 B1 [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:52]Read from MH i2c: E2 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 03 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 03 00 F8 40 00 90 00 AC [09:28:52]RAPDU: 90 00 [09:28:52]wFMCommunicate OK [09:28:52]wFMCommunicate request_size=255 [09:28:52]MH_SAM_APDU [09:28: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 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 0E 00 00 00 F4 03 04 00 E0 6F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 AB [09:28:52]Write to MH i2c: E2 02 01 F9 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0E 00 00 00 F4 03 04 00 E0 6F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 AB 00 00 40 [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:53]Read from MH i2c: E2 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 03 00 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 03 00 F9 40 00 90 00 AD [09:28:53]RAPDU: 90 00 [09:28:53]wFMCommunicate OK [09:28:53]wFMCommunicate request_size=10 [09:28:53]MH_SAM_APDU [09:28:53]CAPDU: 80 0D 02 02 05 4A B3 5D 41 57 [09:28:53]Write to MH i2c: E2 0D 00 FA 40 80 0D 02 02 05 00 4A B3 5D 41 57 00 00 B0 [09:28:53]Write i2c OK [09:28:53]MH_I2C_Read... [09:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:53]Read from MH i2c: E2 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 03 00 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 03 00 FA 40 00 90 00 AE [09:28:53]RAPDU: 90 00 [09:28:53]wFMCommunicate OK [09:28:53]wFMCommunicate request_size=4 [09:28:53]MH_SAM_APDU [09:28:53]CAPDU: 80 0D 03 02 [09:28:53]Write to MH i2c: E2 08 00 FB 40 80 0D 03 02 00 00 00 00 B6 [09:28:53]Write i2c OK [09:28:53]MH_I2C_Read... [09:28:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:53]Read from MH i2c: E2 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 0B 00 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 0B 00 FB 40 00 E7 59 59 D7 22 95 FC F1 90 00 CB [09:28:53]RAPDU: E7 59 59 D7 22 95 FC F1 90 00 [09:28:53]wFMCommunicate OK [09:28:53]SAM_PROTO_SignData done [09:28:53]FM_MakeSignedData done [09:28:53]CreateOFDProtocolMessage [09:28:53]wFMCommunicate request_size=4 [09:28:53]MH_SAM_APDU [09:28:53]CAPDU: 80 11 00 00 [09:28:53]Write to MH i2c: E2 08 00 FC 40 80 11 00 00 00 00 00 00 B6 [09:28:53]Write i2c OK [09:28:53]MH_I2C_Read... [09:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:53]Read from MH i2c: E2 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 17 00 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: E2 17 00 FC 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 03 [09:28:53]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:53]wFMCommunicate OK [09:28:53]CreateOFDProtocolMessage done [09:28:53]OFDSenderStorePacket 49031 [09:28:53]StoreOFDPacket docnum=49031 [09:28: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 42 06 07 01 41 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0E 00 00 00 F4 03 04 00 E0 6F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 AB 4A B3 5D 41 57 E7 59 59 D7 22 95 FC F1 [09:28:53]CheckFolder [09:28:53]dirname=/storage/ofd_packets [09:28:53]CheckFolder done [09:28:53]ProducePacketName [09:28:53]name=ofd_packets/00049031 [09:28:53]NVStorageSaveData ofd_packets/00049031 [09:28:53]File name is /storage/ofd_packets/00049031 [09:28:53]Write 301 bytes [09:28:53]NVStorageSaveData done [09:28:53]OFDSenderStorePacket done [09:28:53]KKMCreateOFDPacket done [09:28:53]NVStorageSaveData kkm_last_timestamp [09:28:53]File name is /storage/kkm_last_timestamp [09:28:53]Write 4 bytes [09:28:53]NVStorageSaveData done [09:28:53]ExternCall_PrintAddStr [09:28:53]wPrintStart [09:28:53]Write to MH i2c: 01 00 00 FD 40 3D [09:28:53]Write i2c OK [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: 01 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: 01 07 00 [09:28:53]MH_I2C_Read... [09:28:53]Read from MH i2c: 01 07 00 FD 40 00 00 00 00 00 FF 0F 52 [09:28:53]RasterBufferAndPrint [09:28:53]line Счет N : (1)216130 [09:28:53]line ИÐÐ: 02508201610067 [09:28:53]line Контрольно-КаÑÑовый Чек [09:28:53]line ПРОДÐЖР[09:28:53]line ТРК (МРК, ГÐК) : 22 [09:28:53]line Товар: 2710124130 [09:28:53]line Ðи-92-К-5 [09:28:53]line 8.300 * 60.30 [09:28:53]line = 500.49 [09:28:53]line ÐДС 12% ÐСП 1% [09:28:53]line > о реализуемом товаре [09:28:53]line ОКРУГЛЕÐИЕ: -0.49 [09:28:53]line ИТОГО: 500.00 [09:28:53]line ВнеÑено: 500.00 [09:28:53]line СДÐЧÐ: 0.00 [09:28:53]line ÐСП 1% : 4.43 [09:28:53]line ÐДС 12% : 53.15 [09:28:53]line Ðаличными: 500.00 [09:28:53]line Безнал.: 0.00 [09:28:53]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:28:53]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:28:53]line СÐО: Общий режим [09:28:53]line Чек 14 29.01.2024 09:29 [09:28:53]line Смена: 245 ФФД: 1.0 [09:28:53]line ЗÐМ: 0300000040 [09:28:53]line РÐМ: 0000000000092723 [09:28:53]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:28:53]line ФМ: 0000000000875060 [09:28:53]line ФД: 49031 [09:28:53]line ФПД: 188337325162839 [09:28:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T092904&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49031&fm=188337325162839&tin=02508201610067®Number=0000000000092723&sum=50000 [09:28:53]OFD Sender: Processing packet 49031 [packets to send 12, broken 11] [09:28:53]ProducePacketName [09:28:53]name=ofd_packets/00049031 [09:28:53]OFD Sender: To server: ‡•öpG, [09:28:53]CommunicateWithHost lk.salyk.kg:30040 [09:28:53]ConnectInit lk.salyk.kg [09:28:53]written 0, free lines is 4095 [09:28:53]Connected sock=10 [09:28: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 42 06 07 01 41 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0E 00 00 00 F4 03 04 00 E0 6F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 AB 4A B3 5D 41 57 E7 59 59 D7 22 95 FC F1 [09:28: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 6A 3C 47 00 1E 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 87 BF 00 00 F4 03 04 00 D9 1B B7 65 B6 04 01 00 00 4D 98 1C 37 35 DC 7D F1 [09:28:54]CommunicateWithHost err = 0 [09:28:54]CheckOFDResponse [09:28:54]1017 (14) - 77093643461234 [09:28:54]1041 (16) - 0000000000875060 [09:28:54]1040 (4) - 49031 [09:28:54]1012 (4) - 29.01.2024 03:30 [09:28:54]1206 (1) - 0 [09:28:54]OFD Sender: Remove packet 49031 [09:28:54]ProducePacketName [09:28:54]name=ofd_packets/00049031 [09:28:54]NVStorageDeleteData [09:28:54]Write to MH i2c: 01 00 00 28 41 69 [09:28:54]Write i2c OK [09:28:54]MH_I2C_Read... [09:28:54]Read from MH i2c: 01 [09:28:54]MH_I2C_Read... [09:28:54]Read from MH i2c: 01 07 00 [09:28:54]MH_I2C_Read... [09:28:54]Read from MH i2c: 01 07 00 28 41 00 00 00 00 00 F0 0C 6C [09:28:54]RasterBufferAndPrint [09:28:54]line [09:28:54]line [09:28:54]line [09:28:54]line [09:28:54]line [09:28:54]written 0, free lines is 3318 [09:28:54]MH_Cut [09:28:54]Write to MH i2c: D1 01 00 2F 41 01 42 [09:28:54]Write i2c OK [09:28:54]MH_I2C_Read... [09:28:54]Read from MH i2c: D1 [09:28:54]MH_I2C_Read... [09:28:54]Read from MH i2c: D1 01 00 [09:28:54]MH_I2C_Read... [09:28:54]Read from MH i2c: D1 01 00 2F 41 00 41 [09:28:54]Write to MH i2c: 01 00 00 30 41 71 [09:28:54]Write i2c OK [09:28:54]MH_I2C_Read... [09:28:54]OFD Sender: No OFD packet to send [09:28:54]*** Cut start [09:28:54]*** Partial cut [09:28:54]*** CUTSNS_PIN = 1 [09:28:54]*** CUTSNS_PIN = 0 [09:28:55]*** Brake cut motor [09:28:55]Read from MH i2c: 01 [09:28:55]MH_I2C_Read... [09:28:55]*** Stop cut motor [09:28:55]*** Cut end [09:28:55]Read from MH i2c: 01 07 00 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: 01 07 00 30 41 00 00 00 00 00 FF 0F 86 [09:28:55]process_action close_receipt done [09:28:55]requested_data is exist [09:28:55]produce_requested_data [09:28:55]requested_item fm.sn is exist - process it [09:28:55]wFMCommunicate request_size=4 [09:28:55]MH_SAM_APDU [09:28:55]CAPDU: 80 11 00 00 [09:28:55]Write to MH i2c: E2 08 00 31 41 80 11 00 00 00 00 00 00 EC [09:28:55]Write i2c OK [09:28:55]MH_I2C_Read... [09:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:55]Read from MH i2c: E2 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 17 00 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 17 00 31 41 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:28:55]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:55]wFMCommunicate OK [09:28:55]requested_item fd.num is exist - process it [09:28:55]SAM_PROTO_GetFieldsCounters [09:28:55]wFMCommunicate request_size=4 [09:28:55]MH_SAM_APDU [09:28:55]CAPDU: 80 13 00 00 [09:28:55]Write to MH i2c: E2 08 00 32 41 80 13 00 00 00 00 00 00 EF [09:28:55]Write i2c OK [09:28:55]MH_I2C_Read... [09:28:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:55]Read from MH i2c: E2 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 62 00 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 62 00 32 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 6D [09:28: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 87 BF 00 00 0E 04 04 00 F5 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:28:55]wFMCommunicate OK [09:28:55]SAM_PROTO_GetFieldsCounters done [09:28:55]requested_item shift.num is exist - process it [09:28:55]requested_item shift.opened is exist - process it [09:28:55]req_shift_opened [09:28:55]FM_GetShiftState [09:28:55]SAM_PROTO_GetShiftState [09:28:55]wFMCommunicate request_size=4 [09:28:55]MH_SAM_APDU [09:28:55]CAPDU: 80 13 01 00 [09:28:55]Write to MH i2c: E2 08 00 33 41 80 13 01 00 00 00 00 00 F1 [09:28:55]Write i2c OK [09:28:55]MH_I2C_Read... [09:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:55]Read from MH i2c: E2 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 0E 00 [09:28:55]MH_I2C_Read... [09:28:55]Read from MH i2c: E2 0E 00 33 41 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 63 [09:28:55]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:28:55]wFMCommunicate OK [09:28:55]SAM_PROTO_GetShiftState done [09:28:55]FM_GetShiftState done [09:28:55]req_shift_opened done [09:28:55]requested_item shift.open_date is exist - process it [09:28:55]req_shift_open_date [09:28:55]req_shift_open_date done [09:28:55]produce_requested_data done [09:28:55]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49031,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:28:55]process_action_free close_receipt [09:28:55]json_value_free [09:28:55]json_value_free done [09:28:55]process_json_proto returns [09:28:55]Send response to host [09:28:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49031,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:28:55]free response buf [09:28:55]execute_script done [09:28:55]execute_script returns [09:28:55]free content buf [09:28:55]Sock 7.Close socket [09:28:55]Sock 7.Thread stoped [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:44]OFD Sender: No OFD packet to send [09:30:49]OFD Sender: No OFD packet to send [09:30:54]OFD Sender: No OFD packet to send [09:30:59]OFD Sender: No OFD packet to send [09:31:04]OFD Sender: No OFD packet to send [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:44]OFD Sender: No OFD packet to send [09:31:49]OFD Sender: No OFD packet to send [09:31:54]OFD Sender: No OFD packet to send [09:31:59]OFD Sender: No OFD packet to send [09:32:04]OFD Sender: No OFD packet to send [09:32:08]accept exits with 9 [09:32:08]New connection [09:32:08]New thread 3066813796 created [09:32:08]Thread 3066670436 joined [09:32:08]Waiting for new connection... [09:32:08] Sock 9.Parse request [09:32:08]Sock 9.Check first char [09:32:08]Sock 9.First char is OK [09:32:08]request: POST /json_proto HTTP/1.0 [09:32:08]Method: POST [09:32:08]URL: /json_proto [09:32:08]Method is POST - this is cgi request [09:32:08]url: /json_proto [09:32:08]query_string will be loaded in cgi processing [09:32:08]execute_cgi json_proto POST (null) [09:32:08]execute_cgi path=json_proto method=POST [09:32:08]POST find Content-Length [09:32:08]Host: 172.17.56.67:8080 [09:32:08]Content-Length: 679 [09:32:08]Content-Type: application/json [09:32:08] [09:32:08]POST finish read [09:32:08]Found Content-Length = 679 [09:32:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216131", "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" : 50.080, "sum" : 3500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:08]execute_script... [09:32:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216131", "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" : 50.080, "sum" : 3500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:08]POST & json_proto [09:32:08]process_json_proto [09:32:08]json parsed OK: [09:32:08]protocol is kg_v1.0 [09:32:08]action value=close_receipt [09:32:08]process_action close_receipt [09:32:08]cmd_close_receipt [09:32:08]MH_GetDate [09:32:08]Write to MH i2c: F0 00 00 34 41 64 [09:32:08]Write i2c OK [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: F0 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: F0 09 00 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: F0 09 00 34 41 00 A5 70 B7 65 26 5D 9E 65 24 [09:32:08]GetLastDocTimeStamp 1706520544 [09:32:08]current date 1706520741 [09:32:08]FM_GetShiftState [09:32:08]SAM_PROTO_GetShiftState [09:32:08]wFMCommunicate request_size=4 [09:32:08]MH_SAM_APDU [09:32:08]CAPDU: 80 13 01 00 [09:32:08]Write to MH i2c: E2 08 00 35 41 80 13 01 00 00 00 00 00 F3 [09:32:08]Write i2c OK [09:32:08]MH_I2C_Read... [09:32:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:08]Read from MH i2c: E2 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: E2 0E 00 [09:32:08]MH_I2C_Read... [09:32:08]Read from MH i2c: E2 0E 00 35 41 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 65 [09:32:08]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:32:08]wFMCommunicate OK [09:32:08]SAM_PROTO_GetShiftState done [09:32:08]FM_GetShiftState done [09:32:08]opened in 1706486624 [09:32:08]opened+sec_in_day 1706573024 [09:32:08]quantity*price = 350059 [09:32:08]sum+1 = 350060 [09:32:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.59 ИТОГО: 3500.00 ВнеÑено: 3500.00 СДÐЧÐ: 0.00 ÐСП 1% : 30.98 ÐДС 12% : 371.74 Ðаличными: 3500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 15 29.01.2024 09:32 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49032 ФПД: 56065048577878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T093221&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49032&fm=56065048577878&tin=02508201610067®Number=0000000000092723&sum=350000 [09:32:09]StoreToDocumentArchive [09:32:09]shift 245 fd 49032 [09:32:09]save to /storage/0245/doc_00049032 [09:32:09]save last doc name /storage/0245/doc_00049032 to /storage/kkm_last_doc_name [09:32:09]save OK [09:32:09]Clear old archive folders... [09:32:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:32:09]tlvbuf is 0139F7F0 [09:32:09]SAM_PROTO_ClearQueue [09:32:09]wFMCommunicate request_size=4 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 09 00 00 [09:32:09]Write to MH i2c: E2 08 00 42 41 80 09 00 00 00 00 00 00 F5 [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 42 41 00 90 00 F7 [09:32:09]RAPDU: 90 00 [09:32:09]wFMCommunicate OK [09:32:09]SAM_PROTO_ClearQueue done [09:32:09]KKMCreateOFDPacket [09:32:09]OFDProtocolAddRootSTLVToBuf [09:32:09]FM_MakeSignedData [09:32:09]FM_MakeSignedData [09:32:09]SAM_PROTO_SignData [09:32:09]wFMCommunicate request_size=4 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 0D 01 02 [09:32:09]Write to MH i2c: E2 08 00 43 41 80 0D 01 02 00 00 00 00 FD [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 43 41 00 90 00 F8 [09:32:09]RAPDU: 90 00 [09:32:09]wFMCommunicate OK [09:32:09]wFMCommunicate request_size=255 [09:32:09]MH_SAM_APDU [09:32: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 A0 C3 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 6B 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A5 70 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 32 FD A9 4E [09:32:09]Write to MH i2c: E2 02 01 44 41 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 C3 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 6B 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A5 70 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 32 FD A9 4E 00 00 8C [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]OFD Sender: No OFD packet to send [09:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 44 41 00 90 00 F9 [09:32:09]RAPDU: 90 00 [09:32:09]wFMCommunicate OK [09:32:09]wFMCommunicate request_size=7 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 0D 02 02 02 07 56 [09:32:09]Write to MH i2c: E2 0A 00 45 41 80 0D 02 02 02 00 07 56 00 00 61 [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 03 00 45 41 00 90 00 FA [09:32:09]RAPDU: 90 00 [09:32:09]wFMCommunicate OK [09:32:09]wFMCommunicate request_size=4 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 0D 03 02 [09:32:09]Write to MH i2c: E2 08 00 46 41 80 0D 03 02 00 00 00 00 02 [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 0B 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 0B 00 46 41 00 C4 E4 2E 8F 45 CB 50 B8 90 00 80 [09:32:09]RAPDU: C4 E4 2E 8F 45 CB 50 B8 90 00 [09:32:09]wFMCommunicate OK [09:32:09]SAM_PROTO_SignData done [09:32:09]FM_MakeSignedData done [09:32:09]CreateOFDProtocolMessage [09:32:09]wFMCommunicate request_size=4 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 11 00 00 [09:32:09]Write to MH i2c: E2 08 00 47 41 80 11 00 00 00 00 00 00 02 [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 17 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 17 00 47 41 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:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:32:09]wFMCommunicate OK [09:32:09]CreateOFDProtocolMessage done [09:32:09]OFDSenderStorePacket 49032 [09:32:09]StoreOFDPacket docnum=49032 [09:32: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 78 56 04 01 C4 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 C3 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 6B 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A5 70 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 32 FD A9 4E 07 56 C4 E4 2E 8F 45 CB 50 B8 [09:32:09]CheckFolder [09:32:09]dirname=/storage/ofd_packets [09:32:09]CheckFolder done [09:32:09]ProducePacketName [09:32:09]name=ofd_packets/00049032 [09:32:09]NVStorageSaveData ofd_packets/00049032 [09:32:09]File name is /storage/ofd_packets/00049032 [09:32:09]Write 298 bytes [09:32:09]NVStorageSaveData done [09:32:09]OFDSenderStorePacket done [09:32:09]KKMCreateOFDPacket done [09:32:09]NVStorageSaveData kkm_last_timestamp [09:32:09]File name is /storage/kkm_last_timestamp [09:32:09]Write 4 bytes [09:32:09]NVStorageSaveData done [09:32:09]ExternCall_PrintAddStr [09:32:09]wPrintStart [09:32:09]Write to MH i2c: 01 00 00 48 41 89 [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: 01 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: 01 07 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: 01 07 00 48 41 00 00 00 00 00 FF 0F 9E [09:32:09]RasterBufferAndPrint [09:32:09]line Счет N : (1)216131 [09:32:09]line ИÐÐ: 02508201610067 [09:32:09]line Контрольно-КаÑÑовый Чек [09:32:09]line ПРОДÐЖР[09:32:09]line ТРК (МРК, ГÐК) : 11 [09:32:09]line Товар: 2710194210 [09:32:09]line ДТ-К-5 [09:32:09]line 50.080 * 69.90 [09:32:09]line = 3500.59 [09:32:09]line ÐДС 12% ÐСП 1% [09:32:09]line > о реализуемом товаре [09:32:09]line ОКРУГЛЕÐИЕ: -0.59 [09:32:09]line ИТОГО: 3500.00 [09:32:09]line ВнеÑено: 3500.00 [09:32:09]line СДÐЧÐ: 0.00 [09:32:09]line ÐСП 1% : 30.98 [09:32:09]line ÐДС 12% : 371.74 [09:32:09]line Ðаличными: 3500.00 [09:32:09]line Безнал.: 0.00 [09:32:09]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:32:09]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:32:09]line СÐО: Общий режим [09:32:09]line Чек 15 29.01.2024 09:32 [09:32:09]line Смена: 245 ФФД: 1.0 [09:32:09]line ЗÐМ: 0300000040 [09:32:09]line РÐМ: 0000000000092723 [09:32:09]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:32:09]line ФМ: 0000000000875060 [09:32:09]line ФД: 49032 [09:32:09]line ФПД: 56065048577878 [09:32:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T093221&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49032&fm=56065048577878&tin=02508201610067®Number=0000000000092723&sum=350000 [09:32:10]OFD Sender: Processing packet 49032 [packets to send 12, broken 11] [09:32:10]ProducePacketName [09:32:10]name=ofd_packets/00049032 [09:32:10]OFD Sender: To server: ‡•öpG, [09:32:10]CommunicateWithHost lk.salyk.kg:30040 [09:32:10]ConnectInit lk.salyk.kg [09:32:10]written 0, free lines is 4095 [09:32:10]Connected sock=10 [09:32:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0C 01 00 00 78 56 04 01 C4 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 C3 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 6B 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 A5 70 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 32 FD A9 4E 07 56 C4 E4 2E 8F 45 CB 50 B8 [09:32: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 1E D1 47 00 2D 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 88 BF 00 00 F4 03 04 00 9E 1C B7 65 B6 04 01 00 00 CF 3C 01 31 B9 6E 86 50 [09:32:10]CommunicateWithHost err = 0 [09:32:10]CheckOFDResponse [09:32:10]1017 (14) - 77093643461234 [09:32:10]1041 (16) - 0000000000875060 [09:32:10]1040 (4) - 49032 [09:32:10]1012 (4) - 29.01.2024 03:33 [09:32:10]1206 (1) - 0 [09:32:10]OFD Sender: Remove packet 49032 [09:32:10]ProducePacketName [09:32:10]name=ofd_packets/00049032 [09:32:10]NVStorageDeleteData [09:32:10]Write to MH i2c: 01 00 00 73 41 B4 [09:32:10]Write i2c OK [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: 01 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: 01 07 00 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: 01 07 00 73 41 00 00 00 00 00 F3 0C BA [09:32:10]RasterBufferAndPrint [09:32:10]line [09:32:10]line [09:32:10]line [09:32:10]line [09:32:10]line [09:32:10]written 0, free lines is 3321 [09:32:10]MH_Cut [09:32:10]Write to MH i2c: D1 01 00 7A 41 01 8D [09:32:10]Write i2c OK [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: D1 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: D1 01 00 [09:32:10]MH_I2C_Read... [09:32:10]Read from MH i2c: D1 01 00 7A 41 00 8C [09:32:10]Write to MH i2c: 01 00 00 7B 41 BC [09:32:10]Write i2c OK [09:32:10]MH_I2C_Read... [09:32:11]OFD Sender: No OFD packet to send [09:32:11]*** Cut start [09:32:11]*** Partial cut [09:32:11]*** CUTSNS_PIN = 1 [09:32:11]*** CUTSNS_PIN = 0 [09:32:11]*** Brake cut motor [09:32:11]Read from MH i2c: 01 [09:32:11]MH_I2C_Read... [09:32:11]*** Stop cut motor [09:32:11]*** Cut end [09:32:11]Read from MH i2c: 01 07 00 [09:32:11]MH_I2C_Read... [09:32:11]Read from MH i2c: 01 07 00 7B 41 00 00 00 00 00 FF 0F D1 [09:32:11]process_action close_receipt done [09:32:11]requested_data is exist [09:32:11]produce_requested_data [09:32:11]requested_item fm.sn is exist - process it [09:32:11]wFMCommunicate request_size=4 [09:32:11]MH_SAM_APDU [09:32:11]CAPDU: 80 11 00 00 [09:32:11]Write to MH i2c: E2 08 00 7C 41 80 11 00 00 00 00 00 00 37 [09:32:11]Write i2c OK [09:32:11]MH_I2C_Read... [09:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:12]Read from MH i2c: E2 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 17 00 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 17 00 7C 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 84 [09:32: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:32:12]wFMCommunicate OK [09:32:12]requested_item fd.num is exist - process it [09:32:12]SAM_PROTO_GetFieldsCounters [09:32:12]wFMCommunicate request_size=4 [09:32:12]MH_SAM_APDU [09:32:12]CAPDU: 80 13 00 00 [09:32:12]Write to MH i2c: E2 08 00 7D 41 80 13 00 00 00 00 00 00 3A [09:32:12]Write i2c OK [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 [09:32:12]MH_I2C_Read... [09:32:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:12]Read from MH i2c: E2 62 00 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 62 00 7D 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 BC [09:32: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 88 BF 00 00 0E 04 04 00 F5 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:32:12]wFMCommunicate OK [09:32:12]SAM_PROTO_GetFieldsCounters done [09:32:12]requested_item shift.num is exist - process it [09:32:12]requested_item shift.opened is exist - process it [09:32:12]req_shift_opened [09:32:12]FM_GetShiftState [09:32:12]SAM_PROTO_GetShiftState [09:32:12]wFMCommunicate request_size=4 [09:32:12]MH_SAM_APDU [09:32:12]CAPDU: 80 13 01 00 [09:32:12]Write to MH i2c: E2 08 00 7E 41 80 13 01 00 00 00 00 00 3C [09:32:12]Write i2c OK [09:32:12]MH_I2C_Read... [09:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:12]Read from MH i2c: E2 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 0E 00 [09:32:12]MH_I2C_Read... [09:32:12]Read from MH i2c: E2 0E 00 7E 41 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 AE [09:32:12]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:32:12]wFMCommunicate OK [09:32:12]SAM_PROTO_GetShiftState done [09:32:12]FM_GetShiftState done [09:32:12]req_shift_opened done [09:32:12]requested_item shift.open_date is exist - process it [09:32:12]req_shift_open_date [09:32:12]req_shift_open_date done [09:32:12]produce_requested_data done [09:32:12]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49032,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:32:12]process_action_free close_receipt [09:32:12]json_value_free [09:32:12]json_value_free done [09:32:12]process_json_proto returns [09:32:12]Send response to host [09:32:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49032,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:32:12]free response buf [09:32:12]execute_script done [09:32:12]execute_script returns [09:32:12]free content buf [09:32:12]Sock 9.Close socket [09:32:12]Sock 9.Thread stoped [09:32:16]OFD Sender: No OFD packet to send [09:32:21]OFD Sender: No OFD packet to send [09:32:26]OFD Sender: No OFD packet to send [09:32:31]OFD Sender: No OFD packet to send [09:32:36]OFD Sender: No OFD packet to send [09:32:41]OFD Sender: No OFD packet to send [09:32:46]OFD Sender: No OFD packet to send [09:32:51]OFD Sender: No OFD packet to send [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]accept exits with 7 [09:33:46]New connection [09:33:46]New thread 3066670436 created [09:33:46]Thread 3066813796 joined [09:33:46]Waiting for new connection... [09:33:46] Sock 7.Parse request [09:33:46]Sock 7.Check first char [09:33:46]Sock 7.First char is OK [09:33:46]request: POST /json_proto HTTP/1.0 [09:33:46]Method: POST [09:33:46]URL: /json_proto [09:33:46]Method is POST - this is cgi request [09:33:46]url: /json_proto [09:33:46]query_string will be loaded in cgi processing [09:33:46]execute_cgi json_proto POST (null) [09:33:46]execute_cgi path=json_proto method=POST [09:33:46]POST find Content-Length [09:33:46]Host: 172.17.56.67:8080 [09:33:46]Content-Length: 674 [09:33:46]Content-Type: application/json [09:33:46] [09:33:46]POST finish read [09:33:46]Found Content-Length = 674 [09:33:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216132", "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:33:46]execute_script... [09:33: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)216132", "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:33:46]POST & json_proto [09:33:46]process_json_proto [09:33:46]json parsed OK: [09:33:46]protocol is kg_v1.0 [09:33:46]action value=close_receipt [09:33:46]process_action close_receipt [09:33:46]cmd_close_receipt [09:33:46]MH_GetDate [09:33:46]Write to MH i2c: F0 00 00 7F 41 AF [09:33:46]Write i2c OK [09:33:46]MH_I2C_Read... [09:33:46]Read from MH i2c: F0 [09:33:46]MH_I2C_Read... [09:33:46]Read from MH i2c: F0 09 00 [09:33:46]MH_I2C_Read... [09:33:46]Read from MH i2c: F0 09 00 7F 41 00 07 71 B7 65 26 5D 9E 65 D2 [09:33:46]GetLastDocTimeStamp 1706520741 [09:33:46]current date 1706520839 [09:33:46]FM_GetShiftState [09:33:46]SAM_PROTO_GetShiftState [09:33:46]wFMCommunicate request_size=4 [09:33:46]MH_SAM_APDU [09:33:46]CAPDU: 80 13 01 00 [09:33:46]Write to MH i2c: E2 08 00 80 41 80 13 01 00 00 00 00 00 3E [09:33:46]Write i2c OK [09:33:46]MH_I2C_Read... [09:33:46]OFD Sender: No OFD packet to send [09:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:46]Read from MH i2c: E2 [09:33:46]MH_I2C_Read... [09:33:46]Read from MH i2c: E2 0E 00 [09:33:46]MH_I2C_Read... [09:33:46]Read from MH i2c: E2 0E 00 80 41 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 B0 [09:33:46]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:33:46]wFMCommunicate OK [09:33:46]SAM_PROTO_GetShiftState done [09:33:46]FM_GetShiftState done [09:33:46]opened in 1706486624 [09:33:46]opened+sec_in_day 1706573024 [09:33:46]quantity*price = 50048 [09:33:46]sum+1 = 50049 [09:33:46]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 СÐО: Общий режим Чек 16 29.01.2024 09:33 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49033 ФПД: 89422150498819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T093359&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49033&fm=89422150498819&tin=02508201610067®Number=0000000000092723&sum=50000 [09:33:47]StoreToDocumentArchive [09:33:47]shift 245 fd 49033 [09:33:47]save to /storage/0245/doc_00049033 [09:33:47]save last doc name /storage/0245/doc_00049033 to /storage/kkm_last_doc_name [09:33:47]save OK [09:33:47]Clear old archive folders... [09:33:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:33:47]tlvbuf is 01236CD0 [09:33:47]SAM_PROTO_ClearQueue [09:33:47]wFMCommunicate request_size=4 [09:33:47]MH_SAM_APDU [09:33:47]CAPDU: 80 09 00 00 [09:33:47]Write to MH i2c: E2 08 00 8D 41 80 09 00 00 00 00 00 00 40 [09:33:47]Write i2c OK [09:33:47]MH_I2C_Read... [09:33:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:47]Read from MH i2c: E2 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 03 00 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 03 00 8D 41 00 90 00 42 [09:33:47]RAPDU: 90 00 [09:33:47]wFMCommunicate OK [09:33:47]SAM_PROTO_ClearQueue done [09:33:47]KKMCreateOFDPacket [09:33:47]OFDProtocolAddRootSTLVToBuf [09:33:47]FM_MakeSignedData [09:33:47]FM_MakeSignedData [09:33:47]SAM_PROTO_SignData [09:33:47]wFMCommunicate request_size=4 [09:33:47]MH_SAM_APDU [09:33:47]CAPDU: 80 0D 01 02 [09:33:47]Write to MH i2c: E2 08 00 8E 41 80 0D 01 02 00 00 00 00 48 [09:33:47]Write i2c OK [09:33:47]MH_I2C_Read... [09:33:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:47]Read from MH i2c: E2 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 03 00 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 03 00 8E 41 00 90 00 43 [09:33:47]RAPDU: 90 00 [09:33:47]wFMCommunicate OK [09:33:47]wFMCommunicate request_size=255 [09:33:47]MH_SAM_APDU [09:33:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 10 00 00 00 F4 03 04 00 07 71 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 51 54 37 83 [09:33:47]Write to MH i2c: E2 02 01 8F 41 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 10 00 00 00 F4 03 04 00 07 71 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 51 54 37 83 00 00 55 [09:33:47]Write i2c OK [09:33:47]MH_I2C_Read... [09:33:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:47]Read from MH i2c: E2 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 03 00 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 03 00 8F 41 00 90 00 44 [09:33:47]RAPDU: 90 00 [09:33:47]wFMCommunicate OK [09:33:47]wFMCommunicate request_size=7 [09:33:47]MH_SAM_APDU [09:33:47]CAPDU: 80 0D 02 02 02 FA 03 [09:33:47]Write to MH i2c: E2 0A 00 90 41 80 0D 02 02 02 00 FA 03 00 00 4C [09:33:47]Write i2c OK [09:33:47]MH_I2C_Read... [09:33:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:47]Read from MH i2c: E2 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 03 00 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 03 00 90 41 00 90 00 45 [09:33:47]RAPDU: 90 00 [09:33:47]wFMCommunicate OK [09:33:47]wFMCommunicate request_size=4 [09:33:47]MH_SAM_APDU [09:33:47]CAPDU: 80 0D 03 02 [09:33:47]Write to MH i2c: E2 08 00 91 41 80 0D 03 02 00 00 00 00 4D [09:33:47]Write i2c OK [09:33:47]MH_I2C_Read... [09:33:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:47]Read from MH i2c: E2 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 0B 00 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 0B 00 91 41 00 2B 09 40 1E 4F 75 35 00 90 00 D9 [09:33:47]RAPDU: 2B 09 40 1E 4F 75 35 00 90 00 [09:33:47]wFMCommunicate OK [09:33:47]SAM_PROTO_SignData done [09:33:47]FM_MakeSignedData done [09:33:47]CreateOFDProtocolMessage [09:33:47]wFMCommunicate request_size=4 [09:33:47]MH_SAM_APDU [09:33:47]CAPDU: 80 11 00 00 [09:33:47]Write to MH i2c: E2 08 00 92 41 80 11 00 00 00 00 00 00 4D [09:33:47]Write i2c OK [09:33:47]MH_I2C_Read... [09:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:47]Read from MH i2c: E2 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 17 00 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: E2 17 00 92 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9A [09:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:33:47]wFMCommunicate OK [09:33:47]CreateOFDProtocolMessage done [09:33:47]OFDSenderStorePacket 49033 [09:33:47]StoreOFDPacket docnum=49033 [09:33: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 0C 01 00 00 43 B0 04 01 BB 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 10 00 00 00 F4 03 04 00 07 71 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 51 54 37 83 FA 03 2B 09 40 1E 4F 75 35 00 [09:33:47]CheckFolder [09:33:47]dirname=/storage/ofd_packets [09:33:47]CheckFolder done [09:33:47]ProducePacketName [09:33:47]name=ofd_packets/00049033 [09:33:47]NVStorageSaveData ofd_packets/00049033 [09:33:47]File name is /storage/ofd_packets/00049033 [09:33:47]Write 298 bytes [09:33:47]NVStorageSaveData done [09:33:47]OFDSenderStorePacket done [09:33:47]KKMCreateOFDPacket done [09:33:47]NVStorageSaveData kkm_last_timestamp [09:33:47]File name is /storage/kkm_last_timestamp [09:33:47]Write 4 bytes [09:33:47]NVStorageSaveData done [09:33:47]ExternCall_PrintAddStr [09:33:47]wPrintStart [09:33:47]Write to MH i2c: 01 00 00 93 41 D4 [09:33:47]Write i2c OK [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: 01 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: 01 07 00 [09:33:47]MH_I2C_Read... [09:33:47]Read from MH i2c: 01 07 00 93 41 00 00 00 00 00 FF 0F E9 [09:33:47]RasterBufferAndPrint [09:33:47]line Счет N : (1)216132 [09:33:47]line ИÐÐ: 02508201610067 [09:33:47]line Контрольно-КаÑÑовый Чек [09:33:47]line ПРОДÐЖР[09:33:47]line ТРК (МРК, ГÐК) : 11 [09:33:47]line Товар: 2710194210 [09:33:47]line ДТ-К-5 [09:33:47]line 7.160 * 69.90 [09:33:47]line = 500.48 [09:33:47]line ÐДС 12% ÐСП 1% [09:33:47]line > о реализуемом товаре [09:33:47]line ОКРУГЛЕÐИЕ: -0.48 [09:33:47]line ИТОГО: 500.00 [09:33:47]line ВнеÑено: 500.00 [09:33:47]line СДÐЧÐ: 0.00 [09:33:47]line ÐСП 1% : 4.43 [09:33:47]line ÐДС 12% : 53.15 [09:33:47]line Ðаличными: 500.00 [09:33:47]line Безнал.: 0.00 [09:33:47]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:33:47]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:33:47]line СÐО: Общий режим [09:33:47]line Чек 16 29.01.2024 09:33 [09:33:47]line Смена: 245 ФФД: 1.0 [09:33:47]line ЗÐМ: 0300000040 [09:33:47]line РÐМ: 0000000000092723 [09:33:47]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:33:47]line ФМ: 0000000000875060 [09:33:47]line ФД: 49033 [09:33:47]line ФПД: 89422150498819 [09:33:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T093359&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49033&fm=89422150498819&tin=02508201610067®Number=0000000000092723&sum=50000 [09:33:48]OFD Sender: Processing packet 49033 [packets to send 12, broken 11] [09:33:48]ProducePacketName [09:33:48]name=ofd_packets/00049033 [09:33:48]OFD Sender: To server: ‡•öpG, [09:33:48]CommunicateWithHost lk.salyk.kg:30040 [09:33:48]ConnectInit lk.salyk.kg [09:33:48]written 0, free lines is 4095 [09:33:48]Connected sock=10 [09:33: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 0C 01 00 00 43 B0 04 01 BB 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 10 00 00 00 F4 03 04 00 07 71 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 51 54 37 83 FA 03 2B 09 40 1E 4F 75 35 00 [09:33: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 52 B5 47 00 3F 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 89 BF 00 00 F4 03 04 00 FF 1C B7 65 B6 04 01 00 00 D6 3F 48 A9 0F 53 1D 77 [09:33:48]CommunicateWithHost err = 0 [09:33:48]CheckOFDResponse [09:33:48]1017 (14) - 77093643461234 [09:33:48]1041 (16) - 0000000000875060 [09:33:48]1040 (4) - 49033 [09:33:48]1012 (4) - 29.01.2024 03:35 [09:33:48]1206 (1) - 0 [09:33:48]OFD Sender: Remove packet 49033 [09:33:48]ProducePacketName [09:33:48]name=ofd_packets/00049033 [09:33:48]NVStorageDeleteData [09:33:48]Write to MH i2c: 01 00 00 BE 41 FF [09:33:48]Write i2c OK [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: 01 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: 01 07 00 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: 01 07 00 BE 41 00 00 00 00 00 F6 0C 08 [09:33:48]RasterBufferAndPrint [09:33:48]line [09:33:48]line [09:33:48]line [09:33:48]line [09:33:48]line [09:33:48]written 0, free lines is 3324 [09:33:48]MH_Cut [09:33:48]Write to MH i2c: D1 01 00 C5 41 01 D8 [09:33:48]Write i2c OK [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: D1 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: D1 01 00 [09:33:48]MH_I2C_Read... [09:33:48]Read from MH i2c: D1 01 00 C5 41 00 D7 [09:33:48]Write to MH i2c: 01 00 00 C6 41 07 [09:33:48]Write i2c OK [09:33:48]MH_I2C_Read... [09:33:48]OFD Sender: No OFD packet to send [09:33:49]*** Cut start [09:33:49]*** Partial cut [09:33:49]*** CUTSNS_PIN = 1 [09:33:49]*** CUTSNS_PIN = 0 [09:33:49]*** Brake cut motor [09:33:49]Read from MH i2c: 01 [09:33:49]MH_I2C_Read... [09:33:49]*** Stop cut motor [09:33:49]*** Cut end [09:33:49]Read from MH i2c: 01 07 00 [09:33:49]MH_I2C_Read... [09:33:49]Read from MH i2c: 01 07 00 C6 41 00 00 00 00 00 FF 0F 1C [09:33:49]process_action close_receipt done [09:33:49]requested_data is exist [09:33:49]produce_requested_data [09:33:49]requested_item fm.sn is exist - process it [09:33:49]wFMCommunicate request_size=4 [09:33:49]MH_SAM_APDU [09:33:49]CAPDU: 80 11 00 00 [09:33:49]Write to MH i2c: E2 08 00 C7 41 80 11 00 00 00 00 00 00 82 [09:33:49]Write i2c OK [09:33:49]MH_I2C_Read... [09:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:49]Read from MH i2c: E2 [09:33:49]MH_I2C_Read... [09:33:49]Read from MH i2c: E2 17 00 [09:33:49]MH_I2C_Read... [09:33:49]Read from MH i2c: E2 17 00 C7 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CF [09:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:33:49]wFMCommunicate OK [09:33:49]requested_item fd.num is exist - process it [09:33:49]SAM_PROTO_GetFieldsCounters [09:33:49]wFMCommunicate request_size=4 [09:33:49]MH_SAM_APDU [09:33:49]CAPDU: 80 13 00 00 [09:33:49]Write to MH i2c: E2 08 00 C8 41 80 13 00 00 00 00 00 00 85 [09:33:49]Write i2c OK [09:33:49]MH_I2C_Read... [09:33:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:50]Read from MH i2c: E2 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 62 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 62 00 C8 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 0B [09:33: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 89 BF 00 00 0E 04 04 00 F5 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:33:50]wFMCommunicate OK [09:33:50]SAM_PROTO_GetFieldsCounters done [09:33:50]requested_item shift.num is exist - process it [09:33:50]requested_item shift.opened is exist - process it [09:33:50]req_shift_opened [09:33:50]FM_GetShiftState [09:33:50]SAM_PROTO_GetShiftState [09:33:50]wFMCommunicate request_size=4 [09:33:50]MH_SAM_APDU [09:33:50]CAPDU: 80 13 01 00 [09:33:50]Write to MH i2c: E2 08 00 C9 41 80 13 01 00 00 00 00 00 87 [09:33:50]Write i2c OK [09:33:50]MH_I2C_Read... [09:33:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:50]Read from MH i2c: E2 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 0E 00 [09:33:50]MH_I2C_Read... [09:33:50]Read from MH i2c: E2 0E 00 C9 41 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 F9 [09:33:50]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:33:50]wFMCommunicate OK [09:33:50]SAM_PROTO_GetShiftState done [09:33:50]FM_GetShiftState done [09:33:50]req_shift_opened done [09:33:50]requested_item shift.open_date is exist - process it [09:33:50]req_shift_open_date [09:33:50]req_shift_open_date done [09:33:50]produce_requested_data done [09:33:50]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49033,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:33:50]process_action_free close_receipt [09:33:50]json_value_free [09:33:50]json_value_free done [09:33:50]process_json_proto returns [09:33:50]Send response to host [09:33:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49033,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:33:50]free response buf [09:33:50]execute_script done [09:33:50]execute_script returns [09:33:50]free content buf [09:33:50]Sock 7.Close socket [09:33:50]Sock 7.Thread stoped [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:49]OFD Sender: No OFD packet to send [09:35:54]OFD Sender: No OFD packet to send [09:35:59]OFD Sender: No OFD packet to send [09:36:04]OFD Sender: No OFD packet to send [09:36:09]OFD Sender: No OFD packet to send [09:36:14]OFD Sender: No OFD packet to send [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:49]OFD Sender: No OFD packet to send [09:36:54]OFD Sender: No OFD packet to send [09:36:59]OFD Sender: No OFD packet to send [09:37:04]OFD Sender: No OFD packet to send [09:37:09]OFD Sender: No OFD packet to send [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:09]accept exits with 9 [09:38:09]New connection [09:38:09]New thread 3066813796 created [09:38:09]Thread 3066670436 joined [09:38:09]Waiting for new connection... [09:38:09] Sock 9.Parse request [09:38:09]Sock 9.Check first char [09:38:09]Sock 9.First char is OK [09:38:09]request: POST /json_proto HTTP/1.0 [09:38:09]Method: POST [09:38:09]URL: /json_proto [09:38:09]Method is POST - this is cgi request [09:38:09]url: /json_proto [09:38:09]query_string will be loaded in cgi processing [09:38:09]execute_cgi json_proto POST (null) [09:38:09]execute_cgi path=json_proto method=POST [09:38:09]POST find Content-Length [09:38:09]Host: 172.17.56.67:8080 [09:38:09]Content-Length: 677 [09:38:09]Content-Type: application/json [09:38:09] [09:38:09]POST finish read [09:38:09]Found Content-Length = 677 [09:38:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216133", "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:38:09]execute_script... [09:38: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)216133", "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:38:09]POST & json_proto [09:38:09]process_json_proto [09:38:09]json parsed OK: [09:38:09]protocol is kg_v1.0 [09:38:09]action value=close_receipt [09:38:09]process_action close_receipt [09:38:09]cmd_close_receipt [09:38:09]MH_GetDate [09:38:09]Write to MH i2c: F0 00 00 CA 41 FA [09:38:09]Write i2c OK [09:38:09]MH_I2C_Read... [09:38:09]Read from MH i2c: F0 [09:38:09]MH_I2C_Read... [09:38:09]Read from MH i2c: F0 09 00 [09:38:09]MH_I2C_Read... [09:38:09]Read from MH i2c: F0 09 00 CA 41 00 0E 72 B7 65 26 5D 9E 65 25 [09:38:09]GetLastDocTimeStamp 1706520839 [09:38:09]current date 1706521102 [09:38:09]FM_GetShiftState [09:38:09]SAM_PROTO_GetShiftState [09:38:09]wFMCommunicate request_size=4 [09:38:09]MH_SAM_APDU [09:38:09]CAPDU: 80 13 01 00 [09:38:09]Write to MH i2c: E2 08 00 CB 41 80 13 01 00 00 00 00 00 89 [09:38:09]Write i2c OK [09:38:09]MH_I2C_Read... [09:38:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:09]Read from MH i2c: E2 [09:38:09]MH_I2C_Read... [09:38:09]Read from MH i2c: E2 0E 00 [09:38:09]MH_I2C_Read... [09:38:09]Read from MH i2c: E2 0E 00 CB 41 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 FB [09:38:09]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:38:09]wFMCommunicate OK [09:38:09]SAM_PROTO_GetShiftState done [09:38:09]FM_GetShiftState done [09:38:09]opened in 1706486624 [09:38:09]opened+sec_in_day 1706573024 [09:38:09]quantity*price = 30029 [09:38:09]sum+1 = 30030 [09:38: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 СÐО: Общий режим Чек 17 29.01.2024 09:38 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49034 ФПД: 100120917098879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T093822&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49034&fm=100120917098879&tin=02508201610067®Number=0000000000092723&sum=30000 [09:38:10]StoreToDocumentArchive [09:38:10]shift 245 fd 49034 [09:38:10]save to /storage/0245/doc_00049034 [09:38:10]save last doc name /storage/0245/doc_00049034 to /storage/kkm_last_doc_name [09:38:10]save OK [09:38:10]Clear old archive folders... [09:38:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:10]tlvbuf is 0128D4A0 [09:38:10]SAM_PROTO_ClearQueue [09:38:10]wFMCommunicate request_size=4 [09:38:10]MH_SAM_APDU [09:38:10]CAPDU: 80 09 00 00 [09:38:10]Write to MH i2c: E2 08 00 D8 41 80 09 00 00 00 00 00 00 8B [09:38:10]Write i2c OK [09:38:10]MH_I2C_Read... [09:38:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:10]Read from MH i2c: E2 [09:38:10]MH_I2C_Read... [09:38:10]Read from MH i2c: E2 03 00 [09:38:10]MH_I2C_Read... [09:38:10]Read from MH i2c: E2 03 00 D8 41 00 90 00 8D [09:38:10]RAPDU: 90 00 [09:38:10]wFMCommunicate OK [09:38:10]SAM_PROTO_ClearQueue done [09:38:10]KKMCreateOFDPacket [09:38:10]OFDProtocolAddRootSTLVToBuf [09:38:10]FM_MakeSignedData [09:38:10]FM_MakeSignedData [09:38:10]SAM_PROTO_SignData [09:38:10]wFMCommunicate request_size=4 [09:38:10]MH_SAM_APDU [09:38:10]CAPDU: 80 0D 01 02 [09:38:10]Write to MH i2c: E2 08 00 D9 41 80 0D 01 02 00 00 00 00 93 [09:38:10]Write i2c OK [09:38:10]MH_I2C_Read... [09:38:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:10]Read from MH i2c: E2 [09:38:10]MH_I2C_Read... [09:38:10]Read from MH i2c: E2 03 00 [09:38:10]MH_I2C_Read... [09:38:10]Read from MH i2c: E2 03 00 D9 41 00 90 00 8E [09:38:10]RAPDU: 90 00 [09:38:10]wFMCommunicate OK [09:38:10]wFMCommunicate request_size=255 [09:38:10]MH_SAM_APDU [09:38: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 11 00 00 00 F4 03 04 00 0E 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5B [09:38:10]Write to MH i2c: E2 02 01 DA 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 11 00 00 00 F4 03 04 00 0E 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5B 00 00 9F [09:38:10]Write i2c OK [09:38:10]MH_I2C_Read... [09:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:11]Read from MH i2c: E2 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 03 00 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 03 00 DA 41 00 90 00 8F [09:38:11]RAPDU: 90 00 [09:38:11]wFMCommunicate OK [09:38:11]wFMCommunicate request_size=10 [09:38:11]MH_SAM_APDU [09:38:11]CAPDU: 80 0D 02 02 05 0F 37 B2 C1 7F [09:38:11]Write to MH i2c: E2 0D 00 DB 41 80 0D 02 02 05 00 0F 37 B2 C1 7F 00 00 D8 [09:38:11]Write i2c OK [09:38:11]MH_I2C_Read... [09:38:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:11]Read from MH i2c: E2 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 03 00 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 03 00 DB 41 00 90 00 90 [09:38:11]RAPDU: 90 00 [09:38:11]wFMCommunicate OK [09:38:11]wFMCommunicate request_size=4 [09:38:11]MH_SAM_APDU [09:38:11]CAPDU: 80 0D 03 02 [09:38:11]Write to MH i2c: E2 08 00 DC 41 80 0D 03 02 00 00 00 00 98 [09:38:11]Write i2c OK [09:38:11]MH_I2C_Read... [09:38:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:11]Read from MH i2c: E2 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 0B 00 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 0B 00 DC 41 00 FB FD 2C 6A D5 A5 C8 C5 90 00 2E [09:38:11]RAPDU: FB FD 2C 6A D5 A5 C8 C5 90 00 [09:38:11]wFMCommunicate OK [09:38:11]SAM_PROTO_SignData done [09:38:11]FM_MakeSignedData done [09:38:11]CreateOFDProtocolMessage [09:38:11]wFMCommunicate request_size=4 [09:38:11]MH_SAM_APDU [09:38:11]CAPDU: 80 11 00 00 [09:38:11]Write to MH i2c: E2 08 00 DD 41 80 11 00 00 00 00 00 00 98 [09:38:11]Write i2c OK [09:38:11]MH_I2C_Read... [09:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:11]Read from MH i2c: E2 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 17 00 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: E2 17 00 DD 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E5 [09:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:38:11]wFMCommunicate OK [09:38:11]CreateOFDProtocolMessage done [09:38:11]OFDSenderStorePacket 49034 [09:38:11]StoreOFDPacket docnum=49034 [09:38: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 A6 FC 07 01 F6 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 11 00 00 00 F4 03 04 00 0E 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5B 0F 37 B2 C1 7F FB FD 2C 6A D5 A5 C8 C5 [09:38:11]CheckFolder [09:38:11]dirname=/storage/ofd_packets [09:38:11]CheckFolder done [09:38:11]ProducePacketName [09:38:11]name=ofd_packets/00049034 [09:38:11]NVStorageSaveData ofd_packets/00049034 [09:38:11]File name is /storage/ofd_packets/00049034 [09:38:11]Write 301 bytes [09:38:11]NVStorageSaveData done [09:38:11]OFDSenderStorePacket done [09:38:11]KKMCreateOFDPacket done [09:38:11]NVStorageSaveData kkm_last_timestamp [09:38:11]File name is /storage/kkm_last_timestamp [09:38:11]Write 4 bytes [09:38:11]NVStorageSaveData done [09:38:11]ExternCall_PrintAddStr [09:38:11]wPrintStart [09:38:11]Write to MH i2c: 01 00 00 DE 41 1F [09:38:11]Write i2c OK [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: 01 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: 01 07 00 [09:38:11]MH_I2C_Read... [09:38:11]Read from MH i2c: 01 07 00 DE 41 00 00 00 00 00 FF 0F 34 [09:38:11]RasterBufferAndPrint [09:38:11]line Счет N : (1)216133 [09:38:11]line ИÐÐ: 02508201610067 [09:38:11]line Контрольно-КаÑÑовый Чек [09:38:11]line ПРОДÐЖР[09:38:11]line ТРК (МРК, ГÐК) : 22 [09:38:11]line Товар: 2710124130 [09:38:11]line Ðи-92-К-5 [09:38:11]line 4.980 * 60.30 [09:38:11]line = 300.29 [09:38:11]line ÐДС 12% ÐСП 1% [09:38:11]line > о реализуемом товаре [09:38:11]line ОКРУГЛЕÐИЕ: -0.29 [09:38:11]line ИТОГО: 300.00 [09:38:11]line ВнеÑено: 300.00 [09:38:11]line СДÐЧÐ: 0.00 [09:38:11]line ÐСП 1% : 2.66 [09:38:11]line ÐДС 12% : 31.89 [09:38:11]line Ðаличными: 300.00 [09:38:11]line Безнал.: 0.00 [09:38:11]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:38:11]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:38:11]line СÐО: Общий режим [09:38:11]line Чек 17 29.01.2024 09:38 [09:38:11]line Смена: 245 ФФД: 1.0 [09:38:11]line ЗÐМ: 0300000040 [09:38:11]line РÐМ: 0000000000092723 [09:38:11]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:38:11]line ФМ: 0000000000875060 [09:38:11]line ФД: 49034 [09:38:11]line ФПД: 100120917098879 [09:38:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T093822&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49034&fm=100120917098879&tin=02508201610067®Number=0000000000092723&sum=30000 [09:38:11]OFD Sender: Processing packet 49034 [packets to send 12, broken 11] [09:38:11]ProducePacketName [09:38:11]name=ofd_packets/00049034 [09:38:11]OFD Sender: To server: ‡•öpG, [09:38:11]CommunicateWithHost lk.salyk.kg:30040 [09:38:11]ConnectInit lk.salyk.kg [09:38:11]written 0, free lines is 4095 [09:38:11]Connected sock=10 [09:38: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 A6 FC 07 01 F6 F4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 11 00 00 00 F4 03 04 00 0E 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5B 0F 37 B2 C1 7F FB FD 2C 6A D5 A5 C8 C5 [09:38: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 6D 8A 47 00 F4 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8A BF 00 00 F4 03 04 00 07 1E B7 65 B6 04 01 00 00 54 8D 26 ED 3A 65 35 DF [09:38:11]CommunicateWithHost err = 0 [09:38:11]CheckOFDResponse [09:38:11]1017 (14) - 77093643461234 [09:38:11]1041 (16) - 0000000000875060 [09:38:11]1040 (4) - 49034 [09:38:11]1012 (4) - 29.01.2024 03:39 [09:38:11]1206 (1) - 0 [09:38:11]OFD Sender: Remove packet 49034 [09:38:11]ProducePacketName [09:38:11]name=ofd_packets/00049034 [09:38:11]NVStorageDeleteData [09:38:12]Write to MH i2c: 01 00 00 09 42 4B [09:38:12]Write i2c OK [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: 01 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: 01 07 00 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: 01 07 00 09 42 00 00 00 00 00 F1 0C 4F [09:38:12]RasterBufferAndPrint [09:38:12]line [09:38:12]line [09:38:12]line [09:38:12]line [09:38:12]line [09:38:12]written 0, free lines is 3319 [09:38:12]MH_Cut [09:38:12]Write to MH i2c: D1 01 00 10 42 01 24 [09:38:12]Write i2c OK [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: D1 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: D1 01 00 [09:38:12]MH_I2C_Read... [09:38:12]Read from MH i2c: D1 01 00 10 42 00 23 [09:38:12]Write to MH i2c: 01 00 00 11 42 53 [09:38:12]Write i2c OK [09:38:12]MH_I2C_Read... [09:38:12]OFD Sender: No OFD packet to send [09:38:12]*** Cut start [09:38:12]*** Partial cut [09:38:12]*** CUTSNS_PIN = 1 [09:38:12]*** CUTSNS_PIN = 0 [09:38:13]*** Brake cut motor [09:38:13]Read from MH i2c: 01 [09:38:13]MH_I2C_Read... [09:38:13]*** Stop cut motor [09:38:13]*** Cut end [09:38:13]Read from MH i2c: 01 07 00 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: 01 07 00 11 42 00 00 00 00 00 FF 0F 68 [09:38:13]process_action close_receipt done [09:38:13]requested_data is exist [09:38:13]produce_requested_data [09:38:13]requested_item fm.sn is exist - process it [09:38:13]wFMCommunicate request_size=4 [09:38:13]MH_SAM_APDU [09:38:13]CAPDU: 80 11 00 00 [09:38:13]Write to MH i2c: E2 08 00 12 42 80 11 00 00 00 00 00 00 CE [09:38:13]Write i2c OK [09:38:13]MH_I2C_Read... [09:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:13]Read from MH i2c: E2 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: E2 17 00 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: E2 17 00 12 42 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:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:38:13]wFMCommunicate OK [09:38:13]requested_item fd.num is exist - process it [09:38:13]SAM_PROTO_GetFieldsCounters [09:38:13]wFMCommunicate request_size=4 [09:38:13]MH_SAM_APDU [09:38:13]CAPDU: 80 13 00 00 [09:38:13]Write to MH i2c: E2 08 00 13 42 80 13 00 00 00 00 00 00 D1 [09:38:13]Write i2c OK [09:38:13]MH_I2C_Read... [09:38:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:13]Read from MH i2c: E2 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: E2 62 00 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: E2 62 00 13 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 5B [09:38: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 8A BF 00 00 0E 04 04 00 F5 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:38:13]wFMCommunicate OK [09:38:13]SAM_PROTO_GetFieldsCounters done [09:38:13]requested_item shift.num is exist - process it [09:38:13]requested_item shift.opened is exist - process it [09:38:13]req_shift_opened [09:38:13]FM_GetShiftState [09:38:13]SAM_PROTO_GetShiftState [09:38:13]wFMCommunicate request_size=4 [09:38:13]MH_SAM_APDU [09:38:13]CAPDU: 80 13 01 00 [09:38:13]Write to MH i2c: E2 08 00 14 42 80 13 01 00 00 00 00 00 D3 [09:38:13]Write i2c OK [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: E2 [09:38:13]MH_I2C_Read... [09:38:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:13]Read from MH i2c: E2 0E 00 [09:38:13]MH_I2C_Read... [09:38:13]Read from MH i2c: E2 0E 00 14 42 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 45 [09:38:13]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:38:13]wFMCommunicate OK [09:38:13]SAM_PROTO_GetShiftState done [09:38:13]FM_GetShiftState done [09:38:13]req_shift_opened done [09:38:13]requested_item shift.open_date is exist - process it [09:38:13]req_shift_open_date [09:38:13]req_shift_open_date done [09:38:13]produce_requested_data done [09:38:13]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49034,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:38:13]process_action_free close_receipt [09:38:13]json_value_free [09:38:13]json_value_free done [09:38:13]process_json_proto returns [09:38:13]Send response to host [09:38:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49034,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:38:13]free response buf [09:38:13]execute_script done [09:38:13]execute_script returns [09:38:13]free content buf [09:38:13]Sock 9.Close socket [09:38:13]Sock 9.Thread stoped [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:19]accept exits with 7 [09:39:19]New connection [09:39:19]New thread 3066670436 created [09:39:19]Thread 3066813796 joined [09:39:19]Waiting for new connection... [09:39:19] Sock 7.Parse request [09:39:19]Sock 7.Check first char [09:39:19]Sock 7.First char is OK [09:39:19]request: POST /json_proto HTTP/1.0 [09:39:19]Method: POST [09:39:19]URL: /json_proto [09:39:19]Method is POST - this is cgi request [09:39:19]url: /json_proto [09:39:19]query_string will be loaded in cgi processing [09:39:19]execute_cgi json_proto POST (null) [09:39:19]execute_cgi path=json_proto method=POST [09:39:19]POST find Content-Length [09:39:19]Host: 172.17.56.67:8080 [09:39:19]Content-Length: 677 [09:39:19]Content-Type: application/json [09:39:19] [09:39:19]POST finish read [09:39:19]Found Content-Length = 677 [09:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216134", "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" ] } } [09:39:19]execute_script... [09:39: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)216134", "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" ] } } [09:39:19]POST & json_proto [09:39:19]process_json_proto [09:39:19]json parsed OK: [09:39:19]protocol is kg_v1.0 [09:39:19]action value=close_receipt [09:39:19]process_action close_receipt [09:39:19]cmd_close_receipt [09:39:19]MH_GetDate [09:39:19]Write to MH i2c: F0 00 00 15 42 46 [09:39:19]Write i2c OK [09:39:19]MH_I2C_Read... [09:39:19]Read from MH i2c: F0 [09:39:19]MH_I2C_Read... [09:39:19]Read from MH i2c: F0 09 00 [09:39:19]MH_I2C_Read... [09:39:19]Read from MH i2c: F0 09 00 15 42 00 54 72 B7 65 26 5D 9E 65 B7 [09:39:19]GetLastDocTimeStamp 1706521102 [09:39:19]current date 1706521172 [09:39:19]FM_GetShiftState [09:39:19]SAM_PROTO_GetShiftState [09:39:19]wFMCommunicate request_size=4 [09:39:19]MH_SAM_APDU [09:39:19]CAPDU: 80 13 01 00 [09:39:19]Write to MH i2c: E2 08 00 16 42 80 13 01 00 00 00 00 00 D5 [09:39:19]Write i2c OK [09:39:19]MH_I2C_Read... [09:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:19]Read from MH i2c: E2 [09:39:19]MH_I2C_Read... [09:39:19]Read from MH i2c: E2 0E 00 [09:39:19]MH_I2C_Read... [09:39:19]Read from MH i2c: E2 0E 00 16 42 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 47 [09:39:19]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:39:19]wFMCommunicate OK [09:39:19]SAM_PROTO_GetShiftState done [09:39:19]FM_GetShiftState done [09:39:19]opened in 1706486624 [09:39:19]opened+sec_in_day 1706573024 [09:39:19]quantity*price = 50049 [09:39:19]sum+1 = 50050 [09:39:19]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 СÐО: Общий режим Чек 18 29.01.2024 09:39 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49035 ФПД: 135137967619788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T093932&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49035&fm=135137967619788&tin=02508201610067®Number=0000000000092723&sum=50000 [09:39:20]StoreToDocumentArchive [09:39:20]shift 245 fd 49035 [09:39:20]save to /storage/0245/doc_00049035 [09:39:20]save last doc name /storage/0245/doc_00049035 to /storage/kkm_last_doc_name [09:39:20]save OK [09:39:20]Clear old archive folders... [09:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:20]tlvbuf is 0139F9F0 [09:39:20]SAM_PROTO_ClearQueue [09:39:20]wFMCommunicate request_size=4 [09:39:20]MH_SAM_APDU [09:39:20]CAPDU: 80 09 00 00 [09:39:20]Write to MH i2c: E2 08 00 23 42 80 09 00 00 00 00 00 00 D7 [09:39:20]Write i2c OK [09:39:20]MH_I2C_Read... [09:39:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:20]Read from MH i2c: E2 [09:39:20]MH_I2C_Read... [09:39:20]Read from MH i2c: E2 03 00 [09:39:20]MH_I2C_Read... [09:39:20]Read from MH i2c: E2 03 00 23 42 00 90 00 D9 [09:39:20]RAPDU: 90 00 [09:39:20]wFMCommunicate OK [09:39:20]SAM_PROTO_ClearQueue done [09:39:20]KKMCreateOFDPacket [09:39:20]OFDProtocolAddRootSTLVToBuf [09:39:20]FM_MakeSignedData [09:39:20]FM_MakeSignedData [09:39:20]SAM_PROTO_SignData [09:39:20]wFMCommunicate request_size=4 [09:39:20]MH_SAM_APDU [09:39:20]CAPDU: 80 0D 01 02 [09:39:20]Write to MH i2c: E2 08 00 24 42 80 0D 01 02 00 00 00 00 DF [09:39:20]Write i2c OK [09:39:20]MH_I2C_Read... [09:39:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:20]Read from MH i2c: E2 [09:39:20]MH_I2C_Read... [09:39:20]Read from MH i2c: E2 03 00 [09:39:20]MH_I2C_Read... [09:39:20]Read from MH i2c: E2 03 00 24 42 00 90 00 DA [09:39:20]RAPDU: 90 00 [09:39:20]wFMCommunicate OK [09:39:20]wFMCommunicate request_size=255 [09:39:20]MH_SAM_APDU [09:39: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 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 12 00 00 00 F4 03 04 00 54 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 7A [09:39:20]Write to MH i2c: E2 02 01 25 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 12 00 00 00 F4 03 04 00 54 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 7A 00 00 BC [09:39:20]Write i2c OK [09:39:20]MH_I2C_Read... [09:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:21]Read from MH i2c: E2 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 03 00 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 03 00 25 42 00 90 00 DB [09:39:21]RAPDU: 90 00 [09:39:21]wFMCommunicate OK [09:39:21]wFMCommunicate request_size=10 [09:39:21]MH_SAM_APDU [09:39:21]CAPDU: 80 0D 02 02 05 E8 42 8E 3E CC [09:39:21]Write to MH i2c: E2 0D 00 26 42 80 0D 02 02 05 00 E8 42 8E 3E CC 00 00 AE [09:39:21]Write i2c OK [09:39:21]MH_I2C_Read... [09:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:21]Read from MH i2c: E2 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 03 00 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 03 00 26 42 00 90 00 DC [09:39:21]RAPDU: 90 00 [09:39:21]wFMCommunicate OK [09:39:21]wFMCommunicate request_size=4 [09:39:21]MH_SAM_APDU [09:39:21]CAPDU: 80 0D 03 02 [09:39:21]Write to MH i2c: E2 08 00 27 42 80 0D 03 02 00 00 00 00 E4 [09:39:21]Write i2c OK [09:39:21]MH_I2C_Read... [09:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:21]Read from MH i2c: E2 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 0B 00 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 0B 00 27 42 00 F6 9E C0 5D 8E 51 71 F5 90 00 DB [09:39:21]RAPDU: F6 9E C0 5D 8E 51 71 F5 90 00 [09:39:21]wFMCommunicate OK [09:39:21]SAM_PROTO_SignData done [09:39:21]FM_MakeSignedData done [09:39:21]CreateOFDProtocolMessage [09:39:21]wFMCommunicate request_size=4 [09:39:21]MH_SAM_APDU [09:39:21]CAPDU: 80 11 00 00 [09:39:21]Write to MH i2c: E2 08 00 28 42 80 11 00 00 00 00 00 00 E4 [09:39:21]Write i2c OK [09:39:21]MH_I2C_Read... [09:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:21]Read from MH i2c: E2 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 17 00 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: E2 17 00 28 42 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:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:39:21]wFMCommunicate OK [09:39:21]CreateOFDProtocolMessage done [09:39:21]OFDSenderStorePacket 49035 [09:39:21]StoreOFDPacket docnum=49035 [09:39: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 7E 2D 07 01 BD 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 12 00 00 00 F4 03 04 00 54 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 7A E8 42 8E 3E CC F6 9E C0 5D 8E 51 71 F5 [09:39:21]CheckFolder [09:39:21]dirname=/storage/ofd_packets [09:39:21]CheckFolder done [09:39:21]ProducePacketName [09:39:21]name=ofd_packets/00049035 [09:39:21]NVStorageSaveData ofd_packets/00049035 [09:39:21]File name is /storage/ofd_packets/00049035 [09:39:21]Write 301 bytes [09:39:21]NVStorageSaveData done [09:39:21]OFDSenderStorePacket done [09:39:21]KKMCreateOFDPacket done [09:39:21]NVStorageSaveData kkm_last_timestamp [09:39:21]File name is /storage/kkm_last_timestamp [09:39:21]OFD Sender: Processing packet 49035 [packets to send 12, broken 11] [09:39:21]ProducePacketName [09:39:21]name=ofd_packets/00049035 [09:39:21]OFD Sender: To server: ‡•öpG, [09:39:21]CommunicateWithHost lk.salyk.kg:30040 [09:39:21]ConnectInit lk.salyk.kg [09:39:21]Write 4 bytes [09:39:21]NVStorageSaveData done [09:39:21]ExternCall_PrintAddStr [09:39:21]wPrintStart [09:39:21]Write to MH i2c: 01 00 00 29 42 6B [09:39:21]Write i2c OK [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: 01 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: 01 07 00 [09:39:21]MH_I2C_Read... [09:39:21]Read from MH i2c: 01 07 00 29 42 00 00 00 00 00 FF 0F 80 [09:39:21]RasterBufferAndPrint [09:39:21]line Счет N : (1)216134 [09:39:21]line ИÐÐ: 02508201610067 [09:39:21]line Контрольно-КаÑÑовый Чек [09:39:21]line ПРОДÐЖР[09:39:21]line ТРК (МРК, ГÐК) : 12 [09:39:21]line Товар: 2710124130 [09:39:21]line Ðи-92-К-5 [09:39:21]line 8.300 * 60.30 [09:39:21]line = 500.49 [09:39:21]line ÐДС 12% ÐСП 1% [09:39:21]line > о реализуемом товаре [09:39:21]line ОКРУГЛЕÐИЕ: -0.49 [09:39:21]line ИТОГО: 500.00 [09:39:21]line ВнеÑено: 500.00 [09:39:21]line СДÐЧÐ: 0.00 [09:39:21]line ÐСП 1% : 4.43 [09:39:21]line ÐДС 12% : 53.15 [09:39:21]line Ðаличными: 500.00 [09:39:21]line Безнал.: 0.00 [09:39:21]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:39:21]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:39:21]line СÐО: Общий режим [09:39:21]line Чек 18 29.01.2024 09:39 [09:39:21]line Смена: 245 ФФД: 1.0 [09:39:21]line ЗÐМ: 0300000040 [09:39:21]line РÐМ: 0000000000092723 [09:39:21]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:39:21]line ФМ: 0000000000875060 [09:39:21]line ФД: 49035 [09:39:21]line ФПД: 135137967619788 [09:39:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T093932&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49035&fm=135137967619788&tin=02508201610067®Number=0000000000092723&sum=50000 [09:39:21]Connected sock=11 [09:39: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 7E 2D 07 01 BD 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 12 00 00 00 F4 03 04 00 54 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 7A E8 42 8E 3E CC F6 9E C0 5D 8E 51 71 F5 [09:39:21]written 0, free lines is 4095 [09:39: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 83 85 47 00 FA 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 8B BF 00 00 F4 03 04 00 4D 1E B7 65 B6 04 01 00 00 89 40 12 20 01 C2 30 42 [09:39:21]CommunicateWithHost err = 0 [09:39:21]CheckOFDResponse [09:39:21]1017 (14) - 77093643461234 [09:39:21]1041 (16) - 0000000000875060 [09:39:21]1040 (4) - 49035 [09:39:21]1012 (4) - 29.01.2024 03:41 [09:39:21]1206 (1) - 0 [09:39:21]OFD Sender: Remove packet 49035 [09:39:21]ProducePacketName [09:39:21]name=ofd_packets/00049035 [09:39:21]NVStorageDeleteData [09:39:22]Write to MH i2c: 01 00 00 54 42 96 [09:39:22]Write i2c OK [09:39:22]MH_I2C_Read... [09:39:22]Read from MH i2c: 01 [09:39:22]MH_I2C_Read... [09:39:22]Read from MH i2c: 01 07 00 [09:39:22]MH_I2C_Read... [09:39:22]Read from MH i2c: 01 07 00 54 42 00 00 00 00 00 F7 0C A0 [09:39:22]RasterBufferAndPrint [09:39:22]line [09:39:22]line [09:39:22]line [09:39:22]line [09:39:22]line [09:39:22]written 0, free lines is 3326 [09:39:22]MH_Cut [09:39:22]Write to MH i2c: D1 01 00 5B 42 01 6F [09:39:22]Write i2c OK [09:39:22]MH_I2C_Read... [09:39:22]Read from MH i2c: D1 [09:39:22]MH_I2C_Read... [09:39:22]Read from MH i2c: D1 01 00 [09:39:22]MH_I2C_Read... [09:39:22]Read from MH i2c: D1 01 00 5B 42 00 6E [09:39:22]Write to MH i2c: 01 00 00 5C 42 9E [09:39:22]Write i2c OK [09:39:22]MH_I2C_Read... [09:39:22]OFD Sender: No OFD packet to send [09:39:22]*** Cut start [09:39:22]*** Partial cut [09:39:22]*** CUTSNS_PIN = 1 [09:39:22]*** CUTSNS_PIN = 0 [09:39:22]*** Brake cut motor [09:39:23]Read from MH i2c: 01 [09:39:23]MH_I2C_Read... [09:39:23]*** Stop cut motor [09:39:23]*** Cut end [09:39:23]Read from MH i2c: 01 07 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: 01 07 00 5C 42 00 00 00 00 00 FF 0F B3 [09:39:23]process_action close_receipt done [09:39:23]requested_data is exist [09:39:23]produce_requested_data [09:39:23]requested_item fm.sn is exist - process it [09:39:23]wFMCommunicate request_size=4 [09:39:23]MH_SAM_APDU [09:39:23]CAPDU: 80 11 00 00 [09:39:23]Write to MH i2c: E2 08 00 5D 42 80 11 00 00 00 00 00 00 19 [09:39:23]Write i2c OK [09:39:23]MH_I2C_Read... [09:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:23]Read from MH i2c: E2 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 17 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 17 00 5D 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 66 [09:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:39:23]wFMCommunicate OK [09:39:23]requested_item fd.num is exist - process it [09:39:23]SAM_PROTO_GetFieldsCounters [09:39:23]wFMCommunicate request_size=4 [09:39:23]MH_SAM_APDU [09:39:23]CAPDU: 80 13 00 00 [09:39:23]Write to MH i2c: E2 08 00 5E 42 80 13 00 00 00 00 00 00 1C [09:39:23]Write i2c OK [09:39:23]MH_I2C_Read... [09:39:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:23]Read from MH i2c: E2 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 62 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 62 00 5E 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 AA [09:39: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 8B BF 00 00 0E 04 04 00 F5 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:39:23]wFMCommunicate OK [09:39:23]SAM_PROTO_GetFieldsCounters done [09:39:23]requested_item shift.num is exist - process it [09:39:23]requested_item shift.opened is exist - process it [09:39:23]req_shift_opened [09:39:23]FM_GetShiftState [09:39:23]SAM_PROTO_GetShiftState [09:39:23]wFMCommunicate request_size=4 [09:39:23]MH_SAM_APDU [09:39:23]CAPDU: 80 13 01 00 [09:39:23]Write to MH i2c: E2 08 00 5F 42 80 13 01 00 00 00 00 00 1E [09:39:23]Write i2c OK [09:39:23]MH_I2C_Read... [09:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:23]Read from MH i2c: E2 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 0E 00 [09:39:23]MH_I2C_Read... [09:39:23]Read from MH i2c: E2 0E 00 5F 42 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 90 [09:39:23]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:39:23]wFMCommunicate OK [09:39:23]SAM_PROTO_GetShiftState done [09:39:23]FM_GetShiftState done [09:39:23]req_shift_opened done [09:39:23]requested_item shift.open_date is exist - process it [09:39:23]req_shift_open_date [09:39:23]req_shift_open_date done [09:39:23]produce_requested_data done [09:39:23]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49035,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:39:23]process_action_free close_receipt [09:39:23]json_value_free [09:39:23]json_value_free done [09:39:23]process_json_proto returns [09:39:23]Send response to host [09:39:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49035,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:39:23]free response buf [09:39:23]execute_script done [09:39:23]execute_script returns [09:39:23]free content buf [09:39:23]Sock 7.Close socket [09:39:23]Sock 7.Thread stoped [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:09]accept exits with 9 [09:40:09]New connection [09:40:09]New thread 3066813796 created [09:40:09]Thread 3066670436 joined [09:40:09]Waiting for new connection... [09:40:09] Sock 9.Parse request [09:40:09]Sock 9.Check first char [09:40:09]Sock 9.First char is OK [09:40:09]request: POST /json_proto HTTP/1.0 [09:40:09]Method: POST [09:40:09]URL: /json_proto [09:40:09]Method is POST - this is cgi request [09:40:09]url: /json_proto [09:40:09]query_string will be loaded in cgi processing [09:40:09]execute_cgi json_proto POST (null) [09:40:09]execute_cgi path=json_proto method=POST [09:40:09]POST find Content-Length [09:40:09]Host: 172.17.56.67:8080 [09:40:09]Content-Length: 677 [09:40:09]Content-Type: application/json [09:40:09] [09:40:09]POST finish read [09:40:09]Found Content-Length = 677 [09:40:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216135", "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:40:09]execute_script... [09:40: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)216135", "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:40:09]POST & json_proto [09:40:09]process_json_proto [09:40:09]json parsed OK: [09:40:09]protocol is kg_v1.0 [09:40:09]action value=close_receipt [09:40:09]process_action close_receipt [09:40:09]cmd_close_receipt [09:40:09]MH_GetDate [09:40:09]Write to MH i2c: F0 00 00 60 42 91 [09:40:09]Write i2c OK [09:40:09]MH_I2C_Read... [09:40:09]Read from MH i2c: F0 [09:40:09]MH_I2C_Read... [09:40:09]Read from MH i2c: F0 09 00 [09:40:09]MH_I2C_Read... [09:40:09]Read from MH i2c: F0 09 00 60 42 00 86 72 B7 65 26 5D 9E 65 34 [09:40:09]GetLastDocTimeStamp 1706521172 [09:40:09]current date 1706521222 [09:40:09]FM_GetShiftState [09:40:09]SAM_PROTO_GetShiftState [09:40:09]wFMCommunicate request_size=4 [09:40:09]MH_SAM_APDU [09:40:09]CAPDU: 80 13 01 00 [09:40:09]Write to MH i2c: E2 08 00 61 42 80 13 01 00 00 00 00 00 20 [09:40:09]Write i2c OK [09:40:09]MH_I2C_Read... [09:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:09]Read from MH i2c: E2 [09:40:09]MH_I2C_Read... [09:40:09]Read from MH i2c: E2 0E 00 [09:40:09]MH_I2C_Read... [09:40:09]Read from MH i2c: E2 0E 00 61 42 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 92 [09:40:09]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:40:09]wFMCommunicate OK [09:40:09]SAM_PROTO_GetShiftState done [09:40:09]FM_GetShiftState done [09:40:09]opened in 1706486624 [09:40:09]opened+sec_in_day 1706573024 [09:40:09]quantity*price = 50049 [09:40:09]sum+1 = 50050 [09:40:09]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 СÐО: Общий режим Чек 19 29.01.2024 09:40 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49036 ФПД: 180359641124177 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T094022&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49036&fm=180359641124177&tin=02508201610067®Number=0000000000092723&sum=50000 [09:40:10]StoreToDocumentArchive [09:40:10]shift 245 fd 49036 [09:40:10]save to /storage/0245/doc_00049036 [09:40:10]save last doc name /storage/0245/doc_00049036 to /storage/kkm_last_doc_name [09:40:10]save OK [09:40:10]Clear old archive folders... [09:40:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:40:10]tlvbuf is 01384C50 [09:40:10]SAM_PROTO_ClearQueue [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 09 00 00 [09:40:10]Write to MH i2c: E2 08 00 6E 42 80 09 00 00 00 00 00 00 22 [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 6E 42 00 90 00 24 [09:40:10]RAPDU: 90 00 [09:40:10]wFMCommunicate OK [09:40:10]SAM_PROTO_ClearQueue done [09:40:10]KKMCreateOFDPacket [09:40:10]OFDProtocolAddRootSTLVToBuf [09:40:10]FM_MakeSignedData [09:40:10]FM_MakeSignedData [09:40:10]SAM_PROTO_SignData [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 0D 01 02 [09:40:10]Write to MH i2c: E2 08 00 6F 42 80 0D 01 02 00 00 00 00 2A [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 6F 42 00 90 00 25 [09:40:10]RAPDU: 90 00 [09:40:10]wFMCommunicate OK [09:40:10]wFMCommunicate request_size=255 [09:40:10]MH_SAM_APDU [09:40: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 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 13 00 00 00 F4 03 04 00 86 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 A4 [09:40:10]Write to MH i2c: E2 02 01 70 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 13 00 00 00 F4 03 04 00 86 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 A4 00 00 65 [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 70 42 00 90 00 26 [09:40:10]RAPDU: 90 00 [09:40:10]wFMCommunicate OK [09:40:10]wFMCommunicate request_size=10 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 0D 02 02 05 09 40 57 4D 51 [09:40:10]Write to MH i2c: E2 0D 00 71 42 80 0D 02 02 05 00 09 40 57 4D 51 00 00 75 [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 03 00 71 42 00 90 00 27 [09:40:10]RAPDU: 90 00 [09:40:10]wFMCommunicate OK [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 0D 03 02 [09:40:10]Write to MH i2c: E2 08 00 72 42 80 0D 03 02 00 00 00 00 2F [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 0B 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 0B 00 72 42 00 A5 3C E3 EE F1 B4 CB 15 90 00 67 [09:40:10]RAPDU: A5 3C E3 EE F1 B4 CB 15 90 00 [09:40:10]wFMCommunicate OK [09:40:10]SAM_PROTO_SignData done [09:40:10]FM_MakeSignedData done [09:40:10]CreateOFDProtocolMessage [09:40:10]wFMCommunicate request_size=4 [09:40:10]MH_SAM_APDU [09:40:10]CAPDU: 80 11 00 00 [09:40:10]Write to MH i2c: E2 08 00 73 42 80 11 00 00 00 00 00 00 2F [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:10]Read from MH i2c: E2 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 17 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: E2 17 00 73 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7C [09:40: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:40:10]wFMCommunicate OK [09:40:10]CreateOFDProtocolMessage done [09:40:10]OFDSenderStorePacket 49036 [09:40:10]StoreOFDPacket docnum=49036 [09:40: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 27 9A 07 01 37 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 13 00 00 00 F4 03 04 00 86 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 A4 09 40 57 4D 51 A5 3C E3 EE F1 B4 CB 15 [09:40:10]CheckFolder [09:40:10]dirname=/storage/ofd_packets [09:40:10]CheckFolder done [09:40:10]ProducePacketName [09:40:10]name=ofd_packets/00049036 [09:40:10]NVStorageSaveData ofd_packets/00049036 [09:40:10]File name is /storage/ofd_packets/00049036 [09:40:10]Write 301 bytes [09:40:10]NVStorageSaveData done [09:40:10]OFDSenderStorePacket done [09:40:10]KKMCreateOFDPacket done [09:40:10]NVStorageSaveData kkm_last_timestamp [09:40:10]File name is /storage/kkm_last_timestamp [09:40:10]Write 4 bytes [09:40:10]NVStorageSaveData done [09:40:10]ExternCall_PrintAddStr [09:40:10]wPrintStart [09:40:10]Write to MH i2c: 01 00 00 74 42 B6 [09:40:10]Write i2c OK [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: 01 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: 01 07 00 [09:40:10]MH_I2C_Read... [09:40:10]Read from MH i2c: 01 07 00 74 42 00 00 00 00 00 FF 0F CB [09:40:11]RasterBufferAndPrint [09:40:11]line Счет N : (1)216135 [09:40:11]line ИÐÐ: 02508201610067 [09:40:11]line Контрольно-КаÑÑовый Чек [09:40:11]line ПРОДÐЖР[09:40:11]line ТРК (МРК, ГÐК) : 22 [09:40:11]line Товар: 2710124130 [09:40:11]line Ðи-92-К-5 [09:40:11]line 8.300 * 60.30 [09:40:11]line = 500.49 [09:40:11]line ÐДС 12% ÐСП 1% [09:40:11]line > о реализуемом товаре [09:40:11]line ОКРУГЛЕÐИЕ: -0.49 [09:40:11]line ИТОГО: 500.00 [09:40:11]line ВнеÑено: 500.00 [09:40:11]line СДÐЧÐ: 0.00 [09:40:11]line ÐСП 1% : 4.43 [09:40:11]line ÐДС 12% : 53.15 [09:40:11]line Ðаличными: 500.00 [09:40:11]line Безнал.: 0.00 [09:40:11]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:40:11]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:40:11]line СÐО: Общий режим [09:40:11]line Чек 19 29.01.2024 09:40 [09:40:11]line Смена: 245 ФФД: 1.0 [09:40:11]line ЗÐМ: 0300000040 [09:40:11]line РÐМ: 0000000000092723 [09:40:11]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:40:11]line ФМ: 0000000000875060 [09:40:11]line ФД: 49036 [09:40:11]line ФПД: 180359641124177 [09:40:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T094022&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49036&fm=180359641124177&tin=02508201610067®Number=0000000000092723&sum=50000 [09:40:11]OFD Sender: Processing packet 49036 [packets to send 12, broken 11] [09:40:11]ProducePacketName [09:40:11]name=ofd_packets/00049036 [09:40:11]OFD Sender: To server: ‡•öpG, [09:40:11]CommunicateWithHost lk.salyk.kg:30040 [09:40:11]ConnectInit lk.salyk.kg [09:40:11]written 0, free lines is 4095 [09:40:11]Connected sock=7 [09:40: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 27 9A 07 01 37 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 13 00 00 00 F4 03 04 00 86 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 A4 09 40 57 4D 51 A5 3C E3 EE F1 B4 CB 15 [09:40: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 0D A8 47 00 C3 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8C BF 00 00 F4 03 04 00 7F 1E B7 65 B6 04 01 00 00 F6 BC F1 00 1E 33 29 40 [09:40:11]CommunicateWithHost err = 0 [09:40:11]CheckOFDResponse [09:40:11]1017 (14) - 77093643461234 [09:40:11]1041 (16) - 0000000000875060 [09:40:11]1040 (4) - 49036 [09:40:11]1012 (4) - 29.01.2024 03:41 [09:40:11]1206 (1) - 0 [09:40:11]OFD Sender: Remove packet 49036 [09:40:11]ProducePacketName [09:40:11]name=ofd_packets/00049036 [09:40:11]NVStorageDeleteData [09:40:11]Write to MH i2c: 01 00 00 9F 42 E1 [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: 01 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: 01 07 00 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: 01 07 00 9F 42 00 00 00 00 00 FA 0C EE [09:40:11]RasterBufferAndPrint [09:40:11]line [09:40:11]line [09:40:11]line [09:40:11]line [09:40:11]line [09:40:11]written 0, free lines is 3329 [09:40:11]MH_Cut [09:40:11]Write to MH i2c: D1 01 00 A6 42 01 BA [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: D1 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: D1 01 00 [09:40:11]MH_I2C_Read... [09:40:11]Read from MH i2c: D1 01 00 A6 42 00 B9 [09:40:11]Write to MH i2c: 01 00 00 A7 42 E9 [09:40:11]Write i2c OK [09:40:11]MH_I2C_Read... [09:40:12]OFD Sender: No OFD packet to send [09:40:12]*** Cut start [09:40:12]*** Partial cut [09:40:12]*** CUTSNS_PIN = 1 [09:40:12]*** CUTSNS_PIN = 0 [09:40:12]*** Brake cut motor [09:40:13]Read from MH i2c: 01 [09:40:13]MH_I2C_Read... [09:40:13]*** Stop cut motor [09:40:13]*** Cut end [09:40:13]Read from MH i2c: 01 07 00 [09:40:13]MH_I2C_Read... [09:40:13]Read from MH i2c: 01 07 00 A7 42 00 00 00 00 00 FF 0F FE [09:40:13]process_action close_receipt done [09:40:13]requested_data is exist [09:40:13]produce_requested_data [09:40:13]requested_item fm.sn is exist - process it [09:40:13]wFMCommunicate request_size=4 [09:40:13]MH_SAM_APDU [09:40:13]CAPDU: 80 11 00 00 [09:40:13]Write to MH i2c: E2 08 00 A8 42 80 11 00 00 00 00 00 00 64 [09:40:13]Write i2c OK [09:40:13]MH_I2C_Read... [09:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:40:13]Read from MH i2c: E2 [09:40:13]MH_I2C_Read... [09:40:13]Read from MH i2c: E2 17 00 [09:40:13]MH_I2C_Read... [09:40:13]Read from MH i2c: E2 17 00 A8 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B1 [09:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:40:13]wFMCommunicate OK [09:40:13]requested_item fd.num is exist - process it [09:40:13]SAM_PROTO_GetFieldsCounters [09:40:13]wFMCommunicate request_size=4 [09:40:13]MH_SAM_APDU [09:40:13]CAPDU: 80 13 00 00 [09:40:13]Write to MH i2c: E2 08 00 A9 42 80 13 00 00 00 00 00 00 67 [09:40:13]Write i2c OK [09:40:13]MH_I2C_Read... [09:40:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:40:13]Read from MH i2c: E2 [09:40:13]MH_I2C_Read... [09:40:13]Read from MH i2c: E2 62 00 [09:40:13]MH_I2C_Read... [09:40:13]Read from MH i2c: E2 62 00 A9 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 F9 [09:40: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 8C BF 00 00 0E 04 04 00 F5 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:40:13]wFMCommunicate OK [09:40:13]SAM_PROTO_GetFieldsCounters done [09:40:13]requested_item shift.num is exist - process it [09:40:13]requested_item shift.opened is exist - process it [09:40:13]req_shift_opened [09:40:13]FM_GetShiftState [09:40:13]SAM_PROTO_GetShiftState [09:40:13]wFMCommunicate request_size=4 [09:40:13]MH_SAM_APDU [09:40:13]CAPDU: 80 13 01 00 [09:40:13]Write to MH i2c: E2 08 00 AA 42 80 13 01 00 00 00 00 00 69 [09:40:13]Write i2c OK [09:40:13]MH_I2C_Read... [09:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:40:13]Read from MH i2c: E2 [09:40:13]MH_I2C_Read... [09:40:13]Read from MH i2c: E2 0E 00 [09:40:13]MH_I2C_Read... [09:40:13]Read from MH i2c: E2 0E 00 AA 42 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 DB [09:40:13]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:40:13]wFMCommunicate OK [09:40:13]SAM_PROTO_GetShiftState done [09:40:13]FM_GetShiftState done [09:40:13]req_shift_opened done [09:40:13]requested_item shift.open_date is exist - process it [09:40:13]req_shift_open_date [09:40:13]req_shift_open_date done [09:40:13]produce_requested_data done [09:40:13]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49036,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:40:13]process_action_free close_receipt [09:40:13]json_value_free [09:40:13]json_value_free done [09:40:13]process_json_proto returns [09:40:13]Send response to host [09:40:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49036,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:40:13]free response buf [09:40:13]execute_script done [09:40:13]execute_script returns [09:40:13]free content buf [09:40:13]Sock 9.Close socket [09:40:13]Sock 9.Thread stoped [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:00]accept exits with 10 [09:41:00]New connection [09:41:00]New thread 3066670436 created [09:41:00]Thread 3066813796 joined [09:41:00]Waiting for new connection... [09:41:00] Sock 10.Parse request [09:41:00]Sock 10.Check first char [09:41:00]Sock 10.First char is OK [09:41:00]request: POST /json_proto HTTP/1.0 [09:41:00]Method: POST [09:41:00]URL: /json_proto [09:41:00]Method is POST - this is cgi request [09:41:00]url: /json_proto [09:41:00]query_string will be loaded in cgi processing [09:41:00]execute_cgi json_proto POST (null) [09:41:00]execute_cgi path=json_proto method=POST [09:41:00]POST find Content-Length [09:41:00]Host: 172.17.56.67:8080 [09:41:00]Content-Length: 677 [09:41:00]Content-Type: application/json [09:41:00] [09:41:00]POST finish read [09:41:00]Found Content-Length = 677 [09:41:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216136", "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" ] } } [09:41:00]execute_script... [09:41:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216136", "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" ] } } [09:41:00]POST & json_proto [09:41:00]process_json_proto [09:41:00]json parsed OK: [09:41:00]protocol is kg_v1.0 [09:41:00]action value=close_receipt [09:41:00]process_action close_receipt [09:41:00]cmd_close_receipt [09:41:00]MH_GetDate [09:41:00]Write to MH i2c: F0 00 00 AB 42 DC [09:41:00]Write i2c OK [09:41:00]MH_I2C_Read... [09:41:00]Read from MH i2c: F0 [09:41:00]MH_I2C_Read... [09:41:00]Read from MH i2c: F0 09 00 [09:41:00]MH_I2C_Read... [09:41:00]Read from MH i2c: F0 09 00 AB 42 00 B9 72 B7 65 26 5D 9E 65 B2 [09:41:00]GetLastDocTimeStamp 1706521222 [09:41:00]current date 1706521273 [09:41:00]FM_GetShiftState [09:41:00]SAM_PROTO_GetShiftState [09:41:00]wFMCommunicate request_size=4 [09:41:00]MH_SAM_APDU [09:41:00]CAPDU: 80 13 01 00 [09:41:00]Write to MH i2c: E2 08 00 AC 42 80 13 01 00 00 00 00 00 6B [09:41:00]Write i2c OK [09:41:00]MH_I2C_Read... [09:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:00]Read from MH i2c: E2 [09:41:00]MH_I2C_Read... [09:41:00]Read from MH i2c: E2 0E 00 [09:41:00]MH_I2C_Read... [09:41:00]Read from MH i2c: E2 0E 00 AC 42 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 DD [09:41:00]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:41:00]wFMCommunicate OK [09:41:00]SAM_PROTO_GetShiftState done [09:41:00]FM_GetShiftState done [09:41:00]opened in 1706486624 [09:41:00]opened+sec_in_day 1706573024 [09:41:00]quantity*price = 60058 [09:41:00]sum+1 = 60060 [09:41:00]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 СÐО: Общий режим Чек 20 29.01.2024 09:41 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49037 ФПД: 258068204795030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T094113&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49037&fm=258068204795030&tin=02508201610067®Number=0000000000092723&sum=60000 [09:41:02]StoreToDocumentArchive [09:41:02]shift 245 fd 49037 [09:41:02]save to /storage/0245/doc_00049037 [09:41:02]save last doc name /storage/0245/doc_00049037 to /storage/kkm_last_doc_name [09:41:02]save OK [09:41:02]Clear old archive folders... [09:41:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:02]tlvbuf is 01244060 [09:41:02]SAM_PROTO_ClearQueue [09:41:02]wFMCommunicate request_size=4 [09:41:02]MH_SAM_APDU [09:41:02]CAPDU: 80 09 00 00 [09:41:02]Write to MH i2c: E2 08 00 B9 42 80 09 00 00 00 00 00 00 6D [09:41:02]Write i2c OK [09:41:02]MH_I2C_Read... [09:41:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:02]Read from MH i2c: E2 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 03 00 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 03 00 B9 42 00 90 00 6F [09:41:02]RAPDU: 90 00 [09:41:02]wFMCommunicate OK [09:41:02]SAM_PROTO_ClearQueue done [09:41:02]KKMCreateOFDPacket [09:41:02]OFDProtocolAddRootSTLVToBuf [09:41:02]FM_MakeSignedData [09:41:02]FM_MakeSignedData [09:41:02]SAM_PROTO_SignData [09:41:02]wFMCommunicate request_size=4 [09:41:02]MH_SAM_APDU [09:41:02]CAPDU: 80 0D 01 02 [09:41:02]Write to MH i2c: E2 08 00 BA 42 80 0D 01 02 00 00 00 00 75 [09:41:02]Write i2c OK [09:41:02]MH_I2C_Read... [09:41:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:02]Read from MH i2c: E2 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 03 00 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 03 00 BA 42 00 90 00 70 [09:41:02]RAPDU: 90 00 [09:41:02]wFMCommunicate OK [09:41:02]wFMCommunicate request_size=255 [09:41:02]MH_SAM_APDU [09:41:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 14 00 00 00 F4 03 04 00 B9 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 EA [09:41:02]Write to MH i2c: E2 02 01 BB 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 14 00 00 00 F4 03 04 00 B9 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 EA 00 00 E0 [09:41:02]Write i2c OK [09:41:02]MH_I2C_Read... [09:41:02]OFD Sender: No OFD packet to send [09:41:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:02]Read from MH i2c: E2 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 03 00 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 03 00 BB 42 00 90 00 71 [09:41:02]RAPDU: 90 00 [09:41:02]wFMCommunicate OK [09:41:02]wFMCommunicate request_size=10 [09:41:02]MH_SAM_APDU [09:41:02]CAPDU: 80 0D 02 02 05 B6 2F AC B4 96 [09:41:02]Write to MH i2c: E2 0D 00 BC 42 80 0D 02 02 05 00 B6 2F AC B4 96 00 00 5D [09:41:02]Write i2c OK [09:41:02]MH_I2C_Read... [09:41:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:02]Read from MH i2c: E2 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 03 00 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 03 00 BC 42 00 90 00 72 [09:41:02]RAPDU: 90 00 [09:41:02]wFMCommunicate OK [09:41:02]wFMCommunicate request_size=4 [09:41:02]MH_SAM_APDU [09:41:02]CAPDU: 80 0D 03 02 [09:41:02]Write to MH i2c: E2 08 00 BD 42 80 0D 03 02 00 00 00 00 7A [09:41:02]Write i2c OK [09:41:02]MH_I2C_Read... [09:41:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:02]Read from MH i2c: E2 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 0B 00 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 0B 00 BD 42 00 97 94 C1 B7 FF D3 1B 27 90 00 32 [09:41:02]RAPDU: 97 94 C1 B7 FF D3 1B 27 90 00 [09:41:02]wFMCommunicate OK [09:41:02]SAM_PROTO_SignData done [09:41:02]FM_MakeSignedData done [09:41:02]CreateOFDProtocolMessage [09:41:02]wFMCommunicate request_size=4 [09:41:02]MH_SAM_APDU [09:41:02]CAPDU: 80 11 00 00 [09:41:02]Write to MH i2c: E2 08 00 BE 42 80 11 00 00 00 00 00 00 7A [09:41:02]Write i2c OK [09:41:02]MH_I2C_Read... [09:41:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:02]Read from MH i2c: E2 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 17 00 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: E2 17 00 BE 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C7 [09:41:02]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:02]wFMCommunicate OK [09:41:02]CreateOFDProtocolMessage done [09:41:02]OFDSenderStorePacket 49037 [09:41:02]StoreOFDPacket docnum=49037 [09:41:02]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 D8 A9 07 01 CA 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 14 00 00 00 F4 03 04 00 B9 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 EA B6 2F AC B4 96 97 94 C1 B7 FF D3 1B 27 [09:41:02]CheckFolder [09:41:02]dirname=/storage/ofd_packets [09:41:02]CheckFolder done [09:41:02]ProducePacketName [09:41:02]name=ofd_packets/00049037 [09:41:02]NVStorageSaveData ofd_packets/00049037 [09:41:02]File name is /storage/ofd_packets/00049037 [09:41:02]Write 301 bytes [09:41:02]NVStorageSaveData done [09:41:02]OFDSenderStorePacket done [09:41:02]KKMCreateOFDPacket done [09:41:02]NVStorageSaveData kkm_last_timestamp [09:41:02]File name is /storage/kkm_last_timestamp [09:41:02]Write 4 bytes [09:41:02]NVStorageSaveData done [09:41:02]ExternCall_PrintAddStr [09:41:02]wPrintStart [09:41:02]Write to MH i2c: 01 00 00 BF 42 01 [09:41:02]Write i2c OK [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: 01 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: 01 07 00 [09:41:02]MH_I2C_Read... [09:41:02]Read from MH i2c: 01 07 00 BF 42 00 00 00 00 00 FF 0F 16 [09:41:02]RasterBufferAndPrint [09:41:02]line Счет N : (1)216136 [09:41:02]line ИÐÐ: 02508201610067 [09:41:02]line Контрольно-КаÑÑовый Чек [09:41:02]line ПРОДÐЖР[09:41:02]line ТРК (МРК, ГÐК) : 12 [09:41:02]line Товар: 2710124130 [09:41:02]line Ðи-92-К-5 [09:41:02]line 9.960 * 60.30 [09:41:02]line = 600.59 [09:41:02]line ÐДС 12% ÐСП 1% [09:41:02]line > о реализуемом товаре [09:41:02]line ОКРУГЛЕÐИЕ: -0.59 [09:41:02]line ИТОГО: 600.00 [09:41:02]line ВнеÑено: 600.00 [09:41:02]line СДÐЧÐ: 0.00 [09:41:02]line ÐСП 1% : 5.31 [09:41:02]line ÐДС 12% : 63.78 [09:41:02]line Ðаличными: 600.00 [09:41:02]line Безнал.: 0.00 [09:41:02]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:41:02]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:41:02]line СÐО: Общий режим [09:41:02]line Чек 20 29.01.2024 09:41 [09:41:02]line Смена: 245 ФФД: 1.0 [09:41:02]line ЗÐМ: 0300000040 [09:41:02]line РÐМ: 0000000000092723 [09:41:02]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:41:02]line ФМ: 0000000000875060 [09:41:02]line ФД: 49037 [09:41:02]line ФПД: 258068204795030 [09:41:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T094113&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49037&fm=258068204795030&tin=02508201610067®Number=0000000000092723&sum=60000 [09:41:03]OFD Sender: Processing packet 49037 [packets to send 12, broken 11] [09:41:03]ProducePacketName [09:41:03]name=ofd_packets/00049037 [09:41:03]OFD Sender: To server: ‡•öpG, [09:41:03]CommunicateWithHost lk.salyk.kg:30040 [09:41:03]ConnectInit lk.salyk.kg [09:41:03]written 0, free lines is 4095 [09:41:03]Connected sock=9 [09:41:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 D8 A9 07 01 CA 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 14 00 00 00 F4 03 04 00 B9 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 EA B6 2F AC B4 96 97 94 C1 B7 FF D3 1B 27 [09:41:03]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 3A 0C 47 00 B2 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8D BF 00 00 F4 03 04 00 B2 1E B7 65 B6 04 01 00 00 99 F5 23 33 E6 44 A4 DA [09:41:03]CommunicateWithHost err = 0 [09:41:03]CheckOFDResponse [09:41:03]1017 (14) - 77093643461234 [09:41:03]1041 (16) - 0000000000875060 [09:41:03]1040 (4) - 49037 [09:41:03]1012 (4) - 29.01.2024 03:42 [09:41:03]1206 (1) - 0 [09:41:03]OFD Sender: Remove packet 49037 [09:41:03]ProducePacketName [09:41:03]name=ofd_packets/00049037 [09:41:03]NVStorageDeleteData [09:41:03]Write to MH i2c: 01 00 00 EA 42 2C [09:41:03]Write i2c OK [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: 01 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: 01 07 00 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: 01 07 00 EA 42 00 00 00 00 00 01 0D 41 [09:41:03]RasterBufferAndPrint [09:41:03]line [09:41:03]line [09:41:03]line [09:41:03]line [09:41:03]line [09:41:03]written 0, free lines is 3335 [09:41:03]MH_Cut [09:41:03]Write to MH i2c: D1 01 00 F1 42 01 05 [09:41:03]Write i2c OK [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: D1 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: D1 01 00 [09:41:03]MH_I2C_Read... [09:41:03]Read from MH i2c: D1 01 00 F1 42 00 04 [09:41:03]Write to MH i2c: 01 00 00 F2 42 34 [09:41:03]Write i2c OK [09:41:03]MH_I2C_Read... [09:41:03]OFD Sender: No OFD packet to send [09:41:04]*** Cut start [09:41:04]*** Partial cut [09:41:04]*** CUTSNS_PIN = 1 [09:41:04]*** CUTSNS_PIN = 0 [09:41:04]*** Brake cut motor [09:41:04]Read from MH i2c: 01 [09:41:04]MH_I2C_Read... [09:41:04]*** Stop cut motor [09:41:04]*** Cut end [09:41:04]Read from MH i2c: 01 07 00 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: 01 07 00 F2 42 00 00 00 00 00 FF 0F 49 [09:41:04]process_action close_receipt done [09:41:04]requested_data is exist [09:41:04]produce_requested_data [09:41:04]requested_item fm.sn is exist - process it [09:41:04]wFMCommunicate request_size=4 [09:41:04]MH_SAM_APDU [09:41:04]CAPDU: 80 11 00 00 [09:41:04]Write to MH i2c: E2 08 00 F3 42 80 11 00 00 00 00 00 00 AF [09:41:04]Write i2c OK [09:41:04]MH_I2C_Read... [09:41:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:04]Read from MH i2c: E2 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: E2 17 00 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: E2 17 00 F3 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FC [09:41:04]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:04]wFMCommunicate OK [09:41:04]requested_item fd.num is exist - process it [09:41:04]SAM_PROTO_GetFieldsCounters [09:41:04]wFMCommunicate request_size=4 [09:41:04]MH_SAM_APDU [09:41:04]CAPDU: 80 13 00 00 [09:41:04]Write to MH i2c: E2 08 00 F4 42 80 13 00 00 00 00 00 00 B2 [09:41:04]Write i2c OK [09:41:04]MH_I2C_Read... [09:41:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:04]Read from MH i2c: E2 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: E2 62 00 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: E2 62 00 F4 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 48 [09:41:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:41:04]wFMCommunicate OK [09:41:04]SAM_PROTO_GetFieldsCounters done [09:41:04]requested_item shift.num is exist - process it [09:41:04]requested_item shift.opened is exist - process it [09:41:04]req_shift_opened [09:41:04]FM_GetShiftState [09:41:04]SAM_PROTO_GetShiftState [09:41:04]wFMCommunicate request_size=4 [09:41:04]MH_SAM_APDU [09:41:04]CAPDU: 80 13 01 00 [09:41:04]Write to MH i2c: E2 08 00 F5 42 80 13 01 00 00 00 00 00 B4 [09:41:04]Write i2c OK [09:41:04]MH_I2C_Read... [09:41:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:04]Read from MH i2c: E2 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: E2 0E 00 [09:41:04]MH_I2C_Read... [09:41:04]Read from MH i2c: E2 0E 00 F5 42 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 26 [09:41:04]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:41:04]wFMCommunicate OK [09:41:04]SAM_PROTO_GetShiftState done [09:41:04]FM_GetShiftState done [09:41:04]req_shift_opened done [09:41:04]requested_item shift.open_date is exist - process it [09:41:04]req_shift_open_date [09:41:04]req_shift_open_date done [09:41:04]produce_requested_data done [09:41:04]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49037,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:41:04]process_action_free close_receipt [09:41:04]json_value_free [09:41:04]json_value_free done [09:41:04]process_json_proto returns [09:41:04]Send response to host [09:41:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49037,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:41:04]free response buf [09:41:04]execute_script done [09:41:04]execute_script returns [09:41:04]free content buf [09:41:04]Sock 10.Close socket [09:41:04]Sock 10.Thread stoped [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:20]accept exits with 7 [09:41:20]New connection [09:41:20]New thread 3066813796 created [09:41:20]Thread 3066670436 joined [09:41:20]Waiting for new connection... [09:41:20] Sock 7.Parse request [09:41:20]Sock 7.Check first char [09:41:20]Sock 7.First char is OK [09:41:20]request: POST /json_proto HTTP/1.0 [09:41:20]Method: POST [09:41:20]URL: /json_proto [09:41:20]Method is POST - this is cgi request [09:41:20]url: /json_proto [09:41:20]query_string will be loaded in cgi processing [09:41:20]execute_cgi json_proto POST (null) [09:41:20]execute_cgi path=json_proto method=POST [09:41:20]POST find Content-Length [09:41:20]Host: 172.17.56.67:8080 [09:41:20]Content-Length: 677 [09:41:20]Content-Type: application/json [09:41:20] [09:41:20]POST finish read [09:41:20]Found Content-Length = 677 [09:41:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216137", "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:41:20]execute_script... [09:41:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216137", "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:41:20]POST & json_proto [09:41:20]process_json_proto [09:41:20]json parsed OK: [09:41:20]protocol is kg_v1.0 [09:41:20]action value=close_receipt [09:41:20]process_action close_receipt [09:41:20]cmd_close_receipt [09:41:20]MH_GetDate [09:41:20]Write to MH i2c: F0 00 00 F6 42 27 [09:41:20]Write i2c OK [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: F0 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: F0 09 00 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: F0 09 00 F6 42 00 CD 72 B7 65 26 5D 9E 65 11 [09:41:20]GetLastDocTimeStamp 1706521273 [09:41:20]current date 1706521293 [09:41:20]FM_GetShiftState [09:41:20]SAM_PROTO_GetShiftState [09:41:20]wFMCommunicate request_size=4 [09:41:20]MH_SAM_APDU [09:41:20]CAPDU: 80 13 01 00 [09:41:20]Write to MH i2c: E2 08 00 F7 42 80 13 01 00 00 00 00 00 B6 [09:41:20]Write i2c OK [09:41:20]MH_I2C_Read... [09:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:20]Read from MH i2c: E2 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: E2 0E 00 [09:41:20]MH_I2C_Read... [09:41:20]Read from MH i2c: E2 0E 00 F7 42 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 28 [09:41:20]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:41:20]wFMCommunicate OK [09:41:20]SAM_PROTO_GetShiftState done [09:41:20]FM_GetShiftState done [09:41:20]opened in 1706486624 [09:41:20]opened+sec_in_day 1706573024 [09:41:20]quantity*price = 30029 [09:41:20]sum+1 = 30030 [09:41: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 СÐО: Общий режим Чек 21 29.01.2024 09:41 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49038 ФПД: 127233243662821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T094133&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49038&fm=127233243662821&tin=02508201610067®Number=0000000000092723&sum=30000 [09:41:21]StoreToDocumentArchive [09:41:21]shift 245 fd 49038 [09:41:21]save to /storage/0245/doc_00049038 [09:41:21]save last doc name /storage/0245/doc_00049038 to /storage/kkm_last_doc_name [09:41:21]save OK [09:41:21]Clear old archive folders... [09:41:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:21]tlvbuf is 01214F30 [09:41:21]SAM_PROTO_ClearQueue [09:41:21]wFMCommunicate request_size=4 [09:41:21]MH_SAM_APDU [09:41:21]CAPDU: 80 09 00 00 [09:41:21]Write to MH i2c: E2 08 00 04 43 80 09 00 00 00 00 00 00 B9 [09:41:21]Write i2c OK [09:41:21]MH_I2C_Read... [09:41:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:21]Read from MH i2c: E2 [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: E2 03 00 [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: E2 03 00 04 43 00 90 00 BB [09:41:21]RAPDU: 90 00 [09:41:21]wFMCommunicate OK [09:41:21]SAM_PROTO_ClearQueue done [09:41:21]KKMCreateOFDPacket [09:41:21]OFDProtocolAddRootSTLVToBuf [09:41:21]FM_MakeSignedData [09:41:21]FM_MakeSignedData [09:41:21]SAM_PROTO_SignData [09:41:21]wFMCommunicate request_size=4 [09:41:21]MH_SAM_APDU [09:41:21]CAPDU: 80 0D 01 02 [09:41:21]Write to MH i2c: E2 08 00 05 43 80 0D 01 02 00 00 00 00 C1 [09:41:21]Write i2c OK [09:41:21]MH_I2C_Read... [09:41:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:21]Read from MH i2c: E2 [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: E2 03 00 [09:41:21]MH_I2C_Read... [09:41:21]Read from MH i2c: E2 03 00 05 43 00 90 00 BC [09:41:21]RAPDU: 90 00 [09:41:21]wFMCommunicate OK [09:41:21]wFMCommunicate request_size=255 [09:41:21]MH_SAM_APDU [09:41:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 15 00 00 00 F4 03 04 00 CD 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 73 [09:41:21]Write to MH i2c: E2 02 01 06 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 15 00 00 00 F4 03 04 00 CD 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 73 00 00 AC [09:41:21]Write i2c OK [09:41:21]MH_I2C_Read... [09:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:22]Read from MH i2c: E2 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 03 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 03 00 06 43 00 90 00 BD [09:41:22]RAPDU: 90 00 [09:41:22]wFMCommunicate OK [09:41:22]wFMCommunicate request_size=10 [09:41:22]MH_SAM_APDU [09:41:22]CAPDU: 80 0D 02 02 05 B7 CC 4A C9 E5 [09:41:22]Write to MH i2c: E2 0D 00 07 43 80 0D 02 02 05 00 B7 CC 4A C9 E5 00 00 49 [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:22]Read from MH i2c: E2 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 03 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 03 00 07 43 00 90 00 BE [09:41:22]RAPDU: 90 00 [09:41:22]wFMCommunicate OK [09:41:22]wFMCommunicate request_size=4 [09:41:22]MH_SAM_APDU [09:41:22]CAPDU: 80 0D 03 02 [09:41:22]Write to MH i2c: E2 08 00 08 43 80 0D 03 02 00 00 00 00 C6 [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:22]Read from MH i2c: E2 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 0B 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 0B 00 08 43 00 58 7D 4A 36 C2 20 5D 25 90 00 80 [09:41:22]RAPDU: 58 7D 4A 36 C2 20 5D 25 90 00 [09:41:22]wFMCommunicate OK [09:41:22]SAM_PROTO_SignData done [09:41:22]FM_MakeSignedData done [09:41:22]CreateOFDProtocolMessage [09:41:22]wFMCommunicate request_size=4 [09:41:22]MH_SAM_APDU [09:41:22]CAPDU: 80 11 00 00 [09:41:22]Write to MH i2c: E2 08 00 09 43 80 11 00 00 00 00 00 00 C6 [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:22]Read from MH i2c: E2 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 17 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: E2 17 00 09 43 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:41: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:41:22]wFMCommunicate OK [09:41:22]CreateOFDProtocolMessage done [09:41:22]OFDSenderStorePacket 49038 [09:41:22]StoreOFDPacket docnum=49038 [09:41: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 44 33 07 01 E9 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 15 00 00 00 F4 03 04 00 CD 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 73 B7 CC 4A C9 E5 58 7D 4A 36 C2 20 5D 25 [09:41:22]CheckFolder [09:41:22]dirname=/storage/ofd_packets [09:41:22]CheckFolder done [09:41:22]ProducePacketName [09:41:22]name=ofd_packets/00049038 [09:41:22]NVStorageSaveData ofd_packets/00049038 [09:41:22]File name is /storage/ofd_packets/00049038 [09:41:22]Write 301 bytes [09:41:22]NVStorageSaveData done [09:41:22]OFDSenderStorePacket done [09:41:22]KKMCreateOFDPacket done [09:41:22]NVStorageSaveData kkm_last_timestamp [09:41:22]File name is /storage/kkm_last_timestamp [09:41:22]Write 4 bytes [09:41:22]NVStorageSaveData done [09:41:22]ExternCall_PrintAddStr [09:41:22]wPrintStart [09:41:22]Write to MH i2c: 01 00 00 0A 43 4D [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: 01 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: 01 07 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: 01 07 00 0A 43 00 00 00 00 00 FF 0F 62 [09:41:22]RasterBufferAndPrint [09:41:22]line Счет N : (1)216137 [09:41:22]line ИÐÐ: 02508201610067 [09:41:22]line Контрольно-КаÑÑовый Чек [09:41:22]line ПРОДÐЖР[09:41:22]line ТРК (МРК, ГÐК) : 22 [09:41:22]line Товар: 2710124130 [09:41:22]line Ðи-92-К-5 [09:41:22]line 4.980 * 60.30 [09:41:22]line = 300.29 [09:41:22]line ÐДС 12% ÐСП 1% [09:41:22]line > о реализуемом товаре [09:41:22]line ОКРУГЛЕÐИЕ: -0.29 [09:41:22]line ИТОГО: 300.00 [09:41:22]line ВнеÑено: 300.00 [09:41:22]line СДÐЧÐ: 0.00 [09:41:22]line ÐСП 1% : 2.66 [09:41:22]line ÐДС 12% : 31.89 [09:41:22]line Ðаличными: 300.00 [09:41:22]line Безнал.: 0.00 [09:41:22]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:41:22]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:41:22]line СÐО: Общий режим [09:41:22]line Чек 21 29.01.2024 09:41 [09:41:22]line Смена: 245 ФФД: 1.0 [09:41:22]line ЗÐМ: 0300000040 [09:41:22]line РÐМ: 0000000000092723 [09:41:22]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:41:22]line ФМ: 0000000000875060 [09:41:22]line ФД: 49038 [09:41:22]line ФПД: 127233243662821 [09:41:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T094133&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49038&fm=127233243662821&tin=02508201610067®Number=0000000000092723&sum=30000 [09:41:22]OFD Sender: Processing packet 49038 [packets to send 12, broken 11] [09:41:22]ProducePacketName [09:41:22]name=ofd_packets/00049038 [09:41:22]OFD Sender: To server: ‡•öpG, [09:41:22]CommunicateWithHost lk.salyk.kg:30040 [09:41:22]ConnectInit lk.salyk.kg [09:41:22]written 0, free lines is 4095 [09:41:22]Connected sock=10 [09:41:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 44 33 07 01 E9 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 15 00 00 00 F4 03 04 00 CD 72 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 73 B7 CC 4A C9 E5 58 7D 4A 36 C2 20 5D 25 [09:41: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 DA 67 47 00 18 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 8E BF 00 00 F4 03 04 00 C6 1E B7 65 B6 04 01 00 00 E6 03 82 B2 4C 27 60 8A [09:41:22]CommunicateWithHost err = 0 [09:41:22]CheckOFDResponse [09:41:22]1017 (14) - 77093643461234 [09:41:22]1041 (16) - 0000000000875060 [09:41:22]1040 (4) - 49038 [09:41:22]1012 (4) - 29.01.2024 03:43 [09:41:22]1206 (1) - 0 [09:41:22]OFD Sender: Remove packet 49038 [09:41:22]ProducePacketName [09:41:22]name=ofd_packets/00049038 [09:41:22]NVStorageDeleteData [09:41:22]Write to MH i2c: 01 00 00 35 43 78 [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: 01 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: 01 07 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: 01 07 00 35 43 00 00 00 00 00 FE 0C 89 [09:41:22]RasterBufferAndPrint [09:41:22]line [09:41:22]line [09:41:22]line [09:41:22]line [09:41:22]line [09:41:22]written 0, free lines is 3332 [09:41:22]MH_Cut [09:41:22]Write to MH i2c: D1 01 00 3C 43 01 51 [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: D1 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: D1 01 00 [09:41:22]MH_I2C_Read... [09:41:22]Read from MH i2c: D1 01 00 3C 43 00 50 [09:41:22]Write to MH i2c: 01 00 00 3D 43 80 [09:41:22]Write i2c OK [09:41:22]MH_I2C_Read... [09:41:23]OFD Sender: No OFD packet to send [09:41:23]*** Cut start [09:41:23]*** Partial cut [09:41:23]*** CUTSNS_PIN = 1 [09:41:23]*** CUTSNS_PIN = 0 [09:41:23]*** Brake cut motor [09:41:24]Read from MH i2c: 01 [09:41:24]MH_I2C_Read... [09:41:24]*** Stop cut motor [09:41:24]*** Cut end [09:41:24]Read from MH i2c: 01 07 00 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: 01 07 00 3D 43 00 00 00 00 00 FF 0F 95 [09:41:24]process_action close_receipt done [09:41:24]requested_data is exist [09:41:24]produce_requested_data [09:41:24]requested_item fm.sn is exist - process it [09:41:24]wFMCommunicate request_size=4 [09:41:24]MH_SAM_APDU [09:41:24]CAPDU: 80 11 00 00 [09:41:24]Write to MH i2c: E2 08 00 3E 43 80 11 00 00 00 00 00 00 FB [09:41:24]Write i2c OK [09:41:24]MH_I2C_Read... [09:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:24]Read from MH i2c: E2 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: E2 17 00 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: E2 17 00 3E 43 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:41: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:41:24]wFMCommunicate OK [09:41:24]requested_item fd.num is exist - process it [09:41:24]SAM_PROTO_GetFieldsCounters [09:41:24]wFMCommunicate request_size=4 [09:41:24]MH_SAM_APDU [09:41:24]CAPDU: 80 13 00 00 [09:41:24]Write to MH i2c: E2 08 00 3F 43 80 13 00 00 00 00 00 00 FE [09:41:24]Write i2c OK [09:41:24]MH_I2C_Read... [09:41:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:24]Read from MH i2c: E2 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: E2 62 00 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: E2 62 00 3F 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 98 [09:41: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 8E BF 00 00 0E 04 04 00 F5 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:24]wFMCommunicate OK [09:41:24]SAM_PROTO_GetFieldsCounters done [09:41:24]requested_item shift.num is exist - process it [09:41:24]requested_item shift.opened is exist - process it [09:41:24]req_shift_opened [09:41:24]FM_GetShiftState [09:41:24]SAM_PROTO_GetShiftState [09:41:24]wFMCommunicate request_size=4 [09:41:24]MH_SAM_APDU [09:41:24]CAPDU: 80 13 01 00 [09:41:24]Write to MH i2c: E2 08 00 40 43 80 13 01 00 00 00 00 00 00 [09:41:24]Write i2c OK [09:41:24]MH_I2C_Read... [09:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:24]Read from MH i2c: E2 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: E2 0E 00 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: E2 0E 00 40 43 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 72 [09:41:24]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:41:24]wFMCommunicate OK [09:41:24]SAM_PROTO_GetShiftState done [09:41:24]FM_GetShiftState done [09:41:24]req_shift_opened done [09:41:24]requested_item shift.open_date is exist - process it [09:41:24]req_shift_open_date [09:41:24]req_shift_open_date done [09:41:24]produce_requested_data done [09:41:24]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49038,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:41:24]process_action_free close_receipt [09:41:24]json_value_free [09:41:24]json_value_free done [09:41:24]process_json_proto returns [09:41:24]Send response to host [09:41:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49038,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:41:24]free response buf [09:41:24]execute_script done [09:41:24]execute_script returns [09:41:24]free content buf [09:41:24]Sock 7.Close socket [09:41:24]Sock 7.Thread stoped [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:53]OFD Sender: No OFD packet to send [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:50]accept exits with 9 [09:43:50]New connection [09:43:50]New thread 3066670436 created [09:43:50]Thread 3066813796 joined [09:43:50]Waiting for new connection... [09:43:50] Sock 9.Parse request [09:43:50]Sock 9.Check first char [09:43:50]Sock 9.First char is OK [09:43:50]request: POST /json_proto HTTP/1.0 [09:43:50]Method: POST [09:43:50]URL: /json_proto [09:43:50]Method is POST - this is cgi request [09:43:50]url: /json_proto [09:43:50]query_string will be loaded in cgi processing [09:43:50]execute_cgi json_proto POST (null) [09:43:50]execute_cgi path=json_proto method=POST [09:43:50]POST find Content-Length [09:43:50]Host: 172.17.56.67:8080 [09:43:50]Content-Length: 677 [09:43:50]Content-Type: application/json [09:43:50] [09:43:50]POST finish read [09:43:50]Found Content-Length = 677 [09:43:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216138", "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:43:50]execute_script... [09:43:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216138", "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:43:50]POST & json_proto [09:43:50]process_json_proto [09:43:50]json parsed OK: [09:43:50]protocol is kg_v1.0 [09:43:50]action value=close_receipt [09:43:50]process_action close_receipt [09:43:50]cmd_close_receipt [09:43:50]MH_GetDate [09:43:50]Write to MH i2c: F0 00 00 41 43 73 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: F0 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: F0 09 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: F0 09 00 41 43 00 63 73 B7 65 26 5D 9E 65 F4 [09:43:50]GetLastDocTimeStamp 1706521293 [09:43:50]current date 1706521443 [09:43:50]FM_GetShiftState [09:43:50]SAM_PROTO_GetShiftState [09:43:50]wFMCommunicate request_size=4 [09:43:50]MH_SAM_APDU [09:43:50]CAPDU: 80 13 01 00 [09:43:50]Write to MH i2c: E2 08 00 42 43 80 13 01 00 00 00 00 00 02 [09:43:50]Write i2c OK [09:43:50]MH_I2C_Read... [09:43:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:50]Read from MH i2c: E2 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 0E 00 [09:43:50]MH_I2C_Read... [09:43:50]Read from MH i2c: E2 0E 00 42 43 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 74 [09:43:50]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:43:50]wFMCommunicate OK [09:43:50]SAM_PROTO_GetShiftState done [09:43:50]FM_GetShiftState done [09:43:50]opened in 1706486624 [09:43:50]opened+sec_in_day 1706573024 [09:43:50]quantity*price = 50049 [09:43:50]sum+1 = 50050 [09:43:50]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 СÐО: Общий режим Чек 22 29.01.2024 09:44 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49039 ФПД: 223469076006063 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T094403&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49039&fm=223469076006063&tin=02508201610067®Number=0000000000092723&sum=50000 [09:43:51]StoreToDocumentArchive [09:43:51]shift 245 fd 49039 [09:43:51]save to /storage/0245/doc_00049039 [09:43:51]save last doc name /storage/0245/doc_00049039 to /storage/kkm_last_doc_name [09:43:51]save OK [09:43:51]Clear old archive folders... [09:43:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:51]tlvbuf is 01210A20 [09:43:51]SAM_PROTO_ClearQueue [09:43:51]wFMCommunicate request_size=4 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 09 00 00 [09:43:51]Write to MH i2c: E2 08 00 4F 43 80 09 00 00 00 00 00 00 04 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 4F 43 00 90 00 06 [09:43:51]RAPDU: 90 00 [09:43:51]wFMCommunicate OK [09:43:51]SAM_PROTO_ClearQueue done [09:43:51]KKMCreateOFDPacket [09:43:51]OFDProtocolAddRootSTLVToBuf [09:43:51]FM_MakeSignedData [09:43:51]FM_MakeSignedData [09:43:51]SAM_PROTO_SignData [09:43:51]wFMCommunicate request_size=4 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 0D 01 02 [09:43:51]Write to MH i2c: E2 08 00 50 43 80 0D 01 02 00 00 00 00 0C [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 50 43 00 90 00 07 [09:43:51]RAPDU: 90 00 [09:43:51]wFMCommunicate OK [09:43:51]wFMCommunicate request_size=255 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 16 00 00 00 F4 03 04 00 63 73 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 CB [09:43:51]Write to MH i2c: E2 02 01 51 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 16 00 00 00 F4 03 04 00 63 73 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 CB 00 00 52 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 51 43 00 90 00 08 [09:43:51]RAPDU: 90 00 [09:43:51]wFMCommunicate OK [09:43:51]wFMCommunicate request_size=10 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 0D 02 02 05 3E 72 E4 C4 AF [09:43:51]Write to MH i2c: E2 0D 00 52 43 80 0D 02 02 05 00 3E 72 E4 C4 AF 00 00 20 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 03 00 52 43 00 90 00 09 [09:43:51]RAPDU: 90 00 [09:43:51]wFMCommunicate OK [09:43:51]wFMCommunicate request_size=4 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 0D 03 02 [09:43:51]Write to MH i2c: E2 08 00 53 43 80 0D 03 02 00 00 00 00 11 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 0B 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 0B 00 53 43 00 D7 CF A3 74 3B 7B C4 09 90 00 52 [09:43:51]RAPDU: D7 CF A3 74 3B 7B C4 09 90 00 [09:43:51]wFMCommunicate OK [09:43:51]SAM_PROTO_SignData done [09:43:51]FM_MakeSignedData done [09:43:51]CreateOFDProtocolMessage [09:43:51]wFMCommunicate request_size=4 [09:43:51]MH_SAM_APDU [09:43:51]CAPDU: 80 11 00 00 [09:43:51]Write to MH i2c: E2 08 00 54 43 80 11 00 00 00 00 00 00 11 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:51]Read from MH i2c: E2 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 17 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: E2 17 00 54 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5E [09:43:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:43:51]wFMCommunicate OK [09:43:51]CreateOFDProtocolMessage done [09:43:51]OFDSenderStorePacket 49039 [09:43:51]StoreOFDPacket docnum=49039 [09:43: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 8B 3A 07 01 C8 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 16 00 00 00 F4 03 04 00 63 73 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 CB 3E 72 E4 C4 AF D7 CF A3 74 3B 7B C4 09 [09:43:51]CheckFolder [09:43:51]dirname=/storage/ofd_packets [09:43:51]CheckFolder done [09:43:51]ProducePacketName [09:43:51]name=ofd_packets/00049039 [09:43:51]NVStorageSaveData ofd_packets/00049039 [09:43:51]File name is /storage/ofd_packets/00049039 [09:43:51]Write 301 bytes [09:43:51]NVStorageSaveData done [09:43:51]OFDSenderStorePacket done [09:43:51]KKMCreateOFDPacket done [09:43:51]NVStorageSaveData kkm_last_timestamp [09:43:51]File name is /storage/kkm_last_timestamp [09:43:51]Write 4 bytes [09:43:51]NVStorageSaveData done [09:43:51]ExternCall_PrintAddStr [09:43:51]wPrintStart [09:43:51]Write to MH i2c: 01 00 00 55 43 98 [09:43:51]Write i2c OK [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 07 00 [09:43:51]MH_I2C_Read... [09:43:51]Read from MH i2c: 01 07 00 55 43 00 00 00 00 00 FF 0F AD [09:43:51]RasterBufferAndPrint [09:43:51]line Счет N : (1)216138 [09:43:51]line ИÐÐ: 02508201610067 [09:43:51]line Контрольно-КаÑÑовый Чек [09:43:51]line ПРОДÐЖР[09:43:51]line ТРК (МРК, ГÐК) : 22 [09:43:51]line Товар: 2710124130 [09:43:51]line Ðи-92-К-5 [09:43:51]line 8.300 * 60.30 [09:43:51]line = 500.49 [09:43:51]line ÐДС 12% ÐСП 1% [09:43:51]line > о реализуемом товаре [09:43:51]line ОКРУГЛЕÐИЕ: -0.49 [09:43:51]line ИТОГО: 500.00 [09:43:51]line ВнеÑено: 500.00 [09:43:51]line СДÐЧÐ: 0.00 [09:43:51]line ÐСП 1% : 4.43 [09:43:51]line ÐДС 12% : 53.15 [09:43:51]line Ðаличными: 500.00 [09:43:51]line Безнал.: 0.00 [09:43:51]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:43:51]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:43:51]line СÐО: Общий режим [09:43:51]line Чек 22 29.01.2024 09:44 [09:43:51]line Смена: 245 ФФД: 1.0 [09:43:51]line ЗÐМ: 0300000040 [09:43:51]line РÐМ: 0000000000092723 [09:43:51]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:43:51]line ФМ: 0000000000875060 [09:43:51]line ФД: 49039 [09:43:51]line ФПД: 223469076006063 [09:43:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T094403&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49039&fm=223469076006063&tin=02508201610067®Number=0000000000092723&sum=50000 [09:43:52]OFD Sender: Processing packet 49039 [packets to send 12, broken 11] [09:43:52]ProducePacketName [09:43:52]name=ofd_packets/00049039 [09:43:52]OFD Sender: To server: ‡•öpG, [09:43:52]CommunicateWithHost lk.salyk.kg:30040 [09:43:52]ConnectInit lk.salyk.kg [09:43:52]written 0, free lines is 4095 [09:43:52]Connected sock=10 [09:43:52]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 8B 3A 07 01 C8 E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 16 00 00 00 F4 03 04 00 63 73 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 CB 3E 72 E4 C4 AF D7 CF A3 74 3B 7B C4 09 [09:43:52]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 1F 01 47 00 F9 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 8F BF 00 00 F4 03 04 00 5C 1F B7 65 B6 04 01 00 00 7C 41 63 38 81 C3 45 C2 [09:43:52]CommunicateWithHost err = 0 [09:43:52]CheckOFDResponse [09:43:52]1017 (14) - 77093643461234 [09:43:52]1041 (16) - 0000000000875060 [09:43:52]1040 (4) - 49039 [09:43:52]1012 (4) - 29.01.2024 03:45 [09:43:52]1206 (1) - 0 [09:43:52]OFD Sender: Remove packet 49039 [09:43:52]ProducePacketName [09:43:52]name=ofd_packets/00049039 [09:43:52]NVStorageDeleteData [09:43:52]Write to MH i2c: 01 00 00 80 43 C3 [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: 01 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: 01 07 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: 01 07 00 80 43 00 00 00 00 00 F3 0C C9 [09:43:52]RasterBufferAndPrint [09:43:52]line [09:43:52]line [09:43:52]line [09:43:52]line [09:43:52]line [09:43:52]written 0, free lines is 3321 [09:43:52]MH_Cut [09:43:52]Write to MH i2c: D1 01 00 87 43 01 9C [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: D1 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: D1 01 00 [09:43:52]MH_I2C_Read... [09:43:52]Read from MH i2c: D1 01 00 87 43 00 9B [09:43:52]Write to MH i2c: 01 00 00 88 43 CB [09:43:52]Write i2c OK [09:43:52]MH_I2C_Read... [09:43:53]OFD Sender: No OFD packet to send [09:43:53]*** Cut start [09:43:53]*** Partial cut [09:43:53]*** CUTSNS_PIN = 1 [09:43:53]*** CUTSNS_PIN = 0 [09:43:53]*** Brake cut motor [09:43:53]Read from MH i2c: 01 [09:43:53]MH_I2C_Read... [09:43:53]*** Stop cut motor [09:43:53]*** Cut end [09:43:53]Read from MH i2c: 01 07 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: 01 07 00 88 43 00 00 00 00 00 FF 0F E0 [09:43:53]process_action close_receipt done [09:43:53]requested_data is exist [09:43:53]produce_requested_data [09:43:53]requested_item fm.sn is exist - process it [09:43:53]wFMCommunicate request_size=4 [09:43:53]MH_SAM_APDU [09:43:53]CAPDU: 80 11 00 00 [09:43:53]Write to MH i2c: E2 08 00 89 43 80 11 00 00 00 00 00 00 46 [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:53]Read from MH i2c: E2 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 17 00 [09:43:53]MH_I2C_Read... [09:43:53]Read from MH i2c: E2 17 00 89 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 93 [09:43:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:43:53]wFMCommunicate OK [09:43:53]requested_item fd.num is exist - process it [09:43:53]SAM_PROTO_GetFieldsCounters [09:43:53]wFMCommunicate request_size=4 [09:43:53]MH_SAM_APDU [09:43:53]CAPDU: 80 13 00 00 [09:43:53]Write to MH i2c: E2 08 00 8A 43 80 13 00 00 00 00 00 00 49 [09:43:53]Write i2c OK [09:43:53]MH_I2C_Read... [09:43:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:54]Read from MH i2c: E2 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 62 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 62 00 8A 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 E7 [09:43:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:43:54]wFMCommunicate OK [09:43:54]SAM_PROTO_GetFieldsCounters done [09:43:54]requested_item shift.num is exist - process it [09:43:54]requested_item shift.opened is exist - process it [09:43:54]req_shift_opened [09:43:54]FM_GetShiftState [09:43:54]SAM_PROTO_GetShiftState [09:43:54]wFMCommunicate request_size=4 [09:43:54]MH_SAM_APDU [09:43:54]CAPDU: 80 13 01 00 [09:43:54]Write to MH i2c: E2 08 00 8B 43 80 13 01 00 00 00 00 00 4B [09:43:54]Write i2c OK [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 [09:43:54]MH_I2C_Read... [09:43:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:54]Read from MH i2c: E2 0E 00 [09:43:54]MH_I2C_Read... [09:43:54]Read from MH i2c: E2 0E 00 8B 43 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 BD [09:43:54]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:43:54]wFMCommunicate OK [09:43:54]SAM_PROTO_GetShiftState done [09:43:54]FM_GetShiftState done [09:43:54]req_shift_opened done [09:43:54]requested_item shift.open_date is exist - process it [09:43:54]req_shift_open_date [09:43:54]req_shift_open_date done [09:43:54]produce_requested_data done [09:43:54]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49039,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:43:54]process_action_free close_receipt [09:43:54]json_value_free [09:43:54]json_value_free done [09:43:54]process_json_proto returns [09:43:54]Send response to host [09:43:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49039,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:43:54]free response buf [09:43:54]execute_script done [09:43:54]execute_script returns [09:43:54]free content buf [09:43:54]Sock 9.Close socket [09:43:54]Sock 9.Thread stoped [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:48]OFD Sender: No OFD packet to send [09:46:53]OFD Sender: No OFD packet to send [09:46:58]OFD Sender: No OFD packet to send [09:47:03]OFD Sender: No OFD packet to send [09:47:08]OFD Sender: No OFD packet to send [09:47:13]OFD Sender: No OFD packet to send [09:47:18]OFD Sender: No OFD packet to send [09:47:23]OFD Sender: No OFD packet to send [09:47:28]OFD Sender: No OFD packet to send [09:47:33]OFD Sender: No OFD packet to send [09:47:38]OFD Sender: No OFD packet to send [09:47:43]OFD Sender: No OFD packet to send [09:47:48]OFD Sender: No OFD packet to send [09:47:53]OFD Sender: No OFD packet to send [09:47:58]OFD Sender: No OFD packet to send [09:48:03]OFD Sender: No OFD packet to send [09:48:08]OFD Sender: No OFD packet to send [09:48:13]OFD Sender: No OFD packet to send [09:48:18]OFD Sender: No OFD packet to send [09:48:23]OFD Sender: No OFD packet to send [09:48:28]OFD Sender: No OFD packet to send [09:48:33]OFD Sender: No OFD packet to send [09:48:38]OFD Sender: No OFD packet to send [09:48:43]OFD Sender: No OFD packet to send [09:48:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:18]OFD Sender: No OFD packet to send [09:49:23]OFD Sender: No OFD packet to send [09:49:28]OFD Sender: No OFD packet to send [09:49:33]OFD Sender: No OFD packet to send [09:49:38]OFD Sender: No OFD packet to send [09:49:43]OFD Sender: No OFD packet to send [09:49:48]OFD Sender: No OFD packet to send [09:49:53]OFD Sender: No OFD packet to send [09:49:58]OFD Sender: No OFD packet to send [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:28]OFD Sender: No OFD packet to send [09:50:33]OFD Sender: No OFD packet to send [09:50:38]OFD Sender: No OFD packet to send [09:50:42]accept exits with 7 [09:50:42]New connection [09:50:42]New thread 3066813796 created [09:50:42]Thread 3066670436 joined [09:50:42]Waiting for new connection... [09:50:42] Sock 7.Parse request [09:50:42]Sock 7.Check first char [09:50:42]Sock 7.First char is OK [09:50:42]request: POST /json_proto HTTP/1.0 [09:50:42]Method: POST [09:50:42]URL: /json_proto [09:50:42]Method is POST - this is cgi request [09:50:42]url: /json_proto [09:50:42]query_string will be loaded in cgi processing [09:50:42]execute_cgi json_proto POST (null) [09:50:42]execute_cgi path=json_proto method=POST [09:50:42]POST find Content-Length [09:50:42]Host: 172.17.56.67:8080 [09:50:42]Content-Length: 677 [09:50:42]Content-Type: application/json [09:50:42] [09:50:42]POST finish read [09:50:42]Found Content-Length = 677 [09:50:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216139", "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" ] } } [09:50:42]execute_script... [09:50: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)216139", "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" ] } } [09:50:42]POST & json_proto [09:50:42]process_json_proto [09:50:42]json parsed OK: [09:50:42]protocol is kg_v1.0 [09:50:42]action value=close_receipt [09:50:42]process_action close_receipt [09:50:42]cmd_close_receipt [09:50:42]MH_GetDate [09:50:42]Write to MH i2c: F0 00 00 8C 43 BE [09:50:42]Write i2c OK [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: F0 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: F0 09 00 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: F0 09 00 8C 43 00 FF 74 B7 65 26 5D 9E 65 DC [09:50:42]GetLastDocTimeStamp 1706521443 [09:50:42]current date 1706521855 [09:50:42]FM_GetShiftState [09:50:42]SAM_PROTO_GetShiftState [09:50:42]wFMCommunicate request_size=4 [09:50:42]MH_SAM_APDU [09:50:42]CAPDU: 80 13 01 00 [09:50:42]Write to MH i2c: E2 08 00 8D 43 80 13 01 00 00 00 00 00 4D [09:50:42]Write i2c OK [09:50:42]MH_I2C_Read... [09:50:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:42]Read from MH i2c: E2 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: E2 0E 00 [09:50:42]MH_I2C_Read... [09:50:42]Read from MH i2c: E2 0E 00 8D 43 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 BF [09:50:42]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:50:42]wFMCommunicate OK [09:50:42]SAM_PROTO_GetShiftState done [09:50:42]FM_GetShiftState done [09:50:42]opened in 1706486624 [09:50:42]opened+sec_in_day 1706573024 [09:50:42]quantity*price = 50049 [09:50:42]sum+1 = 50050 [09:50:42]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 29.01.2024 09:50 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49040 ФПД: 256127644439056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T095055&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49040&fm=256127644439056&tin=02508201610067®Number=0000000000092723&sum=50000 [09:50:43]StoreToDocumentArchive [09:50:43]shift 245 fd 49040 [09:50:43]save to /storage/0245/doc_00049040 [09:50:43]save last doc name /storage/0245/doc_00049040 to /storage/kkm_last_doc_name [09:50:43]save OK [09:50:43]Clear old archive folders... [09:50:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:43]tlvbuf is 012445D0 [09:50:43]SAM_PROTO_ClearQueue [09:50:43]wFMCommunicate request_size=4 [09:50:43]MH_SAM_APDU [09:50:43]CAPDU: 80 09 00 00 [09:50:43]Write to MH i2c: E2 08 00 9A 43 80 09 00 00 00 00 00 00 4F [09:50:43]Write i2c OK [09:50:43]MH_I2C_Read... [09:50:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:43]Read from MH i2c: E2 [09:50:43]MH_I2C_Read... [09:50:43]Read from MH i2c: E2 03 00 [09:50:43]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 03 00 9A 43 00 90 00 51 [09:50:44]RAPDU: 90 00 [09:50:44]wFMCommunicate OK [09:50:44]SAM_PROTO_ClearQueue done [09:50:44]KKMCreateOFDPacket [09:50:44]OFDProtocolAddRootSTLVToBuf [09:50:44]FM_MakeSignedData [09:50:44]FM_MakeSignedData [09:50:44]SAM_PROTO_SignData [09:50:44]wFMCommunicate request_size=4 [09:50:44]MH_SAM_APDU [09:50:44]CAPDU: 80 0D 01 02 [09:50:44]Write to MH i2c: E2 08 00 9B 43 80 0D 01 02 00 00 00 00 57 [09:50:44]Write i2c OK [09:50:44]MH_I2C_Read... [09:50:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:44]Read from MH i2c: E2 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 03 00 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 03 00 9B 43 00 90 00 52 [09:50:44]RAPDU: 90 00 [09:50:44]wFMCommunicate OK [09:50:44]wFMCommunicate request_size=255 [09:50:44]MH_SAM_APDU [09:50: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 17 00 00 00 F4 03 04 00 FF 74 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E8 [09:50:44]Write to MH i2c: E2 02 01 9C 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 FF 74 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E8 00 00 59 [09:50:44]Write i2c OK [09:50:44]MH_I2C_Read... [09:50:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:44]Read from MH i2c: E2 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 03 00 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 03 00 9C 43 00 90 00 53 [09:50:44]RAPDU: 90 00 [09:50:44]wFMCommunicate OK [09:50:44]wFMCommunicate request_size=10 [09:50:44]MH_SAM_APDU [09:50:44]CAPDU: 80 0D 02 02 05 F2 5D 43 92 10 [09:50:44]Write to MH i2c: E2 0D 00 9D 43 80 0D 02 02 05 00 F2 5D 43 92 10 00 00 98 [09:50:44]Write i2c OK [09:50:44]MH_I2C_Read... [09:50:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:44]Read from MH i2c: E2 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 03 00 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 03 00 9D 43 00 90 00 54 [09:50:44]RAPDU: 90 00 [09:50:44]wFMCommunicate OK [09:50:44]wFMCommunicate request_size=4 [09:50:44]MH_SAM_APDU [09:50:44]CAPDU: 80 0D 03 02 [09:50:44]Write to MH i2c: E2 08 00 9E 43 80 0D 03 02 00 00 00 00 5C [09:50:44]Write i2c OK [09:50:44]MH_I2C_Read... [09:50:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:44]Read from MH i2c: E2 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 0B 00 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 0B 00 9E 43 00 A4 19 35 C9 EE 21 8F 4C 90 00 02 [09:50:44]RAPDU: A4 19 35 C9 EE 21 8F 4C 90 00 [09:50:44]wFMCommunicate OK [09:50:44]SAM_PROTO_SignData done [09:50:44]FM_MakeSignedData done [09:50:44]CreateOFDProtocolMessage [09:50:44]wFMCommunicate request_size=4 [09:50:44]MH_SAM_APDU [09:50:44]CAPDU: 80 11 00 00 [09:50:44]Write to MH i2c: E2 08 00 9F 43 80 11 00 00 00 00 00 00 5C [09:50:44]Write i2c OK [09:50:44]MH_I2C_Read... [09:50:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:44]Read from MH i2c: E2 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 17 00 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: E2 17 00 9F 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A9 [09:50: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:50:44]wFMCommunicate OK [09:50:44]CreateOFDProtocolMessage done [09:50:44]OFDSenderStorePacket 49040 [09:50:44]StoreOFDPacket docnum=49040 [09:50: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 0F 01 00 00 94 DC 07 01 5D 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 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 FF 74 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E8 F2 5D 43 92 10 A4 19 35 C9 EE 21 8F 4C [09:50:44]CheckFolder [09:50:44]dirname=/storage/ofd_packets [09:50:44]CheckFolder done [09:50:44]ProducePacketName [09:50:44]name=ofd_packets/00049040 [09:50:44]NVStorageSaveData ofd_packets/00049040 [09:50:44]File name is /storage/ofd_packets/00049040 [09:50:44]Write 301 bytes [09:50:44]NVStorageSaveData done [09:50:44]OFDSenderStorePacket done [09:50:44]KKMCreateOFDPacket done [09:50:44]NVStorageSaveData kkm_last_timestamp [09:50:44]File name is /storage/kkm_last_timestamp [09:50:44]Write 4 bytes [09:50:44]NVStorageSaveData done [09:50:44]ExternCall_PrintAddStr [09:50:44]wPrintStart [09:50:44]Write to MH i2c: 01 00 00 A0 43 E3 [09:50:44]Write i2c OK [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: 01 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: 01 07 00 [09:50:44]MH_I2C_Read... [09:50:44]Read from MH i2c: 01 07 00 A0 43 00 00 00 00 00 FF 0F F8 [09:50:44]RasterBufferAndPrint [09:50:44]line Счет N : (1)216139 [09:50:44]line ИÐÐ: 02508201610067 [09:50:44]line Контрольно-КаÑÑовый Чек [09:50:44]line ПРОДÐЖР[09:50:44]line ТРК (МРК, ГÐК) : 12 [09:50:44]line Товар: 2710124130 [09:50:44]line Ðи-92-К-5 [09:50:44]line 8.300 * 60.30 [09:50:44]line = 500.49 [09:50:44]line ÐДС 12% ÐСП 1% [09:50:44]line > о реализуемом товаре [09:50:44]line ОКРУГЛЕÐИЕ: -0.49 [09:50:44]line ИТОГО: 500.00 [09:50:44]line ВнеÑено: 500.00 [09:50:44]line СДÐЧÐ: 0.00 [09:50:44]line ÐСП 1% : 4.43 [09:50:44]line ÐДС 12% : 53.15 [09:50:44]line Ðаличными: 500.00 [09:50:44]line Безнал.: 0.00 [09:50:44]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:50:44]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:50:44]line СÐО: Общий режим [09:50:44]line Чек 23 29.01.2024 09:50 [09:50:44]line Смена: 245 ФФД: 1.0 [09:50:44]line ЗÐМ: 0300000040 [09:50:44]line РÐМ: 0000000000092723 [09:50:44]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:50:44]line ФМ: 0000000000875060 [09:50:44]line ФД: 49040 [09:50:44]line ФПД: 256127644439056 [09:50:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T095055&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49040&fm=256127644439056&tin=02508201610067®Number=0000000000092723&sum=50000 [09:50:44]OFD Sender: Processing packet 49040 [packets to send 12, broken 11] [09:50:44]ProducePacketName [09:50:44]name=ofd_packets/00049040 [09:50:44]OFD Sender: To server: ‡•öpG, [09:50:44]CommunicateWithHost lk.salyk.kg:30040 [09:50:44]ConnectInit lk.salyk.kg [09:50:44]written 0, free lines is 4095 [09:50:44]Connected sock=10 [09:50: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 94 DC 07 01 5D 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 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 FF 74 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E8 F2 5D 43 92 10 A4 19 35 C9 EE 21 8F 4C [09:50: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 31 FB 47 00 29 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 90 BF 00 00 F4 03 04 00 F8 20 B7 65 B6 04 01 00 00 C6 C4 9E 9D F4 6A 16 10 [09:50:45]CommunicateWithHost err = 0 [09:50:45]CheckOFDResponse [09:50:45]1017 (14) - 77093643461234 [09:50:45]1041 (16) - 0000000000875060 [09:50:45]1040 (4) - 49040 [09:50:45]1012 (4) - 29.01.2024 03:52 [09:50:45]1206 (1) - 0 [09:50:45]OFD Sender: Remove packet 49040 [09:50:45]ProducePacketName [09:50:45]name=ofd_packets/00049040 [09:50:45]NVStorageDeleteData [09:50:45]Write to MH i2c: 01 00 00 CB 43 0E [09:50:45]Write i2c OK [09:50:45]MH_I2C_Read... [09:50:45]Read from MH i2c: 01 [09:50:45]MH_I2C_Read... [09:50:45]Read from MH i2c: 01 07 00 [09:50:45]MH_I2C_Read... [09:50:45]Read from MH i2c: 01 07 00 CB 43 00 00 00 00 00 EE 0C 0F [09:50:45]RasterBufferAndPrint [09:50:45]line [09:50:45]line [09:50:45]line [09:50:45]line [09:50:45]line [09:50:45]written 0, free lines is 3316 [09:50:45]MH_Cut [09:50:45]Write to MH i2c: D1 01 00 D2 43 01 E7 [09:50:45]Write i2c OK [09:50:45]MH_I2C_Read... [09:50:45]Read from MH i2c: D1 [09:50:45]MH_I2C_Read... [09:50:45]Read from MH i2c: D1 01 00 [09:50:45]MH_I2C_Read... [09:50:45]Read from MH i2c: D1 01 00 D2 43 00 E6 [09:50:45]Write to MH i2c: 01 00 00 D3 43 16 [09:50:45]Write i2c OK [09:50:45]MH_I2C_Read... [09:50:45]OFD Sender: No OFD packet to send [09:50:45]*** Cut start [09:50:45]*** Partial cut [09:50:45]*** CUTSNS_PIN = 1 [09:50:45]*** CUTSNS_PIN = 0 [09:50:46]*** Brake cut motor [09:50:46]Read from MH i2c: 01 [09:50:46]MH_I2C_Read... [09:50:46]*** Stop cut motor [09:50:46]*** Cut end [09:50:46]Read from MH i2c: 01 07 00 [09:50:46]MH_I2C_Read... [09:50:46]Read from MH i2c: 01 07 00 D3 43 00 00 00 00 00 FF 0F 2B [09:50:46]process_action close_receipt done [09:50:46]requested_data is exist [09:50:46]produce_requested_data [09:50:46]requested_item fm.sn is exist - process it [09:50:46]wFMCommunicate request_size=4 [09:50:46]MH_SAM_APDU [09:50:46]CAPDU: 80 11 00 00 [09:50:46]Write to MH i2c: E2 08 00 D4 43 80 11 00 00 00 00 00 00 91 [09:50:46]Write i2c OK [09:50:46]MH_I2C_Read... [09:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:46]Read from MH i2c: E2 [09:50:46]MH_I2C_Read... [09:50:46]Read from MH i2c: E2 17 00 [09:50:46]MH_I2C_Read... [09:50:46]Read from MH i2c: E2 17 00 D4 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DE [09:50: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:50:46]wFMCommunicate OK [09:50:46]requested_item fd.num is exist - process it [09:50:46]SAM_PROTO_GetFieldsCounters [09:50:46]wFMCommunicate request_size=4 [09:50:46]MH_SAM_APDU [09:50:46]CAPDU: 80 13 00 00 [09:50:46]Write to MH i2c: E2 08 00 D5 43 80 13 00 00 00 00 00 00 94 [09:50:46]Write i2c OK [09:50:46]MH_I2C_Read... [09:50:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:46]Read from MH i2c: E2 [09:50:46]MH_I2C_Read... [09:50:46]Read from MH i2c: E2 62 00 [09:50:46]MH_I2C_Read... [09:50:46]Read from MH i2c: E2 62 00 D5 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 36 [09:50: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 90 BF 00 00 0E 04 04 00 F5 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:50:46]wFMCommunicate OK [09:50:46]SAM_PROTO_GetFieldsCounters done [09:50:46]requested_item shift.num is exist - process it [09:50:46]requested_item shift.opened is exist - process it [09:50:46]req_shift_opened [09:50:46]FM_GetShiftState [09:50:46]SAM_PROTO_GetShiftState [09:50:46]wFMCommunicate request_size=4 [09:50:46]MH_SAM_APDU [09:50:46]CAPDU: 80 13 01 00 [09:50:46]Write to MH i2c: E2 08 00 D6 43 80 13 01 00 00 00 00 00 96 [09:50:46]Write i2c OK [09:50:46]MH_I2C_Read... [09:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:46]Read from MH i2c: E2 [09:50:46]MH_I2C_Read... [09:50:46]Read from MH i2c: E2 0E 00 [09:50:46]MH_I2C_Read... [09:50:46]Read from MH i2c: E2 0E 00 D6 43 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 08 [09:50:46]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:50:46]wFMCommunicate OK [09:50:46]SAM_PROTO_GetShiftState done [09:50:46]FM_GetShiftState done [09:50:46]req_shift_opened done [09:50:46]requested_item shift.open_date is exist - process it [09:50:46]req_shift_open_date [09:50:46]req_shift_open_date done [09:50:46]produce_requested_data done [09:50:46]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49040,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:50:46]process_action_free close_receipt [09:50:46]json_value_free [09:50:46]json_value_free done [09:50:46]process_json_proto returns [09:50:46]Send response to host [09:50:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49040,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:50:46]free response buf [09:50:46]execute_script done [09:50:46]execute_script returns [09:50:46]free content buf [09:50:46]Sock 7.Close socket [09:50:46]Sock 7.Thread stoped [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]accept exits with 9 [09:51:10]New connection [09:51:10]New thread 3066670436 created [09:51:10]Thread 3066813796 joined [09:51:10]Waiting for new connection... [09:51:10] Sock 9.Parse request [09:51:10]Sock 9.Check first char [09:51:10]Sock 9.First char is OK [09:51:10]request: POST /json_proto HTTP/1.0 [09:51:10]Method: POST [09:51:10]URL: /json_proto [09:51:10]Method is POST - this is cgi request [09:51:10]url: /json_proto [09:51:10]query_string will be loaded in cgi processing [09:51:10]execute_cgi json_proto POST (null) [09:51:10]execute_cgi path=json_proto method=POST [09:51:10]POST find Content-Length [09:51:10]Host: 172.17.56.67:8080 [09:51:10]Content-Length: 677 [09:51:10]Content-Type: application/json [09:51:10] [09:51:10]POST finish read [09:51:10]Found Content-Length = 677 [09:51:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216140", "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:51:10]execute_script... [09:51: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)216140", "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:51:10]POST & json_proto [09:51:10]process_json_proto [09:51:10]json parsed OK: [09:51:10]protocol is kg_v1.0 [09:51:10]action value=close_receipt [09:51:10]process_action close_receipt [09:51:10]cmd_close_receipt [09:51:10]MH_GetDate [09:51:10]Write to MH i2c: F0 00 00 D7 43 09 [09:51:10]Write i2c OK [09:51:10]MH_I2C_Read... [09:51:10]Read from MH i2c: F0 [09:51:10]MH_I2C_Read... [09:51:10]Read from MH i2c: F0 09 00 [09:51:10]MH_I2C_Read... [09:51:10]Read from MH i2c: F0 09 00 D7 43 00 1B 75 B7 65 26 5D 9E 65 44 [09:51:10]GetLastDocTimeStamp 1706521855 [09:51:10]current date 1706521883 [09:51:10]FM_GetShiftState [09:51:10]SAM_PROTO_GetShiftState [09:51:10]wFMCommunicate request_size=4 [09:51:10]MH_SAM_APDU [09:51:10]CAPDU: 80 13 01 00 [09:51:10]Write to MH i2c: E2 08 00 D8 43 80 13 01 00 00 00 00 00 98 [09:51:10]Write i2c OK [09:51:10]MH_I2C_Read... [09:51:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:10]Read from MH i2c: E2 [09:51:10]MH_I2C_Read... [09:51:10]Read from MH i2c: E2 0E 00 [09:51:10]MH_I2C_Read... [09:51:10]Read from MH i2c: E2 0E 00 D8 43 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 0A [09:51:10]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:51:10]wFMCommunicate OK [09:51:10]SAM_PROTO_GetShiftState done [09:51:10]FM_GetShiftState done [09:51:10]opened in 1706486624 [09:51:10]opened+sec_in_day 1706573024 [09:51:10]quantity*price = 30029 [09:51:10]sum+1 = 30030 [09:51:10]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 СÐО: Общий режим Чек 24 29.01.2024 09:51 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49041 ФПД: 235505480955396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T095123&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49041&fm=235505480955396&tin=02508201610067®Number=0000000000092723&sum=30000 [09:51:11]StoreToDocumentArchive [09:51:11]shift 245 fd 49041 [09:51:11]save to /storage/0245/doc_00049041 [09:51:11]save last doc name /storage/0245/doc_00049041 to /storage/kkm_last_doc_name [09:51:11]save OK [09:51:11]Clear old archive folders... [09:51:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:11]tlvbuf is B6F337A0 [09:51:11]SAM_PROTO_ClearQueue [09:51:11]wFMCommunicate request_size=4 [09:51:11]MH_SAM_APDU [09:51:11]CAPDU: 80 09 00 00 [09:51:11]Write to MH i2c: E2 08 00 E5 43 80 09 00 00 00 00 00 00 9A [09:51:11]Write i2c OK [09:51:11]MH_I2C_Read... [09:51:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:11]Read from MH i2c: E2 [09:51:11]MH_I2C_Read... [09:51:11]Read from MH i2c: E2 03 00 [09:51:11]MH_I2C_Read... [09:51:11]Read from MH i2c: E2 03 00 E5 43 00 90 00 9C [09:51:11]RAPDU: 90 00 [09:51:11]wFMCommunicate OK [09:51:11]SAM_PROTO_ClearQueue done [09:51:11]KKMCreateOFDPacket [09:51:11]OFDProtocolAddRootSTLVToBuf [09:51:11]FM_MakeSignedData [09:51:11]FM_MakeSignedData [09:51:11]SAM_PROTO_SignData [09:51:11]wFMCommunicate request_size=4 [09:51:11]MH_SAM_APDU [09:51:11]CAPDU: 80 0D 01 02 [09:51:11]Write to MH i2c: E2 08 00 E6 43 80 0D 01 02 00 00 00 00 A2 [09:51:11]Write i2c OK [09:51:11]MH_I2C_Read... [09:51:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:11]Read from MH i2c: E2 [09:51:11]MH_I2C_Read... [09:51:11]Read from MH i2c: E2 03 00 [09:51:11]MH_I2C_Read... [09:51:11]Read from MH i2c: E2 03 00 E6 43 00 90 00 9D [09:51:11]RAPDU: 90 00 [09:51:11]wFMCommunicate OK [09:51:11]wFMCommunicate request_size=255 [09:51:11]MH_SAM_APDU [09:51: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 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 18 00 00 00 F4 03 04 00 1B 75 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 D6 [09:51:11]Write to MH i2c: E2 02 01 E7 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 18 00 00 00 F4 03 04 00 1B 75 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 D6 00 00 47 [09:51:11]Write i2c OK [09:51:11]MH_I2C_Read... [09:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:11]Read from MH i2c: E2 [09:51:11]MH_I2C_Read... [09:51:11]Read from MH i2c: E2 03 00 [09:51:11]MH_I2C_Read... [09:51:11]Read from MH i2c: E2 03 00 E7 43 00 90 00 9E [09:51:11]RAPDU: 90 00 [09:51:11]wFMCommunicate OK [09:51:11]wFMCommunicate request_size=10 [09:51:11]MH_SAM_APDU [09:51:11]CAPDU: 80 0D 02 02 05 30 E4 88 F6 04 [09:51:11]Write to MH i2c: E2 0D 00 E8 43 80 0D 02 02 05 00 30 E4 88 F6 04 00 00 45 [09:51:11]Write i2c OK [09:51:11]MH_I2C_Read... [09:51:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:11]Read from MH i2c: E2 [09:51:11]MH_I2C_Read... [09:51:11]Read from MH i2c: E2 03 00 [09:51:11]MH_I2C_Read... [09:51:11]Read from MH i2c: E2 03 00 E8 43 00 90 00 9F [09:51:11]RAPDU: 90 00 [09:51:11]wFMCommunicate OK [09:51:11]wFMCommunicate request_size=4 [09:51:11]MH_SAM_APDU [09:51:11]CAPDU: 80 0D 03 02 [09:51:11]Write to MH i2c: E2 08 00 E9 43 80 0D 03 02 00 00 00 00 A7 [09:51:11]Write i2c OK [09:51:11]MH_I2C_Read... [09:51:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:11]Read from MH i2c: E2 [09:51:11]MH_I2C_Read... [09:51:11]Read from MH i2c: E2 0B 00 [09:51:11]MH_I2C_Read... [09:51:11]Read from MH i2c: E2 0B 00 E9 43 00 14 B0 CF F8 6B 13 BC 80 90 00 ED [09:51:11]RAPDU: 14 B0 CF F8 6B 13 BC 80 90 00 [09:51:11]wFMCommunicate OK [09:51:11]SAM_PROTO_SignData done [09:51:11]FM_MakeSignedData done [09:51:11]CreateOFDProtocolMessage [09:51:11]wFMCommunicate request_size=4 [09:51:11]MH_SAM_APDU [09:51:11]CAPDU: 80 11 00 00 [09:51:11]Write to MH i2c: E2 08 00 EA 43 80 11 00 00 00 00 00 00 A7 [09:51:11]Write i2c OK [09:51:11]MH_I2C_Read... [09:51:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:11]Read from MH i2c: E2 [09:51:11]MH_I2C_Read... [09:51:11]Read from MH i2c: E2 17 00 [09:51:11]MH_I2C_Read... [09:51:11]Read from MH i2c: E2 17 00 EA 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F4 [09:51:11]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:11]wFMCommunicate OK [09:51:11]CreateOFDProtocolMessage done [09:51:11]OFDSenderStorePacket 49041 [09:51:11]StoreOFDPacket docnum=49041 [09:51: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 1E D1 07 01 00 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 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 18 00 00 00 F4 03 04 00 1B 75 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 D6 30 E4 88 F6 04 14 B0 CF F8 6B 13 BC 80 [09:51:11]CheckFolder [09:51:11]dirname=/storage/ofd_packets [09:51:11]CheckFolder done [09:51:11]ProducePacketName [09:51:11]name=ofd_packets/00049041 [09:51:11]NVStorageSaveData ofd_packets/00049041 [09:51:11]File name is /storage/ofd_packets/00049041 [09:51:11]Write 301 bytes [09:51:11]NVStorageSaveData done [09:51:11]OFDSenderStorePacket done [09:51:11]KKMCreateOFDPacket done [09:51:11]NVStorageSaveData kkm_last_timestamp [09:51:11]File name is /storage/kkm_last_timestamp [09:51:11]Write 4 bytes [09:51:11]NVStorageSaveData done [09:51:11]ExternCall_PrintAddStr [09:51:11]wPrintStart [09:51:11]Write to MH i2c: 01 00 00 EB 43 2E [09:51:11]Write i2c OK [09:51:11]MH_I2C_Read... [09:51:11]Read from MH i2c: 01 [09:51:11]MH_I2C_Read... [09:51:11]Read from MH i2c: 01 07 00 [09:51:11]MH_I2C_Read... [09:51:11]Read from MH i2c: 01 07 00 EB 43 00 00 00 00 00 FF 0F 43 [09:51:11]RasterBufferAndPrint [09:51:11]line Счет N : (1)216140 [09:51:11]line ИÐÐ: 02508201610067 [09:51:11]line Контрольно-КаÑÑовый Чек [09:51:11]line ПРОДÐЖР[09:51:11]line ТРК (МРК, ГÐК) : 22 [09:51:11]line Товар: 2710124130 [09:51:11]line Ðи-92-К-5 [09:51:11]line 4.980 * 60.30 [09:51:11]line = 300.29 [09:51:11]line ÐДС 12% ÐСП 1% [09:51:11]line > о реализуемом товаре [09:51:11]line ОКРУГЛЕÐИЕ: -0.29 [09:51:11]line ИТОГО: 300.00 [09:51:11]line ВнеÑено: 300.00 [09:51:11]line СДÐЧÐ: 0.00 [09:51:11]line ÐСП 1% : 2.66 [09:51:11]line ÐДС 12% : 31.89 [09:51:11]line Ðаличными: 300.00 [09:51:11]line Безнал.: 0.00 [09:51:11]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:51:11]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:51:11]line СÐО: Общий режим [09:51:11]line Чек 24 29.01.2024 09:51 [09:51:11]line Смена: 245 ФФД: 1.0 [09:51:11]line ЗÐМ: 0300000040 [09:51:11]line РÐМ: 0000000000092723 [09:51:11]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:51:11]line ФМ: 0000000000875060 [09:51:11]line ФД: 49041 [09:51:12]line ФПД: 235505480955396 [09:51:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T095123&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49041&fm=235505480955396&tin=02508201610067®Number=0000000000092723&sum=30000 [09:51:12]OFD Sender: Processing packet 49041 [packets to send 12, broken 11] [09:51:12]ProducePacketName [09:51:12]name=ofd_packets/00049041 [09:51:12]OFD Sender: To server: ‡•öpG, [09:51:12]CommunicateWithHost lk.salyk.kg:30040 [09:51:12]ConnectInit lk.salyk.kg [09:51:12]written 0, free lines is 4095 [09:51:12]Connected sock=10 [09:51: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 1E D1 07 01 00 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 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 18 00 00 00 F4 03 04 00 1B 75 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 D6 30 E4 88 F6 04 14 B0 CF F8 6B 13 BC 80 [09:51: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 FF 41 47 00 BB 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 91 BF 00 00 F4 03 04 00 13 21 B7 65 B6 04 01 00 00 49 58 BF AB 28 34 D5 F4 [09:51:12]CommunicateWithHost err = 0 [09:51:12]CheckOFDResponse [09:51:12]1017 (14) - 77093643461234 [09:51:12]1041 (16) - 0000000000875060 [09:51:12]1040 (4) - 49041 [09:51:12]1012 (4) - 29.01.2024 03:52 [09:51:12]1206 (1) - 0 [09:51:12]OFD Sender: Remove packet 49041 [09:51:12]ProducePacketName [09:51:12]name=ofd_packets/00049041 [09:51:12]NVStorageDeleteData [09:51:12]Write to MH i2c: 01 00 00 16 44 5A [09:51:12]Write i2c OK [09:51:12]MH_I2C_Read... [09:51:12]Read from MH i2c: 01 [09:51:12]MH_I2C_Read... [09:51:12]Read from MH i2c: 01 07 00 [09:51:12]MH_I2C_Read... [09:51:12]Read from MH i2c: 01 07 00 16 44 00 00 00 00 00 EC 0C 59 [09:51:12]RasterBufferAndPrint [09:51:12]line [09:51:12]line [09:51:12]line [09:51:12]line [09:51:12]line [09:51:12]written 0, free lines is 3314 [09:51:12]MH_Cut [09:51:12]Write to MH i2c: D1 01 00 1D 44 01 33 [09:51:12]Write i2c OK [09:51:12]MH_I2C_Read... [09:51:12]Read from MH i2c: D1 [09:51:12]MH_I2C_Read... [09:51:12]Read from MH i2c: D1 01 00 [09:51:12]MH_I2C_Read... [09:51:12]Read from MH i2c: D1 01 00 1D 44 00 32 [09:51:12]Write to MH i2c: 01 00 00 1E 44 62 [09:51:12]Write i2c OK [09:51:12]MH_I2C_Read... [09:51:12]OFD Sender: No OFD packet to send [09:51:13]*** Cut start [09:51:13]*** Partial cut [09:51:13]*** CUTSNS_PIN = 1 [09:51:13]*** CUTSNS_PIN = 0 [09:51:13]*** Brake cut motor [09:51:13]Read from MH i2c: 01 [09:51:13]MH_I2C_Read... [09:51:13]*** Stop cut motor [09:51:13]*** Cut end [09:51:13]Read from MH i2c: 01 07 00 [09:51:13]MH_I2C_Read... [09:51:13]Read from MH i2c: 01 07 00 1E 44 00 00 00 00 00 FF 0F 77 [09:51:13]process_action close_receipt done [09:51:13]requested_data is exist [09:51:13]produce_requested_data [09:51:13]requested_item fm.sn is exist - process it [09:51:13]wFMCommunicate request_size=4 [09:51:13]MH_SAM_APDU [09:51:13]CAPDU: 80 11 00 00 [09:51:13]Write to MH i2c: E2 08 00 1F 44 80 11 00 00 00 00 00 00 DD [09:51:13]Write i2c OK [09:51:13]MH_I2C_Read... [09:51:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:13]Read from MH i2c: E2 [09:51:13]MH_I2C_Read... [09:51:13]Read from MH i2c: E2 17 00 [09:51:13]MH_I2C_Read... [09:51:13]Read from MH i2c: E2 17 00 1F 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2A [09:51:13]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:13]wFMCommunicate OK [09:51:13]requested_item fd.num is exist - process it [09:51:13]SAM_PROTO_GetFieldsCounters [09:51:13]wFMCommunicate request_size=4 [09:51:13]MH_SAM_APDU [09:51:13]CAPDU: 80 13 00 00 [09:51:13]Write to MH i2c: E2 08 00 20 44 80 13 00 00 00 00 00 00 E0 [09:51:13]Write i2c OK [09:51:13]MH_I2C_Read... [09:51:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:13]Read from MH i2c: E2 [09:51:13]MH_I2C_Read... [09:51:13]Read from MH i2c: E2 62 00 [09:51:13]MH_I2C_Read... [09:51:13]Read from MH i2c: E2 62 00 20 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 86 [09:51: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 91 BF 00 00 0E 04 04 00 F5 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:51:13]wFMCommunicate OK [09:51:13]SAM_PROTO_GetFieldsCounters done [09:51:13]requested_item shift.num is exist - process it [09:51:13]requested_item shift.opened is exist - process it [09:51:13]req_shift_opened [09:51:13]FM_GetShiftState [09:51:13]SAM_PROTO_GetShiftState [09:51:13]wFMCommunicate request_size=4 [09:51:13]MH_SAM_APDU [09:51:13]CAPDU: 80 13 01 00 [09:51:13]Write to MH i2c: E2 08 00 21 44 80 13 01 00 00 00 00 00 E2 [09:51:13]Write i2c OK [09:51:13]MH_I2C_Read... [09:51:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:13]Read from MH i2c: E2 [09:51:13]MH_I2C_Read... [09:51:13]Read from MH i2c: E2 0E 00 [09:51:13]MH_I2C_Read... [09:51:13]Read from MH i2c: E2 0E 00 21 44 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 54 [09:51:13]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:51:13]wFMCommunicate OK [09:51:13]SAM_PROTO_GetShiftState done [09:51:13]FM_GetShiftState done [09:51:13]req_shift_opened done [09:51:13]requested_item shift.open_date is exist - process it [09:51:13]req_shift_open_date [09:51:13]req_shift_open_date done [09:51:13]produce_requested_data done [09:51:13]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49041,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:51:13]process_action_free close_receipt [09:51:13]json_value_free [09:51:13]json_value_free done [09:51:13]process_json_proto returns [09:51:13]Send response to host [09:51:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49041,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:51:13]free response buf [09:51:13]execute_script done [09:51:13]execute_script returns [09:51:13]free content buf [09:51:13]Sock 9.Close socket [09:51:13]Sock 9.Thread stoped [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:21]accept exits with 7 [09:55:21]New connection [09:55:21]New thread 3066813796 created [09:55:21]Thread 3066670436 joined [09:55:21]Waiting for new connection... [09:55:21] Sock 7.Parse request [09:55:21]Sock 7.Check first char [09:55:21]Sock 7.First char is OK [09:55:21]request: POST /json_proto HTTP/1.0 [09:55:21]Method: POST [09:55:21]URL: /json_proto [09:55:21]Method is POST - this is cgi request [09:55:21]url: /json_proto [09:55:21]query_string will be loaded in cgi processing [09:55:21]execute_cgi json_proto POST (null) [09:55:21]execute_cgi path=json_proto method=POST [09:55:21]POST find Content-Length [09:55:21]Host: 172.17.56.67:8080 [09:55:21]Content-Length: 677 [09:55:21]Content-Type: application/json [09:55:21] [09:55:21]POST finish read [09:55:21]Found Content-Length = 677 [09:55:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216141", "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" ] } } [09:55:21]execute_script... [09: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)216141", "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" ] } } [09:55:21]POST & json_proto [09:55:21]process_json_proto [09:55:21]json parsed OK: [09:55:21]protocol is kg_v1.0 [09:55:21]action value=close_receipt [09:55:21]process_action close_receipt [09:55:21]cmd_close_receipt [09:55:21]MH_GetDate [09:55:21]Write to MH i2c: F0 00 00 22 44 55 [09:55:21]Write i2c OK [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: F0 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: F0 09 00 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: F0 09 00 22 44 00 16 76 B7 65 26 5D 9E 65 8C [09:55:21]GetLastDocTimeStamp 1706521883 [09:55:21]current date 1706522134 [09:55:21]FM_GetShiftState [09:55:21]SAM_PROTO_GetShiftState [09:55:21]wFMCommunicate request_size=4 [09:55:21]MH_SAM_APDU [09:55:21]CAPDU: 80 13 01 00 [09:55:21]Write to MH i2c: E2 08 00 23 44 80 13 01 00 00 00 00 00 E4 [09:55:21]Write i2c OK [09:55:21]MH_I2C_Read... [09:55:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:21]Read from MH i2c: E2 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: E2 0E 00 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: E2 0E 00 23 44 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 56 [09:55:21]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:55:21]wFMCommunicate OK [09:55:21]SAM_PROTO_GetShiftState done [09:55:21]FM_GetShiftState done [09:55:21]opened in 1706486624 [09:55:21]opened+sec_in_day 1706573024 [09:55:21]quantity*price = 50049 [09:55:21]sum+1 = 50050 [09:55:21]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 СÐО: Общий режим Чек 25 29.01.2024 09:55 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49042 ФПД: 216591835611315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T095534&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49042&fm=216591835611315&tin=02508201610067®Number=0000000000092723&sum=50000 [09:55:22]StoreToDocumentArchive [09:55:22]shift 245 fd 49042 [09:55:22]save to /storage/0245/doc_00049042 [09:55:22]save last doc name /storage/0245/doc_00049042 to /storage/kkm_last_doc_name [09:55:22]save OK [09:55:22]Clear old archive folders... [09:55:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:22]tlvbuf is B6F36A70 [09:55:22]SAM_PROTO_ClearQueue [09:55:22]wFMCommunicate request_size=4 [09:55:22]MH_SAM_APDU [09:55:22]CAPDU: 80 09 00 00 [09:55:22]Write to MH i2c: E2 08 00 30 44 80 09 00 00 00 00 00 00 E6 [09:55:22]Write i2c OK [09:55:22]MH_I2C_Read... [09:55:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:22]Read from MH i2c: E2 [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: E2 03 00 [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: E2 03 00 30 44 00 90 00 E8 [09:55:22]RAPDU: 90 00 [09:55:22]wFMCommunicate OK [09:55:22]SAM_PROTO_ClearQueue done [09:55:22]KKMCreateOFDPacket [09:55:22]OFDProtocolAddRootSTLVToBuf [09:55:22]FM_MakeSignedData [09:55:22]FM_MakeSignedData [09:55:22]SAM_PROTO_SignData [09:55:22]wFMCommunicate request_size=4 [09:55:22]MH_SAM_APDU [09:55:22]CAPDU: 80 0D 01 02 [09:55:22]Write to MH i2c: E2 08 00 31 44 80 0D 01 02 00 00 00 00 EE [09:55:22]Write i2c OK [09:55:22]MH_I2C_Read... [09:55:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:22]Read from MH i2c: E2 [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: E2 03 00 [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: E2 03 00 31 44 00 90 00 E9 [09:55:22]RAPDU: 90 00 [09:55:22]wFMCommunicate OK [09:55:22]wFMCommunicate request_size=255 [09:55:22]MH_SAM_APDU [09:55: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 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 19 00 00 00 F4 03 04 00 16 76 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C4 [09:55:22]Write to MH i2c: E2 02 01 32 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 19 00 00 00 F4 03 04 00 16 76 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C4 00 00 E9 [09:55:22]Write i2c OK [09:55:22]MH_I2C_Read... [09:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:22]Read from MH i2c: E2 [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: E2 03 00 [09:55:22]MH_I2C_Read... [09:55:22]Read from MH i2c: E2 03 00 32 44 00 90 00 EA [09:55:22]RAPDU: 90 00 [09:55:22]wFMCommunicate OK [09:55:22]wFMCommunicate request_size=10 [09:55:22]MH_SAM_APDU [09:55:22]CAPDU: 80 0D 02 02 05 FD 37 6C 40 B3 [09:55:22]Write to MH i2c: E2 0D 00 33 44 80 0D 02 02 05 00 FD 37 6C 40 B3 00 00 8E [09:55:22]Write i2c OK [09:55:22]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 03 00 33 44 00 90 00 EB [09:55:23]RAPDU: 90 00 [09:55:23]wFMCommunicate OK [09:55:23]wFMCommunicate request_size=4 [09:55:23]MH_SAM_APDU [09:55:23]CAPDU: 80 0D 03 02 [09:55:23]Write to MH i2c: E2 08 00 34 44 80 0D 03 02 00 00 00 00 F3 [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:23]OFD Sender: No OFD packet to send [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 0B 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 0B 00 34 44 00 9C 94 54 32 11 49 B6 8B 90 00 45 [09:55:23]RAPDU: 9C 94 54 32 11 49 B6 8B 90 00 [09:55:23]wFMCommunicate OK [09:55:23]SAM_PROTO_SignData done [09:55:23]FM_MakeSignedData done [09:55:23]CreateOFDProtocolMessage [09:55:23]wFMCommunicate request_size=4 [09:55:23]MH_SAM_APDU [09:55:23]CAPDU: 80 11 00 00 [09:55:23]Write to MH i2c: E2 08 00 35 44 80 11 00 00 00 00 00 00 F3 [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 17 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 17 00 35 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 40 [09: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 [09:55:23]wFMCommunicate OK [09:55:23]CreateOFDProtocolMessage done [09:55:23]OFDSenderStorePacket 49042 [09:55:23]StoreOFDPacket docnum=49042 [09: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 0F 01 00 00 BF 76 07 01 07 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 19 00 00 00 F4 03 04 00 16 76 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C4 FD 37 6C 40 B3 9C 94 54 32 11 49 B6 8B [09:55:23]CheckFolder [09:55:23]dirname=/storage/ofd_packets [09:55:23]CheckFolder done [09:55:23]ProducePacketName [09:55:23]name=ofd_packets/00049042 [09:55:23]NVStorageSaveData ofd_packets/00049042 [09:55:23]File name is /storage/ofd_packets/00049042 [09:55:23]Write 301 bytes [09:55:23]NVStorageSaveData done [09:55:23]OFDSenderStorePacket done [09:55:23]KKMCreateOFDPacket done [09:55:23]NVStorageSaveData kkm_last_timestamp [09:55:23]File name is /storage/kkm_last_timestamp [09:55:23]Write 4 bytes [09:55:23]NVStorageSaveData done [09:55:23]ExternCall_PrintAddStr [09:55:23]wPrintStart [09:55:23]Write to MH i2c: 01 00 00 36 44 7A [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: 01 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: 01 07 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: 01 07 00 36 44 00 00 00 00 00 FF 0F 8F [09:55:23]RasterBufferAndPrint [09:55:23]line Счет N : (1)216141 [09:55:23]line ИÐÐ: 02508201610067 [09:55:23]line Контрольно-КаÑÑовый Чек [09:55:23]line ПРОДÐЖР[09:55:23]line ТРК (МРК, ГÐК) : 12 [09:55:23]line Товар: 2710124130 [09:55:23]line Ðи-92-К-5 [09:55:23]line 8.300 * 60.30 [09:55:23]line = 500.49 [09:55:23]line ÐДС 12% ÐСП 1% [09:55:23]line > о реализуемом товаре [09:55:23]line ОКРУГЛЕÐИЕ: -0.49 [09:55:23]line ИТОГО: 500.00 [09:55:23]line ВнеÑено: 500.00 [09:55:23]line СДÐЧÐ: 0.00 [09:55:23]line ÐСП 1% : 4.43 [09:55:23]line ÐДС 12% : 53.15 [09:55:23]line Ðаличными: 500.00 [09:55:23]line Безнал.: 0.00 [09:55:23]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:55:23]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:55:23]line СÐО: Общий режим [09:55:23]line Чек 25 29.01.2024 09:55 [09:55:23]line Смена: 245 ФФД: 1.0 [09:55:23]line ЗÐМ: 0300000040 [09:55:23]line РÐМ: 0000000000092723 [09:55:23]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:55:23]line ФМ: 0000000000875060 [09:55:23]line ФД: 49042 [09:55:23]line ФПД: 216591835611315 [09:55:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T095534&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49042&fm=216591835611315&tin=02508201610067®Number=0000000000092723&sum=50000 [09:55:23]OFD Sender: Processing packet 49042 [packets to send 12, broken 11] [09:55:23]ProducePacketName [09:55:23]name=ofd_packets/00049042 [09:55:23]OFD Sender: To server: ‡•öpG, [09:55:23]CommunicateWithHost lk.salyk.kg:30040 [09:55:23]ConnectInit lk.salyk.kg [09:55:23]written 0, free lines is 4095 [09:55:23]Connected sock=10 [09: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 0F 01 00 00 BF 76 07 01 07 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 19 00 00 00 F4 03 04 00 16 76 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C4 FD 37 6C 40 B3 9C 94 54 32 11 49 B6 8B [09:55: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 BA B3 47 00 1B 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 92 BF 00 00 F4 03 04 00 0F 22 B7 65 B6 04 01 00 00 46 A3 77 A7 EC CD 43 40 [09:55:23]CommunicateWithHost err = 0 [09:55:23]CheckOFDResponse [09:55:23]1017 (14) - 77093643461234 [09:55:23]1041 (16) - 0000000000875060 [09:55:23]1040 (4) - 49042 [09:55:23]1012 (4) - 29.01.2024 03:57 [09:55:23]1206 (1) - 0 [09:55:23]OFD Sender: Remove packet 49042 [09:55:23]ProducePacketName [09:55:23]name=ofd_packets/00049042 [09:55:23]NVStorageDeleteData [09:55:23]Write to MH i2c: 01 00 00 61 44 A5 [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: 01 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: 01 07 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: 01 07 00 61 44 00 00 00 00 00 ED 0C A5 [09:55:23]RasterBufferAndPrint [09:55:23]line [09:55:23]line [09:55:23]line [09:55:23]line [09:55:23]line [09:55:23]written 0, free lines is 3315 [09:55:23]MH_Cut [09:55:23]Write to MH i2c: D1 01 00 68 44 01 7E [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: D1 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: D1 01 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: D1 01 00 68 44 00 7D [09:55:23]Write to MH i2c: 01 00 00 69 44 AD [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:24]OFD Sender: No OFD packet to send [09:55:24]*** Cut start [09:55:24]*** Partial cut [09:55:24]*** CUTSNS_PIN = 1 [09:55:24]*** CUTSNS_PIN = 0 [09:55:24]*** Brake cut motor [09:55:25]Read from MH i2c: 01 [09:55:25]MH_I2C_Read... [09:55:25]*** Stop cut motor [09:55:25]*** Cut end [09:55:25]Read from MH i2c: 01 07 00 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: 01 07 00 69 44 00 00 00 00 00 FF 0F C2 [09:55:25]process_action close_receipt done [09:55:25]requested_data is exist [09:55:25]produce_requested_data [09:55:25]requested_item fm.sn is exist - process it [09:55:25]wFMCommunicate request_size=4 [09:55:25]MH_SAM_APDU [09:55:25]CAPDU: 80 11 00 00 [09:55:25]Write to MH i2c: E2 08 00 6A 44 80 11 00 00 00 00 00 00 28 [09:55:25]Write i2c OK [09:55:25]MH_I2C_Read... [09:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:25]Read from MH i2c: E2 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 17 00 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 17 00 6A 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 75 [09: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 [09:55:25]wFMCommunicate OK [09:55:25]requested_item fd.num is exist - process it [09:55:25]SAM_PROTO_GetFieldsCounters [09:55:25]wFMCommunicate request_size=4 [09:55:25]MH_SAM_APDU [09:55:25]CAPDU: 80 13 00 00 [09:55:25]Write to MH i2c: E2 08 00 6B 44 80 13 00 00 00 00 00 00 2B [09:55:25]Write i2c OK [09:55:25]MH_I2C_Read... [09:55:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:25]Read from MH i2c: E2 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 62 00 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 62 00 6B 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 D5 [09: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 92 BF 00 00 0E 04 04 00 F5 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 [09:55:25]wFMCommunicate OK [09:55:25]SAM_PROTO_GetFieldsCounters done [09:55:25]requested_item shift.num is exist - process it [09:55:25]requested_item shift.opened is exist - process it [09:55:25]req_shift_opened [09:55:25]FM_GetShiftState [09:55:25]SAM_PROTO_GetShiftState [09:55:25]wFMCommunicate request_size=4 [09:55:25]MH_SAM_APDU [09:55:25]CAPDU: 80 13 01 00 [09:55:25]Write to MH i2c: E2 08 00 6C 44 80 13 01 00 00 00 00 00 2D [09:55:25]Write i2c OK [09:55:25]MH_I2C_Read... [09:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:25]Read from MH i2c: E2 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 0E 00 [09:55:25]MH_I2C_Read... [09:55:25]Read from MH i2c: E2 0E 00 6C 44 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 9F [09:55:25]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:55:25]wFMCommunicate OK [09:55:25]SAM_PROTO_GetShiftState done [09:55:25]FM_GetShiftState done [09:55:25]req_shift_opened done [09:55:25]requested_item shift.open_date is exist - process it [09:55:25]req_shift_open_date [09:55:25]req_shift_open_date done [09:55:25]produce_requested_data done [09:55:25]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49042,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:55:25]process_action_free close_receipt [09:55:25]json_value_free [09:55:25]json_value_free done [09:55:25]process_json_proto returns [09:55:25]Send response to host [09:55:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49042,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:55:25]free response buf [09:55:25]execute_script done [09:55:25]execute_script returns [09:55:25]free content buf [09:55:25]Sock 7.Close socket [09:55:25]Sock 7.Thread stoped [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:30]accept exits with 9 [09:57:30]New connection [09:57:30]New thread 3066670436 created [09:57:30]Thread 3066813796 joined [09:57:30]Waiting for new connection... [09:57:30] Sock 9.Parse request [09:57:30]Sock 9.Check first char [09:57:30]Sock 9.First char is OK [09:57:30]request: POST /json_proto HTTP/1.0 [09:57:30]Method: POST [09:57:30]URL: /json_proto [09:57:30]Method is POST - this is cgi request [09:57:30]url: /json_proto [09:57:30]query_string will be loaded in cgi processing [09:57:30]execute_cgi json_proto POST (null) [09:57:30]execute_cgi path=json_proto method=POST [09:57:30]POST find Content-Length [09:57:30]Host: 172.17.56.67:8080 [09:57:30]Content-Length: 674 [09:57:30]Content-Type: application/json [09:57:30] [09:57:30]POST finish read [09:57:30]Found Content-Length = 674 [09:57:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216142", "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:57:30]execute_script... [09:57:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216142", "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:57:30]POST & json_proto [09:57:30]process_json_proto [09:57:30]json parsed OK: [09:57:30]protocol is kg_v1.0 [09:57:30]action value=close_receipt [09:57:30]process_action close_receipt [09:57:30]cmd_close_receipt [09:57:30]MH_GetDate [09:57:30]Write to MH i2c: F0 00 00 6D 44 A0 [09:57:30]Write i2c OK [09:57:30]MH_I2C_Read... [09:57:30]Read from MH i2c: F0 [09:57:30]MH_I2C_Read... [09:57:30]Read from MH i2c: F0 09 00 [09:57:30]MH_I2C_Read... [09:57:30]Read from MH i2c: F0 09 00 6D 44 00 97 76 B7 65 26 5D 9E 65 58 [09:57:30]GetLastDocTimeStamp 1706522134 [09:57:30]current date 1706522263 [09:57:30]FM_GetShiftState [09:57:30]SAM_PROTO_GetShiftState [09:57:30]wFMCommunicate request_size=4 [09:57:30]MH_SAM_APDU [09:57:30]CAPDU: 80 13 01 00 [09:57:30]Write to MH i2c: E2 08 00 6E 44 80 13 01 00 00 00 00 00 2F [09:57:30]Write i2c OK [09:57:30]MH_I2C_Read... [09:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:30]Read from MH i2c: E2 [09:57:30]MH_I2C_Read... [09:57:30]Read from MH i2c: E2 0E 00 [09:57:30]MH_I2C_Read... [09:57:30]Read from MH i2c: E2 0E 00 6E 44 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 A1 [09:57:30]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:57:30]wFMCommunicate OK [09:57:30]SAM_PROTO_GetShiftState done [09:57:30]FM_GetShiftState done [09:57:30]opened in 1706486624 [09:57:30]opened+sec_in_day 1706573024 [09:57:30]quantity*price = 50048 [09:57:30]sum+1 = 50049 [09:57:30]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 СÐО: Общий режим Чек 26 29.01.2024 09:57 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49043 ФПД: 103124904911783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T095743&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49043&fm=103124904911783&tin=02508201610067®Number=0000000000092723&sum=50000 [09:57:31]StoreToDocumentArchive [09:57:31]shift 245 fd 49043 [09:57:31]save to /storage/0245/doc_00049043 [09:57:31]save last doc name /storage/0245/doc_00049043 to /storage/kkm_last_doc_name [09:57:31]save OK [09:57:31]Clear old archive folders... [09:57:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:57:31]tlvbuf is 0139F4E0 [09:57:31]SAM_PROTO_ClearQueue [09:57:31]wFMCommunicate request_size=4 [09:57:31]MH_SAM_APDU [09:57:31]CAPDU: 80 09 00 00 [09:57:31]Write to MH i2c: E2 08 00 7B 44 80 09 00 00 00 00 00 00 31 [09:57:31]Write i2c OK [09:57:31]MH_I2C_Read... [09:57:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:31]Read from MH i2c: E2 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 03 00 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 03 00 7B 44 00 90 00 33 [09:57:31]RAPDU: 90 00 [09:57:31]wFMCommunicate OK [09:57:31]SAM_PROTO_ClearQueue done [09:57:31]KKMCreateOFDPacket [09:57:31]OFDProtocolAddRootSTLVToBuf [09:57:31]FM_MakeSignedData [09:57:31]FM_MakeSignedData [09:57:31]SAM_PROTO_SignData [09:57:31]wFMCommunicate request_size=4 [09:57:31]MH_SAM_APDU [09:57:31]CAPDU: 80 0D 01 02 [09:57:31]Write to MH i2c: E2 08 00 7C 44 80 0D 01 02 00 00 00 00 39 [09:57:31]Write i2c OK [09:57:31]MH_I2C_Read... [09:57:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:31]Read from MH i2c: E2 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 03 00 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 03 00 7C 44 00 90 00 34 [09:57:31]RAPDU: 90 00 [09:57:31]wFMCommunicate OK [09:57:31]wFMCommunicate request_size=255 [09:57:31]MH_SAM_APDU [09:57:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 1A 00 00 00 F4 03 04 00 97 76 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5D CA A3 53 [09:57:31]Write to MH i2c: E2 02 01 7D 44 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 1A 00 00 00 F4 03 04 00 97 76 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5D CA A3 53 00 00 AD [09:57:31]Write i2c OK [09:57:31]MH_I2C_Read... [09:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:32]Read from MH i2c: E2 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 03 00 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 03 00 7D 44 00 90 00 35 [09:57:32]RAPDU: 90 00 [09:57:32]wFMCommunicate OK [09:57:32]wFMCommunicate request_size=7 [09:57:32]MH_SAM_APDU [09:57:32]CAPDU: 80 0D 02 02 02 23 A7 [09:57:32]Write to MH i2c: E2 0A 00 7E 44 80 0D 02 02 02 00 23 A7 00 00 0A [09:57:32]Write i2c OK [09:57:32]MH_I2C_Read... [09:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:32]Read from MH i2c: E2 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 03 00 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 03 00 7E 44 00 90 00 36 [09:57:32]RAPDU: 90 00 [09:57:32]wFMCommunicate OK [09:57:32]wFMCommunicate request_size=4 [09:57:32]MH_SAM_APDU [09:57:32]CAPDU: 80 0D 03 02 [09:57:32]Write to MH i2c: E2 08 00 7F 44 80 0D 03 02 00 00 00 00 3E [09:57:32]Write i2c OK [09:57:32]MH_I2C_Read... [09:57:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:32]Read from MH i2c: E2 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 0B 00 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 0B 00 7F 44 00 4D 6A D8 EA B0 83 36 94 90 00 B5 [09:57:32]RAPDU: 4D 6A D8 EA B0 83 36 94 90 00 [09:57:32]wFMCommunicate OK [09:57:32]SAM_PROTO_SignData done [09:57:32]FM_MakeSignedData done [09:57:32]CreateOFDProtocolMessage [09:57:32]wFMCommunicate request_size=4 [09:57:32]MH_SAM_APDU [09:57:32]CAPDU: 80 11 00 00 [09:57:32]Write to MH i2c: E2 08 00 80 44 80 11 00 00 00 00 00 00 3E [09:57:32]Write i2c OK [09:57:32]MH_I2C_Read... [09:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:32]Read from MH i2c: E2 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 17 00 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 17 00 80 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8B [09:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:57:32]wFMCommunicate OK [09:57:32]CreateOFDProtocolMessage done [09:57:32]OFDSenderStorePacket 49043 [09:57:32]StoreOFDPacket docnum=49043 [09:57:32]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 F2 3B 04 01 D6 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 1A 00 00 00 F4 03 04 00 97 76 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5D CA A3 53 23 A7 4D 6A D8 EA B0 83 36 94 [09:57:32]CheckFolder [09:57:32]dirname=/storage/ofd_packets [09:57:32]CheckFolder done [09:57:32]ProducePacketName [09:57:32]name=ofd_packets/00049043 [09:57:32]NVStorageSaveData ofd_packets/00049043 [09:57:32]File name is /storage/ofd_packets/00049043 [09:57:32]Write 298 bytes [09:57:32]NVStorageSaveData done [09:57:32]OFDSenderStorePacket done [09:57:32]KKMCreateOFDPacket done [09:57:32]NVStorageSaveData kkm_last_timestamp [09:57:32]File name is /storage/kkm_last_timestamp [09:57:32]Write 4 bytes [09:57:32]NVStorageSaveData done [09:57:32]ExternCall_PrintAddStr [09:57:32]wPrintStart [09:57:32]Write to MH i2c: 01 00 00 81 44 C5 [09:57:32]Write i2c OK [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: 01 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: 01 07 00 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: 01 07 00 81 44 00 00 00 00 00 FF 0F DA [09:57:32]RasterBufferAndPrint [09:57:32]line Счет N : (1)216142 [09:57:32]line ИÐÐ: 02508201610067 [09:57:32]line Контрольно-КаÑÑовый Чек [09:57:32]line ПРОДÐЖР[09:57:32]line ТРК (МРК, ГÐК) : 21 [09:57:32]line Товар: 2710194210 [09:57:32]line ДТ-К-5 [09:57:32]line 7.160 * 69.90 [09:57:32]line = 500.48 [09:57:32]line ÐДС 12% ÐСП 1% [09:57:32]line > о реализуемом товаре [09:57:32]line ОКРУГЛЕÐИЕ: -0.48 [09:57:32]line ИТОГО: 500.00 [09:57:32]line ВнеÑено: 500.00 [09:57:32]line СДÐЧÐ: 0.00 [09:57:32]line ÐСП 1% : 4.43 [09:57:32]line ÐДС 12% : 53.15 [09:57:32]line Ðаличными: 500.00 [09:57:32]line Безнал.: 0.00 [09:57:32]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:57:32]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:57:32]line СÐО: Общий режим [09:57:32]line Чек 26 29.01.2024 09:57 [09:57:32]line Смена: 245 ФФД: 1.0 [09:57:32]line ЗÐМ: 0300000040 [09:57:32]line РÐМ: 0000000000092723 [09:57:32]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:57:32]line ФМ: 0000000000875060 [09:57:32]line ФД: 49043 [09:57:32]line ФПД: 103124904911783 [09:57:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T095743&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49043&fm=103124904911783&tin=02508201610067®Number=0000000000092723&sum=50000 [09:57:32]OFD Sender: Processing packet 49043 [packets to send 12, broken 11] [09:57:32]ProducePacketName [09:57:32]name=ofd_packets/00049043 [09:57:32]OFD Sender: To server: ‡•öpG, [09:57:32]CommunicateWithHost lk.salyk.kg:30040 [09:57:32]ConnectInit lk.salyk.kg [09:57:32]written 0, free lines is 4095 [09:57:32]Connected sock=10 [09:57: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 0C 01 00 00 F2 3B 04 01 D6 EB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 1A 00 00 00 F4 03 04 00 97 76 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5D CA A3 53 23 A7 4D 6A D8 EA B0 83 36 94 [09:57: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 DE F6 47 00 A5 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 BF 00 00 F4 03 04 00 90 22 B7 65 B6 04 01 00 00 A6 D0 9C 8C C5 95 F1 29 [09:57:32]CommunicateWithHost err = 0 [09:57:32]CheckOFDResponse [09:57:32]1017 (14) - 77093643461234 [09:57:32]1041 (16) - 0000000000875060 [09:57:32]1040 (4) - 49043 [09:57:32]1012 (4) - 29.01.2024 03:59 [09:57:32]1206 (1) - 0 [09:57:32]OFD Sender: Remove packet 49043 [09:57:32]ProducePacketName [09:57:32]name=ofd_packets/00049043 [09:57:32]NVStorageDeleteData [09:57:33]Write to MH i2c: 01 00 00 AC 44 F0 [09:57:33]Write i2c OK [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: 01 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: 01 07 00 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: 01 07 00 AC 44 00 00 00 00 00 E8 0C EB [09:57:33]RasterBufferAndPrint [09:57:33]line [09:57:33]line [09:57:33]line [09:57:33]line [09:57:33]line [09:57:33]written 0, free lines is 3310 [09:57:33]MH_Cut [09:57:33]Write to MH i2c: D1 01 00 B3 44 01 C9 [09:57:33]Write i2c OK [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: D1 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: D1 01 00 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: D1 01 00 B3 44 00 C8 [09:57:33]Write to MH i2c: 01 00 00 B4 44 F8 [09:57:33]Write i2c OK [09:57:33]MH_I2C_Read... [09:57:33]OFD Sender: No OFD packet to send [09:57:33]*** Cut start [09:57:33]*** Partial cut [09:57:33]*** CUTSNS_PIN = 1 [09:57:33]*** CUTSNS_PIN = 0 [09:57:33]*** Brake cut motor [09:57:34]Read from MH i2c: 01 [09:57:34]MH_I2C_Read... [09:57:34]*** Stop cut motor [09:57:34]*** Cut end [09:57:34]Read from MH i2c: 01 07 00 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: 01 07 00 B4 44 00 00 00 00 00 FF 0F 0D [09:57:34]process_action close_receipt done [09:57:34]requested_data is exist [09:57:34]produce_requested_data [09:57:34]requested_item fm.sn is exist - process it [09:57:34]wFMCommunicate request_size=4 [09:57:34]MH_SAM_APDU [09:57:34]CAPDU: 80 11 00 00 [09:57:34]Write to MH i2c: E2 08 00 B5 44 80 11 00 00 00 00 00 00 73 [09:57:34]Write i2c OK [09:57:34]MH_I2C_Read... [09:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:34]Read from MH i2c: E2 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: E2 17 00 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: E2 17 00 B5 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C0 [09:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:57:34]wFMCommunicate OK [09:57:34]requested_item fd.num is exist - process it [09:57:34]SAM_PROTO_GetFieldsCounters [09:57:34]wFMCommunicate request_size=4 [09:57:34]MH_SAM_APDU [09:57:34]CAPDU: 80 13 00 00 [09:57:34]Write to MH i2c: E2 08 00 B6 44 80 13 00 00 00 00 00 00 76 [09:57:34]Write i2c OK [09:57:34]MH_I2C_Read... [09:57:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:34]Read from MH i2c: E2 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: E2 62 00 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: E2 62 00 B6 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 24 [09:57:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 [09:57:34]wFMCommunicate OK [09:57:34]SAM_PROTO_GetFieldsCounters done [09:57:34]requested_item shift.num is exist - process it [09:57:34]requested_item shift.opened is exist - process it [09:57:34]req_shift_opened [09:57:34]FM_GetShiftState [09:57:34]SAM_PROTO_GetShiftState [09:57:34]wFMCommunicate request_size=4 [09:57:34]MH_SAM_APDU [09:57:34]CAPDU: 80 13 01 00 [09:57:34]Write to MH i2c: E2 08 00 B7 44 80 13 01 00 00 00 00 00 78 [09:57:34]Write i2c OK [09:57:34]MH_I2C_Read... [09:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:34]Read from MH i2c: E2 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: E2 0E 00 [09:57:34]MH_I2C_Read... [09:57:34]Read from MH i2c: E2 0E 00 B7 44 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 EA [09:57:34]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:57:34]wFMCommunicate OK [09:57:34]SAM_PROTO_GetShiftState done [09:57:34]FM_GetShiftState done [09:57:34]req_shift_opened done [09:57:34]requested_item shift.open_date is exist - process it [09:57:34]req_shift_open_date [09:57:34]req_shift_open_date done [09:57:34]produce_requested_data done [09:57:34]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49043,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:57:34]process_action_free close_receipt [09:57:34]json_value_free [09:57:34]json_value_free done [09:57:34]process_json_proto returns [09:57:34]Send response to host [09:57:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49043,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:57:34]free response buf [09:57:34]execute_script done [09:57:34]execute_script returns [09:57:34]free content buf [09:57:34]Sock 9.Close socket [09:57:34]Sock 9.Thread stoped [09:57:38]OFD Sender: No OFD packet to send [09:57:40]accept exits with 7 [09:57:40]New connection [09:57:40]New thread 3066813796 created [09:57:40]Thread 3066670436 joined [09:57:40]Waiting for new connection... [09:57:40] Sock 7.Parse request [09:57:40]Sock 7.Check first char [09:57:40]Sock 7.First char is OK [09:57:40]request: POST /json_proto HTTP/1.0 [09:57:40]Method: POST [09:57:40]URL: /json_proto [09:57:40]Method is POST - this is cgi request [09:57:40]url: /json_proto [09:57:40]query_string will be loaded in cgi processing [09:57:40]execute_cgi json_proto POST (null) [09:57:40]execute_cgi path=json_proto method=POST [09:57:40]POST find Content-Length [09:57:40]Host: 172.17.56.67:8080 [09:57:40]Content-Length: 677 [09:57:40]Content-Type: application/json [09:57:40] [09:57:40]POST finish read [09:57:40]Found Content-Length = 677 [09:57:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216143", "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:57:40]execute_script... [09:57:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216143", "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:57:40]POST & json_proto [09:57:40]process_json_proto [09:57:40]json parsed OK: [09:57:40]protocol is kg_v1.0 [09:57:40]action value=close_receipt [09:57:40]process_action close_receipt [09:57:40]cmd_close_receipt [09:57:40]MH_GetDate [09:57:40]Write to MH i2c: F0 00 00 B8 44 EB [09:57:40]Write i2c OK [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: F0 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: F0 09 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: F0 09 00 B8 44 00 A1 76 B7 65 26 5D 9E 65 AD [09:57:40]GetLastDocTimeStamp 1706522263 [09:57:40]current date 1706522273 [09:57:40]FM_GetShiftState [09:57:40]SAM_PROTO_GetShiftState [09:57:40]wFMCommunicate request_size=4 [09:57:40]MH_SAM_APDU [09:57:40]CAPDU: 80 13 01 00 [09:57:40]Write to MH i2c: E2 08 00 B9 44 80 13 01 00 00 00 00 00 7A [09:57:40]Write i2c OK [09:57:40]MH_I2C_Read... [09:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:40]Read from MH i2c: E2 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 0E 00 [09:57:40]MH_I2C_Read... [09:57:40]Read from MH i2c: E2 0E 00 B9 44 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 EC [09:57:40]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:57:40]wFMCommunicate OK [09:57:40]SAM_PROTO_GetShiftState done [09:57:40]FM_GetShiftState done [09:57:40]opened in 1706486624 [09:57:40]opened+sec_in_day 1706573024 [09:57:40]quantity*price = 40039 [09:57:40]sum+1 = 40040 [09:57:40]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 СÐО: Общий режим Чек 27 29.01.2024 09:57 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49044 ФПД: 29139179533282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T095753&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49044&fm=29139179533282&tin=02508201610067®Number=0000000000092723&sum=40000 [09:57:41]StoreToDocumentArchive [09:57:41]shift 245 fd 49044 [09:57:41]save to /storage/0245/doc_00049044 [09:57:41]save last doc name /storage/0245/doc_00049044 to /storage/kkm_last_doc_name [09:57:41]save OK [09:57:41]Clear old archive folders... [09:57:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:41]tlvbuf is 012320B0 [09:57:41]SAM_PROTO_ClearQueue [09:57:41]wFMCommunicate request_size=4 [09:57:41]MH_SAM_APDU [09:57:41]CAPDU: 80 09 00 00 [09:57:41]Write to MH i2c: E2 08 00 C6 44 80 09 00 00 00 00 00 00 7C [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 [09:57:41]MH_I2C_Read... [09:57:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:41]Read from MH i2c: E2 03 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 03 00 C6 44 00 90 00 7E [09:57:41]RAPDU: 90 00 [09:57:41]wFMCommunicate OK [09:57:41]SAM_PROTO_ClearQueue done [09:57:41]KKMCreateOFDPacket [09:57:41]OFDProtocolAddRootSTLVToBuf [09:57:41]FM_MakeSignedData [09:57:41]FM_MakeSignedData [09:57:41]SAM_PROTO_SignData [09:57:41]wFMCommunicate request_size=4 [09:57:41]MH_SAM_APDU [09:57:41]CAPDU: 80 0D 01 02 [09:57:41]Write to MH i2c: E2 08 00 C7 44 80 0D 01 02 00 00 00 00 84 [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 [09:57:41]MH_I2C_Read... [09:57:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:41]Read from MH i2c: E2 03 00 [09:57:41]MH_I2C_Read... [09:57:41]Read from MH i2c: E2 03 00 C7 44 00 90 00 7F [09:57:41]RAPDU: 90 00 [09:57:41]wFMCommunicate OK [09:57:41]wFMCommunicate request_size=255 [09:57:41]MH_SAM_APDU [09:57:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1B 00 00 00 F4 03 04 00 A1 76 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 1A [09:57:41]Write to MH i2c: E2 02 01 C8 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1B 00 00 00 F4 03 04 00 A1 76 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 1A 00 00 AE [09:57:41]Write i2c OK [09:57:41]MH_I2C_Read... [09:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:42]Read from MH i2c: E2 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 03 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 03 00 C8 44 00 90 00 80 [09:57:42]RAPDU: 90 00 [09:57:42]wFMCommunicate OK [09:57:42]wFMCommunicate request_size=10 [09:57:42]MH_SAM_APDU [09:57:42]CAPDU: 80 0D 02 02 05 80 7E 71 F3 E2 [09:57:42]Write to MH i2c: E2 0D 00 C9 44 80 0D 02 02 05 00 80 7E 71 F3 E2 00 00 D5 [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:42]Read from MH i2c: E2 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 03 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 03 00 C9 44 00 90 00 81 [09:57:42]RAPDU: 90 00 [09:57:42]wFMCommunicate OK [09:57:42]wFMCommunicate request_size=4 [09:57:42]MH_SAM_APDU [09:57:42]CAPDU: 80 0D 03 02 [09:57:42]Write to MH i2c: E2 08 00 CA 44 80 0D 03 02 00 00 00 00 89 [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:42]Read from MH i2c: E2 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 0B 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 0B 00 CA 44 00 7D 08 1C B8 41 B1 6E F5 90 00 38 [09:57:42]RAPDU: 7D 08 1C B8 41 B1 6E F5 90 00 [09:57:42]wFMCommunicate OK [09:57:42]SAM_PROTO_SignData done [09:57:42]FM_MakeSignedData done [09:57:42]CreateOFDProtocolMessage [09:57:42]wFMCommunicate request_size=4 [09:57:42]MH_SAM_APDU [09:57:42]CAPDU: 80 11 00 00 [09:57:42]Write to MH i2c: E2 08 00 CB 44 80 11 00 00 00 00 00 00 89 [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:42]Read from MH i2c: E2 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 17 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: E2 17 00 CB 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D6 [09:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [09:57:42]wFMCommunicate OK [09:57:42]CreateOFDProtocolMessage done [09:57:42]OFDSenderStorePacket 49044 [09:57:42]StoreOFDPacket docnum=49044 [09:57:42]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 2E 1D 07 01 A7 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1B 00 00 00 F4 03 04 00 A1 76 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 1A 80 7E 71 F3 E2 7D 08 1C B8 41 B1 6E F5 [09:57:42]CheckFolder [09:57:42]dirname=/storage/ofd_packets [09:57:42]CheckFolder done [09:57:42]ProducePacketName [09:57:42]name=ofd_packets/00049044 [09:57:42]NVStorageSaveData ofd_packets/00049044 [09:57:42]File name is /storage/ofd_packets/00049044 [09:57:42]Write 301 bytes [09:57:42]NVStorageSaveData done [09:57:42]OFDSenderStorePacket done [09:57:42]KKMCreateOFDPacket done [09:57:42]NVStorageSaveData kkm_last_timestamp [09:57:42]File name is /storage/kkm_last_timestamp [09:57:42]Write 4 bytes [09:57:42]NVStorageSaveData done [09:57:42]ExternCall_PrintAddStr [09:57:42]wPrintStart [09:57:42]Write to MH i2c: 01 00 00 CC 44 10 [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: 01 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: 01 07 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: 01 07 00 CC 44 00 00 00 00 00 FF 0F 25 [09:57:42]RasterBufferAndPrint [09:57:42]line Счет N : (1)216143 [09:57:42]line ИÐÐ: 02508201610067 [09:57:42]line Контрольно-КаÑÑовый Чек [09:57:42]line ПРОДÐЖР[09:57:42]line ТРК (МРК, ГÐК) : 12 [09:57:42]line Товар: 2710124130 [09:57:42]line Ðи-92-К-5 [09:57:42]line 6.640 * 60.30 [09:57:42]line = 400.39 [09:57:42]line ÐДС 12% ÐСП 1% [09:57:42]line > о реализуемом товаре [09:57:42]line ОКРУГЛЕÐИЕ: -0.39 [09:57:42]line ИТОГО: 400.00 [09:57:42]line ВнеÑено: 400.00 [09:57:42]line СДÐЧÐ: 0.00 [09:57:42]line ÐСП 1% : 3.54 [09:57:42]line ÐДС 12% : 42.52 [09:57:42]line Ðаличными: 400.00 [09:57:42]line Безнал.: 0.00 [09:57:42]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [09:57:42]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [09:57:42]line СÐО: Общий режим [09:57:42]line Чек 27 29.01.2024 09:57 [09:57:42]line Смена: 245 ФФД: 1.0 [09:57:42]line ЗÐМ: 0300000040 [09:57:42]line РÐМ: 0000000000092723 [09:57:42]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [09:57:42]line ФМ: 0000000000875060 [09:57:42]line ФД: 49044 [09:57:42]line ФПД: 29139179533282 [09:57:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T095753&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49044&fm=29139179533282&tin=02508201610067®Number=0000000000092723&sum=40000 [09:57:42]written 0, free lines is 4095 [09:57:42]OFD Sender: Processing packet 49044 [packets to send 12, broken 11] [09:57:42]ProducePacketName [09:57:42]name=ofd_packets/00049044 [09:57:42]OFD Sender: To server: ‡•öpG, [09:57:42]CommunicateWithHost lk.salyk.kg:30040 [09:57:42]ConnectInit lk.salyk.kg [09:57:42]Connected sock=10 [09:57:42]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 2E 1D 07 01 A7 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1B 00 00 00 F4 03 04 00 A1 76 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 1A 80 7E 71 F3 E2 7D 08 1C B8 41 B1 6E F5 [09:57:42]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 B0 EC 47 00 99 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 94 BF 00 00 F4 03 04 00 9A 22 B7 65 B6 04 01 00 00 54 55 C7 93 B8 5E 18 98 [09:57:42]CommunicateWithHost err = 0 [09:57:42]CheckOFDResponse [09:57:42]1017 (14) - 77093643461234 [09:57:42]1041 (16) - 0000000000875060 [09:57:42]1040 (4) - 49044 [09:57:42]1012 (4) - 29.01.2024 03:59 [09:57:42]1206 (1) - 0 [09:57:42]OFD Sender: Remove packet 49044 [09:57:42]ProducePacketName [09:57:42]name=ofd_packets/00049044 [09:57:42]NVStorageDeleteData [09:57:42]Write to MH i2c: 01 00 00 F7 44 3B [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: 01 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: 01 07 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: 01 07 00 F7 44 00 00 00 00 00 EF 0C 3D [09:57:42]RasterBufferAndPrint [09:57:42]line [09:57:42]line [09:57:42]line [09:57:42]line [09:57:42]line [09:57:42]written 0, free lines is 3323 [09:57:42]MH_Cut [09:57:42]Write to MH i2c: D1 01 00 FE 44 01 14 [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: D1 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: D1 01 00 [09:57:42]MH_I2C_Read... [09:57:42]Read from MH i2c: D1 01 00 FE 44 00 13 [09:57:42]Write to MH i2c: 01 00 00 FF 44 43 [09:57:42]Write i2c OK [09:57:42]MH_I2C_Read... [09:57:43]OFD Sender: No OFD packet to send [09:57:43]*** Cut start [09:57:43]*** Partial cut [09:57:43]*** CUTSNS_PIN = 1 [09:57:43]*** CUTSNS_PIN = 0 [09:57:43]*** Brake cut motor [09:57:44]Read from MH i2c: 01 [09:57:44]MH_I2C_Read... [09:57:44]*** Stop cut motor [09:57:44]*** Cut end [09:57:44]Read from MH i2c: 01 07 00 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: 01 07 00 FF 44 00 00 00 00 00 FF 0F 58 [09:57:44]process_action close_receipt done [09:57:44]requested_data is exist [09:57:44]produce_requested_data [09:57:44]requested_item fm.sn is exist - process it [09:57:44]wFMCommunicate request_size=4 [09:57:44]MH_SAM_APDU [09:57:44]CAPDU: 80 11 00 00 [09:57:44]Write to MH i2c: E2 08 00 00 45 80 11 00 00 00 00 00 00 BF [09:57:44]Write i2c OK [09:57:44]MH_I2C_Read... [09:57:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:44]Read from MH i2c: E2 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 17 00 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 17 00 00 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0C [09:57: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:57:44]wFMCommunicate OK [09:57:44]requested_item fd.num is exist - process it [09:57:44]SAM_PROTO_GetFieldsCounters [09:57:44]wFMCommunicate request_size=4 [09:57:44]MH_SAM_APDU [09:57:44]CAPDU: 80 13 00 00 [09:57:44]Write to MH i2c: E2 08 00 01 45 80 13 00 00 00 00 00 00 C2 [09:57:44]Write i2c OK [09:57:44]MH_I2C_Read... [09:57:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:44]Read from MH i2c: E2 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 62 00 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 62 00 01 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 74 [09:57:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 [09:57:44]wFMCommunicate OK [09:57:44]SAM_PROTO_GetFieldsCounters done [09:57:44]requested_item shift.num is exist - process it [09:57:44]requested_item shift.opened is exist - process it [09:57:44]req_shift_opened [09:57:44]FM_GetShiftState [09:57:44]SAM_PROTO_GetShiftState [09:57:44]wFMCommunicate request_size=4 [09:57:44]MH_SAM_APDU [09:57:44]CAPDU: 80 13 01 00 [09:57:44]Write to MH i2c: E2 08 00 02 45 80 13 01 00 00 00 00 00 C4 [09:57:44]Write i2c OK [09:57:44]MH_I2C_Read... [09:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:44]Read from MH i2c: E2 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 0E 00 [09:57:44]MH_I2C_Read... [09:57:44]Read from MH i2c: E2 0E 00 02 45 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 36 [09:57:44]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [09:57:44]wFMCommunicate OK [09:57:44]SAM_PROTO_GetShiftState done [09:57:44]FM_GetShiftState done [09:57:44]req_shift_opened done [09:57:44]requested_item shift.open_date is exist - process it [09:57:44]req_shift_open_date [09:57:44]req_shift_open_date done [09:57:44]produce_requested_data done [09:57:44]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49044,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [09:57:44]process_action_free close_receipt [09:57:44]json_value_free [09:57:44]json_value_free done [09:57:44]process_json_proto returns [09:57:44]Send response to host [09:57:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49044,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [09:57:44]free response buf [09:57:44]execute_script done [09:57:44]execute_script returns [09:57:44]free content buf [09:57:44]Sock 7.Close socket [09:57:44]Sock 7.Thread stoped [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:14]accept exits with 9 [10:00:14]New connection [10:00:14]New thread 3066670436 created [10:00:14]Thread 3066813796 joined [10:00:14]Waiting for new connection... [10:00:14] Sock 9.Parse request [10:00:14]Sock 9.Check first char [10:00:14]Sock 9.First char is OK [10:00:14]request: POST /json_proto HTTP/1.0 [10:00:14]Method: POST [10:00:14]URL: /json_proto [10:00:14]Method is POST - this is cgi request [10:00:14]url: /json_proto [10:00:14]query_string will be loaded in cgi processing [10:00:14]execute_cgi json_proto POST (null) [10:00:14]execute_cgi path=json_proto method=POST [10:00:14]POST find Content-Length [10:00:14]Host: 172.17.56.67:8080 [10:00:14]Content-Length: 677 [10:00:14]Content-Type: application/json [10:00:14] [10:00:14]POST finish read [10:00:14]Found Content-Length = 677 [10:00:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216144", "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:00:14]execute_script... [10:00:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216144", "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:00:14]POST & json_proto [10:00:14]process_json_proto [10:00:14]json parsed OK: [10:00:14]protocol is kg_v1.0 [10:00:14]action value=close_receipt [10:00:14]process_action close_receipt [10:00:14]cmd_close_receipt [10:00:14]MH_GetDate [10:00:14]Write to MH i2c: F0 00 00 03 45 37 [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: F0 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: F0 09 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: F0 09 00 03 45 00 3B 77 B7 65 26 5D 9E 65 94 [10:00:14]GetLastDocTimeStamp 1706522273 [10:00:14]current date 1706522427 [10:00:14]FM_GetShiftState [10:00:14]SAM_PROTO_GetShiftState [10:00:14]wFMCommunicate request_size=4 [10:00:14]MH_SAM_APDU [10:00:14]CAPDU: 80 13 01 00 [10:00:14]Write to MH i2c: E2 08 00 04 45 80 13 01 00 00 00 00 00 C6 [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:14]Read from MH i2c: E2 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 0E 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 0E 00 04 45 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 38 [10:00:14]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:00:14]wFMCommunicate OK [10:00:14]SAM_PROTO_GetShiftState done [10:00:14]FM_GetShiftState done [10:00:14]opened in 1706486624 [10:00:14]opened+sec_in_day 1706573024 [10:00:14]quantity*price = 50049 [10:00:14]sum+1 = 50050 [10:00:14]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 СÐО: Общий режим Чек 28 29.01.2024 10:00 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49045 ФПД: 93417208408632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T100027&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49045&fm=93417208408632&tin=02508201610067®Number=0000000000092723&sum=50000 [10:00:15]StoreToDocumentArchive [10:00:15]shift 245 fd 49045 [10:00:15]save to /storage/0245/doc_00049045 [10:00:15]save last doc name /storage/0245/doc_00049045 to /storage/kkm_last_doc_name [10:00:15]save OK [10:00:15]Clear old archive folders... [10:00:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:15]tlvbuf is 01232840 [10:00:15]SAM_PROTO_ClearQueue [10:00:15]wFMCommunicate request_size=4 [10:00:15]MH_SAM_APDU [10:00:15]CAPDU: 80 09 00 00 [10:00:15]Write to MH i2c: E2 08 00 11 45 80 09 00 00 00 00 00 00 C8 [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:15]Read from MH i2c: E2 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 03 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 03 00 11 45 00 90 00 CA [10:00:15]RAPDU: 90 00 [10:00:15]wFMCommunicate OK [10:00:15]SAM_PROTO_ClearQueue done [10:00:15]KKMCreateOFDPacket [10:00:15]OFDProtocolAddRootSTLVToBuf [10:00:15]FM_MakeSignedData [10:00:15]FM_MakeSignedData [10:00:15]SAM_PROTO_SignData [10:00:15]wFMCommunicate request_size=4 [10:00:15]MH_SAM_APDU [10:00:15]CAPDU: 80 0D 01 02 [10:00:15]Write to MH i2c: E2 08 00 12 45 80 0D 01 02 00 00 00 00 D0 [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:15]Read from MH i2c: E2 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 03 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 03 00 12 45 00 90 00 CB [10:00:15]RAPDU: 90 00 [10:00:15]wFMCommunicate OK [10:00:15]wFMCommunicate request_size=255 [10:00:15]MH_SAM_APDU [10:00:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1C 00 00 00 F4 03 04 00 3B 77 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 54 [10:00:15]Write to MH i2c: E2 02 01 13 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1C 00 00 00 F4 03 04 00 3B 77 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 54 00 00 87 [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:15]Read from MH i2c: E2 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 03 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 03 00 13 45 00 90 00 CC [10:00:15]RAPDU: 90 00 [10:00:15]wFMCommunicate OK [10:00:15]wFMCommunicate request_size=10 [10:00:15]MH_SAM_APDU [10:00:15]CAPDU: 80 0D 02 02 05 F6 63 85 EA 38 [10:00:15]Write to MH i2c: E2 0D 00 14 45 80 0D 02 02 05 00 F6 63 85 EA 38 00 00 DD [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:15]Read from MH i2c: E2 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 03 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 03 00 14 45 00 90 00 CD [10:00:15]RAPDU: 90 00 [10:00:15]wFMCommunicate OK [10:00:15]wFMCommunicate request_size=4 [10:00:15]MH_SAM_APDU [10:00:15]CAPDU: 80 0D 03 02 [10:00:15]Write to MH i2c: E2 08 00 15 45 80 0D 03 02 00 00 00 00 D5 [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:15]Read from MH i2c: E2 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 0B 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 0B 00 15 45 00 0B F5 BD C7 DE BE 9A DA 90 00 6A [10:00:15]RAPDU: 0B F5 BD C7 DE BE 9A DA 90 00 [10:00:15]wFMCommunicate OK [10:00:15]SAM_PROTO_SignData done [10:00:15]FM_MakeSignedData done [10:00:15]CreateOFDProtocolMessage [10:00:15]wFMCommunicate request_size=4 [10:00:15]MH_SAM_APDU [10:00:15]CAPDU: 80 11 00 00 [10:00:15]Write to MH i2c: E2 08 00 16 45 80 11 00 00 00 00 00 00 D5 [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:15]Read from MH i2c: E2 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 17 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: E2 17 00 16 45 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:00:15]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:15]wFMCommunicate OK [10:00:15]CreateOFDProtocolMessage done [10:00:15]OFDSenderStorePacket 49045 [10:00:15]StoreOFDPacket docnum=49045 [10:00: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 C1 7C 07 01 CB C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1C 00 00 00 F4 03 04 00 3B 77 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 54 F6 63 85 EA 38 0B F5 BD C7 DE BE 9A DA [10:00:15]CheckFolder [10:00:15]dirname=/storage/ofd_packets [10:00:15]CheckFolder done [10:00:15]ProducePacketName [10:00:15]name=ofd_packets/00049045 [10:00:15]NVStorageSaveData ofd_packets/00049045 [10:00:15]File name is /storage/ofd_packets/00049045 [10:00:15]Write 301 bytes [10:00:15]NVStorageSaveData done [10:00:15]OFDSenderStorePacket done [10:00:15]KKMCreateOFDPacket done [10:00:15]NVStorageSaveData kkm_last_timestamp [10:00:15]File name is /storage/kkm_last_timestamp [10:00:15]Write 4 bytes [10:00:15]NVStorageSaveData done [10:00:15]ExternCall_PrintAddStr [10:00:15]wPrintStart [10:00:15]Write to MH i2c: 01 00 00 17 45 5C [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: 01 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: 01 07 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: 01 07 00 17 45 00 00 00 00 00 FF 0F 71 [10:00:15]RasterBufferAndPrint [10:00:15]line Счет N : (1)216144 [10:00:15]line ИÐÐ: 02508201610067 [10:00:15]line Контрольно-КаÑÑовый Чек [10:00:15]line ПРОДÐЖР[10:00:15]line ТРК (МРК, ГÐК) : 12 [10:00:15]line Товар: 2710124130 [10:00:15]line Ðи-92-К-5 [10:00:15]line 8.300 * 60.30 [10:00:15]line = 500.49 [10:00:15]line ÐДС 12% ÐСП 1% [10:00:15]line > о реализуемом товаре [10:00:15]line ОКРУГЛЕÐИЕ: -0.49 [10:00:15]line ИТОГО: 500.00 [10:00:15]line ВнеÑено: 500.00 [10:00:15]line СДÐЧÐ: 0.00 [10:00:15]line ÐСП 1% : 4.43 [10:00:15]line ÐДС 12% : 53.15 [10:00:15]line Ðаличными: 500.00 [10:00:15]line Безнал.: 0.00 [10:00:15]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:00:15]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:00:15]line СÐО: Общий режим [10:00:15]line Чек 28 29.01.2024 10:00 [10:00:15]line Смена: 245 ФФД: 1.0 [10:00:15]line ЗÐМ: 0300000040 [10:00:15]line РÐМ: 0000000000092723 [10:00:15]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:00:15]line ФМ: 0000000000875060 [10:00:15]line ФД: 49045 [10:00:15]line ФПД: 93417208408632 [10:00:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T100027&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49045&fm=93417208408632&tin=02508201610067®Number=0000000000092723&sum=50000 [10:00:16]OFD Sender: Processing packet 49045 [packets to send 12, broken 11] [10:00:16]ProducePacketName [10:00:16]name=ofd_packets/00049045 [10:00:16]OFD Sender: To server: ‡•öpG, [10:00:16]CommunicateWithHost lk.salyk.kg:30040 [10:00:16]ConnectInit lk.salyk.kg [10:00:16]written 0, free lines is 4095 [10:00:16]Connected sock=10 [10:00:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 C1 7C 07 01 CB C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1C 00 00 00 F4 03 04 00 3B 77 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 54 F6 63 85 EA 38 0B F5 BD C7 DE BE 9A DA [10:00:16]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 6D 7F 47 00 34 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 95 BF 00 00 F4 03 04 00 34 23 B7 65 B6 04 01 00 00 E6 2D E9 2E 08 A6 4B 48 [10:00:16]CommunicateWithHost err = 0 [10:00:16]CheckOFDResponse [10:00:16]1017 (14) - 77093643461234 [10:00:16]1041 (16) - 0000000000875060 [10:00:16]1040 (4) - 49045 [10:00:16]1012 (4) - 29.01.2024 04:01 [10:00:16]1206 (1) - 0 [10:00:16]OFD Sender: Remove packet 49045 [10:00:16]ProducePacketName [10:00:16]name=ofd_packets/00049045 [10:00:16]NVStorageDeleteData [10:00:16]Write to MH i2c: 01 00 00 42 45 87 [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: 01 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: 01 07 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: 01 07 00 42 45 00 00 00 00 00 EA 0C 84 [10:00:16]RasterBufferAndPrint [10:00:16]line [10:00:16]line [10:00:16]line [10:00:16]line [10:00:16]line [10:00:16]written 0, free lines is 3315 [10:00:16]MH_Cut [10:00:16]Write to MH i2c: D1 01 00 49 45 01 60 [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: D1 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: D1 01 00 [10:00:16]MH_I2C_Read... [10:00:16]Read from MH i2c: D1 01 00 49 45 00 5F [10:00:16]Write to MH i2c: 01 00 00 4A 45 8F [10:00:16]Write i2c OK [10:00:16]MH_I2C_Read... [10:00:16]OFD Sender: No OFD packet to send [10:00:17]*** Cut start [10:00:17]*** Partial cut [10:00:17]*** CUTSNS_PIN = 1 [10:00:17]*** CUTSNS_PIN = 0 [10:00:17]*** Brake cut motor [10:00:17]Read from MH i2c: 01 [10:00:17]MH_I2C_Read... [10:00:17]*** Stop cut motor [10:00:17]*** Cut end [10:00:17]Read from MH i2c: 01 07 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 07 00 4A 45 00 00 00 00 00 FF 0F A4 [10:00:17]process_action close_receipt done [10:00:17]requested_data is exist [10:00:17]produce_requested_data [10:00:17]requested_item fm.sn is exist - process it [10:00:17]wFMCommunicate request_size=4 [10:00:17]MH_SAM_APDU [10:00:17]CAPDU: 80 11 00 00 [10:00:17]Write to MH i2c: E2 08 00 4B 45 80 11 00 00 00 00 00 00 0A [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:17]Read from MH i2c: E2 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 17 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 17 00 4B 45 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:00:17]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:17]wFMCommunicate OK [10:00:17]requested_item fd.num is exist - process it [10:00:17]SAM_PROTO_GetFieldsCounters [10:00:17]wFMCommunicate request_size=4 [10:00:17]MH_SAM_APDU [10:00:17]CAPDU: 80 13 00 00 [10:00:17]Write to MH i2c: E2 08 00 4C 45 80 13 00 00 00 00 00 00 0D [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:18]Read from MH i2c: E2 [10:00:18]MH_I2C_Read... [10:00:18]Read from MH i2c: E2 62 00 [10:00:18]MH_I2C_Read... [10:00:18]Read from MH i2c: E2 62 00 4C 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 C3 [10:00:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:00:18]wFMCommunicate OK [10:00:18]SAM_PROTO_GetFieldsCounters done [10:00:18]requested_item shift.num is exist - process it [10:00:18]requested_item shift.opened is exist - process it [10:00:18]req_shift_opened [10:00:18]FM_GetShiftState [10:00:18]SAM_PROTO_GetShiftState [10:00:18]wFMCommunicate request_size=4 [10:00:18]MH_SAM_APDU [10:00:18]CAPDU: 80 13 01 00 [10:00:18]Write to MH i2c: E2 08 00 4D 45 80 13 01 00 00 00 00 00 0F [10:00:18]Write i2c OK [10:00:18]MH_I2C_Read... [10:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:18]Read from MH i2c: E2 [10:00:18]MH_I2C_Read... [10:00:18]Read from MH i2c: E2 0E 00 [10:00:18]MH_I2C_Read... [10:00:18]Read from MH i2c: E2 0E 00 4D 45 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 81 [10:00:18]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:00:18]wFMCommunicate OK [10:00:18]SAM_PROTO_GetShiftState done [10:00:18]FM_GetShiftState done [10:00:18]req_shift_opened done [10:00:18]requested_item shift.open_date is exist - process it [10:00:18]req_shift_open_date [10:00:18]req_shift_open_date done [10:00:18]produce_requested_data done [10:00:18]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49045,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:00:18]process_action_free close_receipt [10:00:18]json_value_free [10:00:18]json_value_free done [10:00:18]process_json_proto returns [10:00:18]Send response to host [10:00:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49045,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:00:18]free response buf [10:00:18]execute_script done [10:00:18]execute_script returns [10:00:18]free content buf [10:00:18]Sock 9.Close socket [10:00:18]Sock 9.Thread stoped [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:22]accept exits with 7 [10:02:22]New connection [10:02:22]New thread 3066813796 created [10:02:22]Thread 3066670436 joined [10:02:22]Waiting for new connection... [10:02:22] Sock 7.Parse request [10:02:22]Sock 7.Check first char [10:02:22]Sock 7.First char is OK [10:02:22]request: POST /json_proto HTTP/1.0 [10:02:22]Method: POST [10:02:22]URL: /json_proto [10:02:22]Method is POST - this is cgi request [10:02:22]url: /json_proto [10:02:22]query_string will be loaded in cgi processing [10:02:22]execute_cgi json_proto POST (null) [10:02:22]execute_cgi path=json_proto method=POST [10:02:22]POST find Content-Length [10:02:22]Host: 172.17.56.67:8080 [10:02:22]Content-Length: 677 [10:02:22]Content-Type: application/json [10:02:22] [10:02:22]POST finish read [10:02:22]Found Content-Length = 677 [10:02:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216145", "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.980, "sum" : 360.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:22]execute_script... [10:02:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216145", "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.980, "sum" : 360.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 360.00, "total" : 360.00, "payments": [ { "type": 0, "sum" : 360.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:22]POST & json_proto [10:02:22]process_json_proto [10:02:22]json parsed OK: [10:02:22]protocol is kg_v1.0 [10:02:22]action value=close_receipt [10:02:22]process_action close_receipt [10:02:22]cmd_close_receipt [10:02:22]MH_GetDate [10:02:22]Write to MH i2c: F0 00 00 4E 45 82 [10:02:22]Write i2c OK [10:02:22]MH_I2C_Read... [10:02:22]Read from MH i2c: F0 [10:02:22]MH_I2C_Read... [10:02:22]Read from MH i2c: F0 09 00 [10:02:22]MH_I2C_Read... [10:02:22]Read from MH i2c: F0 09 00 4E 45 00 BB 77 B7 65 26 5D 9E 65 5F [10:02:22]GetLastDocTimeStamp 1706522427 [10:02:22]current date 1706522555 [10:02:22]FM_GetShiftState [10:02:22]SAM_PROTO_GetShiftState [10:02:22]wFMCommunicate request_size=4 [10:02:22]MH_SAM_APDU [10:02:22]CAPDU: 80 13 01 00 [10:02:22]Write to MH i2c: E2 08 00 4F 45 80 13 01 00 00 00 00 00 11 [10:02:22]Write i2c OK [10:02:22]MH_I2C_Read... [10:02:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:22]Read from MH i2c: E2 [10:02:22]MH_I2C_Read... [10:02:22]Read from MH i2c: E2 0E 00 [10:02:22]MH_I2C_Read... [10:02:22]Read from MH i2c: E2 0E 00 4F 45 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 83 [10:02:22]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:02:22]wFMCommunicate OK [10:02:22]SAM_PROTO_GetShiftState done [10:02:22]FM_GetShiftState done [10:02:22]opened in 1706486624 [10:02:22]opened+sec_in_day 1706573024 [10:02:22]quantity*price = 36059 [10:02:22]sum+1 = 36060 [10:02:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.59 ИТОГО: 360.00 ВнеÑено: 360.00 СДÐЧÐ: 0.00 ÐСП 1% : 3.19 ÐДС 12% : 38.29 Ðаличными: 360.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 29 29.01.2024 10:02 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49046 ФПД: 55022323775819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T100235&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49046&fm=55022323775819&tin=02508201610067®Number=0000000000092723&sum=36000 [10:02:23]StoreToDocumentArchive [10:02:23]shift 245 fd 49046 [10:02:23]save to /storage/0245/doc_00049046 [10:02:23]save last doc name /storage/0245/doc_00049046 to /storage/kkm_last_doc_name [10:02:23]save OK [10:02:23]Clear old archive folders... [10:02:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:23]tlvbuf is 011EA130 [10:02:23]SAM_PROTO_ClearQueue [10:02:23]wFMCommunicate request_size=4 [10:02:23]MH_SAM_APDU [10:02:23]CAPDU: 80 09 00 00 [10:02:23]Write to MH i2c: E2 08 00 5C 45 80 09 00 00 00 00 00 00 13 [10:02:23]Write i2c OK [10:02:23]MH_I2C_Read... [10:02:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:23]Read from MH i2c: E2 [10:02:23]MH_I2C_Read... [10:02:23]Read from MH i2c: E2 03 00 [10:02:23]MH_I2C_Read... [10:02:23]Read from MH i2c: E2 03 00 5C 45 00 90 00 15 [10:02:23]RAPDU: 90 00 [10:02:23]wFMCommunicate OK [10:02:23]SAM_PROTO_ClearQueue done [10:02:23]KKMCreateOFDPacket [10:02:23]OFDProtocolAddRootSTLVToBuf [10:02:23]FM_MakeSignedData [10:02:23]FM_MakeSignedData [10:02:23]SAM_PROTO_SignData [10:02:23]wFMCommunicate request_size=4 [10:02:23]MH_SAM_APDU [10:02:23]CAPDU: 80 0D 01 02 [10:02:23]Write to MH i2c: E2 08 00 5D 45 80 0D 01 02 00 00 00 00 1B [10:02:23]Write i2c OK [10:02:23]MH_I2C_Read... [10:02:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:23]Read from MH i2c: E2 [10:02:23]MH_I2C_Read... [10:02:23]Read from MH i2c: E2 03 00 [10:02:23]MH_I2C_Read... [10:02:23]Read from MH i2c: E2 03 00 5D 45 00 90 00 16 [10:02:23]RAPDU: 90 00 [10:02:23]wFMCommunicate OK [10:02:23]wFMCommunicate request_size=255 [10:02:23]MH_SAM_APDU [10:02:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 BB 77 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 32 [10:02:23]Write to MH i2c: E2 02 01 5E 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 BB 77 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 32 00 00 1E [10:02:23]Write i2c OK [10:02:23]MH_I2C_Read... [10:02:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:23]Read from MH i2c: E2 [10:02:23]MH_I2C_Read... [10:02:23]Read from MH i2c: E2 03 00 [10:02:23]MH_I2C_Read... [10:02:23]Read from MH i2c: E2 03 00 5E 45 00 90 00 17 [10:02:23]RAPDU: 90 00 [10:02:23]wFMCommunicate OK [10:02:23]wFMCommunicate request_size=10 [10:02:23]MH_SAM_APDU [10:02:23]CAPDU: 80 0D 02 02 05 0A E2 10 39 4B [10:02:23]Write to MH i2c: E2 0D 00 5F 45 80 0D 02 02 05 00 0A E2 10 39 4B 00 00 A8 [10:02:23]Write i2c OK [10:02:23]MH_I2C_Read... [10:02:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:24]Read from MH i2c: E2 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: E2 03 00 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: E2 03 00 5F 45 00 90 00 18 [10:02:24]RAPDU: 90 00 [10:02:24]wFMCommunicate OK [10:02:24]wFMCommunicate request_size=4 [10:02:24]MH_SAM_APDU [10:02:24]CAPDU: 80 0D 03 02 [10:02:24]Write to MH i2c: E2 08 00 60 45 80 0D 03 02 00 00 00 00 20 [10:02:24]Write i2c OK [10:02:24]MH_I2C_Read... [10:02:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:24]Read from MH i2c: E2 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: E2 0B 00 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: E2 0B 00 60 45 00 0E E4 D4 EC E8 4F 7A 0C 90 00 90 [10:02:24]RAPDU: 0E E4 D4 EC E8 4F 7A 0C 90 00 [10:02:24]wFMCommunicate OK [10:02:24]SAM_PROTO_SignData done [10:02:24]FM_MakeSignedData done [10:02:24]CreateOFDProtocolMessage [10:02:24]wFMCommunicate request_size=4 [10:02:24]MH_SAM_APDU [10:02:24]CAPDU: 80 11 00 00 [10:02:24]Write to MH i2c: E2 08 00 61 45 80 11 00 00 00 00 00 00 20 [10:02:24]Write i2c OK [10:02:24]MH_I2C_Read... [10:02:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:24]Read from MH i2c: E2 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: E2 17 00 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: E2 17 00 61 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6D [10:02:24]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:24]wFMCommunicate OK [10:02:24]CreateOFDProtocolMessage done [10:02:24]OFDSenderStorePacket 49046 [10:02:24]StoreOFDPacket docnum=49046 [10:02:24]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 AD F7 07 01 25 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 BB 77 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 32 0A E2 10 39 4B 0E E4 D4 EC E8 4F 7A 0C [10:02:24]CheckFolder [10:02:24]dirname=/storage/ofd_packets [10:02:24]CheckFolder done [10:02:24]ProducePacketName [10:02:24]name=ofd_packets/00049046 [10:02:24]NVStorageSaveData ofd_packets/00049046 [10:02:24]File name is /storage/ofd_packets/00049046 [10:02:24]Write 301 bytes [10:02:24]NVStorageSaveData done [10:02:24]OFDSenderStorePacket done [10:02:24]KKMCreateOFDPacket done [10:02:24]NVStorageSaveData kkm_last_timestamp [10:02:24]File name is /storage/kkm_last_timestamp [10:02:24]Write 4 bytes [10:02:24]NVStorageSaveData done [10:02:24]ExternCall_PrintAddStr [10:02:24]wPrintStart [10:02:24]Write to MH i2c: 01 00 00 62 45 A7 [10:02:24]Write i2c OK [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: 01 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: 01 07 00 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: 01 07 00 62 45 00 00 00 00 00 FF 0F BC [10:02:24]RasterBufferAndPrint [10:02:24]line Счет N : (1)216145 [10:02:24]line ИÐÐ: 02508201610067 [10:02:24]line Контрольно-КаÑÑовый Чек [10:02:24]line ПРОДÐЖР[10:02:24]line ТРК (МРК, ГÐК) : 12 [10:02:24]line Товар: 2710124130 [10:02:24]line Ðи-92-К-5 [10:02:24]line 5.980 * 60.30 [10:02:24]line = 360.59 [10:02:24]line ÐДС 12% ÐСП 1% [10:02:24]line > о реализуемом товаре [10:02:24]line ОКРУГЛЕÐИЕ: -0.59 [10:02:24]line ИТОГО: 360.00 [10:02:24]line ВнеÑено: 360.00 [10:02:24]line СДÐЧÐ: 0.00 [10:02:24]line ÐСП 1% : 3.19 [10:02:24]line ÐДС 12% : 38.29 [10:02:24]line Ðаличными: 360.00 [10:02:24]line Безнал.: 0.00 [10:02:24]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:02:24]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:02:24]line СÐО: Общий режим [10:02:24]line Чек 29 29.01.2024 10:02 [10:02:24]line Смена: 245 ФФД: 1.0 [10:02:24]line ЗÐМ: 0300000040 [10:02:24]line РÐМ: 0000000000092723 [10:02:24]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:02:24]line ФМ: 0000000000875060 [10:02:24]line ФД: 49046 [10:02:24]line ФПД: 55022323775819 [10:02:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T100235&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49046&fm=55022323775819&tin=02508201610067®Number=0000000000092723&sum=36000 [10:02:24]OFD Sender: Processing packet 49046 [packets to send 12, broken 11] [10:02:24]ProducePacketName [10:02:24]name=ofd_packets/00049046 [10:02:24]OFD Sender: To server: ‡•öpG, [10:02:24]CommunicateWithHost lk.salyk.kg:30040 [10:02:24]ConnectInit lk.salyk.kg [10:02:24]written 0, free lines is 4095 [10:02:24]Connected sock=10 [10:02:24]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 AD F7 07 01 25 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 DB 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 8C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 0E 00 00 00 00 07 04 06 00 A0 8C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 BB 77 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 32 0A E2 10 39 4B 0E E4 D4 EC E8 4F 7A 0C [10:02: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 22 2B 47 00 CD 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 96 BF 00 00 F4 03 04 00 B4 23 B7 65 B6 04 01 00 00 05 8E 40 76 6C 57 68 23 [10:02:24]CommunicateWithHost err = 0 [10:02:24]CheckOFDResponse [10:02:24]1017 (14) - 77093643461234 [10:02:24]1041 (16) - 0000000000875060 [10:02:24]1040 (4) - 49046 [10:02:24]1012 (4) - 29.01.2024 04:04 [10:02:24]1206 (1) - 0 [10:02:24]OFD Sender: Remove packet 49046 [10:02:24]ProducePacketName [10:02:24]name=ofd_packets/00049046 [10:02:24]NVStorageDeleteData [10:02:24]Write to MH i2c: 01 00 00 8D 45 D2 [10:02:24]Write i2c OK [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: 01 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: 01 07 00 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: 01 07 00 8D 45 00 00 00 00 00 EF 0C D4 [10:02:24]RasterBufferAndPrint [10:02:24]line [10:02:24]line [10:02:24]line [10:02:24]line [10:02:24]line [10:02:24]written 0, free lines is 3317 [10:02:24]MH_Cut [10:02:24]Write to MH i2c: D1 01 00 94 45 01 AB [10:02:24]Write i2c OK [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: D1 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: D1 01 00 [10:02:24]MH_I2C_Read... [10:02:24]Read from MH i2c: D1 01 00 94 45 00 AA [10:02:24]Write to MH i2c: 01 00 00 95 45 DA [10:02:24]Write i2c OK [10:02:24]MH_I2C_Read... [10:02:25]OFD Sender: No OFD packet to send [10:02:25]*** Cut start [10:02:25]*** Partial cut [10:02:25]*** CUTSNS_PIN = 1 [10:02:25]*** CUTSNS_PIN = 0 [10:02:25]*** Brake cut motor [10:02:26]Read from MH i2c: 01 [10:02:26]MH_I2C_Read... [10:02:26]*** Stop cut motor [10:02:26]*** Cut end [10:02:26]Read from MH i2c: 01 07 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: 01 07 00 95 45 00 00 00 00 00 FF 0F EF [10:02:26]process_action close_receipt done [10:02:26]requested_data is exist [10:02:26]produce_requested_data [10:02:26]requested_item fm.sn is exist - process it [10:02:26]wFMCommunicate request_size=4 [10:02:26]MH_SAM_APDU [10:02:26]CAPDU: 80 11 00 00 [10:02:26]Write to MH i2c: E2 08 00 96 45 80 11 00 00 00 00 00 00 55 [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:26]Read from MH i2c: E2 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 17 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 17 00 96 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A2 [10:02: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:02:26]wFMCommunicate OK [10:02:26]requested_item fd.num is exist - process it [10:02:26]SAM_PROTO_GetFieldsCounters [10:02:26]wFMCommunicate request_size=4 [10:02:26]MH_SAM_APDU [10:02:26]CAPDU: 80 13 00 00 [10:02:26]Write to MH i2c: E2 08 00 97 45 80 13 00 00 00 00 00 00 58 [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:26]Read from MH i2c: E2 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 62 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 62 00 97 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 12 [10:02:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:02:26]wFMCommunicate OK [10:02:26]SAM_PROTO_GetFieldsCounters done [10:02:26]requested_item shift.num is exist - process it [10:02:26]requested_item shift.opened is exist - process it [10:02:26]req_shift_opened [10:02:26]FM_GetShiftState [10:02:26]SAM_PROTO_GetShiftState [10:02:26]wFMCommunicate request_size=4 [10:02:26]MH_SAM_APDU [10:02:26]CAPDU: 80 13 01 00 [10:02:26]Write to MH i2c: E2 08 00 98 45 80 13 01 00 00 00 00 00 5A [10:02:26]Write i2c OK [10:02:26]MH_I2C_Read... [10:02:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:26]Read from MH i2c: E2 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 0E 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 0E 00 98 45 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 CC [10:02:26]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:02:26]wFMCommunicate OK [10:02:26]SAM_PROTO_GetShiftState done [10:02:26]FM_GetShiftState done [10:02:26]req_shift_opened done [10:02:26]requested_item shift.open_date is exist - process it [10:02:26]req_shift_open_date [10:02:26]req_shift_open_date done [10:02:26]produce_requested_data done [10:02:26]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49046,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:02:26]process_action_free close_receipt [10:02:26]json_value_free [10:02:26]json_value_free done [10:02:26]process_json_proto returns [10:02:26]Send response to host [10:02:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49046,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:02:26]free response buf [10:02:26]execute_script done [10:02:26]execute_script returns [10:02:26]free content buf [10:02:26]Sock 7.Close socket [10:02:26]Sock 7.Thread stoped [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:05]OFD Sender: No OFD packet to send [10:03:10]OFD Sender: No OFD packet to send [10:03:15]OFD Sender: No OFD packet to send [10:03:20]OFD Sender: No OFD packet to send [10:03:25]OFD Sender: No OFD packet to send [10:03:30]OFD Sender: No OFD packet to send [10:03:35]OFD Sender: No OFD packet to send [10:03:40]OFD Sender: No OFD packet to send [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:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:55]OFD Sender: No OFD packet to send [10:05:00]OFD Sender: No OFD packet to send [10:05:05]OFD Sender: No OFD packet to send [10:05:10]OFD Sender: No OFD packet to send [10:05:15]OFD Sender: No OFD packet to send [10:05:20]OFD Sender: No OFD packet to send [10:05:25]OFD Sender: No OFD packet to send [10:05:30]OFD Sender: No OFD packet to send [10:05:35]OFD Sender: No OFD packet to send [10:05:40]OFD Sender: No OFD packet to send [10:05:45]OFD Sender: No OFD packet to send [10:05:50]OFD Sender: No OFD packet to send [10:05:55]OFD Sender: No OFD packet to send [10:06:00]OFD Sender: No OFD packet to send [10:06:05]OFD Sender: No OFD packet to send [10:06:10]OFD Sender: No OFD packet to send [10:06:15]OFD Sender: No OFD packet to send [10:06:20]OFD Sender: No OFD packet to send [10:06:25]OFD Sender: No OFD packet to send [10:06:30]OFD Sender: No OFD packet to send [10:06:35]OFD Sender: No OFD packet to send [10:06:40]OFD Sender: No OFD packet to send [10:06:45]OFD Sender: No OFD packet to send [10:06:50]OFD Sender: No OFD packet to send [10:06:55]OFD Sender: No OFD packet to send [10:07:00]OFD Sender: No OFD packet to send [10:07:05]OFD Sender: No OFD packet to send [10:07:10]OFD Sender: No OFD packet to send [10:07:15]OFD Sender: No OFD packet to send [10:07:20]OFD Sender: No OFD packet to send [10:07:25]OFD Sender: No OFD packet to send [10:07:30]OFD Sender: No OFD packet to send [10:07:35]OFD Sender: No OFD packet to send [10:07:40]OFD Sender: No OFD packet to send [10:07:45]OFD Sender: No OFD packet to send [10:07:47]accept exits with 9 [10:07:47]New connection [10:07:47]New thread 3066670436 created [10:07:47]Thread 3066813796 joined [10:07:47]Waiting for new connection... [10:07:47] Sock 9.Parse request [10:07:47]Sock 9.Check first char [10:07:47]Sock 9.First char is OK [10:07:47]request: POST /json_proto HTTP/1.0 [10:07:47]Method: POST [10:07:47]URL: /json_proto [10:07:47]Method is POST - this is cgi request [10:07:47]url: /json_proto [10:07:47]query_string will be loaded in cgi processing [10:07:47]execute_cgi json_proto POST (null) [10:07:47]execute_cgi path=json_proto method=POST [10:07:47]POST find Content-Length [10:07:47]Host: 172.17.56.67:8080 [10:07:47]Content-Length: 677 [10:07:47]Content-Type: application/json [10:07:47] [10:07:47]POST finish read [10:07:47]Found Content-Length = 677 [10:07:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216146", "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:07:47]execute_script... [10:07: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)216146", "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:07:47]POST & json_proto [10:07:47]process_json_proto [10:07:47]json parsed OK: [10:07:47]protocol is kg_v1.0 [10:07:47]action value=close_receipt [10:07:47]process_action close_receipt [10:07:47]cmd_close_receipt [10:07:47]MH_GetDate [10:07:47]Write to MH i2c: F0 00 00 99 45 CD [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: F0 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: F0 09 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: F0 09 00 99 45 00 00 79 B7 65 26 5D 9E 65 F1 [10:07:47]GetLastDocTimeStamp 1706522555 [10:07:47]current date 1706522880 [10:07:47]FM_GetShiftState [10:07:47]SAM_PROTO_GetShiftState [10:07:47]wFMCommunicate request_size=4 [10:07:47]MH_SAM_APDU [10:07:47]CAPDU: 80 13 01 00 [10:07:47]Write to MH i2c: E2 08 00 9A 45 80 13 01 00 00 00 00 00 5C [10:07:47]Write i2c OK [10:07:47]MH_I2C_Read... [10:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:47]Read from MH i2c: E2 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 0E 00 [10:07:47]MH_I2C_Read... [10:07:47]Read from MH i2c: E2 0E 00 9A 45 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 CE [10:07:47]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:07:47]wFMCommunicate OK [10:07:47]SAM_PROTO_GetShiftState done [10:07:47]FM_GetShiftState done [10:07:47]opened in 1706486624 [10:07:47]opened+sec_in_day 1706573024 [10:07:47]quantity*price = 50049 [10:07:47]sum+1 = 50050 [10:07:47]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 СÐО: Общий режим Чек 30 29.01.2024 10:08 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49047 ФПД: 132936025823091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T100800&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49047&fm=132936025823091&tin=02508201610067®Number=0000000000092723&sum=50000 [10:07:48]StoreToDocumentArchive [10:07:48]shift 245 fd 49047 [10:07:48]save to /storage/0245/doc_00049047 [10:07:48]save last doc name /storage/0245/doc_00049047 to /storage/kkm_last_doc_name [10:07:48]save OK [10:07:48]Clear old archive folders... [10:07:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:07:48]tlvbuf is 01384C70 [10:07:48]SAM_PROTO_ClearQueue [10:07:48]wFMCommunicate request_size=4 [10:07:48]MH_SAM_APDU [10:07:48]CAPDU: 80 09 00 00 [10:07:48]Write to MH i2c: E2 08 00 A7 45 80 09 00 00 00 00 00 00 5E [10:07:48]Write i2c OK [10:07:48]MH_I2C_Read... [10:07:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:48]Read from MH i2c: E2 [10:07:48]MH_I2C_Read... [10:07:48]Read from MH i2c: E2 03 00 [10:07:48]MH_I2C_Read... [10:07:48]Read from MH i2c: E2 03 00 A7 45 00 90 00 60 [10:07:48]RAPDU: 90 00 [10:07:48]wFMCommunicate OK [10:07:48]SAM_PROTO_ClearQueue done [10:07:48]KKMCreateOFDPacket [10:07:48]OFDProtocolAddRootSTLVToBuf [10:07:48]FM_MakeSignedData [10:07:48]FM_MakeSignedData [10:07:48]SAM_PROTO_SignData [10:07:48]wFMCommunicate request_size=4 [10:07:48]MH_SAM_APDU [10:07:48]CAPDU: 80 0D 01 02 [10:07:48]Write to MH i2c: E2 08 00 A8 45 80 0D 01 02 00 00 00 00 66 [10:07:48]Write i2c OK [10:07:48]MH_I2C_Read... [10:07:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:48]Read from MH i2c: E2 [10:07:48]MH_I2C_Read... [10:07:48]Read from MH i2c: E2 03 00 [10:07:48]MH_I2C_Read... [10:07:48]Read from MH i2c: E2 03 00 A8 45 00 90 00 61 [10:07:48]RAPDU: 90 00 [10:07:48]wFMCommunicate OK [10:07:48]wFMCommunicate request_size=255 [10:07:48]MH_SAM_APDU [10:07: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 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 1E 00 00 00 F4 03 04 00 00 79 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 78 [10:07:48]Write to MH i2c: E2 02 01 A9 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1E 00 00 00 F4 03 04 00 00 79 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 78 00 00 0C [10:07:48]Write i2c OK [10:07:48]MH_I2C_Read... [10:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:49]Read from MH i2c: E2 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 03 00 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 03 00 A9 45 00 90 00 62 [10:07:49]RAPDU: 90 00 [10:07:49]wFMCommunicate OK [10:07:49]wFMCommunicate request_size=10 [10:07:49]MH_SAM_APDU [10:07:49]CAPDU: 80 0D 02 02 05 E7 94 98 D7 73 [10:07:49]Write to MH i2c: E2 0D 00 AA 45 80 0D 02 02 05 00 E7 94 98 D7 73 00 00 D0 [10:07:49]Write i2c OK [10:07:49]MH_I2C_Read... [10:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:49]Read from MH i2c: E2 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 03 00 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 03 00 AA 45 00 90 00 63 [10:07:49]RAPDU: 90 00 [10:07:49]wFMCommunicate OK [10:07:49]wFMCommunicate request_size=4 [10:07:49]MH_SAM_APDU [10:07:49]CAPDU: 80 0D 03 02 [10:07:49]Write to MH i2c: E2 08 00 AB 45 80 0D 03 02 00 00 00 00 6B [10:07:49]Write i2c OK [10:07:49]MH_I2C_Read... [10:07:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:49]Read from MH i2c: E2 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 0B 00 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 0B 00 AB 45 00 0B 5E FF 42 4F 1A D6 11 90 00 66 [10:07:49]RAPDU: 0B 5E FF 42 4F 1A D6 11 90 00 [10:07:49]wFMCommunicate OK [10:07:49]SAM_PROTO_SignData done [10:07:49]FM_MakeSignedData done [10:07:49]CreateOFDProtocolMessage [10:07:49]wFMCommunicate request_size=4 [10:07:49]MH_SAM_APDU [10:07:49]CAPDU: 80 11 00 00 [10:07:49]Write to MH i2c: E2 08 00 AC 45 80 11 00 00 00 00 00 00 6B [10:07:49]Write i2c OK [10:07:49]MH_I2C_Read... [10:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:49]Read from MH i2c: E2 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 17 00 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: E2 17 00 AC 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B8 [10:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:07:49]wFMCommunicate OK [10:07:49]CreateOFDProtocolMessage done [10:07:49]OFDSenderStorePacket 49047 [10:07:49]StoreOFDPacket docnum=49047 [10:07: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 7E A6 07 01 84 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1E 00 00 00 F4 03 04 00 00 79 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 78 E7 94 98 D7 73 0B 5E FF 42 4F 1A D6 11 [10:07:49]CheckFolder [10:07:49]dirname=/storage/ofd_packets [10:07:49]CheckFolder done [10:07:49]ProducePacketName [10:07:49]name=ofd_packets/00049047 [10:07:49]NVStorageSaveData ofd_packets/00049047 [10:07:49]File name is /storage/ofd_packets/00049047 [10:07:49]Write 301 bytes [10:07:49]NVStorageSaveData done [10:07:49]OFDSenderStorePacket done [10:07:49]KKMCreateOFDPacket done [10:07:49]NVStorageSaveData kkm_last_timestamp [10:07:49]File name is /storage/kkm_last_timestamp [10:07:49]Write 4 bytes [10:07:49]NVStorageSaveData done [10:07:49]ExternCall_PrintAddStr [10:07:49]wPrintStart [10:07:49]Write to MH i2c: 01 00 00 AD 45 F2 [10:07:49]Write i2c OK [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: 01 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: 01 07 00 [10:07:49]MH_I2C_Read... [10:07:49]Read from MH i2c: 01 07 00 AD 45 00 00 00 00 00 FF 0F 07 [10:07:49]RasterBufferAndPrint [10:07:49]line Счет N : (1)216146 [10:07:49]line ИÐÐ: 02508201610067 [10:07:49]line Контрольно-КаÑÑовый Чек [10:07:49]line ПРОДÐЖР[10:07:49]line ТРК (МРК, ГÐК) : 12 [10:07:49]line Товар: 2710124130 [10:07:49]line Ðи-92-К-5 [10:07:49]line 8.300 * 60.30 [10:07:49]line = 500.49 [10:07:49]line ÐДС 12% ÐСП 1% [10:07:49]line > о реализуемом товаре [10:07:49]line ОКРУГЛЕÐИЕ: -0.49 [10:07:49]line ИТОГО: 500.00 [10:07:49]line ВнеÑено: 500.00 [10:07:49]line СДÐЧÐ: 0.00 [10:07:49]line ÐСП 1% : 4.43 [10:07:49]line ÐДС 12% : 53.15 [10:07:49]line Ðаличными: 500.00 [10:07:49]line Безнал.: 0.00 [10:07:49]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:07:49]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:07:49]line СÐО: Общий режим [10:07:49]line Чек 30 29.01.2024 10:08 [10:07:49]line Смена: 245 ФФД: 1.0 [10:07:49]line ЗÐМ: 0300000040 [10:07:49]line РÐМ: 0000000000092723 [10:07:49]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:07:49]line ФМ: 0000000000875060 [10:07:49]line ФД: 49047 [10:07:49]line ФПД: 132936025823091 [10:07:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T100800&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49047&fm=132936025823091&tin=02508201610067®Number=0000000000092723&sum=50000 [10:07:49]OFD Sender: Processing packet 49047 [packets to send 12, broken 11] [10:07:49]ProducePacketName [10:07:49]name=ofd_packets/00049047 [10:07:49]OFD Sender: To server: ‡•öpG, [10:07:49]CommunicateWithHost lk.salyk.kg:30040 [10:07:49]ConnectInit lk.salyk.kg [10:07:49]written 0, free lines is 4095 [10:07:49]Connected sock=11 [10:07: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 7E A6 07 01 84 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1E 00 00 00 F4 03 04 00 00 79 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 78 E7 94 98 D7 73 0B 5E FF 42 4F 1A D6 11 [10:07: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 07 02 47 00 A2 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 97 BF 00 00 F4 03 04 00 F9 24 B7 65 B6 04 01 00 00 F5 8D EC 8C 0E B5 04 C7 [10:07:49]CommunicateWithHost err = 0 [10:07:49]CheckOFDResponse [10:07:49]1017 (14) - 77093643461234 [10:07:49]1041 (16) - 0000000000875060 [10:07:49]1040 (4) - 49047 [10:07:49]1012 (4) - 29.01.2024 04:09 [10:07:49]1206 (1) - 0 [10:07:49]OFD Sender: Remove packet 49047 [10:07:49]ProducePacketName [10:07:49]name=ofd_packets/00049047 [10:07:49]NVStorageDeleteData [10:07:50]Write to MH i2c: 01 00 00 D8 45 1D [10:07:50]Write i2c OK [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: 01 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: 01 07 00 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: 01 07 00 D8 45 00 00 00 00 00 EF 0C 1F [10:07:50]RasterBufferAndPrint [10:07:50]line [10:07:50]line [10:07:50]line [10:07:50]line [10:07:50]line [10:07:50]written 0, free lines is 3317 [10:07:50]MH_Cut [10:07:50]Write to MH i2c: D1 01 00 DF 45 01 F6 [10:07:50]Write i2c OK [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: D1 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: D1 01 00 [10:07:50]MH_I2C_Read... [10:07:50]Read from MH i2c: D1 01 00 DF 45 00 F5 [10:07:50]Write to MH i2c: 01 00 00 E0 45 25 [10:07:50]Write i2c OK [10:07:50]MH_I2C_Read... [10:07:50]OFD Sender: No OFD packet to send [10:07:50]*** Cut start [10:07:50]*** Partial cut [10:07:50]*** CUTSNS_PIN = 1 [10:07:50]*** CUTSNS_PIN = 0 [10:07:51]*** Brake cut motor [10:07:51]Read from MH i2c: 01 [10:07:51]MH_I2C_Read... [10:07:51]*** Stop cut motor [10:07:51]*** Cut end [10:07:51]Read from MH i2c: 01 07 00 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: 01 07 00 E0 45 00 00 00 00 00 FF 0F 3A [10:07:51]process_action close_receipt done [10:07:51]requested_data is exist [10:07:51]produce_requested_data [10:07:51]requested_item fm.sn is exist - process it [10:07:51]wFMCommunicate request_size=4 [10:07:51]MH_SAM_APDU [10:07:51]CAPDU: 80 11 00 00 [10:07:51]Write to MH i2c: E2 08 00 E1 45 80 11 00 00 00 00 00 00 A0 [10:07:51]Write i2c OK [10:07:51]MH_I2C_Read... [10:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:51]Read from MH i2c: E2 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 17 00 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 17 00 E1 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 ED [10:07: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:07:51]wFMCommunicate OK [10:07:51]requested_item fd.num is exist - process it [10:07:51]SAM_PROTO_GetFieldsCounters [10:07:51]wFMCommunicate request_size=4 [10:07:51]MH_SAM_APDU [10:07:51]CAPDU: 80 13 00 00 [10:07:51]Write to MH i2c: E2 08 00 E2 45 80 13 00 00 00 00 00 00 A3 [10:07:51]Write i2c OK [10:07:51]MH_I2C_Read... [10:07:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:51]Read from MH i2c: E2 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 62 00 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 62 00 E2 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 61 [10:07: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 97 BF 00 00 0E 04 04 00 F5 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:07:51]wFMCommunicate OK [10:07:51]SAM_PROTO_GetFieldsCounters done [10:07:51]requested_item shift.num is exist - process it [10:07:51]requested_item shift.opened is exist - process it [10:07:51]req_shift_opened [10:07:51]FM_GetShiftState [10:07:51]SAM_PROTO_GetShiftState [10:07:51]wFMCommunicate request_size=4 [10:07:51]MH_SAM_APDU [10:07:51]CAPDU: 80 13 01 00 [10:07:51]Write to MH i2c: E2 08 00 E3 45 80 13 01 00 00 00 00 00 A5 [10:07:51]Write i2c OK [10:07:51]MH_I2C_Read... [10:07:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:51]Read from MH i2c: E2 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 0E 00 [10:07:51]MH_I2C_Read... [10:07:51]Read from MH i2c: E2 0E 00 E3 45 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 17 [10:07:51]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:07:51]wFMCommunicate OK [10:07:51]SAM_PROTO_GetShiftState done [10:07:51]FM_GetShiftState done [10:07:51]req_shift_opened done [10:07:51]requested_item shift.open_date is exist - process it [10:07:51]req_shift_open_date [10:07:51]req_shift_open_date done [10:07:51]produce_requested_data done [10:07:51]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49047,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:07:51]process_action_free close_receipt [10:07:51]json_value_free [10:07:51]json_value_free done [10:07:51]process_json_proto returns [10:07:51]Send response to host [10:07:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49047,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:07:51]free response buf [10:07:51]execute_script done [10:07:51]execute_script returns [10:07:51]free content buf [10:07:51]Sock 9.Close socket [10:07:51]Sock 9.Thread stoped [10:07:55]OFD Sender: No OFD packet to send [10:08:00]OFD Sender: No OFD packet to send [10:08:05]OFD Sender: No OFD packet to send [10:08:10]OFD Sender: No OFD packet to send [10:08:15]OFD Sender: No OFD packet to send [10:08:20]OFD Sender: No OFD packet to send [10:08:25]OFD Sender: No OFD packet to send [10:08:30]OFD Sender: No OFD packet to send [10:08:35]OFD Sender: No OFD packet to send [10:08:40]OFD Sender: No OFD packet to send [10:08:45]OFD Sender: No OFD packet to send [10:08:50]OFD Sender: No OFD packet to send [10:08:55]OFD Sender: No OFD packet to send [10:09:00]OFD Sender: No OFD packet to send [10:09:05]OFD Sender: No OFD packet to send [10:09:10]OFD Sender: No OFD packet to send [10:09:15]OFD Sender: No OFD packet to send [10:09:20]OFD Sender: No OFD packet to send [10:09:25]OFD Sender: No OFD packet to send [10:09:30]OFD Sender: No OFD packet to send [10:09:35]OFD Sender: No OFD packet to send [10:09:40]OFD Sender: No OFD packet to send [10:09:45]OFD Sender: No OFD packet to send [10:09:50]OFD Sender: No OFD packet to send [10:09:55]OFD Sender: No OFD packet to send [10:10:00]OFD Sender: No OFD packet to send [10:10:05]OFD Sender: No OFD packet to send [10:10:10]OFD Sender: No OFD packet to send [10:10:15]OFD Sender: No OFD packet to send [10:10:20]OFD Sender: No OFD packet to send [10:10:25]OFD Sender: No OFD packet to send [10:10:30]OFD Sender: No OFD packet to send [10:10:35]OFD Sender: No OFD packet to send [10:10:40]OFD Sender: No OFD packet to send [10:10:45]OFD Sender: No OFD packet to send [10:10:50]OFD Sender: No OFD packet to send [10:10:55]OFD Sender: No OFD packet to send [10:11:00]OFD Sender: No OFD packet to send [10:11:05]OFD Sender: No OFD packet to send [10:11:10]OFD Sender: No OFD packet to send [10:11:15]OFD Sender: No OFD packet to send [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:50]OFD Sender: No OFD packet to send [10:12:55]OFD Sender: No OFD packet to send [10:13:00]OFD Sender: No OFD packet to send [10:13:05]OFD Sender: No OFD packet to send [10:13:10]OFD Sender: No OFD packet to send [10:13:15]OFD Sender: No OFD packet to send [10:13:20]OFD Sender: No OFD packet to send [10:13:25]OFD Sender: No OFD packet to send [10:13:30]OFD Sender: No OFD packet to send [10:13:35]OFD Sender: No OFD packet to send [10:13:40]OFD Sender: No OFD packet to send [10:13:45]OFD Sender: No OFD packet to send [10:13:50]OFD Sender: No OFD packet to send [10:13:55]OFD Sender: No OFD packet to send [10:14:00]OFD Sender: No OFD packet to send [10:14:05]OFD Sender: No OFD packet to send [10:14:10]OFD Sender: No OFD packet to send [10:14:15]OFD Sender: No OFD packet to send [10:14:20]OFD Sender: No OFD packet to send [10:14:25]OFD Sender: No OFD packet to send [10:14:30]OFD Sender: No OFD packet to send [10:14:35]OFD Sender: No OFD packet to send [10:14:40]OFD Sender: No OFD packet to send [10:14:45]OFD Sender: No OFD packet to send [10:14:48]accept exits with 7 [10:14:48]New connection [10:14:48]New thread 3066813796 created [10:14:48]Thread 3066670436 joined [10:14:48]Waiting for new connection... [10:14:48] Sock 7.Parse request [10:14:48]Sock 7.Check first char [10:14:48]Sock 7.First char is OK [10:14:48]request: POST /json_proto HTTP/1.0 [10:14:48]Method: POST [10:14:48]URL: /json_proto [10:14:48]Method is POST - this is cgi request [10:14:48]url: /json_proto [10:14:48]query_string will be loaded in cgi processing [10:14:48]execute_cgi json_proto POST (null) [10:14:48]execute_cgi path=json_proto method=POST [10:14:48]POST find Content-Length [10:14:48]Host: 172.17.56.67:8080 [10:14:48]Content-Length: 677 [10:14:48]Content-Type: application/json [10:14:48] [10:14:48]POST finish read [10:14:48]Found Content-Length = 677 [10:14:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216147", "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" ] } } [10:14:48]execute_script... [10:14: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)216147", "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" ] } } [10:14:48]POST & json_proto [10:14:48]process_json_proto [10:14:48]json parsed OK: [10:14:48]protocol is kg_v1.0 [10:14:48]action value=close_receipt [10:14:48]process_action close_receipt [10:14:48]cmd_close_receipt [10:14:48]MH_GetDate [10:14:48]Write to MH i2c: F0 00 00 E4 45 18 [10:14:48]Write i2c OK [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: F0 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: F0 09 00 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: F0 09 00 E4 45 00 A5 7A B7 65 26 5D 9E 65 E2 [10:14:48]GetLastDocTimeStamp 1706522880 [10:14:48]current date 1706523301 [10:14:48]FM_GetShiftState [10:14:48]SAM_PROTO_GetShiftState [10:14:48]wFMCommunicate request_size=4 [10:14:48]MH_SAM_APDU [10:14:48]CAPDU: 80 13 01 00 [10:14:48]Write to MH i2c: E2 08 00 E5 45 80 13 01 00 00 00 00 00 A7 [10:14:48]Write i2c OK [10:14:48]MH_I2C_Read... [10:14:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:48]Read from MH i2c: E2 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: E2 0E 00 [10:14:48]MH_I2C_Read... [10:14:48]Read from MH i2c: E2 0E 00 E5 45 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 19 [10:14:48]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:14:48]wFMCommunicate OK [10:14:48]SAM_PROTO_GetShiftState done [10:14:48]FM_GetShiftState done [10:14:48]opened in 1706486624 [10:14:48]opened+sec_in_day 1706573024 [10:14:48]quantity*price = 40039 [10:14:48]sum+1 = 40040 [10:14:48]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 СÐО: Общий режим Чек 31 29.01.2024 10:15 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49048 ФПД: 269661185419419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T101501&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49048&fm=269661185419419&tin=02508201610067®Number=0000000000092723&sum=40000 [10:14:49]StoreToDocumentArchive [10:14:49]shift 245 fd 49048 [10:14:49]save to /storage/0245/doc_00049048 [10:14:49]save last doc name /storage/0245/doc_00049048 to /storage/kkm_last_doc_name [10:14:49]save OK [10:14:49]Clear old archive folders... [10:14:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:49]tlvbuf is B6F36BA0 [10:14:49]SAM_PROTO_ClearQueue [10:14:49]wFMCommunicate request_size=4 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 09 00 00 [10:14:49]Write to MH i2c: E2 08 00 F2 45 80 09 00 00 00 00 00 00 A9 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 F2 45 00 90 00 AB [10:14:49]RAPDU: 90 00 [10:14:49]wFMCommunicate OK [10:14:49]SAM_PROTO_ClearQueue done [10:14:49]KKMCreateOFDPacket [10:14:49]OFDProtocolAddRootSTLVToBuf [10:14:49]FM_MakeSignedData [10:14:49]FM_MakeSignedData [10:14:49]SAM_PROTO_SignData [10:14:49]wFMCommunicate request_size=4 [10:14:49]MH_SAM_APDU [10:14:49]CAPDU: 80 0D 01 02 [10:14:49]Write to MH i2c: E2 08 00 F3 45 80 0D 01 02 00 00 00 00 B1 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:49]Read from MH i2c: E2 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 [10:14:49]MH_I2C_Read... [10:14:49]Read from MH i2c: E2 03 00 F3 45 00 90 00 AC [10:14:49]RAPDU: 90 00 [10:14:49]wFMCommunicate OK [10:14:49]wFMCommunicate request_size=255 [10:14:49]MH_SAM_APDU [10:14: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 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 1F 00 00 00 F4 03 04 00 A5 7A B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 F5 [10:14:49]Write to MH i2c: E2 02 01 F4 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1F 00 00 00 F4 03 04 00 A5 7A B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 F5 00 00 C6 [10:14:49]Write i2c OK [10:14:49]MH_I2C_Read... [10:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:50]Read from MH i2c: E2 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 03 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 03 00 F4 45 00 90 00 AD [10:14:50]RAPDU: 90 00 [10:14:50]wFMCommunicate OK [10:14:50]wFMCommunicate request_size=10 [10:14:50]MH_SAM_APDU [10:14:50]CAPDU: 80 0D 02 02 05 41 63 2A A8 9B [10:14:50]Write to MH i2c: E2 0D 00 F5 45 80 0D 02 02 05 00 41 63 2A A8 9B 00 00 CF [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:50]Read from MH i2c: E2 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 03 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 03 00 F5 45 00 90 00 AE [10:14:50]RAPDU: 90 00 [10:14:50]wFMCommunicate OK [10:14:50]wFMCommunicate request_size=4 [10:14:50]MH_SAM_APDU [10:14:50]CAPDU: 80 0D 03 02 [10:14:50]Write to MH i2c: E2 08 00 F6 45 80 0D 03 02 00 00 00 00 B6 [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:50]Read from MH i2c: E2 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 0B 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 0B 00 F6 45 00 A0 B6 FE AD 79 52 14 0C 90 00 A3 [10:14:50]RAPDU: A0 B6 FE AD 79 52 14 0C 90 00 [10:14:50]wFMCommunicate OK [10:14:50]SAM_PROTO_SignData done [10:14:50]FM_MakeSignedData done [10:14:50]CreateOFDProtocolMessage [10:14:50]wFMCommunicate request_size=4 [10:14:50]MH_SAM_APDU [10:14:50]CAPDU: 80 11 00 00 [10:14:50]Write to MH i2c: E2 08 00 F7 45 80 11 00 00 00 00 00 00 B6 [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:50]Read from MH i2c: E2 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 17 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: E2 17 00 F7 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 03 [10:14: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:14:50]wFMCommunicate OK [10:14:50]CreateOFDProtocolMessage done [10:14:50]OFDSenderStorePacket 49048 [10:14:50]StoreOFDPacket docnum=49048 [10:14: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 73 98 07 01 78 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1F 00 00 00 F4 03 04 00 A5 7A B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 F5 41 63 2A A8 9B A0 B6 FE AD 79 52 14 0C [10:14:50]CheckFolder [10:14:50]dirname=/storage/ofd_packets [10:14:50]CheckFolder done [10:14:50]ProducePacketName [10:14:50]name=ofd_packets/00049048 [10:14:50]NVStorageSaveData ofd_packets/00049048 [10:14:50]File name is /storage/ofd_packets/00049048 [10:14:50]Write 301 bytes [10:14:50]NVStorageSaveData done [10:14:50]OFDSenderStorePacket done [10:14:50]KKMCreateOFDPacket done [10:14:50]NVStorageSaveData kkm_last_timestamp [10:14:50]File name is /storage/kkm_last_timestamp [10:14:50]Write 4 bytes [10:14:50]NVStorageSaveData done [10:14:50]ExternCall_PrintAddStr [10:14:50]wPrintStart [10:14:50]Write to MH i2c: 01 00 00 F8 45 3D [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 07 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 07 00 F8 45 00 00 00 00 00 FF 0F 52 [10:14:50]RasterBufferAndPrint [10:14:50]line Счет N : (1)216147 [10:14:50]line ИÐÐ: 02508201610067 [10:14:50]line Контрольно-КаÑÑовый Чек [10:14:50]line ПРОДÐЖР[10:14:50]line ТРК (МРК, ГÐК) : 22 [10:14:50]line Товар: 2710124130 [10:14:50]line Ðи-92-К-5 [10:14:50]line 6.640 * 60.30 [10:14:50]line = 400.39 [10:14:50]line ÐДС 12% ÐСП 1% [10:14:50]line > о реализуемом товаре [10:14:50]line ОКРУГЛЕÐИЕ: -0.39 [10:14:50]line ИТОГО: 400.00 [10:14:50]line ВнеÑено: 400.00 [10:14:50]line СДÐЧÐ: 0.00 [10:14:50]line ÐСП 1% : 3.54 [10:14:50]line ÐДС 12% : 42.52 [10:14:50]line Ðаличными: 400.00 [10:14:50]line Безнал.: 0.00 [10:14:50]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:14:50]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:14:50]line СÐО: Общий режим [10:14:50]line Чек 31 29.01.2024 10:15 [10:14:50]line Смена: 245 ФФД: 1.0 [10:14:50]line ЗÐМ: 0300000040 [10:14:50]line РÐМ: 0000000000092723 [10:14:50]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:14:50]line ФМ: 0000000000875060 [10:14:50]line ФД: 49048 [10:14:50]line ФПД: 269661185419419 [10:14:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T101501&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49048&fm=269661185419419&tin=02508201610067®Number=0000000000092723&sum=40000 [10:14:50]OFD Sender: Processing packet 49048 [packets to send 12, broken 11] [10:14:50]ProducePacketName [10:14:50]name=ofd_packets/00049048 [10:14:50]OFD Sender: To server: ‡•öpG, [10:14:50]CommunicateWithHost lk.salyk.kg:30040 [10:14:50]ConnectInit lk.salyk.kg [10:14:50]written 0, free lines is 4095 [10:14:50]Connected sock=10 [10:14: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 73 98 07 01 78 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1F 00 00 00 F4 03 04 00 A5 7A B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 F5 41 63 2A A8 9B A0 B6 FE AD 79 52 14 0C [10:14: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 15 E3 47 00 7F 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 98 BF 00 00 F4 03 04 00 9E 26 B7 65 B6 04 01 00 00 94 1D 67 06 5E 00 26 7A [10:14:50]CommunicateWithHost err = 0 [10:14:50]CheckOFDResponse [10:14:50]1017 (14) - 77093643461234 [10:14:50]1041 (16) - 0000000000875060 [10:14:50]1040 (4) - 49048 [10:14:50]1012 (4) - 29.01.2024 04:16 [10:14:50]1206 (1) - 0 [10:14:50]OFD Sender: Remove packet 49048 [10:14:50]ProducePacketName [10:14:50]name=ofd_packets/00049048 [10:14:50]NVStorageDeleteData [10:14:50]Write to MH i2c: 01 00 00 23 46 69 [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 07 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: 01 07 00 23 46 00 00 00 00 00 EC 0C 68 [10:14:50]RasterBufferAndPrint [10:14:50]line [10:14:50]line [10:14:50]line [10:14:50]line [10:14:50]line [10:14:50]written 0, free lines is 3314 [10:14:50]MH_Cut [10:14:50]Write to MH i2c: D1 01 00 2A 46 01 42 [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: D1 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: D1 01 00 [10:14:50]MH_I2C_Read... [10:14:50]Read from MH i2c: D1 01 00 2A 46 00 41 [10:14:50]Write to MH i2c: 01 00 00 2B 46 71 [10:14:50]Write i2c OK [10:14:50]MH_I2C_Read... [10:14:51]OFD Sender: No OFD packet to send [10:14:51]*** Cut start [10:14:51]*** Partial cut [10:14:51]*** CUTSNS_PIN = 1 [10:14:51]*** CUTSNS_PIN = 0 [10:14:51]*** Brake cut motor [10:14:52]Read from MH i2c: 01 [10:14:52]MH_I2C_Read... [10:14:52]*** Stop cut motor [10:14:52]*** Cut end [10:14:52]Read from MH i2c: 01 07 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: 01 07 00 2B 46 00 00 00 00 00 FF 0F 86 [10:14:52]process_action close_receipt done [10:14:52]requested_data is exist [10:14:52]produce_requested_data [10:14:52]requested_item fm.sn is exist - process it [10:14:52]wFMCommunicate request_size=4 [10:14:52]MH_SAM_APDU [10:14:52]CAPDU: 80 11 00 00 [10:14:52]Write to MH i2c: E2 08 00 2C 46 80 11 00 00 00 00 00 00 EC [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:52]Read from MH i2c: E2 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 17 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 17 00 2C 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 39 [10:14: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:14:52]wFMCommunicate OK [10:14:52]requested_item fd.num is exist - process it [10:14:52]SAM_PROTO_GetFieldsCounters [10:14:52]wFMCommunicate request_size=4 [10:14:52]MH_SAM_APDU [10:14:52]CAPDU: 80 13 00 00 [10:14:52]Write to MH i2c: E2 08 00 2D 46 80 13 00 00 00 00 00 00 EF [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:52]Read from MH i2c: E2 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 62 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 62 00 2D 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 B1 [10:14: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 98 BF 00 00 0E 04 04 00 F5 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:14:52]wFMCommunicate OK [10:14:52]SAM_PROTO_GetFieldsCounters done [10:14:52]requested_item shift.num is exist - process it [10:14:52]requested_item shift.opened is exist - process it [10:14:52]req_shift_opened [10:14:52]FM_GetShiftState [10:14:52]SAM_PROTO_GetShiftState [10:14:52]wFMCommunicate request_size=4 [10:14:52]MH_SAM_APDU [10:14:52]CAPDU: 80 13 01 00 [10:14:52]Write to MH i2c: E2 08 00 2E 46 80 13 01 00 00 00 00 00 F1 [10:14:52]Write i2c OK [10:14:52]MH_I2C_Read... [10:14:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:52]Read from MH i2c: E2 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 0E 00 [10:14:52]MH_I2C_Read... [10:14:52]Read from MH i2c: E2 0E 00 2E 46 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 63 [10:14:52]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:14:52]wFMCommunicate OK [10:14:52]SAM_PROTO_GetShiftState done [10:14:52]FM_GetShiftState done [10:14:52]req_shift_opened done [10:14:52]requested_item shift.open_date is exist - process it [10:14:52]req_shift_open_date [10:14:52]req_shift_open_date done [10:14:52]produce_requested_data done [10:14:52]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49048,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:14:52]process_action_free close_receipt [10:14:52]json_value_free [10:14:52]json_value_free done [10:14:52]process_json_proto returns [10:14:52]Send response to host [10:14:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49048,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:14:52]free response buf [10:14:52]execute_script done [10:14:52]execute_script returns [10:14:52]free content buf [10:14:52]Sock 7.Close socket [10:14:52]Sock 7.Thread stoped [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:06]OFD Sender: No OFD packet to send [10:19:11]OFD Sender: No OFD packet to send [10:19:16]OFD Sender: No OFD packet to send [10:19:21]OFD Sender: No OFD packet to send [10:19:26]OFD Sender: No OFD packet to send [10:19:31]OFD Sender: No OFD packet to send [10:19:36]OFD Sender: No OFD packet to send [10:19:41]OFD Sender: No OFD packet to send [10:19:46]OFD Sender: No OFD packet to send [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:55]accept exits with 9 [10:20:55]New connection [10:20:55]New thread 3066670436 created [10:20:55]Thread 3066813796 joined [10:20:55]Waiting for new connection... [10:20:55] Sock 9.Parse request [10:20:55]Sock 9.Check first char [10:20:55]Sock 9.First char is OK [10:20:55]request: POST /json_proto HTTP/1.0 [10:20:55]Method: POST [10:20:55]URL: /json_proto [10:20:55]Method is POST - this is cgi request [10:20:55]url: /json_proto [10:20:55]query_string will be loaded in cgi processing [10:20:55]execute_cgi json_proto POST (null) [10:20:55]execute_cgi path=json_proto method=POST [10:20:55]POST find Content-Length [10:20:55]Host: 172.17.56.67:8080 [10:20:55]Content-Length: 677 [10:20:55]Content-Type: application/json [10:20:55] [10:20:55]POST finish read [10:20:55]Found Content-Length = 677 [10:20:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216148", "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:20:55]execute_script... [10:20: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)216148", "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:20:55]POST & json_proto [10:20:55]process_json_proto [10:20:55]json parsed OK: [10:20:55]protocol is kg_v1.0 [10:20:55]action value=close_receipt [10:20:55]process_action close_receipt [10:20:55]cmd_close_receipt [10:20:55]MH_GetDate [10:20:55]Write to MH i2c: F0 00 00 2F 46 64 [10:20:55]Write i2c OK [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: F0 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: F0 09 00 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: F0 09 00 2F 46 00 14 7C B7 65 26 5D 9E 65 9F [10:20:55]GetLastDocTimeStamp 1706523301 [10:20:55]current date 1706523668 [10:20:55]FM_GetShiftState [10:20:55]SAM_PROTO_GetShiftState [10:20:55]wFMCommunicate request_size=4 [10:20:55]MH_SAM_APDU [10:20:55]CAPDU: 80 13 01 00 [10:20:55]Write to MH i2c: E2 08 00 30 46 80 13 01 00 00 00 00 00 F3 [10:20:55]Write i2c OK [10:20:55]MH_I2C_Read... [10:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:55]Read from MH i2c: E2 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: E2 0E 00 [10:20:55]MH_I2C_Read... [10:20:55]Read from MH i2c: E2 0E 00 30 46 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 65 [10:20:55]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:20:55]wFMCommunicate OK [10:20:55]SAM_PROTO_GetShiftState done [10:20:55]FM_GetShiftState done [10:20:55]opened in 1706486624 [10:20:55]opened+sec_in_day 1706573024 [10:20:55]quantity*price = 50049 [10:20:55]sum+1 = 50050 [10:20:55]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 СÐО: Общий режим Чек 32 29.01.2024 10:21 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49049 ФПД: 137537123465468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T102108&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49049&fm=137537123465468&tin=02508201610067®Number=0000000000092723&sum=50000 [10:20:56]StoreToDocumentArchive [10:20:56]shift 245 fd 49049 [10:20:56]save to /storage/0245/doc_00049049 [10:20:56]save last doc name /storage/0245/doc_00049049 to /storage/kkm_last_doc_name [10:20:56]save OK [10:20:56]Clear old archive folders... [10:20:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:56]tlvbuf is B6EB8660 [10:20:56]SAM_PROTO_ClearQueue [10:20:56]wFMCommunicate request_size=4 [10:20:56]MH_SAM_APDU [10:20:56]CAPDU: 80 09 00 00 [10:20:56]Write to MH i2c: E2 08 00 3D 46 80 09 00 00 00 00 00 00 F5 [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:56]Read from MH i2c: E2 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 3D 46 00 90 00 F7 [10:20:56]RAPDU: 90 00 [10:20:56]wFMCommunicate OK [10:20:56]SAM_PROTO_ClearQueue done [10:20:56]KKMCreateOFDPacket [10:20:56]OFDProtocolAddRootSTLVToBuf [10:20:56]FM_MakeSignedData [10:20:56]FM_MakeSignedData [10:20:56]SAM_PROTO_SignData [10:20:56]wFMCommunicate request_size=4 [10:20:56]MH_SAM_APDU [10:20:56]CAPDU: 80 0D 01 02 [10:20:56]Write to MH i2c: E2 08 00 3E 46 80 0D 01 02 00 00 00 00 FD [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:56]Read from MH i2c: E2 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 3E 46 00 90 00 F8 [10:20:56]RAPDU: 90 00 [10:20:56]wFMCommunicate OK [10:20:56]wFMCommunicate request_size=255 [10:20:56]MH_SAM_APDU [10:20: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 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 20 00 00 00 F4 03 04 00 14 7C B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 7D [10:20:56]Write to MH i2c: E2 02 01 3F 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 20 00 00 00 F4 03 04 00 14 7C B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 7D 00 00 C3 [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:56]OFD Sender: No OFD packet to send [10:20:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:56]Read from MH i2c: E2 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 3F 46 00 90 00 F9 [10:20:56]RAPDU: 90 00 [10:20:56]wFMCommunicate OK [10:20:56]wFMCommunicate request_size=10 [10:20:56]MH_SAM_APDU [10:20:56]CAPDU: 80 0D 02 02 05 16 DB 63 38 FC [10:20:56]Write to MH i2c: E2 0D 00 40 46 80 0D 02 02 05 00 16 DB 63 38 FC 00 00 92 [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:56]Read from MH i2c: E2 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 03 00 40 46 00 90 00 FA [10:20:56]RAPDU: 90 00 [10:20:56]wFMCommunicate OK [10:20:56]wFMCommunicate request_size=4 [10:20:56]MH_SAM_APDU [10:20:56]CAPDU: 80 0D 03 02 [10:20:56]Write to MH i2c: E2 08 00 41 46 80 0D 03 02 00 00 00 00 02 [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:56]Read from MH i2c: E2 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 0B 00 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 0B 00 41 46 00 51 F6 DB AB 0E 63 E3 DA 90 00 FE [10:20:56]RAPDU: 51 F6 DB AB 0E 63 E3 DA 90 00 [10:20:56]wFMCommunicate OK [10:20:56]SAM_PROTO_SignData done [10:20:56]FM_MakeSignedData done [10:20:56]CreateOFDProtocolMessage [10:20:56]wFMCommunicate request_size=4 [10:20:56]MH_SAM_APDU [10:20:56]CAPDU: 80 11 00 00 [10:20:56]Write to MH i2c: E2 08 00 42 46 80 11 00 00 00 00 00 00 02 [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:56]Read from MH i2c: E2 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 17 00 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: E2 17 00 42 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4F [10:20: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:20:56]wFMCommunicate OK [10:20:56]CreateOFDProtocolMessage done [10:20:56]OFDSenderStorePacket 49049 [10:20:56]StoreOFDPacket docnum=49049 [10:20: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 20 16 07 01 F0 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 20 00 00 00 F4 03 04 00 14 7C B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 7D 16 DB 63 38 FC 51 F6 DB AB 0E 63 E3 DA [10:20:56]CheckFolder [10:20:56]dirname=/storage/ofd_packets [10:20:56]CheckFolder done [10:20:56]ProducePacketName [10:20:56]name=ofd_packets/00049049 [10:20:56]NVStorageSaveData ofd_packets/00049049 [10:20:56]File name is /storage/ofd_packets/00049049 [10:20:56]Write 301 bytes [10:20:56]NVStorageSaveData done [10:20:56]OFDSenderStorePacket done [10:20:56]KKMCreateOFDPacket done [10:20:56]NVStorageSaveData kkm_last_timestamp [10:20:56]File name is /storage/kkm_last_timestamp [10:20:56]Write 4 bytes [10:20:56]NVStorageSaveData done [10:20:56]ExternCall_PrintAddStr [10:20:56]wPrintStart [10:20:56]Write to MH i2c: 01 00 00 43 46 89 [10:20:56]Write i2c OK [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: 01 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: 01 07 00 [10:20:56]MH_I2C_Read... [10:20:56]Read from MH i2c: 01 07 00 43 46 00 00 00 00 00 FF 0F 9E [10:20:56]RasterBufferAndPrint [10:20:56]line Счет N : (1)216148 [10:20:56]line ИÐÐ: 02508201610067 [10:20:56]line Контрольно-КаÑÑовый Чек [10:20:56]line ПРОДÐЖР[10:20:56]line ТРК (МРК, ГÐК) : 22 [10:20:56]line Товар: 2710124130 [10:20:56]line Ðи-92-К-5 [10:20:56]line 8.300 * 60.30 [10:20:56]line = 500.49 [10:20:56]line ÐДС 12% ÐСП 1% [10:20:56]line > о реализуемом товаре [10:20:56]line ОКРУГЛЕÐИЕ: -0.49 [10:20:56]line ИТОГО: 500.00 [10:20:56]line ВнеÑено: 500.00 [10:20:56]line СДÐЧÐ: 0.00 [10:20:56]line ÐСП 1% : 4.43 [10:20:56]line ÐДС 12% : 53.15 [10:20:56]line Ðаличными: 500.00 [10:20:56]line Безнал.: 0.00 [10:20:56]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:20:56]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:20:56]line СÐО: Общий режим [10:20:56]line Чек 32 29.01.2024 10:21 [10:20:56]line Смена: 245 ФФД: 1.0 [10:20:56]line ЗÐМ: 0300000040 [10:20:56]line РÐМ: 0000000000092723 [10:20:56]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:20:56]line ФМ: 0000000000875060 [10:20:56]line ФД: 49049 [10:20:56]line ФПД: 137537123465468 [10:20:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T102108&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49049&fm=137537123465468&tin=02508201610067®Number=0000000000092723&sum=50000 [10:20:57]OFD Sender: Processing packet 49049 [packets to send 12, broken 11] [10:20:57]ProducePacketName [10:20:57]name=ofd_packets/00049049 [10:20:57]OFD Sender: To server: ‡•öpG, [10:20:57]CommunicateWithHost lk.salyk.kg:30040 [10:20:57]ConnectInit lk.salyk.kg [10:20:57]written 0, free lines is 4095 [10:20:57]Connected sock=10 [10:20: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 20 16 07 01 F0 31 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 20 00 00 00 F4 03 04 00 14 7C B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 7D 16 DB 63 38 FC 51 F6 DB AB 0E 63 E3 DA [10:20: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 33 6F 47 00 A5 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 99 BF 00 00 F4 03 04 00 0D 28 B7 65 B6 04 01 00 00 22 EA 53 17 45 50 AE A3 [10:20:57]CommunicateWithHost err = 0 [10:20:57]CheckOFDResponse [10:20:57]1017 (14) - 77093643461234 [10:20:57]1041 (16) - 0000000000875060 [10:20:57]1040 (4) - 49049 [10:20:57]1012 (4) - 29.01.2024 04:22 [10:20:57]1206 (1) - 0 [10:20:57]OFD Sender: Remove packet 49049 [10:20:57]ProducePacketName [10:20:57]name=ofd_packets/00049049 [10:20:57]NVStorageDeleteData [10:20:57]Write to MH i2c: 01 00 00 6E 46 B4 [10:20:57]Write i2c OK [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: 01 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: 01 07 00 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: 01 07 00 6E 46 00 00 00 00 00 F0 0C B7 [10:20:57]RasterBufferAndPrint [10:20:57]line [10:20:57]line [10:20:57]line [10:20:57]line [10:20:57]line [10:20:57]written 0, free lines is 3318 [10:20:57]MH_Cut [10:20:57]Write to MH i2c: D1 01 00 75 46 01 8D [10:20:57]Write i2c OK [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: D1 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: D1 01 00 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: D1 01 00 75 46 00 8C [10:20:57]Write to MH i2c: 01 00 00 76 46 BC [10:20:57]Write i2c OK [10:20:57]MH_I2C_Read... [10:20:58]OFD Sender: No OFD packet to send [10:20:58]*** Cut start [10:20:58]*** Partial cut [10:20:58]*** CUTSNS_PIN = 1 [10:20:58]*** CUTSNS_PIN = 0 [10:20:58]*** Brake cut motor [10:20:59]Read from MH i2c: 01 [10:20:59]MH_I2C_Read... [10:20:59]*** Stop cut motor [10:20:59]*** Cut end [10:20:59]Read from MH i2c: 01 07 00 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: 01 07 00 76 46 00 00 00 00 00 FF 0F D1 [10:20:59]process_action close_receipt done [10:20:59]requested_data is exist [10:20:59]produce_requested_data [10:20:59]requested_item fm.sn is exist - process it [10:20:59]wFMCommunicate request_size=4 [10:20:59]MH_SAM_APDU [10:20:59]CAPDU: 80 11 00 00 [10:20:59]Write to MH i2c: E2 08 00 77 46 80 11 00 00 00 00 00 00 37 [10:20:59]Write i2c OK [10:20:59]MH_I2C_Read... [10:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:59]Read from MH i2c: E2 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: E2 17 00 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: E2 17 00 77 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 84 [10:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:20:59]wFMCommunicate OK [10:20:59]requested_item fd.num is exist - process it [10:20:59]SAM_PROTO_GetFieldsCounters [10:20:59]wFMCommunicate request_size=4 [10:20:59]MH_SAM_APDU [10:20:59]CAPDU: 80 13 00 00 [10:20:59]Write to MH i2c: E2 08 00 78 46 80 13 00 00 00 00 00 00 3A [10:20:59]Write i2c OK [10:20:59]MH_I2C_Read... [10:20:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:59]Read from MH i2c: E2 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: E2 62 00 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: E2 62 00 78 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 00 [10:20: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 99 BF 00 00 0E 04 04 00 F5 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:20:59]wFMCommunicate OK [10:20:59]SAM_PROTO_GetFieldsCounters done [10:20:59]requested_item shift.num is exist - process it [10:20:59]requested_item shift.opened is exist - process it [10:20:59]req_shift_opened [10:20:59]FM_GetShiftState [10:20:59]SAM_PROTO_GetShiftState [10:20:59]wFMCommunicate request_size=4 [10:20:59]MH_SAM_APDU [10:20:59]CAPDU: 80 13 01 00 [10:20:59]Write to MH i2c: E2 08 00 79 46 80 13 01 00 00 00 00 00 3C [10:20:59]Write i2c OK [10:20:59]MH_I2C_Read... [10:20:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:59]Read from MH i2c: E2 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: E2 0E 00 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: E2 0E 00 79 46 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 AE [10:20:59]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:20:59]wFMCommunicate OK [10:20:59]SAM_PROTO_GetShiftState done [10:20:59]FM_GetShiftState done [10:20:59]req_shift_opened done [10:20:59]requested_item shift.open_date is exist - process it [10:20:59]req_shift_open_date [10:20:59]req_shift_open_date done [10:20:59]produce_requested_data done [10:20:59]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49049,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:20:59]process_action_free close_receipt [10:20:59]json_value_free [10:20:59]json_value_free done [10:20:59]process_json_proto returns [10:20:59]Send response to host [10:20:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49049,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:20:59]free response buf [10:20:59]execute_script done [10:20:59]execute_script returns [10:20:59]free content buf [10:20:59]Sock 9.Close socket [10:20:59]Sock 9.Thread stoped [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:28]OFD Sender: No OFD packet to send [10:26:33]OFD Sender: No OFD packet to send [10:26:38]OFD Sender: No OFD packet to send [10:26:43]OFD Sender: No OFD packet to send [10:26:48]OFD Sender: No OFD packet to send [10:26:53]OFD Sender: No OFD packet to send [10:26:58]OFD Sender: No OFD packet to send [10:27:03]OFD Sender: No OFD packet to send [10:27:05]accept exits with 7 [10:27:05]New connection [10:27:05]New thread 3066813796 created [10:27:05]Thread 3066670436 joined [10:27:05]Waiting for new connection... [10:27:05] Sock 7.Parse request [10:27:05]Sock 7.Check first char [10:27:05]Sock 7.First char is OK [10:27:05]request: POST /json_proto HTTP/1.0 [10:27:05]Method: POST [10:27:05]URL: /json_proto [10:27:05]Method is POST - this is cgi request [10:27:05]url: /json_proto [10:27:05]query_string will be loaded in cgi processing [10:27:05]execute_cgi json_proto POST (null) [10:27:05]execute_cgi path=json_proto method=POST [10:27:05]POST find Content-Length [10:27:05]Host: 172.17.56.67:8080 [10:27:05]Content-Length: 682 [10:27:05]Content-Type: application/json [10:27:05] [10:27:05]POST finish read [10:27:05]Found Content-Length = 682 [10:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216149", "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" ] } } [10:27:05]execute_script... [10:27: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)216149", "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" ] } } [10:27:05]POST & json_proto [10:27:05]process_json_proto [10:27:05]json parsed OK: [10:27:05]protocol is kg_v1.0 [10:27:05]action value=close_receipt [10:27:05]process_action close_receipt [10:27:05]cmd_close_receipt [10:27:05]MH_GetDate [10:27:05]Write to MH i2c: F0 00 00 7A 46 AF [10:27:05]Write i2c OK [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: F0 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: F0 09 00 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: F0 09 00 7A 46 00 86 7D B7 65 26 5D 9E 65 5D [10:27:05]GetLastDocTimeStamp 1706523668 [10:27:05]current date 1706524038 [10:27:05]FM_GetShiftState [10:27:05]SAM_PROTO_GetShiftState [10:27:05]wFMCommunicate request_size=4 [10:27:05]MH_SAM_APDU [10:27:05]CAPDU: 80 13 01 00 [10:27:05]Write to MH i2c: E2 08 00 7B 46 80 13 01 00 00 00 00 00 3E [10:27:05]Write i2c OK [10:27:05]MH_I2C_Read... [10:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:05]Read from MH i2c: E2 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: E2 0E 00 [10:27:05]MH_I2C_Read... [10:27:05]Read from MH i2c: E2 0E 00 7B 46 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 B0 [10:27:05]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:27:05]wFMCommunicate OK [10:27:05]SAM_PROTO_GetShiftState done [10:27:05]FM_GetShiftState done [10:27:05]opened in 1706486624 [10:27:05]opened+sec_in_day 1706573024 [10:27:05]quantity*price = 100037 [10:27:05]sum+1 = 100039 [10:27:05]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 СÐО: Общий режим Чек 33 29.01.2024 10:27 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49050 ФПД: 128632668740624 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T102718&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49050&fm=128632668740624&tin=02508201610067®Number=0000000000092723&sum=100000 [10:27:06]StoreToDocumentArchive [10:27:06]shift 245 fd 49050 [10:27:06]save to /storage/0245/doc_00049050 [10:27:06]save last doc name /storage/0245/doc_00049050 to /storage/kkm_last_doc_name [10:27:06]save OK [10:27:06]Clear old archive folders... [10:27:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:06]tlvbuf is 011F85B0 [10:27:06]SAM_PROTO_ClearQueue [10:27:06]wFMCommunicate request_size=4 [10:27:06]MH_SAM_APDU [10:27:06]CAPDU: 80 09 00 00 [10:27:06]Write to MH i2c: E2 08 00 88 46 80 09 00 00 00 00 00 00 40 [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:06]Read from MH i2c: E2 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 88 46 00 90 00 42 [10:27:06]RAPDU: 90 00 [10:27:06]wFMCommunicate OK [10:27:06]SAM_PROTO_ClearQueue done [10:27:06]KKMCreateOFDPacket [10:27:06]OFDProtocolAddRootSTLVToBuf [10:27:06]FM_MakeSignedData [10:27:06]FM_MakeSignedData [10:27:06]SAM_PROTO_SignData [10:27:06]wFMCommunicate request_size=4 [10:27:06]MH_SAM_APDU [10:27:06]CAPDU: 80 0D 01 02 [10:27:06]Write to MH i2c: E2 08 00 89 46 80 0D 01 02 00 00 00 00 48 [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:06]Read from MH i2c: E2 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 [10:27:06]MH_I2C_Read... [10:27:06]Read from MH i2c: E2 03 00 89 46 00 90 00 43 [10:27:06]RAPDU: 90 00 [10:27:06]wFMCommunicate OK [10:27:06]wFMCommunicate request_size=255 [10:27:06]MH_SAM_APDU [10:27: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 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 21 00 00 00 F4 03 04 00 86 7D B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 74 [10:27:06]Write to MH i2c: E2 02 01 8A 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 21 00 00 00 F4 03 04 00 86 7D B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 74 00 00 BA [10:27:06]Write i2c OK [10:27:06]MH_I2C_Read... [10:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:07]Read from MH i2c: E2 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: E2 03 00 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: E2 03 00 8A 46 00 90 00 44 [10:27:07]RAPDU: 90 00 [10:27:07]wFMCommunicate OK [10:27:07]wFMCommunicate request_size=10 [10:27:07]MH_SAM_APDU [10:27:07]CAPDU: 80 0D 02 02 05 FD A0 86 DC 10 [10:27:07]Write to MH i2c: E2 0D 00 8B 46 80 0D 02 02 05 00 FD A0 86 DC 10 00 00 64 [10:27:07]Write i2c OK [10:27:07]MH_I2C_Read... [10:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:07]Read from MH i2c: E2 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: E2 03 00 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: E2 03 00 8B 46 00 90 00 45 [10:27:07]RAPDU: 90 00 [10:27:07]wFMCommunicate OK [10:27:07]wFMCommunicate request_size=4 [10:27:07]MH_SAM_APDU [10:27:07]CAPDU: 80 0D 03 02 [10:27:07]Write to MH i2c: E2 08 00 8C 46 80 0D 03 02 00 00 00 00 4D [10:27:07]Write i2c OK [10:27:07]MH_I2C_Read... [10:27:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:07]Read from MH i2c: E2 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: E2 0B 00 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: E2 0B 00 8C 46 00 BB 3B 59 22 23 FA 3A F0 90 00 06 [10:27:07]RAPDU: BB 3B 59 22 23 FA 3A F0 90 00 [10:27:07]wFMCommunicate OK [10:27:07]SAM_PROTO_SignData done [10:27:07]FM_MakeSignedData done [10:27:07]CreateOFDProtocolMessage [10:27:07]wFMCommunicate request_size=4 [10:27:07]MH_SAM_APDU [10:27:07]CAPDU: 80 11 00 00 [10:27:07]Write to MH i2c: E2 08 00 8D 46 80 11 00 00 00 00 00 00 4D [10:27:07]Write i2c OK [10:27:07]MH_I2C_Read... [10:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:07]Read from MH i2c: E2 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: E2 17 00 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: E2 17 00 8D 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9A [10:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:27:07]wFMCommunicate OK [10:27:07]CreateOFDProtocolMessage done [10:27:07]OFDSenderStorePacket 49050 [10:27:07]StoreOFDPacket docnum=49050 [10:27: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 C1 1C 07 01 84 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 21 00 00 00 F4 03 04 00 86 7D B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 74 FD A0 86 DC 10 BB 3B 59 22 23 FA 3A F0 [10:27:07]CheckFolder [10:27:07]dirname=/storage/ofd_packets [10:27:07]CheckFolder done [10:27:07]ProducePacketName [10:27:07]name=ofd_packets/00049050 [10:27:07]NVStorageSaveData ofd_packets/00049050 [10:27:07]File name is /storage/ofd_packets/00049050 [10:27:07]Write 301 bytes [10:27:07]NVStorageSaveData done [10:27:07]OFDSenderStorePacket done [10:27:07]KKMCreateOFDPacket done [10:27:07]NVStorageSaveData kkm_last_timestamp [10:27:07]File name is /storage/kkm_last_timestamp [10:27:07]Write 4 bytes [10:27:07]NVStorageSaveData done [10:27:07]ExternCall_PrintAddStr [10:27:07]wPrintStart [10:27:07]Write to MH i2c: 01 00 00 8E 46 D4 [10:27:07]Write i2c OK [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: 01 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: 01 07 00 [10:27:07]MH_I2C_Read... [10:27:07]Read from MH i2c: 01 07 00 8E 46 00 00 00 00 00 FF 0F E9 [10:27:07]RasterBufferAndPrint [10:27:07]line Счет N : (1)216149 [10:27:07]line ИÐÐ: 02508201610067 [10:27:07]line Контрольно-КаÑÑовый Чек [10:27:07]line ПРОДÐЖР[10:27:07]line ТРК (МРК, ГÐК) : 22 [10:27:07]line Товар: 2710124130 [10:27:07]line Ðи-92-К-5 [10:27:07]line 16.590 * 60.30 [10:27:07]line = 1000.38 [10:27:07]line ÐДС 12% ÐСП 1% [10:27:07]line > о реализуемом товаре [10:27:07]line ОКРУГЛЕÐИЕ: -0.38 [10:27:07]line ИТОГО: 1000.00 [10:27:07]line ВнеÑено: 1000.00 [10:27:07]line СДÐЧÐ: 0.00 [10:27:07]line ÐСП 1% : 8.85 [10:27:07]line ÐДС 12% : 106.23 [10:27:07]line Ðаличными: 1000.00 [10:27:07]line Безнал.: 0.00 [10:27:07]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:27:07]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:27:07]line СÐО: Общий режим [10:27:07]line Чек 33 29.01.2024 10:27 [10:27:07]line Смена: 245 ФФД: 1.0 [10:27:07]line ЗÐМ: 0300000040 [10:27:07]line РÐМ: 0000000000092723 [10:27:07]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:27:07]line ФМ: 0000000000875060 [10:27:07]line ФД: 49050 [10:27:07]line ФПД: 128632668740624 [10:27:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T102718&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49050&fm=128632668740624&tin=02508201610067®Number=0000000000092723&sum=100000 [10:27:07]OFD Sender: Processing packet 49050 [packets to send 12, broken 11] [10:27:07]ProducePacketName [10:27:07]name=ofd_packets/00049050 [10:27:07]OFD Sender: To server: ‡•öpG, [10:27:07]CommunicateWithHost lk.salyk.kg:30040 [10:27:07]ConnectInit lk.salyk.kg [10:27:07]written 0, free lines is 4095 [10:27:07]Connected sock=10 [10:27: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 C1 1C 07 01 84 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 21 00 00 00 F4 03 04 00 86 7D B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 74 FD A0 86 DC 10 BB 3B 59 22 23 FA 3A F0 [10: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 D6 26 47 00 69 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 BF 00 00 F4 03 04 00 7F 29 B7 65 B6 04 01 00 00 53 B7 0C 26 C8 BC CE DD [10:27:08]CommunicateWithHost err = 0 [10:27:08]CheckOFDResponse [10:27:08]1017 (14) - 77093643461234 [10:27:08]1041 (16) - 0000000000875060 [10:27:08]1040 (4) - 49050 [10:27:08]1012 (4) - 29.01.2024 04:28 [10:27:08]1206 (1) - 0 [10:27:08]OFD Sender: Remove packet 49050 [10:27:08]ProducePacketName [10:27:08]name=ofd_packets/00049050 [10:27:08]NVStorageDeleteData [10:27:08]Write to MH i2c: 01 00 00 B9 46 FF [10:27:08]Write i2c OK [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: 01 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: 01 07 00 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: 01 07 00 B9 46 00 00 00 00 00 F5 0C 07 [10:27:08]RasterBufferAndPrint [10:27:08]line [10:27:08]line [10:27:08]line [10:27:08]line [10:27:08]line [10:27:08]written 0, free lines is 3323 [10:27:08]MH_Cut [10:27:08]Write to MH i2c: D1 01 00 C0 46 01 D8 [10:27:08]Write i2c OK [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: D1 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: D1 01 00 [10:27:08]MH_I2C_Read... [10:27:08]Read from MH i2c: D1 01 00 C0 46 00 D7 [10:27:08]Write to MH i2c: 01 00 00 C1 46 07 [10:27:08]Write i2c OK [10:27:08]MH_I2C_Read... [10:27:08]OFD Sender: No OFD packet to send [10:27:08]*** Cut start [10:27:08]*** Partial cut [10:27:08]*** CUTSNS_PIN = 1 [10:27:08]*** CUTSNS_PIN = 0 [10:27:09]*** Brake cut motor [10:27:09]Read from MH i2c: 01 [10:27:09]MH_I2C_Read... [10:27:09]*** Stop cut motor [10:27:09]*** Cut end [10:27:09]Read from MH i2c: 01 07 00 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: 01 07 00 C1 46 00 00 00 00 00 FF 0F 1C [10:27:09]process_action close_receipt done [10:27:09]requested_data is exist [10:27:09]produce_requested_data [10:27:09]requested_item fm.sn is exist - process it [10:27:09]wFMCommunicate request_size=4 [10:27:09]MH_SAM_APDU [10:27:09]CAPDU: 80 11 00 00 [10:27:09]Write to MH i2c: E2 08 00 C2 46 80 11 00 00 00 00 00 00 82 [10:27:09]Write i2c OK [10:27:09]MH_I2C_Read... [10:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:09]Read from MH i2c: E2 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 17 00 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 17 00 C2 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CF [10:27: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:27:09]wFMCommunicate OK [10:27:09]requested_item fd.num is exist - process it [10:27:09]SAM_PROTO_GetFieldsCounters [10:27:09]wFMCommunicate request_size=4 [10:27:09]MH_SAM_APDU [10:27:09]CAPDU: 80 13 00 00 [10:27:09]Write to MH i2c: E2 08 00 C3 46 80 13 00 00 00 00 00 00 85 [10:27:09]Write i2c OK [10:27:09]MH_I2C_Read... [10:27:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:09]Read from MH i2c: E2 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 62 00 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 62 00 C3 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 4F [10:27:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:27:09]wFMCommunicate OK [10:27:09]SAM_PROTO_GetFieldsCounters done [10:27:09]requested_item shift.num is exist - process it [10:27:09]requested_item shift.opened is exist - process it [10:27:09]req_shift_opened [10:27:09]FM_GetShiftState [10:27:09]SAM_PROTO_GetShiftState [10:27:09]wFMCommunicate request_size=4 [10:27:09]MH_SAM_APDU [10:27:09]CAPDU: 80 13 01 00 [10:27:09]Write to MH i2c: E2 08 00 C4 46 80 13 01 00 00 00 00 00 87 [10:27:09]Write i2c OK [10:27:09]MH_I2C_Read... [10:27:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:09]Read from MH i2c: E2 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 0E 00 [10:27:09]MH_I2C_Read... [10:27:09]Read from MH i2c: E2 0E 00 C4 46 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 F9 [10:27:09]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:27:09]wFMCommunicate OK [10:27:09]SAM_PROTO_GetShiftState done [10:27:09]FM_GetShiftState done [10:27:09]req_shift_opened done [10:27:09]requested_item shift.open_date is exist - process it [10:27:09]req_shift_open_date [10:27:09]req_shift_open_date done [10:27:09]produce_requested_data done [10:27:09]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49050,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:27:09]process_action_free close_receipt [10:27:09]json_value_free [10:27:09]json_value_free done [10:27:09]process_json_proto returns [10:27:09]Send response to host [10:27:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49050,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:27:09]free response buf [10:27:09]execute_script done [10:27:09]execute_script returns [10:27:09]free content buf [10:27:09]Sock 7.Close socket [10:27:09]Sock 7.Thread stoped [10:27:13]OFD Sender: No OFD packet to send [10:27:18]OFD Sender: No OFD packet to send [10:27:23]OFD Sender: No OFD packet to send [10:27:28]OFD Sender: No OFD packet to send [10:27:33]OFD Sender: No OFD packet to send [10:27:38]OFD Sender: No OFD packet to send [10:27:43]OFD Sender: No OFD packet to send [10:27:48]OFD Sender: No OFD packet to send [10:27:53]OFD Sender: No OFD packet to send [10:27:58]OFD Sender: No OFD packet to send [10:28:03]OFD Sender: No OFD packet to send [10:28:08]OFD Sender: No OFD packet to send [10:28:13]OFD Sender: No OFD packet to send [10:28:18]OFD Sender: No OFD packet to send [10:28:23]OFD Sender: No OFD packet to send [10:28:24]accept exits with 9 [10:28:24]New connection [10:28:24]New thread 3066670436 created [10:28:24]Thread 3066813796 joined [10:28:24]Waiting for new connection... [10:28:24] Sock 9.Parse request [10:28:24]Sock 9.Check first char [10:28:24]Sock 9.First char is OK [10:28:24]request: POST /json_proto HTTP/1.0 [10:28:24]Method: POST [10:28:24]URL: /json_proto [10:28:24]Method is POST - this is cgi request [10:28:24]url: /json_proto [10:28:24]query_string will be loaded in cgi processing [10:28:24]execute_cgi json_proto POST (null) [10:28:24]execute_cgi path=json_proto method=POST [10:28:24]POST find Content-Length [10:28:24]Host: 172.17.56.67:8080 [10:28:24]Content-Length: 677 [10:28:24]Content-Type: application/json [10:28:24] [10:28:24]POST finish read [10:28:24]Found Content-Length = 677 [10:28:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216150", "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:28:24]execute_script... [10:28: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)216150", "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:28:24]POST & json_proto [10:28:24]process_json_proto [10:28:24]json parsed OK: [10:28:24]protocol is kg_v1.0 [10:28:24]action value=close_receipt [10:28:24]process_action close_receipt [10:28:24]cmd_close_receipt [10:28:24]MH_GetDate [10:28:24]Write to MH i2c: F0 00 00 C5 46 FA [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: F0 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: F0 09 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: F0 09 00 C5 46 00 D5 7D B7 65 26 5D 9E 65 F7 [10:28:24]GetLastDocTimeStamp 1706524038 [10:28:24]current date 1706524117 [10:28:24]FM_GetShiftState [10:28:24]SAM_PROTO_GetShiftState [10:28:24]wFMCommunicate request_size=4 [10:28:24]MH_SAM_APDU [10:28:24]CAPDU: 80 13 01 00 [10:28:24]Write to MH i2c: E2 08 00 C6 46 80 13 01 00 00 00 00 00 89 [10:28:24]Write i2c OK [10:28:24]MH_I2C_Read... [10:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:24]Read from MH i2c: E2 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 0E 00 [10:28:24]MH_I2C_Read... [10:28:24]Read from MH i2c: E2 0E 00 C6 46 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 FB [10:28:24]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:28:24]wFMCommunicate OK [10:28:24]SAM_PROTO_GetShiftState done [10:28:24]FM_GetShiftState done [10:28:24]opened in 1706486624 [10:28:24]opened+sec_in_day 1706573024 [10:28:24]quantity*price = 50049 [10:28:24]sum+1 = 50050 [10:28:24]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 СÐО: Общий режим Чек 34 29.01.2024 10:28 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49051 ФПД: 33172094574273 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T102837&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49051&fm=33172094574273&tin=02508201610067®Number=0000000000092723&sum=50000 [10:28:25]StoreToDocumentArchive [10:28:25]shift 245 fd 49051 [10:28:25]save to /storage/0245/doc_00049051 [10:28:25]save last doc name /storage/0245/doc_00049051 to /storage/kkm_last_doc_name [10:28:25]save OK [10:28:25]Clear old archive folders... [10:28:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:28:25]tlvbuf is 01384C90 [10:28:25]SAM_PROTO_ClearQueue [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 09 00 00 [10:28:25]Write to MH i2c: E2 08 00 D3 46 80 09 00 00 00 00 00 00 8B [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 03 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 03 00 D3 46 00 90 00 8D [10:28:25]RAPDU: 90 00 [10:28:25]wFMCommunicate OK [10:28:25]SAM_PROTO_ClearQueue done [10:28:25]KKMCreateOFDPacket [10:28:25]OFDProtocolAddRootSTLVToBuf [10:28:25]FM_MakeSignedData [10:28:25]FM_MakeSignedData [10:28:25]SAM_PROTO_SignData [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 0D 01 02 [10:28:25]Write to MH i2c: E2 08 00 D4 46 80 0D 01 02 00 00 00 00 93 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 03 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 03 00 D4 46 00 90 00 8E [10:28:25]RAPDU: 90 00 [10:28:25]wFMCommunicate OK [10:28:25]wFMCommunicate request_size=255 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 22 00 00 00 F4 03 04 00 D5 7D B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 1E [10:28:25]Write to MH i2c: E2 02 01 D5 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 00 00 00 F4 03 04 00 D5 7D B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 1E 00 00 C0 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 03 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 03 00 D5 46 00 90 00 8F [10:28:25]RAPDU: 90 00 [10:28:25]wFMCommunicate OK [10:28:25]wFMCommunicate request_size=10 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 0D 02 02 05 2B 7A E9 DE C1 [10:28:25]Write to MH i2c: E2 0D 00 D6 46 80 0D 02 02 05 00 2B 7A E9 DE C1 00 00 CD [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 03 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 03 00 D6 46 00 90 00 90 [10:28:25]RAPDU: 90 00 [10:28:25]wFMCommunicate OK [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 0D 03 02 [10:28:25]Write to MH i2c: E2 08 00 D7 46 80 0D 03 02 00 00 00 00 98 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 0B 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 0B 00 D7 46 00 68 0F 9D 6C 57 0A CF A2 90 00 EB [10:28:25]RAPDU: 68 0F 9D 6C 57 0A CF A2 90 00 [10:28:25]wFMCommunicate OK [10:28:25]SAM_PROTO_SignData done [10:28:25]FM_MakeSignedData done [10:28:25]CreateOFDProtocolMessage [10:28:25]wFMCommunicate request_size=4 [10:28:25]MH_SAM_APDU [10:28:25]CAPDU: 80 11 00 00 [10:28:25]Write to MH i2c: E2 08 00 D8 46 80 11 00 00 00 00 00 00 98 [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:25]Read from MH i2c: E2 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 17 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: E2 17 00 D8 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E5 [10:28: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:28:25]wFMCommunicate OK [10:28:25]CreateOFDProtocolMessage done [10:28:25]OFDSenderStorePacket 49051 [10:28:25]StoreOFDPacket docnum=49051 [10:28:25]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 BC 37 07 01 1F A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 22 00 00 00 F4 03 04 00 D5 7D B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 1E 2B 7A E9 DE C1 68 0F 9D 6C 57 0A CF A2 [10:28:25]CheckFolder [10:28:25]dirname=/storage/ofd_packets [10:28:25]CheckFolder done [10:28:25]ProducePacketName [10:28:25]name=ofd_packets/00049051 [10:28:25]NVStorageSaveData ofd_packets/00049051 [10:28:25]File name is /storage/ofd_packets/00049051 [10:28:25]Write 301 bytes [10:28:25]NVStorageSaveData done [10:28:25]OFDSenderStorePacket done [10:28:25]KKMCreateOFDPacket done [10:28:25]NVStorageSaveData kkm_last_timestamp [10:28:25]File name is /storage/kkm_last_timestamp [10:28:25]Write 4 bytes [10:28:25]NVStorageSaveData done [10:28:25]ExternCall_PrintAddStr [10:28:25]wPrintStart [10:28:25]Write to MH i2c: 01 00 00 D9 46 1F [10:28:25]Write i2c OK [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: 01 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: 01 07 00 [10:28:25]MH_I2C_Read... [10:28:25]Read from MH i2c: 01 07 00 D9 46 00 00 00 00 00 FF 0F 34 [10:28:25]RasterBufferAndPrint [10:28:25]line Счет N : (1)216150 [10:28:25]line ИÐÐ: 02508201610067 [10:28:25]line Контрольно-КаÑÑовый Чек [10:28:25]line ПРОДÐЖР[10:28:25]line ТРК (МРК, ГÐК) : 12 [10:28:25]line Товар: 2710124130 [10:28:25]line Ðи-92-К-5 [10:28:25]line 8.300 * 60.30 [10:28:25]line = 500.49 [10:28:25]line ÐДС 12% ÐСП 1% [10:28:25]line > о реализуемом товаре [10:28:25]line ОКРУГЛЕÐИЕ: -0.49 [10:28:25]line ИТОГО: 500.00 [10:28:25]line ВнеÑено: 500.00 [10:28:25]line СДÐЧÐ: 0.00 [10:28:25]line ÐСП 1% : 4.43 [10:28:25]line ÐДС 12% : 53.15 [10:28:25]line Ðаличными: 500.00 [10:28:25]line Безнал.: 0.00 [10:28:25]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:28:25]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:28:25]line СÐО: Общий режим [10:28:25]line Чек 34 29.01.2024 10:28 [10:28:25]line Смена: 245 ФФД: 1.0 [10:28:25]line ЗÐМ: 0300000040 [10:28:25]line РÐМ: 0000000000092723 [10:28:25]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:28:25]line ФМ: 0000000000875060 [10:28:25]line ФД: 49051 [10:28:25]line ФПД: 33172094574273 [10:28:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T102837&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49051&fm=33172094574273&tin=02508201610067®Number=0000000000092723&sum=50000 [10:28:25]written 0, free lines is 4095 [10:28:26]OFD Sender: Processing packet 49051 [packets to send 12, broken 11] [10:28:26]ProducePacketName [10:28:26]name=ofd_packets/00049051 [10:28:26]OFD Sender: To server: ‡•öpG, [10:28:26]CommunicateWithHost lk.salyk.kg:30040 [10:28:26]ConnectInit lk.salyk.kg [10:28:26]Connected sock=11 [10:28: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 0F 01 00 00 BC 37 07 01 1F A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 22 00 00 00 F4 03 04 00 D5 7D B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 1E 2B 7A E9 DE C1 68 0F 9D 6C 57 0A CF A2 [10:28:26]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 9E B3 47 00 1E C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9B BF 00 00 F4 03 04 00 CD 29 B7 65 B6 04 01 00 00 ED E8 97 66 1F 20 0C CC [10:28:26]CommunicateWithHost err = 0 [10:28:26]CheckOFDResponse [10:28:26]1017 (14) - 77093643461234 [10:28:26]1041 (16) - 0000000000875060 [10:28:26]1040 (4) - 49051 [10:28:26]1012 (4) - 29.01.2024 04:30 [10:28:26]1206 (1) - 0 [10:28:26]OFD Sender: Remove packet 49051 [10:28:26]ProducePacketName [10:28:26]name=ofd_packets/00049051 [10:28:26]NVStorageDeleteData [10:28:26]Write to MH i2c: 01 00 00 04 47 4B [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: 01 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: 01 07 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: 01 07 00 04 47 00 00 00 00 00 F3 0C 51 [10:28:26]RasterBufferAndPrint [10:28:26]line [10:28:26]line [10:28:26]line [10:28:26]line [10:28:26]line [10:28:26]written 0, free lines is 3321 [10:28:26]MH_Cut [10:28:26]Write to MH i2c: D1 01 00 0B 47 01 24 [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: D1 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: D1 01 00 [10:28:26]MH_I2C_Read... [10:28:26]Read from MH i2c: D1 01 00 0B 47 00 23 [10:28:26]Write to MH i2c: 01 00 00 0C 47 53 [10:28:26]Write i2c OK [10:28:26]MH_I2C_Read... [10:28:26]OFD Sender: No OFD packet to send [10:28:27]*** Cut start [10:28:27]*** Partial cut [10:28:27]*** CUTSNS_PIN = 1 [10:28:27]*** CUTSNS_PIN = 0 [10:28:27]*** Brake cut motor [10:28:27]Read from MH i2c: 01 [10:28:27]MH_I2C_Read... [10:28:27]*** Stop cut motor [10:28:27]*** Cut end [10:28:27]Read from MH i2c: 01 07 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: 01 07 00 0C 47 00 00 00 00 00 FF 0F 68 [10:28:27]process_action close_receipt done [10:28:27]requested_data is exist [10:28:27]produce_requested_data [10:28:27]requested_item fm.sn is exist - process it [10:28:27]wFMCommunicate request_size=4 [10:28:27]MH_SAM_APDU [10:28:27]CAPDU: 80 11 00 00 [10:28:27]Write to MH i2c: E2 08 00 0D 47 80 11 00 00 00 00 00 00 CE [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:27]Read from MH i2c: E2 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 17 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 17 00 0D 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1B [10:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:28:27]wFMCommunicate OK [10:28:27]requested_item fd.num is exist - process it [10:28:27]SAM_PROTO_GetFieldsCounters [10:28:27]wFMCommunicate request_size=4 [10:28:27]MH_SAM_APDU [10:28:27]CAPDU: 80 13 00 00 [10:28:27]Write to MH i2c: E2 08 00 0E 47 80 13 00 00 00 00 00 00 D1 [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:27]Read from MH i2c: E2 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 62 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 62 00 0E 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 9F [10:28:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:28:27]wFMCommunicate OK [10:28:27]SAM_PROTO_GetFieldsCounters done [10:28:27]requested_item shift.num is exist - process it [10:28:27]requested_item shift.opened is exist - process it [10:28:27]req_shift_opened [10:28:27]FM_GetShiftState [10:28:27]SAM_PROTO_GetShiftState [10:28:27]wFMCommunicate request_size=4 [10:28:27]MH_SAM_APDU [10:28:27]CAPDU: 80 13 01 00 [10:28:27]Write to MH i2c: E2 08 00 0F 47 80 13 01 00 00 00 00 00 D3 [10:28:27]Write i2c OK [10:28:27]MH_I2C_Read... [10:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:27]Read from MH i2c: E2 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 0E 00 [10:28:27]MH_I2C_Read... [10:28:27]Read from MH i2c: E2 0E 00 0F 47 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 45 [10:28:27]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:28:27]wFMCommunicate OK [10:28:27]SAM_PROTO_GetShiftState done [10:28:27]FM_GetShiftState done [10:28:27]req_shift_opened done [10:28:27]requested_item shift.open_date is exist - process it [10:28:27]req_shift_open_date [10:28:27]req_shift_open_date done [10:28:27]produce_requested_data done [10:28:27]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49051,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:28:27]process_action_free close_receipt [10:28:27]json_value_free [10:28:27]json_value_free done [10:28:27]process_json_proto returns [10:28:27]Send response to host [10:28:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49051,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:28:27]free response buf [10:28:27]execute_script done [10:28:27]execute_script returns [10:28:27]free content buf [10:28:27]Sock 9.Close socket [10:28:27]Sock 9.Thread stoped [10:28:31]OFD Sender: No OFD packet to send [10:28:36]OFD Sender: No OFD packet to send [10:28:41]OFD Sender: No OFD packet to send [10:28:46]OFD Sender: No OFD packet to send [10:28:51]OFD Sender: No OFD packet to send [10:28:56]OFD Sender: No OFD packet to send [10:29:01]OFD Sender: No OFD packet to send [10:29:06]OFD Sender: No OFD packet to send [10:29:10]accept exits with 7 [10:29:10]New connection [10:29:10]New thread 3066813796 created [10:29:10]Thread 3066670436 joined [10:29:10]Waiting for new connection... [10:29:10] Sock 7.Parse request [10:29:10]Sock 7.Check first char [10:29:10]Sock 7.First char is OK [10:29:10]request: POST /json_proto HTTP/1.0 [10:29:10]Method: POST [10:29:10]URL: /json_proto [10:29:10]Method is POST - this is cgi request [10:29:10]url: /json_proto [10:29:10]query_string will be loaded in cgi processing [10:29:10]execute_cgi json_proto POST (null) [10:29:10]execute_cgi path=json_proto method=POST [10:29:10]POST find Content-Length [10:29:10]Host: 172.17.56.67:8080 [10:29:10]Content-Length: 677 [10:29:10]Content-Type: application/json [10:29:10] [10:29:10]POST finish read [10:29:10]Found Content-Length = 677 [10:29:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216151", "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:29:10]execute_script... [10:29: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)216151", "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:29:10]POST & json_proto [10:29:10]process_json_proto [10:29:10]json parsed OK: [10:29:10]protocol is kg_v1.0 [10:29:10]action value=close_receipt [10:29:10]process_action close_receipt [10:29:10]cmd_close_receipt [10:29:10]MH_GetDate [10:29:10]Write to MH i2c: F0 00 00 10 47 46 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: F0 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: F0 09 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: F0 09 00 10 47 00 03 7E B7 65 26 5D 9E 65 72 [10:29:10]GetLastDocTimeStamp 1706524117 [10:29:10]current date 1706524163 [10:29:10]FM_GetShiftState [10:29:10]SAM_PROTO_GetShiftState [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 13 01 00 [10:29:10]Write to MH i2c: E2 08 00 11 47 80 13 01 00 00 00 00 00 D5 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 0E 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 0E 00 11 47 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 47 [10:29:10]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:29:10]wFMCommunicate OK [10:29:10]SAM_PROTO_GetShiftState done [10:29:10]FM_GetShiftState done [10:29:10]opened in 1706486624 [10:29:10]opened+sec_in_day 1706573024 [10:29:10]quantity*price = 50049 [10:29:10]sum+1 = 50050 [10:29:10]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 СÐО: Общий режим Чек 35 29.01.2024 10:29 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49052 ФПД: 221613272665838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T102923&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49052&fm=221613272665838&tin=02508201610067®Number=0000000000092723&sum=50000 [10:29:11]StoreToDocumentArchive [10:29:11]shift 245 fd 49052 [10:29:11]save to /storage/0245/doc_00049052 [10:29:11]save last doc name /storage/0245/doc_00049052 to /storage/kkm_last_doc_name [10:29:11]save OK [10:29:11]Clear old archive folders... [10:29:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:11]tlvbuf is 011D88C0 [10:29:11]SAM_PROTO_ClearQueue [10:29:11]wFMCommunicate request_size=4 [10:29:11]MH_SAM_APDU [10:29:11]CAPDU: 80 09 00 00 [10:29:11]Write to MH i2c: E2 08 00 1E 47 80 09 00 00 00 00 00 00 D7 [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:11]Read from MH i2c: E2 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: E2 03 00 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: E2 03 00 1E 47 00 90 00 D9 [10:29:11]RAPDU: 90 00 [10:29:11]wFMCommunicate OK [10:29:11]SAM_PROTO_ClearQueue done [10:29:11]KKMCreateOFDPacket [10:29:11]OFDProtocolAddRootSTLVToBuf [10:29:11]FM_MakeSignedData [10:29:11]FM_MakeSignedData [10:29:11]SAM_PROTO_SignData [10:29:11]wFMCommunicate request_size=4 [10:29:11]MH_SAM_APDU [10:29:11]CAPDU: 80 0D 01 02 [10:29:11]Write to MH i2c: E2 08 00 1F 47 80 0D 01 02 00 00 00 00 DF [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:11]Read from MH i2c: E2 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: E2 03 00 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: E2 03 00 1F 47 00 90 00 DA [10:29:11]RAPDU: 90 00 [10:29:11]wFMCommunicate OK [10:29:11]wFMCommunicate request_size=255 [10:29:11]MH_SAM_APDU [10:29: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 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 23 00 00 00 F4 03 04 00 03 7E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C9 [10:29:11]Write to MH i2c: E2 02 01 20 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 23 00 00 00 F4 03 04 00 03 7E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C9 00 00 E8 [10:29:11]OFD Sender: No OFD packet to send [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:12]Read from MH i2c: E2 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 03 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 03 00 20 47 00 90 00 DB [10:29:12]RAPDU: 90 00 [10:29:12]wFMCommunicate OK [10:29:12]wFMCommunicate request_size=10 [10:29:12]MH_SAM_APDU [10:29:12]CAPDU: 80 0D 02 02 05 8E 5C 65 0E EE [10:29:12]Write to MH i2c: E2 0D 00 21 47 80 0D 02 02 05 00 8E 5C 65 0E EE 00 00 37 [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:12]Read from MH i2c: E2 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 03 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 03 00 21 47 00 90 00 DC [10:29:12]RAPDU: 90 00 [10:29:12]wFMCommunicate OK [10:29:12]wFMCommunicate request_size=4 [10:29:12]MH_SAM_APDU [10:29:12]CAPDU: 80 0D 03 02 [10:29:12]Write to MH i2c: E2 08 00 22 47 80 0D 03 02 00 00 00 00 E4 [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:12]Read from MH i2c: E2 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 0B 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 0B 00 22 47 00 E5 2C CC B6 6E 54 59 69 90 00 FC [10:29:12]RAPDU: E5 2C CC B6 6E 54 59 69 90 00 [10:29:12]wFMCommunicate OK [10:29:12]SAM_PROTO_SignData done [10:29:12]FM_MakeSignedData done [10:29:12]CreateOFDProtocolMessage [10:29:12]wFMCommunicate request_size=4 [10:29:12]MH_SAM_APDU [10:29:12]CAPDU: 80 11 00 00 [10:29:12]Write to MH i2c: E2 08 00 23 47 80 11 00 00 00 00 00 00 E4 [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:12]Read from MH i2c: E2 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 17 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 17 00 23 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 31 [10:29: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:29:12]wFMCommunicate OK [10:29:12]CreateOFDProtocolMessage done [10:29:12]OFDSenderStorePacket 49052 [10:29:12]StoreOFDPacket docnum=49052 [10:29: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 FA 66 07 01 00 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 23 00 00 00 F4 03 04 00 03 7E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C9 8E 5C 65 0E EE E5 2C CC B6 6E 54 59 69 [10:29:12]CheckFolder [10:29:12]dirname=/storage/ofd_packets [10:29:12]CheckFolder done [10:29:12]ProducePacketName [10:29:12]name=ofd_packets/00049052 [10:29:12]NVStorageSaveData ofd_packets/00049052 [10:29:12]File name is /storage/ofd_packets/00049052 [10:29:12]Write 301 bytes [10:29:12]NVStorageSaveData done [10:29:12]OFDSenderStorePacket done [10:29:12]KKMCreateOFDPacket done [10:29:12]NVStorageSaveData kkm_last_timestamp [10:29:12]File name is /storage/kkm_last_timestamp [10:29:12]Write 4 bytes [10:29:12]NVStorageSaveData done [10:29:12]ExternCall_PrintAddStr [10:29:12]wPrintStart [10:29:12]Write to MH i2c: 01 00 00 24 47 6B [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: 01 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: 01 07 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: 01 07 00 24 47 00 00 00 00 00 FF 0F 80 [10:29:12]RasterBufferAndPrint [10:29:12]line Счет N : (1)216151 [10:29:12]line ИÐÐ: 02508201610067 [10:29:12]line Контрольно-КаÑÑовый Чек [10:29:12]line ПРОДÐЖР[10:29:12]line ТРК (МРК, ГÐК) : 22 [10:29:12]line Товар: 2710124130 [10:29:12]line Ðи-92-К-5 [10:29:12]line 8.300 * 60.30 [10:29:12]line = 500.49 [10:29:12]line ÐДС 12% ÐСП 1% [10:29:12]line > о реализуемом товаре [10:29:12]line ОКРУГЛЕÐИЕ: -0.49 [10:29:12]line ИТОГО: 500.00 [10:29:12]line ВнеÑено: 500.00 [10:29:12]line СДÐЧÐ: 0.00 [10:29:12]line ÐСП 1% : 4.43 [10:29:12]line ÐДС 12% : 53.15 [10:29:12]line Ðаличными: 500.00 [10:29:12]line Безнал.: 0.00 [10:29:12]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:29:12]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:29:12]line СÐО: Общий режим [10:29:12]line Чек 35 29.01.2024 10:29 [10:29:12]line Смена: 245 ФФД: 1.0 [10:29:12]line ЗÐМ: 0300000040 [10:29:12]line РÐМ: 0000000000092723 [10:29:12]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:29:12]line ФМ: 0000000000875060 [10:29:12]line ФД: 49052 [10:29:12]line ФПД: 221613272665838 [10:29:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T102923&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49052&fm=221613272665838&tin=02508201610067®Number=0000000000092723&sum=50000 [10:29:12]written 0, free lines is 4095 [10:29:12]OFD Sender: Processing packet 49052 [packets to send 12, broken 11] [10:29:12]ProducePacketName [10:29:12]name=ofd_packets/00049052 [10:29:12]OFD Sender: To server: ‡•öpG, [10:29:12]CommunicateWithHost lk.salyk.kg:30040 [10:29:12]ConnectInit lk.salyk.kg [10:29:12]Connected sock=10 [10:29: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 FA 66 07 01 00 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 23 00 00 00 F4 03 04 00 03 7E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C9 8E 5C 65 0E EE E5 2C CC B6 6E 54 59 69 [10:29: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 94 CB 47 00 6F 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9C BF 00 00 F4 03 04 00 FC 29 B7 65 B6 04 01 00 00 79 E8 9A 08 35 BA 28 85 [10:29:12]CommunicateWithHost err = 0 [10:29:12]CheckOFDResponse [10:29:12]1017 (14) - 77093643461234 [10:29:12]1041 (16) - 0000000000875060 [10:29:12]1040 (4) - 49052 [10:29:12]1012 (4) - 29.01.2024 04:30 [10:29:12]1206 (1) - 0 [10:29:12]OFD Sender: Remove packet 49052 [10:29:12]ProducePacketName [10:29:12]name=ofd_packets/00049052 [10:29:12]NVStorageDeleteData [10:29:12]Write to MH i2c: 01 00 00 4F 47 96 [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: 01 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: 01 07 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: 01 07 00 4F 47 00 00 00 00 00 EF 0C 98 [10:29:12]RasterBufferAndPrint [10:29:12]line [10:29:12]line [10:29:12]line [10:29:12]line [10:29:12]line [10:29:12]written 0, free lines is 3317 [10:29:12]MH_Cut [10:29:12]Write to MH i2c: D1 01 00 56 47 01 6F [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: D1 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: D1 01 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: D1 01 00 56 47 00 6E [10:29:12]Write to MH i2c: 01 00 00 57 47 9E [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:13]OFD Sender: No OFD packet to send [10:29:13]*** Cut start [10:29:13]*** Partial cut [10:29:13]*** CUTSNS_PIN = 1 [10:29:13]*** CUTSNS_PIN = 0 [10:29:13]*** Brake cut motor [10:29:13]Read from MH i2c: 01 [10:29:13]MH_I2C_Read... [10:29:13]*** Stop cut motor [10:29:14]*** Cut end [10:29:14]Read from MH i2c: 01 07 00 [10:29:14]MH_I2C_Read... [10:29:14]Read from MH i2c: 01 07 00 57 47 00 00 00 00 00 FF 0F B3 [10:29:14]process_action close_receipt done [10:29:14]requested_data is exist [10:29:14]produce_requested_data [10:29:14]requested_item fm.sn is exist - process it [10:29:14]wFMCommunicate request_size=4 [10:29:14]MH_SAM_APDU [10:29:14]CAPDU: 80 11 00 00 [10:29:14]Write to MH i2c: E2 08 00 58 47 80 11 00 00 00 00 00 00 19 [10:29:14]Write i2c OK [10:29:14]MH_I2C_Read... [10:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:14]Read from MH i2c: E2 [10:29:14]MH_I2C_Read... [10:29:14]Read from MH i2c: E2 17 00 [10:29:14]MH_I2C_Read... [10:29:14]Read from MH i2c: E2 17 00 58 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 66 [10:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:29:14]wFMCommunicate OK [10:29:14]requested_item fd.num is exist - process it [10:29:14]SAM_PROTO_GetFieldsCounters [10:29:14]wFMCommunicate request_size=4 [10:29:14]MH_SAM_APDU [10:29:14]CAPDU: 80 13 00 00 [10:29:14]Write to MH i2c: E2 08 00 59 47 80 13 00 00 00 00 00 00 1C [10:29:14]Write i2c OK [10:29:14]MH_I2C_Read... [10:29:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:14]Read from MH i2c: E2 [10:29:14]MH_I2C_Read... [10:29:14]Read from MH i2c: E2 62 00 [10:29:14]MH_I2C_Read... [10:29:14]Read from MH i2c: E2 62 00 59 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 EE [10:29: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 9C BF 00 00 0E 04 04 00 F5 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:29:14]wFMCommunicate OK [10:29:14]SAM_PROTO_GetFieldsCounters done [10:29:14]requested_item shift.num is exist - process it [10:29:14]requested_item shift.opened is exist - process it [10:29:14]req_shift_opened [10:29:14]FM_GetShiftState [10:29:14]SAM_PROTO_GetShiftState [10:29:14]wFMCommunicate request_size=4 [10:29:14]MH_SAM_APDU [10:29:14]CAPDU: 80 13 01 00 [10:29:14]Write to MH i2c: E2 08 00 5A 47 80 13 01 00 00 00 00 00 1E [10:29:14]Write i2c OK [10:29:14]MH_I2C_Read... [10:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:14]Read from MH i2c: E2 [10:29:14]MH_I2C_Read... [10:29:14]Read from MH i2c: E2 0E 00 [10:29:14]MH_I2C_Read... [10:29:14]Read from MH i2c: E2 0E 00 5A 47 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 90 [10:29:14]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:29:14]wFMCommunicate OK [10:29:14]SAM_PROTO_GetShiftState done [10:29:14]FM_GetShiftState done [10:29:14]req_shift_opened done [10:29:14]requested_item shift.open_date is exist - process it [10:29:14]req_shift_open_date [10:29:14]req_shift_open_date done [10:29:14]produce_requested_data done [10:29:14]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49052,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:29:14]process_action_free close_receipt [10:29:14]json_value_free [10:29:14]json_value_free done [10:29:14]process_json_proto returns [10:29:14]Send response to host [10:29:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49052,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:29:14]free response buf [10:29:14]execute_script done [10:29:14]execute_script returns [10:29:14]free content buf [10:29:14]Sock 7.Close socket [10:29:14]Sock 7.Thread stoped [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:23]accept exits with 9 [10:30:23]New connection [10:30:23]New thread 3066670436 created [10:30:23]Thread 3066813796 joined [10:30:23]Waiting for new connection... [10:30:23] Sock 9.Parse request [10:30:23]Sock 9.Check first char [10:30:23]Sock 9.First char is OK [10:30:23]request: POST /json_proto HTTP/1.0 [10:30:23]Method: POST [10:30:23]URL: /json_proto [10:30:23]Method is POST - this is cgi request [10:30:23]url: /json_proto [10:30:23]query_string will be loaded in cgi processing [10:30:23]execute_cgi json_proto POST (null) [10:30:23]execute_cgi path=json_proto method=POST [10:30:23]POST find Content-Length [10:30:23]Host: 172.17.56.67:8080 [10:30:23]Content-Length: 677 [10:30:23]Content-Type: application/json [10:30:23] [10:30:23]POST finish read [10:30:23]Found Content-Length = 677 [10:30:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216152", "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:30:23]execute_script... [10:30:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216152", "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:30:23]POST & json_proto [10:30:23]process_json_proto [10:30:23]json parsed OK: [10:30:23]protocol is kg_v1.0 [10:30:23]action value=close_receipt [10:30:23]process_action close_receipt [10:30:23]cmd_close_receipt [10:30:23]MH_GetDate [10:30:23]Write to MH i2c: F0 00 00 5B 47 91 [10:30:23]Write i2c OK [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: F0 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: F0 09 00 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: F0 09 00 5B 47 00 4D 7E B7 65 26 5D 9E 65 07 [10:30:23]GetLastDocTimeStamp 1706524163 [10:30:23]current date 1706524237 [10:30:23]FM_GetShiftState [10:30:23]SAM_PROTO_GetShiftState [10:30:23]wFMCommunicate request_size=4 [10:30:23]MH_SAM_APDU [10:30:23]CAPDU: 80 13 01 00 [10:30:23]Write to MH i2c: E2 08 00 5C 47 80 13 01 00 00 00 00 00 20 [10:30:23]Write i2c OK [10:30:23]MH_I2C_Read... [10:30:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:23]Read from MH i2c: E2 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: E2 0E 00 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: E2 0E 00 5C 47 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 92 [10:30:23]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:30:23]wFMCommunicate OK [10:30:23]SAM_PROTO_GetShiftState done [10:30:23]FM_GetShiftState done [10:30:23]opened in 1706486624 [10:30:23]opened+sec_in_day 1706573024 [10:30:23]quantity*price = 50049 [10:30:23]sum+1 = 50050 [10:30:23]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 СÐО: Общий режим Чек 36 29.01.2024 10:30 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49053 ФПД: 204394416577003 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T103037&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49053&fm=204394416577003&tin=02508201610067®Number=0000000000092723&sum=50000 [10:30:25]StoreToDocumentArchive [10:30:25]shift 245 fd 49053 [10:30:25]save to /storage/0245/doc_00049053 [10:30:25]save last doc name /storage/0245/doc_00049053 to /storage/kkm_last_doc_name [10:30:25]save OK [10:30:25]Clear old archive folders... [10:30:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:25]tlvbuf is 011CFBE0 [10:30:25]SAM_PROTO_ClearQueue [10:30:25]wFMCommunicate request_size=4 [10:30:25]MH_SAM_APDU [10:30:25]CAPDU: 80 09 00 00 [10:30:25]Write to MH i2c: E2 08 00 69 47 80 09 00 00 00 00 00 00 22 [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:25]Read from MH i2c: E2 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 69 47 00 90 00 24 [10:30:25]RAPDU: 90 00 [10:30:25]wFMCommunicate OK [10:30:25]SAM_PROTO_ClearQueue done [10:30:25]KKMCreateOFDPacket [10:30:25]OFDProtocolAddRootSTLVToBuf [10:30:25]FM_MakeSignedData [10:30:25]FM_MakeSignedData [10:30:25]SAM_PROTO_SignData [10:30:25]wFMCommunicate request_size=4 [10:30:25]MH_SAM_APDU [10:30:25]CAPDU: 80 0D 01 02 [10:30:25]Write to MH i2c: E2 08 00 6A 47 80 0D 01 02 00 00 00 00 2A [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:25]Read from MH i2c: E2 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 6A 47 00 90 00 25 [10:30:25]RAPDU: 90 00 [10:30:25]wFMCommunicate OK [10:30:25]wFMCommunicate request_size=255 [10:30:25]MH_SAM_APDU [10:30:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 24 00 00 00 F4 03 04 00 4D 7E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 B9 [10:30:25]Write to MH i2c: E2 02 01 6B 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 24 00 00 00 F4 03 04 00 4D 7E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 B9 00 00 6F [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:25]Read from MH i2c: E2 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 6B 47 00 90 00 26 [10:30:25]RAPDU: 90 00 [10:30:25]wFMCommunicate OK [10:30:25]wFMCommunicate request_size=10 [10:30:25]MH_SAM_APDU [10:30:25]CAPDU: 80 0D 02 02 05 E5 48 98 19 EB [10:30:25]Write to MH i2c: E2 0D 00 6C 47 80 0D 02 02 05 00 E5 48 98 19 EB 00 00 00 [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:25]Read from MH i2c: E2 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 03 00 6C 47 00 90 00 27 [10:30:25]RAPDU: 90 00 [10:30:25]wFMCommunicate OK [10:30:25]wFMCommunicate request_size=4 [10:30:25]MH_SAM_APDU [10:30:25]CAPDU: 80 0D 03 02 [10:30:25]Write to MH i2c: E2 08 00 6D 47 80 0D 03 02 00 00 00 00 2F [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:25]Read from MH i2c: E2 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 0B 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 0B 00 6D 47 00 28 59 62 9C 3A C5 DA 3B 90 00 C3 [10:30:25]RAPDU: 28 59 62 9C 3A C5 DA 3B 90 00 [10:30:25]wFMCommunicate OK [10:30:25]SAM_PROTO_SignData done [10:30:25]FM_MakeSignedData done [10:30:25]CreateOFDProtocolMessage [10:30:25]wFMCommunicate request_size=4 [10:30:25]MH_SAM_APDU [10:30:25]CAPDU: 80 11 00 00 [10:30:25]Write to MH i2c: E2 08 00 6E 47 80 11 00 00 00 00 00 00 2F [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:25]Read from MH i2c: E2 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 17 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 17 00 6E 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7C [10:30: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:30:25]wFMCommunicate OK [10:30:25]CreateOFDProtocolMessage done [10:30:25]OFDSenderStorePacket 49053 [10:30:25]StoreOFDPacket docnum=49053 [10:30:25]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 F9 BB 07 01 44 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 24 00 00 00 F4 03 04 00 4D 7E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 B9 E5 48 98 19 EB 28 59 62 9C 3A C5 DA 3B [10:30:25]CheckFolder [10:30:25]dirname=/storage/ofd_packets [10:30:25]CheckFolder done [10:30:25]ProducePacketName [10:30:25]name=ofd_packets/00049053 [10:30:25]NVStorageSaveData ofd_packets/00049053 [10:30:25]File name is /storage/ofd_packets/00049053 [10:30:25]Write 301 bytes [10:30:25]NVStorageSaveData done [10:30:25]OFDSenderStorePacket done [10:30:25]KKMCreateOFDPacket done [10:30:25]NVStorageSaveData kkm_last_timestamp [10:30:25]File name is /storage/kkm_last_timestamp [10:30:25]Write 4 bytes [10:30:25]NVStorageSaveData done [10:30:25]ExternCall_PrintAddStr [10:30:25]wPrintStart [10:30:25]Write to MH i2c: 01 00 00 6F 47 B6 [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: 01 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: 01 07 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: 01 07 00 6F 47 00 00 00 00 00 FF 0F CB [10:30:25]RasterBufferAndPrint [10:30:25]line Счет N : (1)216152 [10:30:25]line ИÐÐ: 02508201610067 [10:30:25]line Контрольно-КаÑÑовый Чек [10:30:25]line ПРОДÐЖР[10:30:25]line ТРК (МРК, ГÐК) : 12 [10:30:25]line Товар: 2710124130 [10:30:25]line Ðи-92-К-5 [10:30:25]line 8.300 * 60.30 [10:30:25]line = 500.49 [10:30:25]line ÐДС 12% ÐСП 1% [10:30:25]line > о реализуемом товаре [10:30:25]line ОКРУГЛЕÐИЕ: -0.49 [10:30:25]line ИТОГО: 500.00 [10:30:25]line ВнеÑено: 500.00 [10:30:25]line СДÐЧÐ: 0.00 [10:30:25]line ÐСП 1% : 4.43 [10:30:25]line ÐДС 12% : 53.15 [10:30:25]line Ðаличными: 500.00 [10:30:25]line Безнал.: 0.00 [10:30:25]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:30:25]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:30:25]line СÐО: Общий режим [10:30:25]line Чек 36 29.01.2024 10:30 [10:30:25]line Смена: 245 ФФД: 1.0 [10:30:25]line ЗÐМ: 0300000040 [10:30:25]line РÐМ: 0000000000092723 [10:30:25]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:30:25]line ФМ: 0000000000875060 [10:30:25]line ФД: 49053 [10:30:25]line ФПД: 204394416577003 [10:30:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T103037&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49053&fm=204394416577003&tin=02508201610067®Number=0000000000092723&sum=50000 [10:30:25]OFD Sender: Processing packet 49053 [packets to send 12, broken 11] [10:30:25]ProducePacketName [10:30:25]name=ofd_packets/00049053 [10:30:25]OFD Sender: To server: ‡•öpG, [10:30:25]CommunicateWithHost lk.salyk.kg:30040 [10:30:25]ConnectInit lk.salyk.kg [10:30:25]written 0, free lines is 4095 [10:30:26]Connected sock=10 [10:30: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 0F 01 00 00 F9 BB 07 01 44 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 24 00 00 00 F4 03 04 00 4D 7E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 B9 E5 48 98 19 EB 28 59 62 9C 3A C5 DA 3B [10:30:26]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 D0 E9 47 00 7E 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 9D BF 00 00 F4 03 04 00 45 2A B7 65 B6 04 01 00 00 F2 34 A0 4A E2 FE D1 6E [10:30:26]CommunicateWithHost err = 0 [10:30:26]CheckOFDResponse [10:30:26]1017 (14) - 77093643461234 [10:30:26]1041 (16) - 0000000000875060 [10:30:26]1040 (4) - 49053 [10:30:26]1012 (4) - 29.01.2024 04:32 [10:30:26]1206 (1) - 0 [10:30:26]OFD Sender: Remove packet 49053 [10:30:26]ProducePacketName [10:30:26]name=ofd_packets/00049053 [10:30:26]NVStorageDeleteData [10:30:26]Write to MH i2c: 01 00 00 9A 47 E1 [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: 01 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: 01 07 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: 01 07 00 9A 47 00 00 00 00 00 E6 0C DA [10:30:26]RasterBufferAndPrint [10:30:26]line [10:30:26]line [10:30:26]line [10:30:26]line [10:30:26]line [10:30:26]written 0, free lines is 3309 [10:30:26]MH_Cut [10:30:26]Write to MH i2c: D1 01 00 A1 47 01 BA [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: D1 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: D1 01 00 [10:30:26]MH_I2C_Read... [10:30:26]Read from MH i2c: D1 01 00 A1 47 00 B9 [10:30:26]Write to MH i2c: 01 00 00 A2 47 E9 [10:30:26]Write i2c OK [10:30:26]MH_I2C_Read... [10:30:26]OFD Sender: No OFD packet to send [10:30:27]*** Cut start [10:30:27]*** Partial cut [10:30:27]*** CUTSNS_PIN = 1 [10:30:27]*** CUTSNS_PIN = 0 [10:30:27]*** Brake cut motor [10:30:27]Read from MH i2c: 01 [10:30:27]MH_I2C_Read... [10:30:27]*** Stop cut motor [10:30:27]*** Cut end [10:30:27]Read from MH i2c: 01 07 00 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: 01 07 00 A2 47 00 00 00 00 00 FF 0F FE [10:30:27]process_action close_receipt done [10:30:27]requested_data is exist [10:30:27]produce_requested_data [10:30:27]requested_item fm.sn is exist - process it [10:30:27]wFMCommunicate request_size=4 [10:30:27]MH_SAM_APDU [10:30:27]CAPDU: 80 11 00 00 [10:30:27]Write to MH i2c: E2 08 00 A3 47 80 11 00 00 00 00 00 00 64 [10:30:27]Write i2c OK [10:30:27]MH_I2C_Read... [10:30:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:27]Read from MH i2c: E2 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 17 00 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 17 00 A3 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B1 [10:30:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:30:27]wFMCommunicate OK [10:30:27]requested_item fd.num is exist - process it [10:30:27]SAM_PROTO_GetFieldsCounters [10:30:27]wFMCommunicate request_size=4 [10:30:27]MH_SAM_APDU [10:30:27]CAPDU: 80 13 00 00 [10:30:27]Write to MH i2c: E2 08 00 A4 47 80 13 00 00 00 00 00 00 67 [10:30:27]Write i2c OK [10:30:27]MH_I2C_Read... [10:30:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:27]Read from MH i2c: E2 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 62 00 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 62 00 A4 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 3D [10:30:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:30:27]wFMCommunicate OK [10:30:27]SAM_PROTO_GetFieldsCounters done [10:30:27]requested_item shift.num is exist - process it [10:30:27]requested_item shift.opened is exist - process it [10:30:27]req_shift_opened [10:30:27]FM_GetShiftState [10:30:27]SAM_PROTO_GetShiftState [10:30:27]wFMCommunicate request_size=4 [10:30:27]MH_SAM_APDU [10:30:27]CAPDU: 80 13 01 00 [10:30:27]Write to MH i2c: E2 08 00 A5 47 80 13 01 00 00 00 00 00 69 [10:30:27]Write i2c OK [10:30:27]MH_I2C_Read... [10:30:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:27]Read from MH i2c: E2 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 0E 00 [10:30:27]MH_I2C_Read... [10:30:27]Read from MH i2c: E2 0E 00 A5 47 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 DB [10:30:27]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:30:27]wFMCommunicate OK [10:30:27]SAM_PROTO_GetShiftState done [10:30:27]FM_GetShiftState done [10:30:27]req_shift_opened done [10:30:27]requested_item shift.open_date is exist - process it [10:30:27]req_shift_open_date [10:30:27]req_shift_open_date done [10:30:27]produce_requested_data done [10:30:27]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49053,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:30:27]process_action_free close_receipt [10:30:27]json_value_free [10:30:27]json_value_free done [10:30:27]process_json_proto returns [10:30:27]Send response to host [10:30:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49053,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:30:27]free response buf [10:30:27]execute_script done [10:30:27]execute_script returns [10:30:27]free content buf [10:30:27]Sock 9.Close socket [10:30:27]Sock 9.Thread stoped [10:30:31]OFD Sender: No OFD packet to send [10:30:36]OFD Sender: No OFD packet to send [10:30:41]OFD Sender: No OFD packet to send [10:30:46]OFD Sender: No OFD packet to send [10:30:51]OFD Sender: No OFD packet to send [10:30:56]OFD Sender: No OFD packet to send [10:31:01]OFD Sender: No OFD packet to send [10:31:06]OFD Sender: No OFD packet to send [10:31:11]OFD Sender: No OFD packet to send [10:31:16]OFD Sender: No OFD packet to send [10:31:21]OFD Sender: No OFD packet to send [10:31:26]OFD Sender: No OFD packet to send [10:31:31]OFD Sender: No OFD packet to send [10:31:36]OFD Sender: No OFD packet to send [10:31:41]OFD Sender: No OFD packet to send [10:31:46]OFD Sender: No OFD packet to send [10:31:51]OFD Sender: No OFD packet to send [10:31:56]OFD Sender: No OFD packet to send [10:31:58]accept exits with 7 [10:31:58]New connection [10:31:58]New thread 3066813796 created [10:31:58]Thread 3066670436 joined [10:31:58]Waiting for new connection... [10:31:58] Sock 7.Parse request [10:31:58]Sock 7.Check first char [10:31:58]Sock 7.First char is OK [10:31:58]request: POST /json_proto HTTP/1.0 [10:31:58]Method: POST [10:31:58]URL: /json_proto [10:31:58]Method is POST - this is cgi request [10:31:58]url: /json_proto [10:31:58]query_string will be loaded in cgi processing [10:31:58]execute_cgi json_proto POST (null) [10:31:58]execute_cgi path=json_proto method=POST [10:31:58]POST find Content-Length [10:31:58]Host: 172.17.56.67:8080 [10:31:58]Content-Length: 677 [10:31:58]Content-Type: application/json [10:31:58] [10:31:58]POST finish read [10:31:58]Found Content-Length = 677 [10:31:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216153", "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.490, "sum" : 150.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:58]execute_script... [10:31: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)216153", "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.490, "sum" : 150.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:58]POST & json_proto [10:31:58]process_json_proto [10:31:58]json parsed OK: [10:31:58]protocol is kg_v1.0 [10:31:58]action value=close_receipt [10:31:58]process_action close_receipt [10:31:58]cmd_close_receipt [10:31:58]MH_GetDate [10:31:58]Write to MH i2c: F0 00 00 A6 47 DC [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: F0 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: F0 09 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: F0 09 00 A6 47 00 AB 7E B7 65 26 5D 9E 65 B0 [10:31:58]GetLastDocTimeStamp 1706524237 [10:31:58]current date 1706524331 [10:31:58]FM_GetShiftState [10:31:58]SAM_PROTO_GetShiftState [10:31:58]wFMCommunicate request_size=4 [10:31:58]MH_SAM_APDU [10:31:58]CAPDU: 80 13 01 00 [10:31:58]Write to MH i2c: E2 08 00 A7 47 80 13 01 00 00 00 00 00 6B [10:31:58]Write i2c OK [10:31:58]MH_I2C_Read... [10:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:58]Read from MH i2c: E2 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 0E 00 [10:31:58]MH_I2C_Read... [10:31:58]Read from MH i2c: E2 0E 00 A7 47 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 DD [10:31:58]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:31:58]wFMCommunicate OK [10:31:58]SAM_PROTO_GetShiftState done [10:31:58]FM_GetShiftState done [10:31:58]opened in 1706486624 [10:31:58]opened+sec_in_day 1706573024 [10:31:58]quantity*price = 15014 [10:31:58]sum+1 = 15016 [10:31:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.15 ИТОГО: 150.00 ВнеÑено: 150.00 СДÐЧÐ: 0.00 ÐСП 1% : 1.33 ÐДС 12% : 15.94 Ðаличными: 150.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 37 29.01.2024 10:32 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49054 ФПД: 173402815537939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T103211&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49054&fm=173402815537939&tin=02508201610067®Number=0000000000092723&sum=15000 [10:31:59]StoreToDocumentArchive [10:31:59]shift 245 fd 49054 [10:31:59]save to /storage/0245/doc_00049054 [10:31:59]save last doc name /storage/0245/doc_00049054 to /storage/kkm_last_doc_name [10:31:59]save OK [10:31:59]Clear old archive folders... [10:31:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:31:59]tlvbuf is 011E5FB0 [10:31:59]SAM_PROTO_ClearQueue [10:31:59]wFMCommunicate request_size=4 [10:31:59]MH_SAM_APDU [10:31:59]CAPDU: 80 09 00 00 [10:31:59]Write to MH i2c: E2 08 00 B4 47 80 09 00 00 00 00 00 00 6D [10:31:59]Write i2c OK [10:31:59]MH_I2C_Read... [10:31:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:59]Read from MH i2c: E2 [10:31:59]MH_I2C_Read... [10:31:59]Read from MH i2c: E2 03 00 [10:31:59]MH_I2C_Read... [10:31:59]Read from MH i2c: E2 03 00 B4 47 00 90 00 6F [10:31:59]RAPDU: 90 00 [10:31:59]wFMCommunicate OK [10:31:59]SAM_PROTO_ClearQueue done [10:31:59]KKMCreateOFDPacket [10:31:59]OFDProtocolAddRootSTLVToBuf [10:31:59]FM_MakeSignedData [10:31:59]FM_MakeSignedData [10:31:59]SAM_PROTO_SignData [10:31:59]wFMCommunicate request_size=4 [10:31:59]MH_SAM_APDU [10:31:59]CAPDU: 80 0D 01 02 [10:31:59]Write to MH i2c: E2 08 00 B5 47 80 0D 01 02 00 00 00 00 75 [10:31:59]Write i2c OK [10:31:59]MH_I2C_Read... [10:31:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:59]Read from MH i2c: E2 [10:31:59]MH_I2C_Read... [10:31:59]Read from MH i2c: E2 03 00 [10:31:59]MH_I2C_Read... [10:31:59]Read from MH i2c: E2 03 00 B5 47 00 90 00 70 [10:31:59]RAPDU: 90 00 [10:31:59]wFMCommunicate OK [10:31:59]wFMCommunicate request_size=255 [10:31:59]MH_SAM_APDU [10:31: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 BA 09 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 AB 7E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 9D [10:31:59]Write to MH i2c: E2 02 01 B6 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 AB 7E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 9D 00 00 82 [10:31:59]Write i2c OK [10:31:59]MH_I2C_Read... [10:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:59]Read from MH i2c: E2 [10:31:59]MH_I2C_Read... [10:31:59]Read from MH i2c: E2 03 00 [10:31:59]MH_I2C_Read... [10:31:59]Read from MH i2c: E2 03 00 B6 47 00 90 00 71 [10:31:59]RAPDU: 90 00 [10:31:59]wFMCommunicate OK [10:31:59]wFMCommunicate request_size=10 [10:31:59]MH_SAM_APDU [10:31:59]CAPDU: 80 0D 02 02 05 B5 7D 39 23 13 [10:31:59]Write to MH i2c: E2 0D 00 B7 47 80 0D 02 02 05 00 B5 7D 39 23 13 00 00 23 [10:31:59]Write i2c OK [10:31:59]MH_I2C_Read... [10:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 03 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 03 00 B7 47 00 90 00 72 [10:32:00]RAPDU: 90 00 [10:32:00]wFMCommunicate OK [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 0D 03 02 [10:32:00]Write to MH i2c: E2 08 00 B8 47 80 0D 03 02 00 00 00 00 7A [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 0B 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 0B 00 B8 47 00 90 3C AB D7 2D B7 5F BF 90 00 CB [10:32:00]RAPDU: 90 3C AB D7 2D B7 5F BF 90 00 [10:32:00]wFMCommunicate OK [10:32:00]SAM_PROTO_SignData done [10:32:00]FM_MakeSignedData done [10:32:00]CreateOFDProtocolMessage [10:32:00]wFMCommunicate request_size=4 [10:32:00]MH_SAM_APDU [10:32:00]CAPDU: 80 11 00 00 [10:32:00]Write to MH i2c: E2 08 00 B9 47 80 11 00 00 00 00 00 00 7A [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:00]Read from MH i2c: E2 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 17 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: E2 17 00 B9 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C7 [10: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 [10:32:00]wFMCommunicate OK [10:32:00]CreateOFDProtocolMessage done [10:32:00]OFDSenderStorePacket 49054 [10:32:00]StoreOFDPacket docnum=49054 [10:32: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 27 1E 07 01 C3 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 BA 09 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 AB 7E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 9D B5 7D 39 23 13 90 3C AB D7 2D B7 5F BF [10:32:00]CheckFolder [10:32:00]dirname=/storage/ofd_packets [10:32:00]CheckFolder done [10:32:00]ProducePacketName [10:32:00]name=ofd_packets/00049054 [10:32:00]NVStorageSaveData ofd_packets/00049054 [10:32:00]File name is /storage/ofd_packets/00049054 [10:32:00]Write 301 bytes [10:32:00]NVStorageSaveData done [10:32:00]OFDSenderStorePacket done [10:32:00]KKMCreateOFDPacket done [10:32:00]NVStorageSaveData kkm_last_timestamp [10:32:00]File name is /storage/kkm_last_timestamp [10:32:00]Write 4 bytes [10:32:00]NVStorageSaveData done [10:32:00]ExternCall_PrintAddStr [10:32:00]wPrintStart [10:32:00]Write to MH i2c: 01 00 00 BA 47 01 [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: 01 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: 01 07 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: 01 07 00 BA 47 00 00 00 00 00 FF 0F 16 [10:32:00]RasterBufferAndPrint [10:32:00]line Счет N : (1)216153 [10:32:00]line ИÐÐ: 02508201610067 [10:32:00]line Контрольно-КаÑÑовый Чек [10:32:00]line ПРОДÐЖР[10:32:00]line ТРК (МРК, ГÐК) : 12 [10:32:00]line Товар: 2710124130 [10:32:00]line Ðи-92-К-5 [10:32:00]line 2.490 * 60.30 [10:32:00]line = 150.15 [10:32:00]line ÐДС 12% ÐСП 1% [10:32:00]line > о реализуемом товаре [10:32:00]line ОКРУГЛЕÐИЕ: -0.15 [10:32:00]line ИТОГО: 150.00 [10:32:00]line ВнеÑено: 150.00 [10:32:00]line СДÐЧÐ: 0.00 [10:32:00]line ÐСП 1% : 1.33 [10:32:00]line ÐДС 12% : 15.94 [10:32:00]line Ðаличными: 150.00 [10:32:00]line Безнал.: 0.00 [10:32:00]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:32:00]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:32:00]line СÐО: Общий режим [10:32:00]line Чек 37 29.01.2024 10:32 [10:32:00]line Смена: 245 ФФД: 1.0 [10:32:00]line ЗÐМ: 0300000040 [10:32:00]line РÐМ: 0000000000092723 [10:32:00]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:32:00]line ФМ: 0000000000875060 [10:32:00]line ФД: 49054 [10:32:00]line ФПД: 173402815537939 [10:32:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T103211&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49054&fm=173402815537939&tin=02508201610067®Number=0000000000092723&sum=15000 [10:32:00]OFD Sender: Processing packet 49054 [packets to send 12, broken 11] [10:32:00]ProducePacketName [10:32:00]name=ofd_packets/00049054 [10:32:00]OFD Sender: To server: ‡•öpG, [10:32:00]CommunicateWithHost lk.salyk.kg:30040 [10:32:00]ConnectInit lk.salyk.kg [10:32:00]written 0, free lines is 4095 [10:32:00]Connected sock=10 [10:32: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 27 1E 07 01 C3 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 BA 09 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 AB 7E B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 9D B5 7D 39 23 13 90 3C AB D7 2D B7 5F BF [10:32: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 BD AC 47 00 BD BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 9E BF 00 00 F4 03 04 00 A4 2A B7 65 B6 04 01 00 00 40 3C F5 9A 97 84 5F 51 [10:32:00]CommunicateWithHost err = 0 [10:32:00]CheckOFDResponse [10:32:00]1017 (14) - 77093643461234 [10:32:00]1041 (16) - 0000000000875060 [10:32:00]1040 (4) - 49054 [10:32:00]1012 (4) - 29.01.2024 04:33 [10:32:00]1206 (1) - 0 [10:32:00]OFD Sender: Remove packet 49054 [10:32:00]ProducePacketName [10:32:00]name=ofd_packets/00049054 [10:32:00]NVStorageDeleteData [10:32:00]Write to MH i2c: 01 00 00 E5 47 2C [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: 01 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: 01 07 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: 01 07 00 E5 47 00 00 00 00 00 E1 0C 20 [10:32:00]RasterBufferAndPrint [10:32:00]line [10:32:00]line [10:32:00]line [10:32:00]line [10:32:00]line [10:32:00]written 0, free lines is 3305 [10:32:00]MH_Cut [10:32:00]Write to MH i2c: D1 01 00 EC 47 01 05 [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: D1 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: D1 01 00 [10:32:00]MH_I2C_Read... [10:32:00]Read from MH i2c: D1 01 00 EC 47 00 04 [10:32:00]Write to MH i2c: 01 00 00 ED 47 34 [10:32:00]Write i2c OK [10:32:00]MH_I2C_Read... [10:32:01]OFD Sender: No OFD packet to send [10:32:01]*** Cut start [10:32:01]*** Partial cut [10:32:01]*** CUTSNS_PIN = 1 [10:32:01]*** CUTSNS_PIN = 0 [10:32:01]*** Brake cut motor [10:32:02]Read from MH i2c: 01 [10:32:02]MH_I2C_Read... [10:32:02]*** Stop cut motor [10:32:02]*** Cut end [10:32:02]Read from MH i2c: 01 07 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: 01 07 00 ED 47 00 00 00 00 00 FF 0F 49 [10:32:02]process_action close_receipt done [10:32:02]requested_data is exist [10:32:02]produce_requested_data [10:32:02]requested_item fm.sn is exist - process it [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 11 00 00 [10:32:02]Write to MH i2c: E2 08 00 EE 47 80 11 00 00 00 00 00 00 AF [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 17 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 17 00 EE 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FC [10:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:32:02]wFMCommunicate OK [10:32:02]requested_item fd.num is exist - process it [10:32:02]SAM_PROTO_GetFieldsCounters [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 13 00 00 [10:32:02]Write to MH i2c: E2 08 00 EF 47 80 13 00 00 00 00 00 00 B2 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 62 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 62 00 EF 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 8C [10:32: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 9E BF 00 00 0E 04 04 00 F5 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:32:02]wFMCommunicate OK [10:32:02]SAM_PROTO_GetFieldsCounters done [10:32:02]requested_item shift.num is exist - process it [10:32:02]requested_item shift.opened is exist - process it [10:32:02]req_shift_opened [10:32:02]FM_GetShiftState [10:32:02]SAM_PROTO_GetShiftState [10:32:02]wFMCommunicate request_size=4 [10:32:02]MH_SAM_APDU [10:32:02]CAPDU: 80 13 01 00 [10:32:02]Write to MH i2c: E2 08 00 F0 47 80 13 01 00 00 00 00 00 B4 [10:32:02]Write i2c OK [10:32:02]MH_I2C_Read... [10:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:02]Read from MH i2c: E2 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 0E 00 [10:32:02]MH_I2C_Read... [10:32:02]Read from MH i2c: E2 0E 00 F0 47 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 26 [10:32:02]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:32:02]wFMCommunicate OK [10:32:02]SAM_PROTO_GetShiftState done [10:32:02]FM_GetShiftState done [10:32:02]req_shift_opened done [10:32:02]requested_item shift.open_date is exist - process it [10:32:02]req_shift_open_date [10:32:02]req_shift_open_date done [10:32:02]produce_requested_data done [10:32:02]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49054,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:32:02]process_action_free close_receipt [10:32:02]json_value_free [10:32:02]json_value_free done [10:32:02]process_json_proto returns [10:32:02]Send response to host [10:32:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49054,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:32:02]free response buf [10:32:02]execute_script done [10:32:02]execute_script returns [10:32:02]free content buf [10:32:02]Sock 7.Close socket [10:32:02]Sock 7.Thread stoped [10:32:06]OFD Sender: No OFD packet to send [10:32:11]OFD Sender: No OFD packet to send [10:32:16]OFD Sender: No OFD packet to send [10:32:21]OFD Sender: No OFD packet to send [10:32:26]OFD Sender: No OFD packet to send [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:11]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:34]accept exits with 9 [10:33:34]New connection [10:33:34]New thread 3066670436 created [10:33:34]Thread 3066813796 joined [10:33:34]Waiting for new connection... [10:33:34] Sock 9.Parse request [10:33:34]Sock 9.Check first char [10:33:34]Sock 9.First char is OK [10:33:34]request: POST /json_proto HTTP/1.0 [10:33:34]Method: POST [10:33:34]URL: /json_proto [10:33:34]Method is POST - this is cgi request [10:33:34]url: /json_proto [10:33:34]query_string will be loaded in cgi processing [10:33:34]execute_cgi json_proto POST (null) [10:33:34]execute_cgi path=json_proto method=POST [10:33:34]POST find Content-Length [10:33:34]Host: 172.17.56.67:8080 [10:33:34]Content-Length: 677 [10:33:34]Content-Type: application/json [10:33:34] [10:33:34]POST finish read [10:33:34]Found Content-Length = 677 [10:33:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216154", "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:33:34]execute_script... [10:33: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)216154", "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:33:34]POST & json_proto [10:33:34]process_json_proto [10:33:34]json parsed OK: [10:33:34]protocol is kg_v1.0 [10:33:34]action value=close_receipt [10:33:34]process_action close_receipt [10:33:34]cmd_close_receipt [10:33:34]MH_GetDate [10:33:34]Write to MH i2c: F0 00 00 F1 47 27 [10:33:34]Write i2c OK [10:33:34]MH_I2C_Read... [10:33:34]Read from MH i2c: F0 [10:33:34]MH_I2C_Read... [10:33:34]Read from MH i2c: F0 09 00 [10:33:34]MH_I2C_Read... [10:33:34]Read from MH i2c: F0 09 00 F1 47 00 0B 7F B7 65 26 5D 9E 65 5C [10:33:34]GetLastDocTimeStamp 1706524331 [10:33:34]current date 1706524427 [10:33:34]FM_GetShiftState [10:33:34]SAM_PROTO_GetShiftState [10:33:34]wFMCommunicate request_size=4 [10:33:34]MH_SAM_APDU [10:33:34]CAPDU: 80 13 01 00 [10:33:34]Write to MH i2c: E2 08 00 F2 47 80 13 01 00 00 00 00 00 B6 [10:33:34]Write i2c OK [10:33:34]MH_I2C_Read... [10:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:34]Read from MH i2c: E2 [10:33:34]MH_I2C_Read... [10:33:34]Read from MH i2c: E2 0E 00 [10:33:34]MH_I2C_Read... [10:33:34]Read from MH i2c: E2 0E 00 F2 47 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 28 [10:33:34]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:33:34]wFMCommunicate OK [10:33:34]SAM_PROTO_GetShiftState done [10:33:34]FM_GetShiftState done [10:33:34]opened in 1706486624 [10:33:34]opened+sec_in_day 1706573024 [10:33:34]quantity*price = 20019 [10:33:34]sum+1 = 20021 [10:33:34]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 СÐО: Общий режим Чек 38 29.01.2024 10:33 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49055 ФПД: 75285005275946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T103347&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49055&fm=75285005275946&tin=02508201610067®Number=0000000000092723&sum=20000 [10:33:35]StoreToDocumentArchive [10:33:35]shift 245 fd 49055 [10:33:35]save to /storage/0245/doc_00049055 [10:33:35]save last doc name /storage/0245/doc_00049055 to /storage/kkm_last_doc_name [10:33:35]save OK [10:33:35]Clear old archive folders... [10:33:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:33:35]tlvbuf is 011CFD40 [10:33:35]SAM_PROTO_ClearQueue [10:33:35]wFMCommunicate request_size=4 [10:33:35]MH_SAM_APDU [10:33:35]CAPDU: 80 09 00 00 [10:33:35]Write to MH i2c: E2 08 00 FF 47 80 09 00 00 00 00 00 00 B8 [10:33:35]Write i2c OK [10:33:35]MH_I2C_Read... [10:33:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:35]Read from MH i2c: E2 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: E2 03 00 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: E2 03 00 FF 47 00 90 00 BA [10:33:35]RAPDU: 90 00 [10:33:35]wFMCommunicate OK [10:33:35]SAM_PROTO_ClearQueue done [10:33:35]KKMCreateOFDPacket [10:33:35]OFDProtocolAddRootSTLVToBuf [10:33:35]FM_MakeSignedData [10:33:35]FM_MakeSignedData [10:33:35]SAM_PROTO_SignData [10:33:35]wFMCommunicate request_size=4 [10:33:35]MH_SAM_APDU [10:33:35]CAPDU: 80 0D 01 02 [10:33:35]Write to MH i2c: E2 08 00 00 48 80 0D 01 02 00 00 00 00 C1 [10:33:35]Write i2c OK [10:33:35]MH_I2C_Read... [10:33:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:35]Read from MH i2c: E2 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: E2 03 00 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: E2 03 00 00 48 00 90 00 BC [10:33:35]RAPDU: 90 00 [10:33:35]wFMCommunicate OK [10:33:35]wFMCommunicate request_size=255 [10:33:35]MH_SAM_APDU [10:33: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 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 26 00 00 00 F4 03 04 00 0B 7F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 44 [10:33:35]Write to MH i2c: E2 02 01 01 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 26 00 00 00 F4 03 04 00 0B 7F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 44 00 00 34 [10:33:35]Write i2c OK [10:33:35]MH_I2C_Read... [10:33:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:35]Read from MH i2c: E2 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: E2 03 00 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: E2 03 00 01 48 00 90 00 BD [10:33:35]RAPDU: 90 00 [10:33:35]wFMCommunicate OK [10:33:35]wFMCommunicate request_size=10 [10:33:35]MH_SAM_APDU [10:33:35]CAPDU: 80 0D 02 02 05 78 A7 FF 13 2A [10:33:35]Write to MH i2c: E2 0D 00 02 48 80 0D 02 02 05 00 78 A7 FF 13 2A 00 00 29 [10:33:35]Write i2c OK [10:33:35]MH_I2C_Read... [10:33:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:35]Read from MH i2c: E2 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: E2 03 00 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: E2 03 00 02 48 00 90 00 BE [10:33:35]RAPDU: 90 00 [10:33:35]wFMCommunicate OK [10:33:35]wFMCommunicate request_size=4 [10:33:35]MH_SAM_APDU [10:33:35]CAPDU: 80 0D 03 02 [10:33:35]Write to MH i2c: E2 08 00 03 48 80 0D 03 02 00 00 00 00 C6 [10:33:35]Write i2c OK [10:33:35]MH_I2C_Read... [10:33:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:36]Read from MH i2c: E2 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: E2 0B 00 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: E2 0B 00 03 48 00 FE 38 58 BD 23 69 E9 22 90 00 A9 [10:33:36]RAPDU: FE 38 58 BD 23 69 E9 22 90 00 [10:33:36]wFMCommunicate OK [10:33:36]SAM_PROTO_SignData done [10:33:36]FM_MakeSignedData done [10:33:36]CreateOFDProtocolMessage [10:33:36]wFMCommunicate request_size=4 [10:33:36]MH_SAM_APDU [10:33:36]CAPDU: 80 11 00 00 [10:33:36]Write to MH i2c: E2 08 00 04 48 80 11 00 00 00 00 00 00 C6 [10:33:36]Write i2c OK [10:33:36]MH_I2C_Read... [10:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:36]Read from MH i2c: E2 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: E2 17 00 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: E2 17 00 04 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 13 [10:33: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:33:36]wFMCommunicate OK [10:33:36]CreateOFDProtocolMessage done [10:33:36]OFDSenderStorePacket 49055 [10:33:36]StoreOFDPacket docnum=49055 [10:33: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 01 9D 07 01 87 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 26 00 00 00 F4 03 04 00 0B 7F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 44 78 A7 FF 13 2A FE 38 58 BD 23 69 E9 22 [10:33:36]CheckFolder [10:33:36]dirname=/storage/ofd_packets [10:33:36]CheckFolder done [10:33:36]ProducePacketName [10:33:36]name=ofd_packets/00049055 [10:33:36]NVStorageSaveData ofd_packets/00049055 [10:33:36]File name is /storage/ofd_packets/00049055 [10:33:36]Write 301 bytes [10:33:36]NVStorageSaveData done [10:33:36]OFDSenderStorePacket done [10:33:36]KKMCreateOFDPacket done [10:33:36]NVStorageSaveData kkm_last_timestamp [10:33:36]File name is /storage/kkm_last_timestamp [10:33:36]Write 4 bytes [10:33:36]NVStorageSaveData done [10:33:36]ExternCall_PrintAddStr [10:33:36]wPrintStart [10:33:36]Write to MH i2c: 01 00 00 05 48 4D [10:33:36]Write i2c OK [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: 01 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: 01 07 00 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: 01 07 00 05 48 00 00 00 00 00 FF 0F 62 [10:33:36]RasterBufferAndPrint [10:33:36]line Счет N : (1)216154 [10:33:36]line ИÐÐ: 02508201610067 [10:33:36]line Контрольно-КаÑÑовый Чек [10:33:36]line ПРОДÐЖР[10:33:36]line ТРК (МРК, ГÐК) : 22 [10:33:36]line Товар: 2710124130 [10:33:36]line Ðи-92-К-5 [10:33:36]line 3.320 * 60.30 [10:33:36]line = 200.20 [10:33:36]line ÐДС 12% ÐСП 1% [10:33:36]line > о реализуемом товаре [10:33:36]line ОКРУГЛЕÐИЕ: -0.20 [10:33:36]line ИТОГО: 200.00 [10:33:36]line ВнеÑено: 200.00 [10:33:36]line СДÐЧÐ: 0.00 [10:33:36]line ÐСП 1% : 1.77 [10:33:36]line ÐДС 12% : 21.26 [10:33:36]line Ðаличными: 200.00 [10:33:36]line Безнал.: 0.00 [10:33:36]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:33:36]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:33:36]line СÐО: Общий режим [10:33:36]line Чек 38 29.01.2024 10:33 [10:33:36]line Смена: 245 ФФД: 1.0 [10:33:36]line ЗÐМ: 0300000040 [10:33:36]line РÐМ: 0000000000092723 [10:33:36]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:33:36]line ФМ: 0000000000875060 [10:33:36]line ФД: 49055 [10:33:36]line ФПД: 75285005275946 [10:33:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T103347&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49055&fm=75285005275946&tin=02508201610067®Number=0000000000092723&sum=20000 [10:33:36]written 0, free lines is 4095 [10:33:36]OFD Sender: Processing packet 49055 [packets to send 12, broken 11] [10:33:36]ProducePacketName [10:33:36]name=ofd_packets/00049055 [10:33:36]OFD Sender: To server: ‡•öpG, [10:33:36]CommunicateWithHost lk.salyk.kg:30040 [10:33:36]ConnectInit lk.salyk.kg [10:33:36]Connected sock=11 [10:33: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 01 9D 07 01 87 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 26 00 00 00 F4 03 04 00 0B 7F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 44 78 A7 FF 13 2A FE 38 58 BD 23 69 E9 22 [10:33: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 CF 24 47 00 67 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 9F BF 00 00 F4 03 04 00 04 2B B7 65 B6 04 01 00 00 D6 F3 0B 5E 65 1C 6B B0 [10:33:36]CommunicateWithHost err = 0 [10:33:36]CheckOFDResponse [10:33:36]1017 (14) - 77093643461234 [10:33:36]1041 (16) - 0000000000875060 [10:33:36]1040 (4) - 49055 [10:33:36]1012 (4) - 29.01.2024 04:35 [10:33:36]1206 (1) - 0 [10:33:36]OFD Sender: Remove packet 49055 [10:33:36]ProducePacketName [10:33:36]name=ofd_packets/00049055 [10:33:36]NVStorageDeleteData [10:33:36]Write to MH i2c: 01 00 00 30 48 78 [10:33:36]Write i2c OK [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: 01 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: 01 07 00 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: 01 07 00 30 48 00 00 00 00 00 FB 0C 86 [10:33:36]RasterBufferAndPrint [10:33:36]line [10:33:36]line [10:33:36]line [10:33:36]line [10:33:36]line [10:33:36]written 0, free lines is 3329 [10:33:36]MH_Cut [10:33:36]Write to MH i2c: D1 01 00 37 48 01 51 [10:33:36]Write i2c OK [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: D1 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: D1 01 00 [10:33:36]MH_I2C_Read... [10:33:36]Read from MH i2c: D1 01 00 37 48 00 50 [10:33:36]Write to MH i2c: 01 00 00 38 48 80 [10:33:36]Write i2c OK [10:33:36]MH_I2C_Read... [10:33:36]OFD Sender: No OFD packet to send [10:33:37]*** Cut start [10:33:37]*** Partial cut [10:33:37]*** CUTSNS_PIN = 1 [10:33:37]*** CUTSNS_PIN = 0 [10:33:37]*** Brake cut motor [10:33:37]Read from MH i2c: 01 [10:33:37]MH_I2C_Read... [10:33:37]*** Stop cut motor [10:33:37]*** Cut end [10:33:37]Read from MH i2c: 01 07 00 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: 01 07 00 38 48 00 00 00 00 00 FF 0F 95 [10:33:37]process_action close_receipt done [10:33:37]requested_data is exist [10:33:37]produce_requested_data [10:33:37]requested_item fm.sn is exist - process it [10:33:37]wFMCommunicate request_size=4 [10:33:37]MH_SAM_APDU [10:33:37]CAPDU: 80 11 00 00 [10:33:37]Write to MH i2c: E2 08 00 39 48 80 11 00 00 00 00 00 00 FB [10:33:37]Write i2c OK [10:33:37]MH_I2C_Read... [10:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:37]Read from MH i2c: E2 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 17 00 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 17 00 39 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 48 [10:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:33:37]wFMCommunicate OK [10:33:37]requested_item fd.num is exist - process it [10:33:37]SAM_PROTO_GetFieldsCounters [10:33:37]wFMCommunicate request_size=4 [10:33:37]MH_SAM_APDU [10:33:37]CAPDU: 80 13 00 00 [10:33:37]Write to MH i2c: E2 08 00 3A 48 80 13 00 00 00 00 00 00 FE [10:33:37]Write i2c OK [10:33:37]MH_I2C_Read... [10:33:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:37]Read from MH i2c: E2 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 62 00 [10:33:37]MH_I2C_Read... [10:33:37]Read from MH i2c: E2 62 00 3A 48 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 BF 00 00 0E 04 04 00 F5 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 DC [10:33:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:33:37]wFMCommunicate OK [10:33:37]SAM_PROTO_GetFieldsCounters done [10:33:37]requested_item shift.num is exist - process it [10:33:37]requested_item shift.opened is exist - process it [10:33:37]req_shift_opened [10:33:37]FM_GetShiftState [10:33:37]SAM_PROTO_GetShiftState [10:33:37]wFMCommunicate request_size=4 [10:33:37]MH_SAM_APDU [10:33:37]CAPDU: 80 13 01 00 [10:33:37]Write to MH i2c: E2 08 00 3B 48 80 13 01 00 00 00 00 00 00 [10:33:37]Write i2c OK [10:33:37]MH_I2C_Read... [10:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:38]Read from MH i2c: E2 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: E2 0E 00 [10:33:38]MH_I2C_Read... [10:33:38]Read from MH i2c: E2 0E 00 3B 48 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 72 [10:33:38]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:33:38]wFMCommunicate OK [10:33:38]SAM_PROTO_GetShiftState done [10:33:38]FM_GetShiftState done [10:33:38]req_shift_opened done [10:33:38]requested_item shift.open_date is exist - process it [10:33:38]req_shift_open_date [10:33:38]req_shift_open_date done [10:33:38]produce_requested_data done [10:33:38]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49055,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:33:38]process_action_free close_receipt [10:33:38]json_value_free [10:33:38]json_value_free done [10:33:38]process_json_proto returns [10:33:38]Send response to host [10:33:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49055,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:33:38]free response buf [10:33:38]execute_script done [10:33:38]execute_script returns [10:33:38]free content buf [10:33:38]Sock 9.Close socket [10:33:38]Sock 9.Thread stoped [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:57]OFD Sender: No OFD packet to send [10:35:58]accept exits with 7 [10:35:58]New connection [10:35:58]New thread 3066813796 created [10:35:58]Thread 3066670436 joined [10:35:58]Waiting for new connection... [10:35:58] Sock 7.Parse request [10:35:58]Sock 7.Check first char [10:35:58]Sock 7.First char is OK [10:35:58]request: POST /json_proto HTTP/1.0 [10:35:58]Method: POST [10:35:58]URL: /json_proto [10:35:58]Method is POST - this is cgi request [10:35:58]url: /json_proto [10:35:58]query_string will be loaded in cgi processing [10:35:58]execute_cgi json_proto POST (null) [10:35:58]execute_cgi path=json_proto method=POST [10:35:58]POST find Content-Length [10:35:58]Host: 172.17.56.67:8080 [10:35:58]Content-Length: 677 [10:35:58]Content-Type: application/json [10:35:58] [10:35:58]POST finish read [10:35:58]Found Content-Length = 677 [10:35:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216156", "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:35:58]execute_script... [10:35:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216156", "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:35:58]POST & json_proto [10:35:58]process_json_proto [10:35:58]json parsed OK: [10:35:58]protocol is kg_v1.0 [10:35:58]action value=close_receipt [10:35:58]process_action close_receipt [10:35:58]cmd_close_receipt [10:35:58]MH_GetDate [10:35:58]Write to MH i2c: F0 00 00 3C 48 73 [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: F0 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: F0 09 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: F0 09 00 3C 48 00 9B 7F B7 65 26 5D 9E 65 38 [10:35:58]GetLastDocTimeStamp 1706524427 [10:35:58]current date 1706524571 [10:35:58]FM_GetShiftState [10:35:58]SAM_PROTO_GetShiftState [10:35:58]wFMCommunicate request_size=4 [10:35:58]MH_SAM_APDU [10:35:58]CAPDU: 80 13 01 00 [10:35:58]Write to MH i2c: E2 08 00 3D 48 80 13 01 00 00 00 00 00 02 [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:58]Read from MH i2c: E2 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 0E 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 0E 00 3D 48 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 74 [10:35:58]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:35:58]wFMCommunicate OK [10:35:58]SAM_PROTO_GetShiftState done [10:35:58]FM_GetShiftState done [10:35:58]opened in 1706486624 [10:35:58]opened+sec_in_day 1706573024 [10:35:58]quantity*price = 30029 [10:35:58]sum+1 = 30030 [10:35:58]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 29.01.2024 10:36 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49056 ФПД: 209210285403633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T103611&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49056&fm=209210285403633&tin=02508201610067®Number=0000000000092723&sum=30000 [10:35:59]StoreToDocumentArchive [10:35:59]shift 245 fd 49056 [10:35:59]save to /storage/0245/doc_00049056 [10:35:59]save last doc name /storage/0245/doc_00049056 to /storage/kkm_last_doc_name [10:35:59]save OK [10:35:59]Clear old archive folders... [10:35:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:35:59]tlvbuf is 012365A0 [10:35:59]SAM_PROTO_ClearQueue [10:35:59]wFMCommunicate request_size=4 [10:35:59]MH_SAM_APDU [10:35:59]CAPDU: 80 09 00 00 [10:35:59]Write to MH i2c: E2 08 00 4A 48 80 09 00 00 00 00 00 00 04 [10:35:59]Write i2c OK [10:35:59]MH_I2C_Read... [10:35:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:59]Read from MH i2c: E2 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: E2 03 00 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: E2 03 00 4A 48 00 90 00 06 [10:35:59]RAPDU: 90 00 [10:35:59]wFMCommunicate OK [10:35:59]SAM_PROTO_ClearQueue done [10:35:59]KKMCreateOFDPacket [10:35:59]OFDProtocolAddRootSTLVToBuf [10:35:59]FM_MakeSignedData [10:35:59]FM_MakeSignedData [10:35:59]SAM_PROTO_SignData [10:35:59]wFMCommunicate request_size=4 [10:35:59]MH_SAM_APDU [10:35:59]CAPDU: 80 0D 01 02 [10:35:59]Write to MH i2c: E2 08 00 4B 48 80 0D 01 02 00 00 00 00 0C [10:35:59]Write i2c OK [10:35:59]MH_I2C_Read... [10:35:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:59]Read from MH i2c: E2 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: E2 03 00 [10:35:59]MH_I2C_Read... [10:35:59]Read from MH i2c: E2 03 00 4B 48 00 90 00 07 [10:35:59]RAPDU: 90 00 [10:35:59]wFMCommunicate OK [10:35:59]wFMCommunicate request_size=255 [10:35:59]MH_SAM_APDU [10:35: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 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 9B 7F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 BE [10:35:59]Write to MH i2c: E2 02 01 4C 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 9B 7F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 BE 00 00 41 [10:35:59]Write i2c OK [10:35:59]MH_I2C_Read... [10:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:00]Read from MH i2c: E2 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 4C 48 00 90 00 08 [10:36:00]RAPDU: 90 00 [10:36:00]wFMCommunicate OK [10:36:00]wFMCommunicate request_size=10 [10:36:00]MH_SAM_APDU [10:36:00]CAPDU: 80 0D 02 02 05 46 90 BE AD F1 [10:36:00]Write to MH i2c: E2 0D 00 4D 48 80 0D 02 02 05 00 46 90 BE AD F1 00 00 4B [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:00]Read from MH i2c: E2 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 03 00 4D 48 00 90 00 09 [10:36:00]RAPDU: 90 00 [10:36:00]wFMCommunicate OK [10:36:00]wFMCommunicate request_size=4 [10:36:00]MH_SAM_APDU [10:36:00]CAPDU: 80 0D 03 02 [10:36:00]Write to MH i2c: E2 08 00 4E 48 80 0D 03 02 00 00 00 00 11 [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:00]Read from MH i2c: E2 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 0B 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 0B 00 4E 48 00 41 3B 00 73 03 DF 3E 5F 90 00 80 [10:36:00]RAPDU: 41 3B 00 73 03 DF 3E 5F 90 00 [10:36:00]wFMCommunicate OK [10:36:00]SAM_PROTO_SignData done [10:36:00]FM_MakeSignedData done [10:36:00]CreateOFDProtocolMessage [10:36:00]wFMCommunicate request_size=4 [10:36:00]MH_SAM_APDU [10:36:00]CAPDU: 80 11 00 00 [10:36:00]Write to MH i2c: E2 08 00 4F 48 80 11 00 00 00 00 00 00 11 [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:00]Read from MH i2c: E2 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 17 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: E2 17 00 4F 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5E [10:36:00]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:00]wFMCommunicate OK [10:36:00]CreateOFDProtocolMessage done [10:36:00]OFDSenderStorePacket 49056 [10:36:00]StoreOFDPacket docnum=49056 [10:36: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 88 C9 07 01 6A 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 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 9B 7F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 BE 46 90 BE AD F1 41 3B 00 73 03 DF 3E 5F [10:36:00]CheckFolder [10:36:00]dirname=/storage/ofd_packets [10:36:00]CheckFolder done [10:36:00]ProducePacketName [10:36:00]name=ofd_packets/00049056 [10:36:00]NVStorageSaveData ofd_packets/00049056 [10:36:00]File name is /storage/ofd_packets/00049056 [10:36:00]Write 301 bytes [10:36:00]NVStorageSaveData done [10:36:00]OFDSenderStorePacket done [10:36:00]KKMCreateOFDPacket done [10:36:00]NVStorageSaveData kkm_last_timestamp [10:36:00]File name is /storage/kkm_last_timestamp [10:36:00]Write 4 bytes [10:36:00]NVStorageSaveData done [10:36:00]ExternCall_PrintAddStr [10:36:00]wPrintStart [10:36:00]Write to MH i2c: 01 00 00 50 48 98 [10:36:00]Write i2c OK [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: 01 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: 01 07 00 [10:36:00]MH_I2C_Read... [10:36:00]Read from MH i2c: 01 07 00 50 48 00 00 00 00 00 FF 0F AD [10:36:00]RasterBufferAndPrint [10:36:00]line Счет N : (1)216156 [10:36:00]line ИÐÐ: 02508201610067 [10:36:00]line Контрольно-КаÑÑовый Чек [10:36:00]line ПРОДÐЖР[10:36:00]line ТРК (МРК, ГÐК) : 22 [10:36:00]line Товар: 2710124130 [10:36:00]line Ðи-92-К-5 [10:36:00]line 4.980 * 60.30 [10:36:00]line = 300.29 [10:36:00]line ÐДС 12% ÐСП 1% [10:36:00]line > о реализуемом товаре [10:36:00]line ОКРУГЛЕÐИЕ: -0.29 [10:36:00]line ИТОГО: 300.00 [10:36:00]line ВнеÑено: 300.00 [10:36:00]line СДÐЧÐ: 0.00 [10:36:00]line ÐСП 1% : 2.66 [10:36:00]line ÐДС 12% : 31.89 [10:36:00]line Ðаличными: 300.00 [10:36:00]line Безнал.: 0.00 [10:36:00]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:36:00]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:36:00]line СÐО: Общий режим [10:36:00]line Чек 39 29.01.2024 10:36 [10:36:00]line Смена: 245 ФФД: 1.0 [10:36:00]line ЗÐМ: 0300000040 [10:36:00]line РÐМ: 0000000000092723 [10:36:00]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:36:00]line ФМ: 0000000000875060 [10:36:00]line ФД: 49056 [10:36:00]line ФПД: 209210285403633 [10:36:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T103611&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49056&fm=209210285403633&tin=02508201610067®Number=0000000000092723&sum=30000 [10:36:00]OFD Sender: Processing packet 49056 [packets to send 12, broken 11] [10:36:00]ProducePacketName [10:36:00]name=ofd_packets/00049056 [10:36:00]OFD Sender: To server: ‡•öpG, [10:36:00]CommunicateWithHost lk.salyk.kg:30040 [10:36:00]ConnectInit lk.salyk.kg [10:36:00]written 0, free lines is 4095 [10:36:00]Connected sock=10 [10:36: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 88 C9 07 01 6A 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 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 9B 7F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 BE 46 90 BE AD F1 41 3B 00 73 03 DF 3E 5F [10:36: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 E0 5D 47 00 00 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A0 BF 00 00 F4 03 04 00 94 2B B7 65 B6 04 01 00 00 99 ED FA 45 74 85 8B 8F [10:36:00]CommunicateWithHost err = 0 [10:36:00]CheckOFDResponse [10:36:00]1017 (14) - 77093643461234 [10:36:00]1041 (16) - 0000000000875060 [10:36:00]1040 (4) - 49056 [10:36:00]1012 (4) - 29.01.2024 04:37 [10:36:00]1206 (1) - 0 [10:36:00]OFD Sender: Remove packet 49056 [10:36:00]ProducePacketName [10:36:00]name=ofd_packets/00049056 [10:36:00]NVStorageDeleteData [10:36:01]Write to MH i2c: 01 00 00 7B 48 C3 [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: 01 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: 01 07 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: 01 07 00 7B 48 00 00 00 00 00 F3 0C C9 [10:36:01]RasterBufferAndPrint [10:36:01]line [10:36:01]line [10:36:01]line [10:36:01]line [10:36:01]line [10:36:01]written 0, free lines is 3321 [10:36:01]MH_Cut [10:36:01]Write to MH i2c: D1 01 00 82 48 01 9C [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: D1 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: D1 01 00 [10:36:01]MH_I2C_Read... [10:36:01]Read from MH i2c: D1 01 00 82 48 00 9B [10:36:01]Write to MH i2c: 01 00 00 83 48 CB [10:36:01]Write i2c OK [10:36:01]MH_I2C_Read... [10:36:01]OFD Sender: No OFD packet to send [10:36:01]*** Cut start [10:36:01]*** Partial cut [10:36:01]*** CUTSNS_PIN = 1 [10:36:01]*** CUTSNS_PIN = 0 [10:36:02]*** Brake cut motor [10:36:02]Read from MH i2c: 01 [10:36:02]MH_I2C_Read... [10:36:02]*** Stop cut motor [10:36:02]*** Cut end [10:36:02]Read from MH i2c: 01 07 00 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: 01 07 00 83 48 00 00 00 00 00 FF 0F E0 [10:36:02]process_action close_receipt done [10:36:02]requested_data is exist [10:36:02]produce_requested_data [10:36:02]requested_item fm.sn is exist - process it [10:36:02]wFMCommunicate request_size=4 [10:36:02]MH_SAM_APDU [10:36:02]CAPDU: 80 11 00 00 [10:36:02]Write to MH i2c: E2 08 00 84 48 80 11 00 00 00 00 00 00 46 [10:36:02]Write i2c OK [10:36:02]MH_I2C_Read... [10:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:02]Read from MH i2c: E2 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: E2 17 00 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: E2 17 00 84 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 93 [10:36:02]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:02]wFMCommunicate OK [10:36:02]requested_item fd.num is exist - process it [10:36:02]SAM_PROTO_GetFieldsCounters [10:36:02]wFMCommunicate request_size=4 [10:36:02]MH_SAM_APDU [10:36:02]CAPDU: 80 13 00 00 [10:36:02]Write to MH i2c: E2 08 00 85 48 80 13 00 00 00 00 00 00 49 [10:36:02]Write i2c OK [10:36:02]MH_I2C_Read... [10:36:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:02]Read from MH i2c: E2 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: E2 62 00 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: E2 62 00 85 48 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 BF 00 00 0E 04 04 00 F5 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 2B [10:36:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 [10:36:02]wFMCommunicate OK [10:36:02]SAM_PROTO_GetFieldsCounters done [10:36:02]requested_item shift.num is exist - process it [10:36:02]requested_item shift.opened is exist - process it [10:36:02]req_shift_opened [10:36:02]FM_GetShiftState [10:36:02]SAM_PROTO_GetShiftState [10:36:02]wFMCommunicate request_size=4 [10:36:02]MH_SAM_APDU [10:36:02]CAPDU: 80 13 01 00 [10:36:02]Write to MH i2c: E2 08 00 86 48 80 13 01 00 00 00 00 00 4B [10:36:02]Write i2c OK [10:36:02]MH_I2C_Read... [10:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:02]Read from MH i2c: E2 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: E2 0E 00 [10:36:02]MH_I2C_Read... [10:36:02]Read from MH i2c: E2 0E 00 86 48 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 BD [10:36:02]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:36:02]wFMCommunicate OK [10:36:02]SAM_PROTO_GetShiftState done [10:36:02]FM_GetShiftState done [10:36:02]req_shift_opened done [10:36:02]requested_item shift.open_date is exist - process it [10:36:02]req_shift_open_date [10:36:02]req_shift_open_date done [10:36:02]produce_requested_data done [10:36:02]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49056,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:36:02]process_action_free close_receipt [10:36:02]json_value_free [10:36:02]json_value_free done [10:36:02]process_json_proto returns [10:36:02]Send response to host [10:36:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49056,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:36:02]free response buf [10:36:02]execute_script done [10:36:02]execute_script returns [10:36:02]free content buf [10:36:02]Sock 7.Close socket [10:36:02]Sock 7.Thread stoped [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:06]OFD Sender: No OFD packet to send [10:42:11]OFD Sender: No OFD packet to send [10:42:16]OFD Sender: No OFD packet to send [10:42:21]OFD Sender: No OFD packet to send [10:42:26]OFD Sender: No OFD packet to send [10:42:31]OFD Sender: No OFD packet to send [10:42:34]accept exits with 9 [10:42:34]New connection [10:42:34]New thread 3066670436 created [10:42:34]Thread 3066813796 joined [10:42:34]Waiting for new connection... [10:42:34] Sock 9.Parse request [10:42:34]Sock 9.Check first char [10:42:34]Sock 9.First char is OK [10:42:34]request: POST /json_proto HTTP/1.0 [10:42:34]Method: POST [10:42:34]URL: /json_proto [10:42:34]Method is POST - this is cgi request [10:42:34]url: /json_proto [10:42:34]query_string will be loaded in cgi processing [10:42:34]execute_cgi json_proto POST (null) [10:42:34]execute_cgi path=json_proto method=POST [10:42:34]POST find Content-Length [10:42:34]Host: 172.17.56.67:8080 [10:42:34]Content-Length: 682 [10:42:34]Content-Type: application/json [10:42:34] [10:42:34]POST finish read [10:42:34]Found Content-Length = 682 [10:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216157", "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" : 33.170, "sum" : 2000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:34]execute_script... [10:42: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)216157", "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" : 33.170, "sum" : 2000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:34]POST & json_proto [10:42:34]process_json_proto [10:42:34]json parsed OK: [10:42:34]protocol is kg_v1.0 [10:42:34]action value=close_receipt [10:42:34]process_action close_receipt [10:42:34]cmd_close_receipt [10:42:34]MH_GetDate [10:42:34]Write to MH i2c: F0 00 00 87 48 BE [10:42:34]Write i2c OK [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: F0 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: F0 09 00 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: F0 09 00 87 48 00 27 81 B7 65 26 5D 9E 65 11 [10:42:34]GetLastDocTimeStamp 1706524571 [10:42:34]current date 1706524967 [10:42:34]FM_GetShiftState [10:42:34]SAM_PROTO_GetShiftState [10:42:34]wFMCommunicate request_size=4 [10:42:34]MH_SAM_APDU [10:42:34]CAPDU: 80 13 01 00 [10:42:34]Write to MH i2c: E2 08 00 88 48 80 13 01 00 00 00 00 00 4D [10:42:34]Write i2c OK [10:42:34]MH_I2C_Read... [10:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:34]Read from MH i2c: E2 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: E2 0E 00 [10:42:34]MH_I2C_Read... [10:42:34]Read from MH i2c: E2 0E 00 88 48 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 BF [10:42:34]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:42:34]wFMCommunicate OK [10:42:34]SAM_PROTO_GetShiftState done [10:42:34]FM_GetShiftState done [10:42:34]opened in 1706486624 [10:42:34]opened+sec_in_day 1706573024 [10:42:34]quantity*price = 200015 [10:42:34]sum+1 = 200016 [10:42:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.15 ИТОГО: 2000.00 ВнеÑено: 2000.00 СДÐЧÐ: 0.00 ÐСП 1% : 17.70 ÐДС 12% : 212.40 Ðаличными: 2000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 40 29.01.2024 10:42 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49057 ФПД: 151900730469281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T104247&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49057&fm=151900730469281&tin=02508201610067®Number=0000000000092723&sum=200000 [10:42:35]StoreToDocumentArchive [10:42:35]shift 245 fd 49057 [10:42:35]save to /storage/0245/doc_00049057 [10:42:35]save last doc name /storage/0245/doc_00049057 to /storage/kkm_last_doc_name [10:42:35]save OK [10:42:35]Clear old archive folders... [10:42:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:35]tlvbuf is 0121E210 [10:42:35]SAM_PROTO_ClearQueue [10:42:35]wFMCommunicate request_size=4 [10:42:35]MH_SAM_APDU [10:42:35]CAPDU: 80 09 00 00 [10:42:35]Write to MH i2c: E2 08 00 95 48 80 09 00 00 00 00 00 00 4F [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:35]Read from MH i2c: E2 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 03 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 03 00 95 48 00 90 00 51 [10:42:35]RAPDU: 90 00 [10:42:35]wFMCommunicate OK [10:42:35]SAM_PROTO_ClearQueue done [10:42:35]KKMCreateOFDPacket [10:42:35]OFDProtocolAddRootSTLVToBuf [10:42:35]FM_MakeSignedData [10:42:35]FM_MakeSignedData [10:42:35]SAM_PROTO_SignData [10:42:35]wFMCommunicate request_size=4 [10:42:35]MH_SAM_APDU [10:42:35]CAPDU: 80 0D 01 02 [10:42:35]Write to MH i2c: E2 08 00 96 48 80 0D 01 02 00 00 00 00 57 [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:35]Read from MH i2c: E2 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 03 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 03 00 96 48 00 90 00 52 [10:42:35]RAPDU: 90 00 [10:42:35]wFMCommunicate OK [10:42:35]wFMCommunicate request_size=255 [10:42:35]MH_SAM_APDU [10:42: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 92 81 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 27 81 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 8A [10:42:35]Write to MH i2c: E2 02 01 97 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 81 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 27 81 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 8A 00 00 15 [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:35]Read from MH i2c: E2 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 03 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 03 00 97 48 00 90 00 53 [10:42:35]RAPDU: 90 00 [10:42:35]wFMCommunicate OK [10:42:35]wFMCommunicate request_size=10 [10:42:35]MH_SAM_APDU [10:42:35]CAPDU: 80 0D 02 02 05 27 25 14 AB A1 [10:42:35]Write to MH i2c: E2 0D 00 98 48 80 0D 02 02 05 00 27 25 14 AB A1 00 00 10 [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:35]Read from MH i2c: E2 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 03 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 03 00 98 48 00 90 00 54 [10:42:35]RAPDU: 90 00 [10:42:35]wFMCommunicate OK [10:42:35]wFMCommunicate request_size=4 [10:42:35]MH_SAM_APDU [10:42:35]CAPDU: 80 0D 03 02 [10:42:35]Write to MH i2c: E2 08 00 99 48 80 0D 03 02 00 00 00 00 5C [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:35]Read from MH i2c: E2 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 0B 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 0B 00 99 48 00 6B BC ED 2A CB E9 1F B0 90 00 1E [10:42:35]RAPDU: 6B BC ED 2A CB E9 1F B0 90 00 [10:42:35]wFMCommunicate OK [10:42:35]SAM_PROTO_SignData done [10:42:35]FM_MakeSignedData done [10:42:35]CreateOFDProtocolMessage [10:42:35]wFMCommunicate request_size=4 [10:42:35]MH_SAM_APDU [10:42:35]CAPDU: 80 11 00 00 [10:42:35]Write to MH i2c: E2 08 00 9A 48 80 11 00 00 00 00 00 00 5C [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:35]Read from MH i2c: E2 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 17 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: E2 17 00 9A 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A9 [10:42: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:42:35]wFMCommunicate OK [10:42:35]CreateOFDProtocolMessage done [10:42:35]OFDSenderStorePacket 49057 [10:42:35]StoreOFDPacket docnum=49057 [10:42:35]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 5D D0 07 01 21 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 92 81 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 27 81 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 8A 27 25 14 AB A1 6B BC ED 2A CB E9 1F B0 [10:42:35]CheckFolder [10:42:35]dirname=/storage/ofd_packets [10:42:35]CheckFolder done [10:42:35]ProducePacketName [10:42:35]name=ofd_packets/00049057 [10:42:35]NVStorageSaveData ofd_packets/00049057 [10:42:35]File name is /storage/ofd_packets/00049057 [10:42:35]Write 301 bytes [10:42:35]NVStorageSaveData done [10:42:35]OFDSenderStorePacket done [10:42:35]KKMCreateOFDPacket done [10:42:35]NVStorageSaveData kkm_last_timestamp [10:42:35]File name is /storage/kkm_last_timestamp [10:42:35]Write 4 bytes [10:42:35]NVStorageSaveData done [10:42:35]ExternCall_PrintAddStr [10:42:35]wPrintStart [10:42:35]Write to MH i2c: 01 00 00 9B 48 E3 [10:42:35]Write i2c OK [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: 01 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: 01 07 00 [10:42:35]MH_I2C_Read... [10:42:35]Read from MH i2c: 01 07 00 9B 48 00 00 00 00 00 FF 0F F8 [10:42:35]RasterBufferAndPrint [10:42:35]line Счет N : (1)216157 [10:42:35]line ИÐÐ: 02508201610067 [10:42:35]line Контрольно-КаÑÑовый Чек [10:42:35]line ПРОДÐЖР[10:42:35]line ТРК (МРК, ГÐК) : 12 [10:42:35]line Товар: 2710124130 [10:42:35]line Ðи-92-К-5 [10:42:35]line 33.170 * 60.30 [10:42:35]line = 2000.15 [10:42:35]line ÐДС 12% ÐСП 1% [10:42:35]line > о реализуемом товаре [10:42:35]line ОКРУГЛЕÐИЕ: -0.15 [10:42:35]line ИТОГО: 2000.00 [10:42:35]line ВнеÑено: 2000.00 [10:42:35]line СДÐЧÐ: 0.00 [10:42:35]line ÐСП 1% : 17.70 [10:42:35]line ÐДС 12% : 212.40 [10:42:35]line Ðаличными: 2000.00 [10:42:35]line Безнал.: 0.00 [10:42:35]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:42:35]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:42:35]line СÐО: Общий режим [10:42:35]line Чек 40 29.01.2024 10:42 [10:42:35]line Смена: 245 ФФД: 1.0 [10:42:35]line ЗÐМ: 0300000040 [10:42:35]line РÐМ: 0000000000092723 [10:42:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:42:35]line ФМ: 0000000000875060 [10:42:35]line ФД: 49057 [10:42:35]line ФПД: 151900730469281 [10:42:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T104247&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49057&fm=151900730469281&tin=02508201610067®Number=0000000000092723&sum=200000 [10:42:36]OFD Sender: Processing packet 49057 [packets to send 12, broken 11] [10:42:36]ProducePacketName [10:42:36]name=ofd_packets/00049057 [10:42:36]OFD Sender: To server: ‡•öpG, [10:42:36]CommunicateWithHost lk.salyk.kg:30040 [10:42:36]ConnectInit lk.salyk.kg [10:42:36]written 0, free lines is 4095 [10:42:36]Connected sock=10 [10:42: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 5D D0 07 01 21 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 92 81 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 27 81 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 8A 27 25 14 AB A1 6B BC ED 2A CB E9 1F B0 [10:42: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 0B 04 47 00 F8 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A1 BF 00 00 F4 03 04 00 20 2D B7 65 B6 04 01 00 00 44 D0 8E AA 47 5A E8 BF [10:42:36]CommunicateWithHost err = 0 [10:42:36]CheckOFDResponse [10:42:36]1017 (14) - 77093643461234 [10:42:36]1041 (16) - 0000000000875060 [10:42:36]1040 (4) - 49057 [10:42:36]1012 (4) - 29.01.2024 04:44 [10:42:36]1206 (1) - 0 [10:42:36]OFD Sender: Remove packet 49057 [10:42:36]ProducePacketName [10:42:36]name=ofd_packets/00049057 [10:42:36]NVStorageDeleteData [10:42:36]Write to MH i2c: 01 00 00 C6 48 0E [10:42:36]Write i2c OK [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: 01 [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: 01 07 00 [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: 01 07 00 C6 48 00 00 00 00 00 EE 0C 0F [10:42:36]RasterBufferAndPrint [10:42:36]line [10:42:36]line [10:42:36]line [10:42:36]line [10:42:36]line [10:42:36]written 0, free lines is 3316 [10:42:36]MH_Cut [10:42:36]Write to MH i2c: D1 01 00 CD 48 01 E7 [10:42:36]Write i2c OK [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: D1 [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: D1 01 00 [10:42:36]MH_I2C_Read... [10:42:36]Read from MH i2c: D1 01 00 CD 48 00 E6 [10:42:36]Write to MH i2c: 01 00 00 CE 48 16 [10:42:36]Write i2c OK [10:42:36]MH_I2C_Read... [10:42:37]OFD Sender: No OFD packet to send [10:42:37]*** Cut start [10:42:37]*** Partial cut [10:42:37]*** CUTSNS_PIN = 1 [10:42:37]*** CUTSNS_PIN = 0 [10:42:37]*** Brake cut motor [10:42:37]Read from MH i2c: 01 [10:42:37]MH_I2C_Read... [10:42:37]*** Stop cut motor [10:42:37]*** Cut end [10:42:37]Read from MH i2c: 01 07 00 [10:42:37]MH_I2C_Read... [10:42:37]Read from MH i2c: 01 07 00 CE 48 00 00 00 00 00 FF 0F 2B [10:42:37]process_action close_receipt done [10:42:37]requested_data is exist [10:42:37]produce_requested_data [10:42:37]requested_item fm.sn is exist - process it [10:42:37]wFMCommunicate request_size=4 [10:42:37]MH_SAM_APDU [10:42:37]CAPDU: 80 11 00 00 [10:42:37]Write to MH i2c: E2 08 00 CF 48 80 11 00 00 00 00 00 00 91 [10:42:37]Write i2c OK [10:42:37]MH_I2C_Read... [10:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:37]Read from MH i2c: E2 [10:42:37]MH_I2C_Read... [10:42:37]Read from MH i2c: E2 17 00 [10:42:37]MH_I2C_Read... [10:42:37]Read from MH i2c: E2 17 00 CF 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DE [10:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:42:38]wFMCommunicate OK [10:42:38]requested_item fd.num is exist - process it [10:42:38]SAM_PROTO_GetFieldsCounters [10:42:38]wFMCommunicate request_size=4 [10:42:38]MH_SAM_APDU [10:42:38]CAPDU: 80 13 00 00 [10:42:38]Write to MH i2c: E2 08 00 D0 48 80 13 00 00 00 00 00 00 94 [10:42:38]Write i2c OK [10:42:38]MH_I2C_Read... [10:42:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:38]Read from MH i2c: E2 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 62 00 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 62 00 D0 48 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 BF 00 00 0E 04 04 00 F5 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 7A [10:42: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 A1 BF 00 00 0E 04 04 00 F5 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 [10:42:38]wFMCommunicate OK [10:42:38]SAM_PROTO_GetFieldsCounters done [10:42:38]requested_item shift.num is exist - process it [10:42:38]requested_item shift.opened is exist - process it [10:42:38]req_shift_opened [10:42:38]FM_GetShiftState [10:42:38]SAM_PROTO_GetShiftState [10:42:38]wFMCommunicate request_size=4 [10:42:38]MH_SAM_APDU [10:42:38]CAPDU: 80 13 01 00 [10:42:38]Write to MH i2c: E2 08 00 D1 48 80 13 01 00 00 00 00 00 96 [10:42:38]Write i2c OK [10:42:38]MH_I2C_Read... [10:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:38]Read from MH i2c: E2 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 0E 00 [10:42:38]MH_I2C_Read... [10:42:38]Read from MH i2c: E2 0E 00 D1 48 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 08 [10:42:38]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:42:38]wFMCommunicate OK [10:42:38]SAM_PROTO_GetShiftState done [10:42:38]FM_GetShiftState done [10:42:38]req_shift_opened done [10:42:38]requested_item shift.open_date is exist - process it [10:42:38]req_shift_open_date [10:42:38]req_shift_open_date done [10:42:38]produce_requested_data done [10:42:38]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49057,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:42:38]process_action_free close_receipt [10:42:38]json_value_free [10:42:38]json_value_free done [10:42:38]process_json_proto returns [10:42:38]Send response to host [10:42:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49057,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:42:38]free response buf [10:42:38]execute_script done [10:42:38]execute_script returns [10:42:38]free content buf [10:42:38]Sock 9.Close socket [10:42:38]Sock 9.Thread stoped [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [10:50:07]OFD Sender: No OFD packet to send [10:50:12]OFD Sender: No OFD packet to send [10:50:17]OFD Sender: No OFD packet to send [10:50:22]OFD Sender: No OFD packet to send [10:50:27]OFD Sender: No OFD packet to send [10:50:32]OFD Sender: No OFD packet to send [10:50:37]OFD Sender: No OFD packet to send [10:50:42]OFD Sender: No OFD packet to send [10:50:47]OFD Sender: No OFD packet to send [10:50:52]OFD Sender: No OFD packet to send [10:50:57]OFD Sender: No OFD packet to send [10:51:02]OFD Sender: No OFD packet to send [10:51:07]OFD Sender: No OFD packet to send [10:51:12]OFD Sender: No OFD packet to send [10:51:17]OFD Sender: No OFD packet to send [10:51:22]OFD Sender: No OFD packet to send [10:51:27]OFD Sender: No OFD packet to send [10:51:32]OFD Sender: No OFD packet to send [10:51:37]OFD Sender: No OFD packet to send [10:51:42]OFD Sender: No OFD packet to send [10:51:44]accept exits with 7 [10:51:44]New connection [10:51:44]New thread 3066813796 created [10:51:44]Thread 3066670436 joined [10:51:44]Waiting for new connection... [10:51:44] Sock 7.Parse request [10:51:44]Sock 7.Check first char [10:51:44]Sock 7.First char is OK [10:51:44]request: POST /json_proto HTTP/1.0 [10:51:44]Method: POST [10:51:44]URL: /json_proto [10:51:44]Method is POST - this is cgi request [10:51:44]url: /json_proto [10:51:44]query_string will be loaded in cgi processing [10:51:44]execute_cgi json_proto POST (null) [10:51:44]execute_cgi path=json_proto method=POST [10:51:44]POST find Content-Length [10:51:44]Host: 172.17.56.67:8080 [10:51:44]Content-Length: 682 [10:51:44]Content-Type: application/json [10:51:44] [10:51:44]POST finish read [10:51:44]Found Content-Length = 682 [10:51:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216158", "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" ] } } [10:51:44]execute_script... [10:51: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)216158", "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" ] } } [10:51:44]POST & json_proto [10:51:44]process_json_proto [10:51:44]json parsed OK: [10:51:44]protocol is kg_v1.0 [10:51:44]action value=close_receipt [10:51:44]process_action close_receipt [10:51:44]cmd_close_receipt [10:51:44]MH_GetDate [10:51:44]Write to MH i2c: F0 00 00 D2 48 09 [10:51:44]Write i2c OK [10:51:44]MH_I2C_Read... [10:51:44]Read from MH i2c: F0 [10:51:44]MH_I2C_Read... [10:51:44]Read from MH i2c: F0 09 00 [10:51:44]MH_I2C_Read... [10:51:44]Read from MH i2c: F0 09 00 D2 48 00 4D 83 B7 65 26 5D 9E 65 84 [10:51:44]GetLastDocTimeStamp 1706524967 [10:51:44]current date 1706525517 [10:51:44]FM_GetShiftState [10:51:44]SAM_PROTO_GetShiftState [10:51:44]wFMCommunicate request_size=4 [10:51:44]MH_SAM_APDU [10:51:44]CAPDU: 80 13 01 00 [10:51:44]Write to MH i2c: E2 08 00 D3 48 80 13 01 00 00 00 00 00 98 [10:51:44]Write i2c OK [10:51:44]MH_I2C_Read... [10:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:44]Read from MH i2c: E2 [10:51:44]MH_I2C_Read... [10:51:44]Read from MH i2c: E2 0E 00 [10:51:44]MH_I2C_Read... [10:51:44]Read from MH i2c: E2 0E 00 D3 48 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 0A [10:51:44]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:51:44]wFMCommunicate OK [10:51:44]SAM_PROTO_GetShiftState done [10:51:44]FM_GetShiftState done [10:51:44]opened in 1706486624 [10:51:44]opened+sec_in_day 1706573024 [10:51:44]quantity*price = 100037 [10:51:44]sum+1 = 100039 [10:51:44]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 СÐО: Общий режим Чек 41 29.01.2024 10:51 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49058 ФПД: 201012752663392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T105157&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49058&fm=201012752663392&tin=02508201610067®Number=0000000000092723&sum=100000 [10:51:45]StoreToDocumentArchive [10:51:45]shift 245 fd 49058 [10:51:45]save to /storage/0245/doc_00049058 [10:51:45]save last doc name /storage/0245/doc_00049058 to /storage/kkm_last_doc_name [10:51:45]save OK [10:51:45]Clear old archive folders... [10:51:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:45]tlvbuf is 0128CF80 [10:51:45]SAM_PROTO_ClearQueue [10:51:45]wFMCommunicate request_size=4 [10:51:45]MH_SAM_APDU [10:51:45]CAPDU: 80 09 00 00 [10:51:45]Write to MH i2c: E2 08 00 E0 48 80 09 00 00 00 00 00 00 9A [10:51:45]Write i2c OK [10:51:45]MH_I2C_Read... [10:51:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:45]Read from MH i2c: E2 [10:51:45]MH_I2C_Read... [10:51:45]Read from MH i2c: E2 03 00 [10:51:45]MH_I2C_Read... [10:51:45]Read from MH i2c: E2 03 00 E0 48 00 90 00 9C [10:51:45]RAPDU: 90 00 [10:51:45]wFMCommunicate OK [10:51:45]SAM_PROTO_ClearQueue done [10:51:45]KKMCreateOFDPacket [10:51:45]OFDProtocolAddRootSTLVToBuf [10:51:45]FM_MakeSignedData [10:51:45]FM_MakeSignedData [10:51:45]SAM_PROTO_SignData [10:51:45]wFMCommunicate request_size=4 [10:51:45]MH_SAM_APDU [10:51:45]CAPDU: 80 0D 01 02 [10:51:45]Write to MH i2c: E2 08 00 E1 48 80 0D 01 02 00 00 00 00 A2 [10:51:45]Write i2c OK [10:51:45]MH_I2C_Read... [10:51:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:45]Read from MH i2c: E2 [10:51:45]MH_I2C_Read... [10:51:45]Read from MH i2c: E2 03 00 [10:51:45]MH_I2C_Read... [10:51:45]Read from MH i2c: E2 03 00 E1 48 00 90 00 9D [10:51:45]RAPDU: 90 00 [10:51:45]wFMCommunicate OK [10:51:45]wFMCommunicate request_size=255 [10:51:45]MH_SAM_APDU [10:51: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 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 29 00 00 00 F4 03 04 00 4D 83 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 B6 [10:51:45]Write to MH i2c: E2 02 01 E2 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 29 00 00 00 F4 03 04 00 4D 83 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 B6 00 00 33 [10:51:45]Write i2c OK [10:51:45]MH_I2C_Read... [10:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:46]Read from MH i2c: E2 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: E2 03 00 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: E2 03 00 E2 48 00 90 00 9E [10:51:46]RAPDU: 90 00 [10:51:46]wFMCommunicate OK [10:51:46]wFMCommunicate request_size=10 [10:51:46]MH_SAM_APDU [10:51:46]CAPDU: 80 0D 02 02 05 D1 ED B7 C3 60 [10:51:46]Write to MH i2c: E2 0D 00 E3 48 80 0D 02 02 05 00 D1 ED B7 C3 60 00 00 47 [10:51:46]Write i2c OK [10:51:46]MH_I2C_Read... [10:51:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:46]Read from MH i2c: E2 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: E2 03 00 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: E2 03 00 E3 48 00 90 00 9F [10:51:46]RAPDU: 90 00 [10:51:46]wFMCommunicate OK [10:51:46]wFMCommunicate request_size=4 [10:51:46]MH_SAM_APDU [10:51:46]CAPDU: 80 0D 03 02 [10:51:46]Write to MH i2c: E2 08 00 E4 48 80 0D 03 02 00 00 00 00 A7 [10:51:46]Write i2c OK [10:51:46]MH_I2C_Read... [10:51:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:46]Read from MH i2c: E2 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: E2 0B 00 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: E2 0B 00 E4 48 00 14 84 CF BA CA 94 A2 A9 90 00 72 [10:51:46]RAPDU: 14 84 CF BA CA 94 A2 A9 90 00 [10:51:46]wFMCommunicate OK [10:51:46]SAM_PROTO_SignData done [10:51:46]FM_MakeSignedData done [10:51:46]CreateOFDProtocolMessage [10:51:46]wFMCommunicate request_size=4 [10:51:46]MH_SAM_APDU [10:51:46]CAPDU: 80 11 00 00 [10:51:46]Write to MH i2c: E2 08 00 E5 48 80 11 00 00 00 00 00 00 A7 [10:51:46]Write i2c OK [10:51:46]MH_I2C_Read... [10:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:46]Read from MH i2c: E2 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: E2 17 00 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: E2 17 00 E5 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F4 [10:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:51:46]wFMCommunicate OK [10:51:46]CreateOFDProtocolMessage done [10:51:46]OFDSenderStorePacket 49058 [10:51:46]StoreOFDPacket docnum=49058 [10:51:46]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 7C 07 01 14 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 4D 83 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 B6 D1 ED B7 C3 60 14 84 CF BA CA 94 A2 A9 [10:51:46]CheckFolder [10:51:46]dirname=/storage/ofd_packets [10:51:46]CheckFolder done [10:51:46]ProducePacketName [10:51:46]name=ofd_packets/00049058 [10:51:46]NVStorageSaveData ofd_packets/00049058 [10:51:46]File name is /storage/ofd_packets/00049058 [10:51:46]Write 301 bytes [10:51:46]NVStorageSaveData done [10:51:46]OFDSenderStorePacket done [10:51:46]KKMCreateOFDPacket done [10:51:46]NVStorageSaveData kkm_last_timestamp [10:51:46]File name is /storage/kkm_last_timestamp [10:51:46]Write 4 bytes [10:51:46]NVStorageSaveData done [10:51:46]ExternCall_PrintAddStr [10:51:46]wPrintStart [10:51:46]Write to MH i2c: 01 00 00 E6 48 2E [10:51:46]Write i2c OK [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: 01 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: 01 07 00 [10:51:46]MH_I2C_Read... [10:51:46]Read from MH i2c: 01 07 00 E6 48 00 00 00 00 00 FF 0F 43 [10:51:46]RasterBufferAndPrint [10:51:46]line Счет N : (1)216158 [10:51:46]line ИÐÐ: 02508201610067 [10:51:46]line Контрольно-КаÑÑовый Чек [10:51:46]line ПРОДÐЖР[10:51:46]line ТРК (МРК, ГÐК) : 22 [10:51:46]line Товар: 2710124130 [10:51:46]line Ðи-92-К-5 [10:51:46]line 16.590 * 60.30 [10:51:46]line = 1000.38 [10:51:46]line ÐДС 12% ÐСП 1% [10:51:46]line > о реализуемом товаре [10:51:46]line ОКРУГЛЕÐИЕ: -0.38 [10:51:46]line ИТОГО: 1000.00 [10:51:46]line ВнеÑено: 1000.00 [10:51:46]line СДÐЧÐ: 0.00 [10:51:46]line ÐСП 1% : 8.85 [10:51:46]line ÐДС 12% : 106.23 [10:51:46]line Ðаличными: 1000.00 [10:51:46]line Безнал.: 0.00 [10:51:46]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:51:46]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:51:46]line СÐО: Общий режим [10:51:46]line Чек 41 29.01.2024 10:51 [10:51:46]line Смена: 245 ФФД: 1.0 [10:51:46]line ЗÐМ: 0300000040 [10:51:46]line РÐМ: 0000000000092723 [10:51:46]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:51:46]line ФМ: 0000000000875060 [10:51:46]line ФД: 49058 [10:51:46]line ФПД: 201012752663392 [10:51:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T105157&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49058&fm=201012752663392&tin=02508201610067®Number=0000000000092723&sum=100000 [10:51:46]OFD Sender: Processing packet 49058 [packets to send 12, broken 11] [10:51:46]ProducePacketName [10:51:46]name=ofd_packets/00049058 [10:51:46]OFD Sender: To server: ‡•öpG, [10:51:46]CommunicateWithHost lk.salyk.kg:30040 [10:51:46]ConnectInit lk.salyk.kg [10:51:46]written 0, free lines is 4095 [10:51:46]Connected sock=10 [10:51:46]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 7C 07 01 14 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 29 00 00 00 F4 03 04 00 4D 83 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 B6 D1 ED B7 C3 60 14 84 CF BA CA 94 A2 A9 [10:51:46]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 6F D4 47 00 5E 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A2 BF 00 00 F4 03 04 00 46 2F B7 65 B6 04 01 00 00 D6 31 6F D4 38 0E 99 DA [10:51:46]CommunicateWithHost err = 0 [10:51:46]CheckOFDResponse [10:51:46]1017 (14) - 77093643461234 [10:51:46]1041 (16) - 0000000000875060 [10:51:46]1040 (4) - 49058 [10:51:46]1012 (4) - 29.01.2024 04:53 [10:51:46]1206 (1) - 0 [10:51:46]OFD Sender: Remove packet 49058 [10:51:46]ProducePacketName [10:51:46]name=ofd_packets/00049058 [10:51:46]NVStorageDeleteData [10:51:47]Write to MH i2c: 01 00 00 11 49 5A [10:51:47]Write i2c OK [10:51:47]MH_I2C_Read... [10:51:47]Read from MH i2c: 01 [10:51:47]MH_I2C_Read... [10:51:47]Read from MH i2c: 01 07 00 [10:51:47]MH_I2C_Read... [10:51:47]Read from MH i2c: 01 07 00 11 49 00 00 00 00 00 F3 0C 60 [10:51:47]RasterBufferAndPrint [10:51:47]line [10:51:47]line [10:51:47]line [10:51:47]line [10:51:47]line [10:51:47]written 0, free lines is 3321 [10:51:47]MH_Cut [10:51:47]Write to MH i2c: D1 01 00 18 49 01 33 [10:51:47]Write i2c OK [10:51:47]MH_I2C_Read... [10:51:47]Read from MH i2c: D1 [10:51:47]MH_I2C_Read... [10:51:47]Read from MH i2c: D1 01 00 [10:51:47]MH_I2C_Read... [10:51:47]Read from MH i2c: D1 01 00 18 49 00 32 [10:51:47]Write to MH i2c: 01 00 00 19 49 62 [10:51:47]Write i2c OK [10:51:47]MH_I2C_Read... [10:51:47]OFD Sender: No OFD packet to send [10:51:47]*** Cut start [10:51:47]*** Partial cut [10:51:47]*** CUTSNS_PIN = 1 [10:51:47]*** CUTSNS_PIN = 0 [10:51:47]*** Brake cut motor [10:51:48]Read from MH i2c: 01 [10:51:48]MH_I2C_Read... [10:51:48]*** Stop cut motor [10:51:48]*** Cut end [10:51:48]Read from MH i2c: 01 07 00 [10:51:48]MH_I2C_Read... [10:51:48]Read from MH i2c: 01 07 00 19 49 00 00 00 00 00 FF 0F 77 [10:51:48]process_action close_receipt done [10:51:48]requested_data is exist [10:51:48]produce_requested_data [10:51:48]requested_item fm.sn is exist - process it [10:51:48]wFMCommunicate request_size=4 [10:51:48]MH_SAM_APDU [10:51:48]CAPDU: 80 11 00 00 [10:51:48]Write to MH i2c: E2 08 00 1A 49 80 11 00 00 00 00 00 00 DD [10:51:48]Write i2c OK [10:51:48]MH_I2C_Read... [10:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:48]Read from MH i2c: E2 [10:51:48]MH_I2C_Read... [10:51:48]Read from MH i2c: E2 17 00 [10:51:48]MH_I2C_Read... [10:51:48]Read from MH i2c: E2 17 00 1A 49 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:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:51:48]wFMCommunicate OK [10:51:48]requested_item fd.num is exist - process it [10:51:48]SAM_PROTO_GetFieldsCounters [10:51:48]wFMCommunicate request_size=4 [10:51:48]MH_SAM_APDU [10:51:48]CAPDU: 80 13 00 00 [10:51:48]Write to MH i2c: E2 08 00 1B 49 80 13 00 00 00 00 00 00 E0 [10:51:48]Write i2c OK [10:51:48]MH_I2C_Read... [10:51:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:48]Read from MH i2c: E2 [10:51:48]MH_I2C_Read... [10:51:48]Read from MH i2c: E2 62 00 [10:51:48]MH_I2C_Read... [10:51:48]Read from MH i2c: E2 62 00 1B 49 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 BF 00 00 0E 04 04 00 F5 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 CA [10:51: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 A2 BF 00 00 0E 04 04 00 F5 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 [10:51:48]wFMCommunicate OK [10:51:48]SAM_PROTO_GetFieldsCounters done [10:51:48]requested_item shift.num is exist - process it [10:51:48]requested_item shift.opened is exist - process it [10:51:48]req_shift_opened [10:51:48]FM_GetShiftState [10:51:48]SAM_PROTO_GetShiftState [10:51:48]wFMCommunicate request_size=4 [10:51:48]MH_SAM_APDU [10:51:48]CAPDU: 80 13 01 00 [10:51:48]Write to MH i2c: E2 08 00 1C 49 80 13 01 00 00 00 00 00 E2 [10:51:48]Write i2c OK [10:51:48]MH_I2C_Read... [10:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:48]Read from MH i2c: E2 [10:51:48]MH_I2C_Read... [10:51:48]Read from MH i2c: E2 0E 00 [10:51:48]MH_I2C_Read... [10:51:48]Read from MH i2c: E2 0E 00 1C 49 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 54 [10:51:48]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:51:48]wFMCommunicate OK [10:51:48]SAM_PROTO_GetShiftState done [10:51:48]FM_GetShiftState done [10:51:48]req_shift_opened done [10:51:48]requested_item shift.open_date is exist - process it [10:51:48]req_shift_open_date [10:51:48]req_shift_open_date done [10:51:48]produce_requested_data done [10:51:48]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49058,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:51:48]process_action_free close_receipt [10:51:48]json_value_free [10:51:48]json_value_free done [10:51:48]process_json_proto returns [10:51:48]Send response to host [10:51:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49058,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:51:48]free response buf [10:51:48]execute_script done [10:51:48]execute_script returns [10:51:48]free content buf [10:51:48]Sock 7.Close socket [10:51:48]Sock 7.Thread stoped [10:51:52]OFD Sender: No OFD packet to send [10:51:57]OFD Sender: No OFD packet to send [10:52:02]OFD Sender: No OFD packet to send [10:52:07]OFD Sender: No OFD packet to send [10:52:12]OFD Sender: No OFD packet to send [10:52:17]OFD Sender: No OFD packet to send [10:52:22]OFD Sender: No OFD packet to send [10:52:27]OFD Sender: No OFD packet to send [10:52:32]OFD Sender: No OFD packet to send [10:52:37]OFD Sender: No OFD packet to send [10:52:42]OFD Sender: No OFD packet to send [10:52:47]OFD Sender: No OFD packet to send [10:52:52]OFD Sender: No OFD packet to send [10:52:57]OFD Sender: No OFD packet to send [10:53:02]OFD Sender: No OFD packet to send [10:53:07]OFD Sender: No OFD packet to send [10:53:12]OFD Sender: No OFD packet to send [10:53:17]OFD Sender: No OFD packet to send [10:53:22]OFD Sender: No OFD packet to send [10:53:27]OFD Sender: No OFD packet to send [10:53:32]OFD Sender: No OFD packet to send [10:53:37]OFD Sender: No OFD packet to send [10:53:42]OFD Sender: No OFD packet to send [10:53:47]OFD Sender: No OFD packet to send [10:53:52]OFD Sender: No OFD packet to send [10:53:57]OFD Sender: No OFD packet to send [10:54:02]OFD Sender: No OFD packet to send [10:54:07]OFD Sender: No OFD packet to send [10:54:12]OFD Sender: No OFD packet to send [10:54:17]OFD Sender: No OFD packet to send [10:54:22]OFD Sender: No OFD packet to send [10:54:27]OFD Sender: No OFD packet to send [10:54:32]OFD Sender: No OFD packet to send [10:54:37]OFD Sender: No OFD packet to send [10:54:42]OFD Sender: No OFD packet to send [10:54:47]OFD Sender: No OFD packet to send [10:54:52]OFD Sender: No OFD packet to send [10:54:57]OFD Sender: No OFD packet to send [10:55:02]OFD Sender: No OFD packet to send [10:55:07]OFD Sender: No OFD packet to send [10:55:12]OFD Sender: No OFD packet to send [10:55:17]OFD Sender: No OFD packet to send [10:55:22]OFD Sender: No OFD packet to send [10:55:25]accept exits with 9 [10:55:25]New connection [10:55:25]New thread 3066670436 created [10:55:25]Thread 3066813796 joined [10:55:25]Waiting for new connection... [10:55:25] Sock 9.Parse request [10:55:25]Sock 9.Check first char [10:55:25]Sock 9.First char is OK [10:55:25]request: POST /json_proto HTTP/1.0 [10:55:25]Method: POST [10:55:25]URL: /json_proto [10:55:25]Method is POST - this is cgi request [10:55:25]url: /json_proto [10:55:25]query_string will be loaded in cgi processing [10:55:25]execute_cgi json_proto POST (null) [10:55:25]execute_cgi path=json_proto method=POST [10:55:25]POST find Content-Length [10:55:25]Host: 172.17.56.67:8080 [10:55:25]Content-Length: 677 [10:55:25]Content-Type: application/json [10:55:25] [10:55:25]POST finish read [10:55:25]Found Content-Length = 677 [10:55:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216159", "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.480, "sum" : 270.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:25]execute_script... [10:55: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)216159", "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.480, "sum" : 270.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:25]POST & json_proto [10:55:25]process_json_proto [10:55:25]json parsed OK: [10:55:25]protocol is kg_v1.0 [10:55:25]action value=close_receipt [10:55:25]process_action close_receipt [10:55:25]cmd_close_receipt [10:55:25]MH_GetDate [10:55:25]Write to MH i2c: F0 00 00 1D 49 55 [10:55:25]Write i2c OK [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: F0 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: F0 09 00 [10:55:25]MH_I2C_Read... [10:55:25]Read from MH i2c: F0 09 00 1D 49 00 2A 84 B7 65 26 5D 9E 65 AE [10:55:25]GetLastDocTimeStamp 1706525517 [10:55:25]current date 1706525738 [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 1E 49 80 13 01 00 00 00 00 00 E4 [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 1E 49 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 56 [10:55:25]RAPDU: 09 00 01 60 EB B6 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]opened in 1706486624 [10:55:25]opened+sec_in_day 1706573024 [10:55:25]quantity*price = 27014 [10:55:25]sum+1 = 27015 [10:55:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.14 ИТОГО: 270.00 ВнеÑено: 270.00 СДÐЧÐ: 0.00 ÐСП 1% : 2.39 ÐДС 12% : 28.69 Ðаличными: 270.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 42 29.01.2024 10:55 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49059 ФПД: 15754249678173 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T105538&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49059&fm=15754249678173&tin=02508201610067®Number=0000000000092723&sum=27000 [10:55:26]StoreToDocumentArchive [10:55:26]shift 245 fd 49059 [10:55:26]save to /storage/0245/doc_00049059 [10:55:26]save last doc name /storage/0245/doc_00049059 to /storage/kkm_last_doc_name [10:55:26]save OK [10:55:26]Clear old archive folders... [10:55:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:26]tlvbuf is 0121E350 [10:55:26]SAM_PROTO_ClearQueue [10:55:26]wFMCommunicate request_size=4 [10:55:26]MH_SAM_APDU [10:55:26]CAPDU: 80 09 00 00 [10:55:26]Write to MH i2c: E2 08 00 2B 49 80 09 00 00 00 00 00 00 E6 [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:26]Read from MH i2c: E2 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 03 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 03 00 2B 49 00 90 00 E8 [10:55:26]RAPDU: 90 00 [10:55:26]wFMCommunicate OK [10:55:26]SAM_PROTO_ClearQueue done [10:55:26]KKMCreateOFDPacket [10:55:26]OFDProtocolAddRootSTLVToBuf [10:55:26]FM_MakeSignedData [10:55:26]FM_MakeSignedData [10:55:26]SAM_PROTO_SignData [10:55:26]wFMCommunicate request_size=4 [10:55:26]MH_SAM_APDU [10:55:26]CAPDU: 80 0D 01 02 [10:55:26]Write to MH i2c: E2 08 00 2C 49 80 0D 01 02 00 00 00 00 EE [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:26]Read from MH i2c: E2 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 03 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 03 00 2C 49 00 90 00 E9 [10:55:26]RAPDU: 90 00 [10:55:26]wFMCommunicate OK [10:55:26]wFMCommunicate request_size=255 [10:55:26]MH_SAM_APDU [10:55: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 80 11 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 86 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 2A 84 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 0E [10:55:26]Write to MH i2c: E2 02 01 2D 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 86 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 2A 84 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 0E 00 00 5F [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:26]Read from MH i2c: E2 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 03 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 03 00 2D 49 00 90 00 EA [10:55:26]RAPDU: 90 00 [10:55:26]wFMCommunicate OK [10:55:26]wFMCommunicate request_size=10 [10:55:26]MH_SAM_APDU [10:55:26]CAPDU: 80 0D 02 02 05 54 12 74 AD 5D [10:55:26]Write to MH i2c: E2 0D 00 2E 49 80 0D 02 02 05 00 54 12 74 AD 5D 00 00 DF [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:26]Read from MH i2c: E2 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 03 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 03 00 2E 49 00 90 00 EB [10:55:26]RAPDU: 90 00 [10:55:26]wFMCommunicate OK [10:55:26]wFMCommunicate request_size=4 [10:55:26]MH_SAM_APDU [10:55:26]CAPDU: 80 0D 03 02 [10:55:26]Write to MH i2c: E2 08 00 2F 49 80 0D 03 02 00 00 00 00 F3 [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:26]Read from MH i2c: E2 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 0B 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 0B 00 2F 49 00 E5 1A 65 D3 59 8C AB 4F 90 00 0A [10:55:26]RAPDU: E5 1A 65 D3 59 8C AB 4F 90 00 [10:55:26]wFMCommunicate OK [10:55:26]SAM_PROTO_SignData done [10:55:26]FM_MakeSignedData done [10:55:26]CreateOFDProtocolMessage [10:55:26]wFMCommunicate request_size=4 [10:55:26]MH_SAM_APDU [10:55:26]CAPDU: 80 11 00 00 [10:55:26]Write to MH i2c: E2 08 00 30 49 80 11 00 00 00 00 00 00 F3 [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:26]Read from MH i2c: E2 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 17 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: E2 17 00 30 49 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:55: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:55:26]wFMCommunicate OK [10:55:26]CreateOFDProtocolMessage done [10:55:26]OFDSenderStorePacket 49059 [10:55:26]StoreOFDPacket docnum=49059 [10:55: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 0F 01 00 00 23 C1 07 01 DC 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 86 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 2A 84 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 0E 54 12 74 AD 5D E5 1A 65 D3 59 8C AB 4F [10:55:26]CheckFolder [10:55:26]dirname=/storage/ofd_packets [10:55:26]CheckFolder done [10:55:26]ProducePacketName [10:55:26]name=ofd_packets/00049059 [10:55:26]NVStorageSaveData ofd_packets/00049059 [10:55:26]File name is /storage/ofd_packets/00049059 [10:55:26]Write 301 bytes [10:55:26]NVStorageSaveData done [10:55:26]OFDSenderStorePacket done [10:55:26]KKMCreateOFDPacket done [10:55:26]NVStorageSaveData kkm_last_timestamp [10:55:26]File name is /storage/kkm_last_timestamp [10:55:26]Write 4 bytes [10:55:26]NVStorageSaveData done [10:55:26]ExternCall_PrintAddStr [10:55:26]wPrintStart [10:55:26]Write to MH i2c: 01 00 00 31 49 7A [10:55:26]Write i2c OK [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: 01 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: 01 07 00 [10:55:26]MH_I2C_Read... [10:55:26]Read from MH i2c: 01 07 00 31 49 00 00 00 00 00 FF 0F 8F [10:55:26]RasterBufferAndPrint [10:55:26]line Счет N : (1)216159 [10:55:26]line ИÐÐ: 02508201610067 [10:55:26]line Контрольно-КаÑÑовый Чек [10:55:26]line ПРОДÐЖР[10:55:26]line ТРК (МРК, ГÐК) : 22 [10:55:26]line Товар: 2710124130 [10:55:26]line Ðи-92-К-5 [10:55:26]line 4.480 * 60.30 [10:55:26]line = 270.14 [10:55:26]line ÐДС 12% ÐСП 1% [10:55:26]line > о реализуемом товаре [10:55:26]line ОКРУГЛЕÐИЕ: -0.14 [10:55:26]line ИТОГО: 270.00 [10:55:26]line ВнеÑено: 270.00 [10:55:26]line СДÐЧÐ: 0.00 [10:55:26]line ÐСП 1% : 2.39 [10:55:26]line ÐДС 12% : 28.69 [10:55:26]line Ðаличными: 270.00 [10:55:26]line Безнал.: 0.00 [10:55:26]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:55:26]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:55:26]line СÐО: Общий режим [10:55:26]line Чек 42 29.01.2024 10:55 [10:55:26]line Смена: 245 ФФД: 1.0 [10:55:26]line ЗÐМ: 0300000040 [10:55:26]line РÐМ: 0000000000092723 [10:55:26]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:55:26]line ФМ: 0000000000875060 [10:55:26]line ФД: 49059 [10:55:26]line ФПД: 15754249678173 [10:55:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T105538&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49059&fm=15754249678173&tin=02508201610067®Number=0000000000092723&sum=27000 [10:55:27]OFD Sender: Processing packet 49059 [packets to send 12, broken 11] [10:55:27]ProducePacketName [10:55:27]name=ofd_packets/00049059 [10:55:27]OFD Sender: To server: ‡•öpG, [10:55:27]CommunicateWithHost lk.salyk.kg:30040 [10:55:27]ConnectInit lk.salyk.kg [10:55:27]written 0, free lines is 4095 [10:55:27]Connected sock=10 [10:55: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 23 C1 07 01 DC 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 86 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 2A 84 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 0E 54 12 74 AD 5D E5 1A 65 D3 59 8C AB 4F [10:55: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 D1 4E 47 00 AB 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A3 BF 00 00 F4 03 04 00 23 30 B7 65 B6 04 01 00 00 E5 23 C3 1B F9 CD BF 8E [10:55:27]CommunicateWithHost err = 0 [10:55:27]CheckOFDResponse [10:55:27]1017 (14) - 77093643461234 [10:55:27]1041 (16) - 0000000000875060 [10:55:27]1040 (4) - 49059 [10:55:27]1012 (4) - 29.01.2024 04:57 [10:55:27]1206 (1) - 0 [10:55:27]OFD Sender: Remove packet 49059 [10:55:27]ProducePacketName [10:55:27]name=ofd_packets/00049059 [10:55:27]NVStorageDeleteData [10:55:27]Write to MH i2c: 01 00 00 5C 49 A5 [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: 01 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: 01 07 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: 01 07 00 5C 49 00 00 00 00 00 F4 0C AC [10:55:27]RasterBufferAndPrint [10:55:27]line [10:55:27]line [10:55:27]line [10:55:27]line [10:55:27]line [10:55:27]written 0, free lines is 3322 [10:55:27]MH_Cut [10:55:27]Write to MH i2c: D1 01 00 63 49 01 7E [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: D1 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: D1 01 00 [10:55:27]MH_I2C_Read... [10:55:27]Read from MH i2c: D1 01 00 63 49 00 7D [10:55:27]Write to MH i2c: 01 00 00 64 49 AD [10:55:27]Write i2c OK [10:55:27]MH_I2C_Read... [10:55:28]OFD Sender: No OFD packet to send [10:55:28]*** Cut start [10:55:28]*** Partial cut [10:55:28]*** CUTSNS_PIN = 1 [10:55:28]*** CUTSNS_PIN = 0 [10:55:28]*** Brake cut motor [10:55:28]Read from MH i2c: 01 [10:55:28]MH_I2C_Read... [10:55:28]*** Stop cut motor [10:55:28]*** Cut end [10:55:28]Read from MH i2c: 01 07 00 [10:55:28]MH_I2C_Read... [10:55:28]Read from MH i2c: 01 07 00 64 49 00 00 00 00 00 FF 0F C2 [10:55:28]process_action close_receipt done [10:55:28]requested_data is exist [10:55:28]produce_requested_data [10:55:28]requested_item fm.sn is exist - process it [10:55:28]wFMCommunicate request_size=4 [10:55:28]MH_SAM_APDU [10:55:28]CAPDU: 80 11 00 00 [10:55:28]Write to MH i2c: E2 08 00 65 49 80 11 00 00 00 00 00 00 28 [10:55:28]Write i2c OK [10:55:28]MH_I2C_Read... [10:55:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:29]Read from MH i2c: E2 [10:55:29]MH_I2C_Read... [10:55:29]Read from MH i2c: E2 17 00 [10:55:29]MH_I2C_Read... [10:55:29]Read from MH i2c: E2 17 00 65 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 75 [10:55:29]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:29]wFMCommunicate OK [10:55:29]requested_item fd.num is exist - process it [10:55:29]SAM_PROTO_GetFieldsCounters [10:55:29]wFMCommunicate request_size=4 [10:55:29]MH_SAM_APDU [10:55:29]CAPDU: 80 13 00 00 [10:55:29]Write to MH i2c: E2 08 00 66 49 80 13 00 00 00 00 00 00 2B [10:55:29]Write i2c OK [10:55:29]MH_I2C_Read... [10:55:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:29]Read from MH i2c: E2 [10:55:29]MH_I2C_Read... [10:55:29]Read from MH i2c: E2 62 00 [10:55:29]MH_I2C_Read... [10:55:29]Read from MH i2c: E2 62 00 66 49 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 BF 00 00 0E 04 04 00 F5 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 19 [10:55: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 A3 BF 00 00 0E 04 04 00 F5 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 [10:55:29]wFMCommunicate OK [10:55:29]SAM_PROTO_GetFieldsCounters done [10:55:29]requested_item shift.num is exist - process it [10:55:29]requested_item shift.opened is exist - process it [10:55:29]req_shift_opened [10:55:29]FM_GetShiftState [10:55:29]SAM_PROTO_GetShiftState [10:55:29]wFMCommunicate request_size=4 [10:55:29]MH_SAM_APDU [10:55:29]CAPDU: 80 13 01 00 [10:55:29]Write to MH i2c: E2 08 00 67 49 80 13 01 00 00 00 00 00 2D [10:55:29]Write i2c OK [10:55:29]MH_I2C_Read... [10:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:29]Read from MH i2c: E2 [10:55:29]MH_I2C_Read... [10:55:29]Read from MH i2c: E2 0E 00 [10:55:29]MH_I2C_Read... [10:55:29]Read from MH i2c: E2 0E 00 67 49 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 9F [10:55:29]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:55:29]wFMCommunicate OK [10:55:29]SAM_PROTO_GetShiftState done [10:55:29]FM_GetShiftState done [10:55:29]req_shift_opened done [10:55:29]requested_item shift.open_date is exist - process it [10:55:29]req_shift_open_date [10:55:29]req_shift_open_date done [10:55:29]produce_requested_data done [10:55:29]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49059,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:55:29]process_action_free close_receipt [10:55:29]json_value_free [10:55:29]json_value_free done [10:55:29]process_json_proto returns [10:55:29]Send response to host [10:55:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49059,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:55:29]free response buf [10:55:29]execute_script done [10:55:29]execute_script returns [10:55:29]free content buf [10:55:29]Sock 9.Close socket [10:55:29]Sock 9.Thread stoped [10:55:33]OFD Sender: No OFD packet to send [10:55:38]OFD Sender: No OFD packet to send [10:55:43]OFD Sender: No OFD packet to send [10:55:47]accept exits with 7 [10:55:47]New connection [10:55:47]New thread 3066813796 created [10:55:47]Thread 3066670436 joined [10:55:47]Waiting for new connection... [10:55:47] Sock 7.Parse request [10:55:47]Sock 7.Check first char [10:55:47]Sock 7.First char is OK [10:55:47]request: POST /json_proto HTTP/1.0 [10:55:47]Method: POST [10:55:47]URL: /json_proto [10:55:47]Method is POST - this is cgi request [10:55:47]url: /json_proto [10:55:47]query_string will be loaded in cgi processing [10:55:47]execute_cgi json_proto POST (null) [10:55:47]execute_cgi path=json_proto method=POST [10:55:47]POST find Content-Length [10:55:47]Host: 172.17.56.67:8080 [10:55:47]Content-Length: 677 [10:55:47]Content-Type: application/json [10:55:47] [10:55:47]POST finish read [10:55:47]Found Content-Length = 677 [10:55:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216160", "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:55:47]execute_script... [10:55: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)216160", "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:55:47]POST & json_proto [10:55:47]process_json_proto [10:55:47]json parsed OK: [10:55:47]protocol is kg_v1.0 [10:55:47]action value=close_receipt [10:55:47]process_action close_receipt [10:55:47]cmd_close_receipt [10:55:47]MH_GetDate [10:55:47]Write to MH i2c: F0 00 00 68 49 A0 [10:55:47]Write i2c OK [10:55:47]MH_I2C_Read... [10:55:47]Read from MH i2c: F0 [10:55:47]MH_I2C_Read... [10:55:47]Read from MH i2c: F0 09 00 [10:55:47]MH_I2C_Read... [10:55:47]Read from MH i2c: F0 09 00 68 49 00 40 84 B7 65 26 5D 9E 65 0F [10:55:47]GetLastDocTimeStamp 1706525738 [10:55:47]current date 1706525760 [10:55:47]FM_GetShiftState [10:55:47]SAM_PROTO_GetShiftState [10:55:47]wFMCommunicate request_size=4 [10:55:47]MH_SAM_APDU [10:55:47]CAPDU: 80 13 01 00 [10:55:47]Write to MH i2c: E2 08 00 69 49 80 13 01 00 00 00 00 00 2F [10:55:47]Write i2c OK [10:55:47]MH_I2C_Read... [10:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:47]Read from MH i2c: E2 [10:55:47]MH_I2C_Read... [10:55:47]Read from MH i2c: E2 0E 00 [10:55:47]MH_I2C_Read... [10:55:47]Read from MH i2c: E2 0E 00 69 49 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 A1 [10:55:47]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:55:47]wFMCommunicate OK [10:55:47]SAM_PROTO_GetShiftState done [10:55:47]FM_GetShiftState done [10:55:47]opened in 1706486624 [10:55:47]opened+sec_in_day 1706573024 [10:55:47]quantity*price = 20019 [10:55:47]sum+1 = 20021 [10:55:47]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 СÐО: Общий режим Чек 43 29.01.2024 10:56 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49060 ФПД: 202208065706207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T105600&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49060&fm=202208065706207&tin=02508201610067®Number=0000000000092723&sum=20000 [10:55:48]StoreToDocumentArchive [10:55:48]shift 245 fd 49060 [10:55:48]save to /storage/0245/doc_00049060 [10:55:48]save last doc name /storage/0245/doc_00049060 to /storage/kkm_last_doc_name [10:55:48]save OK [10:55:48]Clear old archive folders... [10:55:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:48]tlvbuf is 0128D2E0 [10:55:48]SAM_PROTO_ClearQueue [10:55:48]wFMCommunicate request_size=4 [10:55:48]MH_SAM_APDU [10:55:48]CAPDU: 80 09 00 00 [10:55:48]Write to MH i2c: E2 08 00 76 49 80 09 00 00 00 00 00 00 31 [10:55:48]Write i2c OK [10:55:48]MH_I2C_Read... [10:55:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:48]Read from MH i2c: E2 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 03 00 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 03 00 76 49 00 90 00 33 [10:55:48]RAPDU: 90 00 [10:55:48]wFMCommunicate OK [10:55:48]SAM_PROTO_ClearQueue done [10:55:48]KKMCreateOFDPacket [10:55:48]OFDProtocolAddRootSTLVToBuf [10:55:48]FM_MakeSignedData [10:55:48]FM_MakeSignedData [10:55:48]SAM_PROTO_SignData [10:55:48]wFMCommunicate request_size=4 [10:55:48]MH_SAM_APDU [10:55:48]CAPDU: 80 0D 01 02 [10:55:48]Write to MH i2c: E2 08 00 77 49 80 0D 01 02 00 00 00 00 39 [10:55:48]Write i2c OK [10:55:48]MH_I2C_Read... [10:55:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:48]Read from MH i2c: E2 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 03 00 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 03 00 77 49 00 90 00 34 [10:55:48]RAPDU: 90 00 [10:55:48]wFMCommunicate OK [10:55:48]wFMCommunicate request_size=255 [10:55:48]MH_SAM_APDU [10:55: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 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 2B 00 00 00 F4 03 04 00 40 84 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 B7 [10:55:48]Write to MH i2c: E2 02 01 78 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2B 00 00 00 F4 03 04 00 40 84 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 B7 00 00 63 [10:55:48]Write i2c OK [10:55:48]MH_I2C_Read... [10:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:48]Read from MH i2c: E2 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 03 00 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 03 00 78 49 00 90 00 35 [10:55:48]RAPDU: 90 00 [10:55:48]wFMCommunicate OK [10:55:48]wFMCommunicate request_size=10 [10:55:48]MH_SAM_APDU [10:55:48]CAPDU: 80 0D 02 02 05 E8 3B ED 58 DF [10:55:48]Write to MH i2c: E2 0D 00 79 49 80 0D 02 02 05 00 E8 3B ED 58 DF 00 00 8D [10:55:48]Write i2c OK [10:55:48]MH_I2C_Read... [10:55:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:48]Read from MH i2c: E2 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 03 00 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 03 00 79 49 00 90 00 36 [10:55:48]RAPDU: 90 00 [10:55:48]wFMCommunicate OK [10:55:48]wFMCommunicate request_size=4 [10:55:48]MH_SAM_APDU [10:55:48]CAPDU: 80 0D 03 02 [10:55:48]Write to MH i2c: E2 08 00 7A 49 80 0D 03 02 00 00 00 00 3E [10:55:48]Write i2c OK [10:55:48]MH_I2C_Read... [10:55:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:48]Read from MH i2c: E2 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 0B 00 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 0B 00 7A 49 00 A1 5A B3 9B EB D5 9E DF 90 00 C5 [10:55:48]RAPDU: A1 5A B3 9B EB D5 9E DF 90 00 [10:55:48]wFMCommunicate OK [10:55:48]SAM_PROTO_SignData done [10:55:48]FM_MakeSignedData done [10:55:48]CreateOFDProtocolMessage [10:55:48]wFMCommunicate request_size=4 [10:55:48]MH_SAM_APDU [10:55:48]CAPDU: 80 11 00 00 [10:55:48]Write to MH i2c: E2 08 00 7B 49 80 11 00 00 00 00 00 00 3E [10:55:48]Write i2c OK [10:55:48]MH_I2C_Read... [10:55:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:48]Read from MH i2c: E2 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 17 00 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: E2 17 00 7B 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8B [10:55:48]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:48]wFMCommunicate OK [10:55:48]CreateOFDProtocolMessage done [10:55:48]OFDSenderStorePacket 49060 [10:55:48]StoreOFDPacket docnum=49060 [10:55: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 57 58 07 01 00 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 2B 00 00 00 F4 03 04 00 40 84 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 B7 E8 3B ED 58 DF A1 5A B3 9B EB D5 9E DF [10:55:48]CheckFolder [10:55:48]dirname=/storage/ofd_packets [10:55:48]CheckFolder done [10:55:48]ProducePacketName [10:55:48]name=ofd_packets/00049060 [10:55:48]NVStorageSaveData ofd_packets/00049060 [10:55:48]File name is /storage/ofd_packets/00049060 [10:55:48]Write 301 bytes [10:55:48]NVStorageSaveData done [10:55:48]OFDSenderStorePacket done [10:55:48]KKMCreateOFDPacket done [10:55:48]NVStorageSaveData kkm_last_timestamp [10:55:48]File name is /storage/kkm_last_timestamp [10:55:48]Write 4 bytes [10:55:48]NVStorageSaveData done [10:55:48]ExternCall_PrintAddStr [10:55:48]wPrintStart [10:55:48]Write to MH i2c: 01 00 00 7C 49 C5 [10:55:48]Write i2c OK [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: 01 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: 01 07 00 [10:55:48]MH_I2C_Read... [10:55:48]Read from MH i2c: 01 07 00 7C 49 00 00 00 00 00 FF 0F DA [10:55:48]RasterBufferAndPrint [10:55:48]line Счет N : (1)216160 [10:55:48]line ИÐÐ: 02508201610067 [10:55:48]line Контрольно-КаÑÑовый Чек [10:55:48]line ПРОДÐЖР[10:55:48]line ТРК (МРК, ГÐК) : 12 [10:55:48]line Товар: 2710124130 [10:55:48]line Ðи-92-К-5 [10:55:48]line 3.320 * 60.30 [10:55:48]line = 200.20 [10:55:48]line ÐДС 12% ÐСП 1% [10:55:48]line > о реализуемом товаре [10:55:48]line ОКРУГЛЕÐИЕ: -0.20 [10:55:48]line ИТОГО: 200.00 [10:55:48]line ВнеÑено: 200.00 [10:55:48]line СДÐЧÐ: 0.00 [10:55:48]line ÐСП 1% : 1.77 [10:55:48]line ÐДС 12% : 21.26 [10:55:48]line Ðаличными: 200.00 [10:55:48]line Безнал.: 0.00 [10:55:48]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:55:48]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:55:48]line СÐО: Общий режим [10:55:48]line Чек 43 29.01.2024 10:56 [10:55:48]line Смена: 245 ФФД: 1.0 [10:55:48]line ЗÐМ: 0300000040 [10:55:48]line РÐМ: 0000000000092723 [10:55:48]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:55:48]line ФМ: 0000000000875060 [10:55:48]line ФД: 49060 [10:55:48]line ФПД: 202208065706207 [10:55:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T105600&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49060&fm=202208065706207&tin=02508201610067®Number=0000000000092723&sum=20000 [10:55:49]OFD Sender: Processing packet 49060 [packets to send 12, broken 11] [10:55:49]ProducePacketName [10:55:49]name=ofd_packets/00049060 [10:55:49]OFD Sender: To server: ‡•öpG, [10:55:49]CommunicateWithHost lk.salyk.kg:30040 [10:55:49]ConnectInit lk.salyk.kg [10:55:49]written 0, free lines is 4095 [10:55:49]Connected sock=10 [10:55: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 57 58 07 01 00 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 2B 00 00 00 F4 03 04 00 40 84 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 B7 E8 3B ED 58 DF A1 5A B3 9B EB D5 9E DF [10:55: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 FC 6A 47 00 92 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 A4 BF 00 00 F4 03 04 00 39 30 B7 65 B6 04 01 00 00 84 08 EF BA 14 51 C6 D3 [10:55:49]CommunicateWithHost err = 0 [10:55:49]CheckOFDResponse [10:55:49]1017 (14) - 77093643461234 [10:55:49]1041 (16) - 0000000000875060 [10:55:49]1040 (4) - 49060 [10:55:49]1012 (4) - 29.01.2024 04:57 [10:55:49]1206 (1) - 0 [10:55:49]OFD Sender: Remove packet 49060 [10:55:49]ProducePacketName [10:55:49]name=ofd_packets/00049060 [10:55:49]NVStorageDeleteData [10:55:49]Write to MH i2c: 01 00 00 A7 49 F0 [10:55:49]Write i2c OK [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: 01 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: 01 07 00 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: 01 07 00 A7 49 00 00 00 00 00 F6 0C F9 [10:55:49]RasterBufferAndPrint [10:55:49]line [10:55:49]line [10:55:49]line [10:55:49]line [10:55:49]line [10:55:49]written 0, free lines is 3324 [10:55:49]MH_Cut [10:55:49]Write to MH i2c: D1 01 00 AE 49 01 C9 [10:55:49]Write i2c OK [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: D1 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: D1 01 00 [10:55:49]MH_I2C_Read... [10:55:49]Read from MH i2c: D1 01 00 AE 49 00 C8 [10:55:49]Write to MH i2c: 01 00 00 AF 49 F8 [10:55:49]Write i2c OK [10:55:49]MH_I2C_Read... [10:55:50]OFD Sender: No OFD packet to send [10:55:50]*** Cut start [10:55:50]*** Partial cut [10:55:50]*** CUTSNS_PIN = 1 [10:55:50]*** CUTSNS_PIN = 0 [10:55:50]*** Brake cut motor [10:55:51]Read from MH i2c: 01 [10:55:51]MH_I2C_Read... [10:55:51]*** Stop cut motor [10:55:51]*** Cut end [10:55:51]Read from MH i2c: 01 07 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: 01 07 00 AF 49 00 00 00 00 00 FF 0F 0D [10:55:51]process_action close_receipt done [10:55:51]requested_data is exist [10:55:51]produce_requested_data [10:55:51]requested_item fm.sn is exist - process it [10:55:51]wFMCommunicate request_size=4 [10:55:51]MH_SAM_APDU [10:55:51]CAPDU: 80 11 00 00 [10:55:51]Write to MH i2c: E2 08 00 B0 49 80 11 00 00 00 00 00 00 73 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:51]Read from MH i2c: E2 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 17 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 17 00 B0 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C0 [10:55: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:55:51]wFMCommunicate OK [10:55:51]requested_item fd.num is exist - process it [10:55:51]SAM_PROTO_GetFieldsCounters [10:55:51]wFMCommunicate request_size=4 [10:55:51]MH_SAM_APDU [10:55:51]CAPDU: 80 13 00 00 [10:55:51]Write to MH i2c: E2 08 00 B1 49 80 13 00 00 00 00 00 00 76 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:51]Read from MH i2c: E2 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 62 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 62 00 B1 49 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 BF 00 00 0E 04 04 00 F5 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 68 [10:55: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 A4 BF 00 00 0E 04 04 00 F5 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 [10:55:51]wFMCommunicate OK [10:55:51]SAM_PROTO_GetFieldsCounters done [10:55:51]requested_item shift.num is exist - process it [10:55:51]requested_item shift.opened is exist - process it [10:55:51]req_shift_opened [10:55:51]FM_GetShiftState [10:55:51]SAM_PROTO_GetShiftState [10:55:51]wFMCommunicate request_size=4 [10:55:51]MH_SAM_APDU [10:55:51]CAPDU: 80 13 01 00 [10:55:51]Write to MH i2c: E2 08 00 B2 49 80 13 01 00 00 00 00 00 78 [10:55:51]Write i2c OK [10:55:51]MH_I2C_Read... [10:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:51]Read from MH i2c: E2 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 0E 00 [10:55:51]MH_I2C_Read... [10:55:51]Read from MH i2c: E2 0E 00 B2 49 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 EA [10:55:51]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:55:51]wFMCommunicate OK [10:55:51]SAM_PROTO_GetShiftState done [10:55:51]FM_GetShiftState done [10:55:51]req_shift_opened done [10:55:51]requested_item shift.open_date is exist - process it [10:55:51]req_shift_open_date [10:55:51]req_shift_open_date done [10:55:51]produce_requested_data done [10:55:51]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49060,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:55:51]process_action_free close_receipt [10:55:51]json_value_free [10:55:51]json_value_free done [10:55:51]process_json_proto returns [10:55:51]Send response to host [10:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49060,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:55:51]free response buf [10:55:51]execute_script done [10:55:51]execute_script returns [10:55:51]free content buf [10:55:51]Sock 7.Close socket [10:55:51]Sock 7.Thread stoped [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:38]accept exits with 9 [10:59:38]New connection [10:59:38]New thread 3066670436 created [10:59:38]Thread 3066813796 joined [10:59:38]Waiting for new connection... [10:59:38] Sock 9.Parse request [10:59:38]Sock 9.Check first char [10:59:38]Sock 9.First char is OK [10:59:38]request: POST /json_proto HTTP/1.0 [10:59:38]Method: POST [10:59:38]URL: /json_proto [10:59:38]Method is POST - this is cgi request [10:59:38]url: /json_proto [10:59:38]query_string will be loaded in cgi processing [10:59:38]execute_cgi json_proto POST (null) [10:59:38]execute_cgi path=json_proto method=POST [10:59:38]POST find Content-Length [10:59:38]Host: 172.17.56.67:8080 [10:59:38]Content-Length: 677 [10:59:38]Content-Type: application/json [10:59:38] [10:59:38]POST finish read [10:59:38]Found Content-Length = 677 [10:59:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216161", "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:59:38]execute_script... [10:59: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)216161", "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:59:38]POST & json_proto [10:59:38]process_json_proto [10:59:38]json parsed OK: [10:59:38]protocol is kg_v1.0 [10:59:38]action value=close_receipt [10:59:38]process_action close_receipt [10:59:38]cmd_close_receipt [10:59:38]MH_GetDate [10:59:38]Write to MH i2c: F0 00 00 B3 49 EB [10:59:38]Write i2c OK [10:59:38]MH_I2C_Read... [10:59:38]Read from MH i2c: F0 [10:59:38]MH_I2C_Read... [10:59:38]Read from MH i2c: F0 09 00 [10:59:38]MH_I2C_Read... [10:59:38]Read from MH i2c: F0 09 00 B3 49 00 27 85 B7 65 26 5D 9E 65 42 [10:59:38]GetLastDocTimeStamp 1706525760 [10:59:38]current date 1706525991 [10:59:38]FM_GetShiftState [10:59:38]SAM_PROTO_GetShiftState [10:59:38]wFMCommunicate request_size=4 [10:59:38]MH_SAM_APDU [10:59:38]CAPDU: 80 13 01 00 [10:59:38]Write to MH i2c: E2 08 00 B4 49 80 13 01 00 00 00 00 00 7A [10:59:38]Write i2c OK [10:59:38]MH_I2C_Read... [10:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:38]Read from MH i2c: E2 [10:59:38]MH_I2C_Read... [10:59:38]Read from MH i2c: E2 0E 00 [10:59:38]MH_I2C_Read... [10:59:38]Read from MH i2c: E2 0E 00 B4 49 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 EC [10:59:38]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:59:38]wFMCommunicate OK [10:59:38]SAM_PROTO_GetShiftState done [10:59:38]FM_GetShiftState done [10:59:38]opened in 1706486624 [10:59:38]opened+sec_in_day 1706573024 [10:59:38]quantity*price = 30029 [10:59:38]sum+1 = 30030 [10:59: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 СÐО: Общий режим Чек 44 29.01.2024 10:59 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49061 ФПД: 83402785967790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T105951&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49061&fm=83402785967790&tin=02508201610067®Number=0000000000092723&sum=30000 [10:59:39]StoreToDocumentArchive [10:59:39]shift 245 fd 49061 [10:59:39]save to /storage/0245/doc_00049061 [10:59:39]save last doc name /storage/0245/doc_00049061 to /storage/kkm_last_doc_name [10:59:39]save OK [10:59:39]Clear old archive folders... [10:59:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:39]tlvbuf is 01210C00 [10:59:39]SAM_PROTO_ClearQueue [10:59:39]wFMCommunicate request_size=4 [10:59:39]MH_SAM_APDU [10:59:39]CAPDU: 80 09 00 00 [10:59:39]Write to MH i2c: E2 08 00 C1 49 80 09 00 00 00 00 00 00 7C [10:59:39]Write i2c OK [10:59:39]MH_I2C_Read... [10:59:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:39]Read from MH i2c: E2 [10:59:39]MH_I2C_Read... [10:59:39]Read from MH i2c: E2 03 00 [10:59:39]MH_I2C_Read... [10:59:39]Read from MH i2c: E2 03 00 C1 49 00 90 00 7E [10:59:39]RAPDU: 90 00 [10:59:39]wFMCommunicate OK [10:59:39]SAM_PROTO_ClearQueue done [10:59:39]KKMCreateOFDPacket [10:59:39]OFDProtocolAddRootSTLVToBuf [10:59:39]FM_MakeSignedData [10:59:39]FM_MakeSignedData [10:59:39]SAM_PROTO_SignData [10:59:39]wFMCommunicate request_size=4 [10:59:39]MH_SAM_APDU [10:59:39]CAPDU: 80 0D 01 02 [10:59:39]Write to MH i2c: E2 08 00 C2 49 80 0D 01 02 00 00 00 00 84 [10:59:39]Write i2c OK [10:59:39]MH_I2C_Read... [10:59:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:39]Read from MH i2c: E2 [10:59:39]MH_I2C_Read... [10:59:39]Read from MH i2c: E2 03 00 [10:59:39]MH_I2C_Read... [10:59:39]Read from MH i2c: E2 03 00 C2 49 00 90 00 7F [10:59:39]RAPDU: 90 00 [10:59:39]wFMCommunicate OK [10:59:39]wFMCommunicate request_size=255 [10:59:39]MH_SAM_APDU [10:59: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 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 2C 00 00 00 F4 03 04 00 27 85 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 4B [10:59:39]Write to MH i2c: E2 02 01 C3 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2C 00 00 00 F4 03 04 00 27 85 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 4B 00 00 E2 [10:59:39]Write i2c OK [10:59:39]MH_I2C_Read... [10:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:40]Read from MH i2c: E2 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 03 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 03 00 C3 49 00 90 00 80 [10:59:40]RAPDU: 90 00 [10:59:40]wFMCommunicate OK [10:59:40]wFMCommunicate request_size=10 [10:59:40]MH_SAM_APDU [10:59:40]CAPDU: 80 0D 02 02 05 DA B9 6E 4E AE [10:59:40]Write to MH i2c: E2 0D 00 C4 49 80 0D 02 02 05 00 DA B9 6E 4E AE 00 00 8E [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:40]Read from MH i2c: E2 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 03 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 03 00 C4 49 00 90 00 81 [10:59:40]RAPDU: 90 00 [10:59:40]wFMCommunicate OK [10:59:40]wFMCommunicate request_size=4 [10:59:40]MH_SAM_APDU [10:59:40]CAPDU: 80 0D 03 02 [10:59:40]Write to MH i2c: E2 08 00 C5 49 80 0D 03 02 00 00 00 00 89 [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:40]Read from MH i2c: E2 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 0B 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 0B 00 C5 49 00 2B 9F EB 06 62 37 E5 DA 90 00 9D [10:59:40]RAPDU: 2B 9F EB 06 62 37 E5 DA 90 00 [10:59:40]wFMCommunicate OK [10:59:40]SAM_PROTO_SignData done [10:59:40]FM_MakeSignedData done [10:59:40]CreateOFDProtocolMessage [10:59:40]wFMCommunicate request_size=4 [10:59:40]MH_SAM_APDU [10:59:40]CAPDU: 80 11 00 00 [10:59:40]Write to MH i2c: E2 08 00 C6 49 80 11 00 00 00 00 00 00 89 [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:40]Read from MH i2c: E2 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 17 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: E2 17 00 C6 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D6 [10:59: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:59:40]wFMCommunicate OK [10:59:40]CreateOFDProtocolMessage done [10:59:40]OFDSenderStorePacket 49061 [10:59:40]StoreOFDPacket docnum=49061 [10:59: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 FE 49 07 01 DF 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2C 00 00 00 F4 03 04 00 27 85 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 4B DA B9 6E 4E AE 2B 9F EB 06 62 37 E5 DA [10:59:40]CheckFolder [10:59:40]dirname=/storage/ofd_packets [10:59:40]CheckFolder done [10:59:40]ProducePacketName [10:59:40]name=ofd_packets/00049061 [10:59:40]NVStorageSaveData ofd_packets/00049061 [10:59:40]File name is /storage/ofd_packets/00049061 [10:59:40]Write 301 bytes [10:59:40]NVStorageSaveData done [10:59:40]OFDSenderStorePacket done [10:59:40]KKMCreateOFDPacket done [10:59:40]NVStorageSaveData kkm_last_timestamp [10:59:40]File name is /storage/kkm_last_timestamp [10:59:40]Write 4 bytes [10:59:40]NVStorageSaveData done [10:59:40]ExternCall_PrintAddStr [10:59:40]wPrintStart [10:59:40]Write to MH i2c: 01 00 00 C7 49 10 [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: 01 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: 01 07 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: 01 07 00 C7 49 00 00 00 00 00 FF 0F 25 [10:59:40]RasterBufferAndPrint [10:59:40]line Счет N : (1)216161 [10:59:40]line ИÐÐ: 02508201610067 [10:59:40]line Контрольно-КаÑÑовый Чек [10:59:40]line ПРОДÐЖР[10:59:40]line ТРК (МРК, ГÐК) : 22 [10:59:40]line Товар: 2710124130 [10:59:40]line Ðи-92-К-5 [10:59:40]line 4.980 * 60.30 [10:59:40]line = 300.29 [10:59:40]line ÐДС 12% ÐСП 1% [10:59:40]line > о реализуемом товаре [10:59:40]line ОКРУГЛЕÐИЕ: -0.29 [10:59:40]line ИТОГО: 300.00 [10:59:40]line ВнеÑено: 300.00 [10:59:40]line СДÐЧÐ: 0.00 [10:59:40]line ÐСП 1% : 2.66 [10:59:40]line ÐДС 12% : 31.89 [10:59:40]line Ðаличными: 300.00 [10:59:40]line Безнал.: 0.00 [10:59:40]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [10:59:40]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [10:59:40]line СÐО: Общий режим [10:59:40]line Чек 44 29.01.2024 10:59 [10:59:40]line Смена: 245 ФФД: 1.0 [10:59:40]line ЗÐМ: 0300000040 [10:59:40]line РÐМ: 0000000000092723 [10:59:40]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [10:59:40]line ФМ: 0000000000875060 [10:59:40]line ФД: 49061 [10:59:40]line ФПД: 83402785967790 [10:59:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T105951&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49061&fm=83402785967790&tin=02508201610067®Number=0000000000092723&sum=30000 [10:59:40]OFD Sender: Processing packet 49061 [packets to send 12, broken 11] [10:59:40]ProducePacketName [10:59:40]name=ofd_packets/00049061 [10:59:40]OFD Sender: To server: ‡•öpG, [10:59:40]CommunicateWithHost lk.salyk.kg:30040 [10:59:40]ConnectInit lk.salyk.kg [10:59:40]written 0, free lines is 4095 [10:59:40]Connected sock=10 [10:59: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 FE 49 07 01 DF 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2C 00 00 00 F4 03 04 00 27 85 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 4B DA B9 6E 4E AE 2B 9F EB 06 62 37 E5 DA [10:59: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 E6 1F 47 00 39 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A5 BF 00 00 F4 03 04 00 20 31 B7 65 B6 04 01 00 00 D3 2C 7A 4E 92 5F DF AE [10:59:40]CommunicateWithHost err = 0 [10:59:40]CheckOFDResponse [10:59:40]1017 (14) - 77093643461234 [10:59:40]1041 (16) - 0000000000875060 [10:59:40]1040 (4) - 49061 [10:59:40]1012 (4) - 29.01.2024 05:01 [10:59:40]1206 (1) - 0 [10:59:40]OFD Sender: Remove packet 49061 [10:59:40]ProducePacketName [10:59:40]name=ofd_packets/00049061 [10:59:40]NVStorageDeleteData [10:59:40]Write to MH i2c: 01 00 00 F2 49 3B [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: 01 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: 01 07 00 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: 01 07 00 F2 49 00 00 00 00 00 0B 0D 5A [10:59:40]RasterBufferAndPrint [10:59:40]line [10:59:40]line [10:59:40]line [10:59:40]line [10:59:40]line [10:59:40]written 0, free lines is 3345 [10:59:40]MH_Cut [10:59:40]Write to MH i2c: D1 01 00 F9 49 01 14 [10:59:40]Write i2c OK [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: D1 [10:59:40]MH_I2C_Read... [10:59:40]Read from MH i2c: D1 01 00 [10:59:40]MH_I2C_Read... [10:59:41]Read from MH i2c: D1 01 00 F9 49 00 13 [10:59:41]Write to MH i2c: 01 00 00 FA 49 43 [10:59:41]Write i2c OK [10:59:41]MH_I2C_Read... [10:59:41]OFD Sender: No OFD packet to send [10:59:41]*** Cut start [10:59:41]*** Partial cut [10:59:41]*** CUTSNS_PIN = 1 [10:59:41]*** CUTSNS_PIN = 0 [10:59:41]*** Brake cut motor [10:59:42]Read from MH i2c: 01 [10:59:42]MH_I2C_Read... [10:59:42]*** Stop cut motor [10:59:42]*** Cut end [10:59:42]Read from MH i2c: 01 07 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: 01 07 00 FA 49 00 00 00 00 00 FF 0F 58 [10:59:42]process_action close_receipt done [10:59:42]requested_data is exist [10:59:42]produce_requested_data [10:59:42]requested_item fm.sn is exist - process it [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 11 00 00 [10:59:42]Write to MH i2c: E2 08 00 FB 49 80 11 00 00 00 00 00 00 BE [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 17 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 17 00 FB 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0B [10:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [10:59:42]wFMCommunicate OK [10:59:42]requested_item fd.num is exist - process it [10:59:42]SAM_PROTO_GetFieldsCounters [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 13 00 00 [10:59:42]Write to MH i2c: E2 08 00 FC 49 80 13 00 00 00 00 00 00 C1 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 62 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 62 00 FC 49 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 BF 00 00 0E 04 04 00 F5 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 B7 [10:59: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 A5 BF 00 00 0E 04 04 00 F5 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 [10:59:42]wFMCommunicate OK [10:59:42]SAM_PROTO_GetFieldsCounters done [10:59:42]requested_item shift.num is exist - process it [10:59:42]requested_item shift.opened is exist - process it [10:59:42]req_shift_opened [10:59:42]FM_GetShiftState [10:59:42]SAM_PROTO_GetShiftState [10:59:42]wFMCommunicate request_size=4 [10:59:42]MH_SAM_APDU [10:59:42]CAPDU: 80 13 01 00 [10:59:42]Write to MH i2c: E2 08 00 FD 49 80 13 01 00 00 00 00 00 C3 [10:59:42]Write i2c OK [10:59:42]MH_I2C_Read... [10:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:42]Read from MH i2c: E2 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 0E 00 [10:59:42]MH_I2C_Read... [10:59:42]Read from MH i2c: E2 0E 00 FD 49 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 35 [10:59:42]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [10:59:42]wFMCommunicate OK [10:59:42]SAM_PROTO_GetShiftState done [10:59:42]FM_GetShiftState done [10:59:42]req_shift_opened done [10:59:42]requested_item shift.open_date is exist - process it [10:59:42]req_shift_open_date [10:59:42]req_shift_open_date done [10:59:42]produce_requested_data done [10:59:42]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49061,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [10:59:42]process_action_free close_receipt [10:59:42]json_value_free [10:59:42]json_value_free done [10:59:42]process_json_proto returns [10:59:42]Send response to host [10:59:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49061,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [10:59:42]free response buf [10:59:42]execute_script done [10:59:42]execute_script returns [10:59:42]free content buf [10:59:42]Sock 9.Close socket [10:59:42]Sock 9.Thread stoped [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:35]accept exits with 7 [11:00:35]New connection [11:00:35]New thread 3066813796 created [11:00:35]Thread 3066670436 joined [11:00:35]Waiting for new connection... [11:00:35] Sock 7.Parse request [11:00:35]Sock 7.Check first char [11:00:35]Sock 7.First char is OK [11:00:35]request: POST /json_proto HTTP/1.0 [11:00:35]Method: POST [11:00:35]URL: /json_proto [11:00:35]Method is POST - this is cgi request [11:00:35]url: /json_proto [11:00:35]query_string will be loaded in cgi processing [11:00:35]execute_cgi json_proto POST (null) [11:00:35]execute_cgi path=json_proto method=POST [11:00:35]POST find Content-Length [11:00:35]Host: 172.17.56.67:8080 [11:00:35]Content-Length: 682 [11:00:35]Content-Type: application/json [11:00:35] [11:00:35]POST finish read [11:00:35]Found Content-Length = 682 [11:00:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216162", "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" ] } } [11:00:35]execute_script... [11:00: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)216162", "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" ] } } [11:00:35]POST & json_proto [11:00:35]process_json_proto [11:00:35]json parsed OK: [11:00:35]protocol is kg_v1.0 [11:00:35]action value=close_receipt [11:00:35]process_action close_receipt [11:00:35]cmd_close_receipt [11:00:35]MH_GetDate [11:00:35]Write to MH i2c: F0 00 00 FE 49 36 [11:00:35]Write i2c OK [11:00:35]MH_I2C_Read... [11:00:35]Read from MH i2c: F0 [11:00:35]MH_I2C_Read... [11:00:35]Read from MH i2c: F0 09 00 [11:00:35]MH_I2C_Read... [11:00:35]Read from MH i2c: F0 09 00 FE 49 00 60 85 B7 65 26 5D 9E 65 C6 [11:00:35]GetLastDocTimeStamp 1706525991 [11:00:35]current date 1706526048 [11:00:35]FM_GetShiftState [11:00:35]SAM_PROTO_GetShiftState [11:00:35]wFMCommunicate request_size=4 [11:00:35]MH_SAM_APDU [11:00:35]CAPDU: 80 13 01 00 [11:00:35]Write to MH i2c: E2 08 00 FF 49 80 13 01 00 00 00 00 00 C5 [11:00:35]Write i2c OK [11:00:35]MH_I2C_Read... [11:00:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:35]Read from MH i2c: E2 [11:00:35]MH_I2C_Read... [11:00:35]Read from MH i2c: E2 0E 00 [11:00:35]MH_I2C_Read... [11:00:35]Read from MH i2c: E2 0E 00 FF 49 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 37 [11:00:35]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:00:35]wFMCommunicate OK [11:00:35]SAM_PROTO_GetShiftState done [11:00:35]FM_GetShiftState done [11:00:35]opened in 1706486624 [11:00:35]opened+sec_in_day 1706573024 [11:00:35]quantity*price = 100037 [11:00:35]sum+1 = 100039 [11:00:35]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 СÐО: Общий режим Чек 45 29.01.2024 11:00 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49062 ФПД: 164629490393008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T110048&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49062&fm=164629490393008&tin=02508201610067®Number=0000000000092723&sum=100000 [11:00:36]StoreToDocumentArchive [11:00:36]shift 245 fd 49062 [11:00:36]save to /storage/0245/doc_00049062 [11:00:36]save last doc name /storage/0245/doc_00049062 to /storage/kkm_last_doc_name [11:00:36]save OK [11:00:36]Clear old archive folders... [11:00:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:36]tlvbuf is 0119A620 [11:00:36]SAM_PROTO_ClearQueue [11:00:36]wFMCommunicate request_size=4 [11:00:36]MH_SAM_APDU [11:00:36]CAPDU: 80 09 00 00 [11:00:36]Write to MH i2c: E2 08 00 0C 4A 80 09 00 00 00 00 00 00 C8 [11:00:36]Write i2c OK [11:00:36]MH_I2C_Read... [11:00:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:36]Read from MH i2c: E2 [11:00:36]MH_I2C_Read... [11:00:36]Read from MH i2c: E2 03 00 [11:00:36]MH_I2C_Read... [11:00:36]Read from MH i2c: E2 03 00 0C 4A 00 90 00 CA [11:00:36]RAPDU: 90 00 [11:00:36]wFMCommunicate OK [11:00:36]SAM_PROTO_ClearQueue done [11:00:36]KKMCreateOFDPacket [11:00:36]OFDProtocolAddRootSTLVToBuf [11:00:36]FM_MakeSignedData [11:00:36]FM_MakeSignedData [11:00:36]SAM_PROTO_SignData [11:00:36]wFMCommunicate request_size=4 [11:00:36]MH_SAM_APDU [11:00:36]CAPDU: 80 0D 01 02 [11:00:36]Write to MH i2c: E2 08 00 0D 4A 80 0D 01 02 00 00 00 00 D0 [11:00:36]Write i2c OK [11:00:36]MH_I2C_Read... [11:00:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:36]Read from MH i2c: E2 [11:00:36]MH_I2C_Read... [11:00:36]Read from MH i2c: E2 03 00 [11:00:36]MH_I2C_Read... [11:00:36]Read from MH i2c: E2 03 00 0D 4A 00 90 00 CB [11:00:36]RAPDU: 90 00 [11:00:36]wFMCommunicate OK [11:00:36]wFMCommunicate request_size=255 [11:00:36]MH_SAM_APDU [11:00: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 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 2D 00 00 00 F4 03 04 00 60 85 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 95 [11:00:36]Write to MH i2c: E2 02 01 0E 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2D 00 00 00 F4 03 04 00 60 85 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 95 00 00 5D [11:00:36]Write i2c OK [11:00:36]MH_I2C_Read... [11:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:37]Read from MH i2c: E2 [11:00:37]MH_I2C_Read... [11:00:37]Read from MH i2c: E2 03 00 [11:00:37]MH_I2C_Read... [11:00:37]Read from MH i2c: E2 03 00 0E 4A 00 90 00 CC [11:00:37]RAPDU: 90 00 [11:00:37]wFMCommunicate OK [11:00:37]wFMCommunicate request_size=10 [11:00:37]MH_SAM_APDU [11:00:37]CAPDU: 80 0D 02 02 05 BA CA 4B 5F B0 [11:00:37]Write to MH i2c: E2 0D 00 0F 4A 80 0D 02 02 05 00 BA CA 4B 5F B0 00 00 BB [11:00:37]Write i2c OK [11:00:37]MH_I2C_Read... [11:00:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:37]Read from MH i2c: E2 [11:00:37]MH_I2C_Read... [11:00:37]Read from MH i2c: E2 03 00 [11:00:37]MH_I2C_Read... [11:00:37]Read from MH i2c: E2 03 00 0F 4A 00 90 00 CD [11:00:37]RAPDU: 90 00 [11:00:37]wFMCommunicate OK [11:00:37]wFMCommunicate request_size=4 [11:00:37]MH_SAM_APDU [11:00:37]CAPDU: 80 0D 03 02 [11:00:37]Write to MH i2c: E2 08 00 10 4A 80 0D 03 02 00 00 00 00 D5 [11:00:37]Write i2c OK [11:00:37]MH_I2C_Read... [11:00:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:37]Read from MH i2c: E2 [11:00:37]MH_I2C_Read... [11:00:37]Read from MH i2c: E2 0B 00 [11:00:37]MH_I2C_Read... [11:00:37]Read from MH i2c: E2 0B 00 10 4A 00 BE 7F 1C CC 1B 8F 87 83 90 00 AF [11:00:37]RAPDU: BE 7F 1C CC 1B 8F 87 83 90 00 [11:00:37]wFMCommunicate OK [11:00:37]SAM_PROTO_SignData done [11:00:37]FM_MakeSignedData done [11:00:37]CreateOFDProtocolMessage [11:00:37]wFMCommunicate request_size=4 [11:00:37]MH_SAM_APDU [11:00:37]CAPDU: 80 11 00 00 [11:00:37]Write to MH i2c: E2 08 00 11 4A 80 11 00 00 00 00 00 00 D5 [11:00:37]Write i2c OK [11:00:37]MH_I2C_Read... [11:00:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:37]Read from MH i2c: E2 [11:00:37]MH_I2C_Read... [11:00:37]Read from MH i2c: E2 17 00 [11:00:37]MH_I2C_Read... [11:00:37]Read from MH i2c: E2 17 00 11 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 22 [11:00:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:00:37]wFMCommunicate OK [11:00:37]CreateOFDProtocolMessage done [11:00:37]OFDSenderStorePacket 49062 [11:00:37]StoreOFDPacket docnum=49062 [11:00: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 BC 68 07 01 68 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2D 00 00 00 F4 03 04 00 60 85 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 95 BA CA 4B 5F B0 BE 7F 1C CC 1B 8F 87 83 [11:00:37]CheckFolder [11:00:37]dirname=/storage/ofd_packets [11:00:37]CheckFolder done [11:00:37]ProducePacketName [11:00:37]name=ofd_packets/00049062 [11:00:37]NVStorageSaveData ofd_packets/00049062 [11:00:37]File name is /storage/ofd_packets/00049062 [11:00:37]Write 301 bytes [11:00:37]NVStorageSaveData done [11:00:37]OFDSenderStorePacket done [11:00:37]KKMCreateOFDPacket done [11:00:37]NVStorageSaveData kkm_last_timestamp [11:00:37]File name is /storage/kkm_last_timestamp [11:00:37]Write 4 bytes [11:00:37]NVStorageSaveData done [11:00:37]ExternCall_PrintAddStr [11:00:37]wPrintStart [11:00:37]Write to MH i2c: 01 00 00 12 4A 5C [11:00:37]Write i2c OK [11:00:37]MH_I2C_Read... [11:00:37]Read from MH i2c: 01 [11:00:37]MH_I2C_Read... [11:00:37]Read from MH i2c: 01 07 00 [11:00:37]MH_I2C_Read... [11:00:37]Read from MH i2c: 01 07 00 12 4A 00 00 00 00 00 FF 0F 71 [11:00:37]RasterBufferAndPrint [11:00:37]line Счет N : (1)216162 [11:00:37]line ИÐÐ: 02508201610067 [11:00:37]line Контрольно-КаÑÑовый Чек [11:00:37]line ПРОДÐЖР[11:00:37]line ТРК (МРК, ГÐК) : 12 [11:00:37]line Товар: 2710124130 [11:00:37]line Ðи-92-К-5 [11:00:37]line 16.590 * 60.30 [11:00:37]line = 1000.38 [11:00:37]line ÐДС 12% ÐСП 1% [11:00:37]line > о реализуемом товаре [11:00:37]line ОКРУГЛЕÐИЕ: -0.38 [11:00:37]line ИТОГО: 1000.00 [11:00:37]line ВнеÑено: 1000.00 [11:00:37]line СДÐЧÐ: 0.00 [11:00:37]line ÐСП 1% : 8.85 [11:00:37]line ÐДС 12% : 106.23 [11:00:37]line Ðаличными: 1000.00 [11:00:37]line Безнал.: 0.00 [11:00:37]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [11:00:37]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:00:37]line СÐО: Общий режим [11:00:37]line Чек 45 29.01.2024 11:00 [11:00:37]line Смена: 245 ФФД: 1.0 [11:00:37]line ЗÐМ: 0300000040 [11:00:37]line РÐМ: 0000000000092723 [11:00:37]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:00:37]line ФМ: 0000000000875060 [11:00:37]line ФД: 49062 [11:00:37]line ФПД: 164629490393008 [11:00:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T110048&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49062&fm=164629490393008&tin=02508201610067®Number=0000000000092723&sum=100000 [11:00:37]OFD Sender: Processing packet 49062 [packets to send 12, broken 11] [11:00:37]ProducePacketName [11:00:37]name=ofd_packets/00049062 [11:00:37]OFD Sender: To server: ‡•öpG, [11:00:37]CommunicateWithHost lk.salyk.kg:30040 [11:00:37]ConnectInit lk.salyk.kg [11:00:37]written 0, free lines is 4095 [11:00:37]Connected sock=10 [11:00: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 BC 68 07 01 68 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2D 00 00 00 F4 03 04 00 60 85 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 95 BA CA 4B 5F B0 BE 7F 1C CC 1B 8F 87 83 [11:00: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 DB 7D 47 00 EA 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 A6 BF 00 00 F4 03 04 00 59 31 B7 65 B6 04 01 00 00 ED 14 30 59 5B 0C E2 4F [11:00:37]CommunicateWithHost err = 0 [11:00:37]CheckOFDResponse [11:00:37]1017 (14) - 77093643461234 [11:00:37]1041 (16) - 0000000000875060 [11:00:37]1040 (4) - 49062 [11:00:37]1012 (4) - 29.01.2024 05:02 [11:00:37]1206 (1) - 0 [11:00:37]OFD Sender: Remove packet 49062 [11:00:37]ProducePacketName [11:00:37]name=ofd_packets/00049062 [11:00:37]NVStorageDeleteData [11:00:38]Write to MH i2c: 01 00 00 3D 4A 87 [11:00:38]Write i2c OK [11:00:38]MH_I2C_Read... [11:00:38]Read from MH i2c: 01 [11:00:38]MH_I2C_Read... [11:00:38]Read from MH i2c: 01 07 00 [11:00:38]MH_I2C_Read... [11:00:38]Read from MH i2c: 01 07 00 3D 4A 00 00 00 00 00 04 0D 9F [11:00:38]RasterBufferAndPrint [11:00:38]line [11:00:38]line [11:00:38]line [11:00:38]line [11:00:38]line [11:00:38]written 0, free lines is 3339 [11:00:38]MH_Cut [11:00:38]Write to MH i2c: D1 01 00 44 4A 01 60 [11:00:38]Write i2c OK [11:00:38]MH_I2C_Read... [11:00:38]Read from MH i2c: D1 [11:00:38]MH_I2C_Read... [11:00:38]Read from MH i2c: D1 01 00 [11:00:38]MH_I2C_Read... [11:00:38]Read from MH i2c: D1 01 00 44 4A 00 5F [11:00:38]Write to MH i2c: 01 00 00 45 4A 8F [11:00:38]Write i2c OK [11:00:38]MH_I2C_Read... [11:00:38]OFD Sender: No OFD packet to send [11:00:38]*** Cut start [11:00:38]*** Partial cut [11:00:38]*** CUTSNS_PIN = 1 [11:00:38]*** CUTSNS_PIN = 0 [11:00:38]*** Brake cut motor [11:00:39]Read from MH i2c: 01 [11:00:39]MH_I2C_Read... [11:00:39]*** Stop cut motor [11:00:39]*** Cut end [11:00:39]Read from MH i2c: 01 07 00 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: 01 07 00 45 4A 00 00 00 00 00 FF 0F A4 [11:00:39]process_action close_receipt done [11:00:39]requested_data is exist [11:00:39]produce_requested_data [11:00:39]requested_item fm.sn is exist - process it [11:00:39]wFMCommunicate request_size=4 [11:00:39]MH_SAM_APDU [11:00:39]CAPDU: 80 11 00 00 [11:00:39]Write to MH i2c: E2 08 00 46 4A 80 11 00 00 00 00 00 00 0A [11:00:39]Write i2c OK [11:00:39]MH_I2C_Read... [11:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:39]Read from MH i2c: E2 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 17 00 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 17 00 46 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 57 [11:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:00:39]wFMCommunicate OK [11:00:39]requested_item fd.num is exist - process it [11:00:39]SAM_PROTO_GetFieldsCounters [11:00:39]wFMCommunicate request_size=4 [11:00:39]MH_SAM_APDU [11:00:39]CAPDU: 80 13 00 00 [11:00:39]Write to MH i2c: E2 08 00 47 4A 80 13 00 00 00 00 00 00 0D [11:00:39]Write i2c OK [11:00:39]MH_I2C_Read... [11:00:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:39]Read from MH i2c: E2 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 62 00 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 62 00 47 4A 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 BF 00 00 0E 04 04 00 F5 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 07 [11:00: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 A6 BF 00 00 0E 04 04 00 F5 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:00:39]wFMCommunicate OK [11:00:39]SAM_PROTO_GetFieldsCounters done [11:00:39]requested_item shift.num is exist - process it [11:00:39]requested_item shift.opened is exist - process it [11:00:39]req_shift_opened [11:00:39]FM_GetShiftState [11:00:39]SAM_PROTO_GetShiftState [11:00:39]wFMCommunicate request_size=4 [11:00:39]MH_SAM_APDU [11:00:39]CAPDU: 80 13 01 00 [11:00:39]Write to MH i2c: E2 08 00 48 4A 80 13 01 00 00 00 00 00 0F [11:00:39]Write i2c OK [11:00:39]MH_I2C_Read... [11:00:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:39]Read from MH i2c: E2 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 0E 00 [11:00:39]MH_I2C_Read... [11:00:39]Read from MH i2c: E2 0E 00 48 4A 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 81 [11:00:39]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:00:39]wFMCommunicate OK [11:00:39]SAM_PROTO_GetShiftState done [11:00:39]FM_GetShiftState done [11:00:39]req_shift_opened done [11:00:39]requested_item shift.open_date is exist - process it [11:00:39]req_shift_open_date [11:00:39]req_shift_open_date done [11:00:39]produce_requested_data done [11:00:39]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49062,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [11:00:39]process_action_free close_receipt [11:00:39]json_value_free [11:00:39]json_value_free done [11:00:39]process_json_proto returns [11:00:39]Send response to host [11:00:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49062,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [11:00:39]free response buf [11:00:39]execute_script done [11:00:39]execute_script returns [11:00:39]free content buf [11:00:39]Sock 7.Close socket [11:00:39]Sock 7.Thread stoped [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:28]OFD Sender: No OFD packet to send [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]accept exits with 9 [11:05:33]New connection [11:05:33]New thread 3066670436 created [11:05:33]Thread 3066813796 joined [11:05:33]Waiting for new connection... [11:05:33] Sock 9.Parse request [11:05:33]Sock 9.Check first char [11:05:33]Sock 9.First char is OK [11:05:33]request: POST /json_proto HTTP/1.0 [11:05:33]Method: POST [11:05:33]URL: /json_proto [11:05:33]Method is POST - this is cgi request [11:05:33]url: /json_proto [11:05:33]query_string will be loaded in cgi processing [11:05:33]execute_cgi json_proto POST (null) [11:05:33]execute_cgi path=json_proto method=POST [11:05:33]POST find Content-Length [11:05:33]Host: 172.17.56.67:8080 [11:05:33]Content-Length: 674 [11:05:33]Content-Type: application/json [11:05:33] [11:05:33]POST finish read [11:05:33]Found Content-Length = 674 [11:05:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216163", "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" ] } } [11:05:33]execute_script... [11:05:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216163", "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" ] } } [11:05:33]POST & json_proto [11:05:33]process_json_proto [11:05:33]json parsed OK: [11:05:33]protocol is kg_v1.0 [11:05:33]action value=close_receipt [11:05:33]process_action close_receipt [11:05:33]cmd_close_receipt [11:05:33]MH_GetDate [11:05:33]Write to MH i2c: F0 00 00 49 4A 82 [11:05:33]Write i2c OK [11:05:33]MH_I2C_Read... [11:05:33]Read from MH i2c: F0 [11:05:33]MH_I2C_Read... [11:05:33]Read from MH i2c: F0 09 00 [11:05:33]MH_I2C_Read... [11:05:33]Read from MH i2c: F0 09 00 49 4A 00 8A 86 B7 65 26 5D 9E 65 3D [11:05:33]GetLastDocTimeStamp 1706526048 [11:05:33]current date 1706526346 [11:05:33]FM_GetShiftState [11:05:33]SAM_PROTO_GetShiftState [11:05:33]wFMCommunicate request_size=4 [11:05:33]MH_SAM_APDU [11:05:33]CAPDU: 80 13 01 00 [11:05:33]Write to MH i2c: E2 08 00 4A 4A 80 13 01 00 00 00 00 00 11 [11:05:33]Write i2c OK [11:05:33]MH_I2C_Read... [11:05:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:33]Read from MH i2c: E2 [11:05:33]MH_I2C_Read... [11:05:33]Read from MH i2c: E2 0E 00 [11:05:33]MH_I2C_Read... [11:05:33]Read from MH i2c: E2 0E 00 4A 4A 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 83 [11:05:33]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:05:33]wFMCommunicate OK [11:05:33]SAM_PROTO_GetShiftState done [11:05:33]FM_GetShiftState done [11:05:33]opened in 1706486624 [11:05:33]opened+sec_in_day 1706573024 [11:05:33]quantity*price = 50048 [11:05:33]sum+1 = 50049 [11:05:33]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 СÐО: Общий режим Чек 46 29.01.2024 11:05 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49063 ФПД: 273347883605919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T110546&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49063&fm=273347883605919&tin=02508201610067®Number=0000000000092723&sum=50000 [11:05:34]StoreToDocumentArchive [11:05:34]shift 245 fd 49063 [11:05:34]save to /storage/0245/doc_00049063 [11:05:34]save last doc name /storage/0245/doc_00049063 to /storage/kkm_last_doc_name [11:05:34]save OK [11:05:34]Clear old archive folders... [11:05:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:05:34]tlvbuf is 01214910 [11:05:34]SAM_PROTO_ClearQueue [11:05:34]wFMCommunicate request_size=4 [11:05:34]MH_SAM_APDU [11:05:34]CAPDU: 80 09 00 00 [11:05:34]Write to MH i2c: E2 08 00 57 4A 80 09 00 00 00 00 00 00 13 [11:05:34]Write i2c OK [11:05:34]MH_I2C_Read... [11:05:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:34]Read from MH i2c: E2 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 03 00 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 03 00 57 4A 00 90 00 15 [11:05:34]RAPDU: 90 00 [11:05:34]wFMCommunicate OK [11:05:34]SAM_PROTO_ClearQueue done [11:05:34]KKMCreateOFDPacket [11:05:34]OFDProtocolAddRootSTLVToBuf [11:05:34]FM_MakeSignedData [11:05:34]FM_MakeSignedData [11:05:34]SAM_PROTO_SignData [11:05:34]wFMCommunicate request_size=4 [11:05:34]MH_SAM_APDU [11:05:34]CAPDU: 80 0D 01 02 [11:05:34]Write to MH i2c: E2 08 00 58 4A 80 0D 01 02 00 00 00 00 1B [11:05:34]Write i2c OK [11:05:34]MH_I2C_Read... [11:05:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:34]Read from MH i2c: E2 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 03 00 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 03 00 58 4A 00 90 00 16 [11:05:34]RAPDU: 90 00 [11:05:34]wFMCommunicate OK [11:05:34]wFMCommunicate request_size=255 [11:05:34]MH_SAM_APDU [11:05:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 2E 00 00 00 F4 03 04 00 8A 86 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 F8 9B C3 80 [11:05:34]Write to MH i2c: E2 02 01 59 4A 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 2E 00 00 00 F4 03 04 00 8A 86 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 F8 9B C3 80 00 00 73 [11:05:34]Write i2c OK [11:05:34]MH_I2C_Read... [11:05:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:34]Read from MH i2c: E2 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 03 00 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 03 00 59 4A 00 90 00 17 [11:05:34]RAPDU: 90 00 [11:05:34]wFMCommunicate OK [11:05:34]wFMCommunicate request_size=7 [11:05:34]MH_SAM_APDU [11:05:34]CAPDU: 80 0D 02 02 02 9F 9F [11:05:34]Write to MH i2c: E2 0A 00 5A 4A 80 0D 02 02 02 00 9F 9F 00 00 60 [11:05:34]Write i2c OK [11:05:34]MH_I2C_Read... [11:05:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:34]Read from MH i2c: E2 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 03 00 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 03 00 5A 4A 00 90 00 18 [11:05:34]RAPDU: 90 00 [11:05:34]wFMCommunicate OK [11:05:34]wFMCommunicate request_size=4 [11:05:34]MH_SAM_APDU [11:05:34]CAPDU: 80 0D 03 02 [11:05:34]Write to MH i2c: E2 08 00 5B 4A 80 0D 03 02 00 00 00 00 20 [11:05:34]Write i2c OK [11:05:34]MH_I2C_Read... [11:05:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:34]Read from MH i2c: E2 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 0B 00 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 0B 00 5B 4A 00 82 0F 21 A7 5A 8A A2 46 90 00 46 [11:05:34]RAPDU: 82 0F 21 A7 5A 8A A2 46 90 00 [11:05:34]wFMCommunicate OK [11:05:34]SAM_PROTO_SignData done [11:05:34]FM_MakeSignedData done [11:05:34]CreateOFDProtocolMessage [11:05:34]wFMCommunicate request_size=4 [11:05:34]MH_SAM_APDU [11:05:34]CAPDU: 80 11 00 00 [11:05:34]Write to MH i2c: E2 08 00 5C 4A 80 11 00 00 00 00 00 00 20 [11:05:34]Write i2c OK [11:05:34]MH_I2C_Read... [11:05:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:34]Read from MH i2c: E2 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 17 00 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: E2 17 00 5C 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6D [11:05:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:05:34]wFMCommunicate OK [11:05:34]CreateOFDProtocolMessage done [11:05:34]OFDSenderStorePacket 49063 [11:05:34]StoreOFDPacket docnum=49063 [11:05: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 0C 01 00 00 D5 B3 04 01 AB D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 2E 00 00 00 F4 03 04 00 8A 86 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 F8 9B C3 80 9F 9F 82 0F 21 A7 5A 8A A2 46 [11:05:34]CheckFolder [11:05:34]dirname=/storage/ofd_packets [11:05:34]CheckFolder done [11:05:34]ProducePacketName [11:05:34]name=ofd_packets/00049063 [11:05:34]NVStorageSaveData ofd_packets/00049063 [11:05:34]File name is /storage/ofd_packets/00049063 [11:05:34]Write 298 bytes [11:05:34]NVStorageSaveData done [11:05:34]OFDSenderStorePacket done [11:05:34]KKMCreateOFDPacket done [11:05:34]NVStorageSaveData kkm_last_timestamp [11:05:34]File name is /storage/kkm_last_timestamp [11:05:34]Write 4 bytes [11:05:34]NVStorageSaveData done [11:05:34]ExternCall_PrintAddStr [11:05:34]wPrintStart [11:05:34]Write to MH i2c: 01 00 00 5D 4A A7 [11:05:34]Write i2c OK [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: 01 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: 01 07 00 [11:05:34]MH_I2C_Read... [11:05:34]Read from MH i2c: 01 07 00 5D 4A 00 00 00 00 00 FF 0F BC [11:05:34]RasterBufferAndPrint [11:05:34]line Счет N : (1)216163 [11:05:34]line ИÐÐ: 02508201610067 [11:05:34]line Контрольно-КаÑÑовый Чек [11:05:34]line ПРОДÐЖР[11:05:34]line ТРК (МРК, ГÐК) : 21 [11:05:34]line Товар: 2710194210 [11:05:34]line ДТ-К-5 [11:05:34]line 7.160 * 69.90 [11:05:34]line = 500.48 [11:05:34]line ÐДС 12% ÐСП 1% [11:05:34]line > о реализуемом товаре [11:05:34]line ОКРУГЛЕÐИЕ: -0.48 [11:05:34]line ИТОГО: 500.00 [11:05:34]line ВнеÑено: 500.00 [11:05:34]line СДÐЧÐ: 0.00 [11:05:34]line ÐСП 1% : 4.43 [11:05:34]line ÐДС 12% : 53.15 [11:05:34]line Ðаличными: 500.00 [11:05:34]line Безнал.: 0.00 [11:05:34]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [11:05:34]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:05:34]line СÐО: Общий режим [11:05:34]line Чек 46 29.01.2024 11:05 [11:05:34]line Смена: 245 ФФД: 1.0 [11:05:34]line ЗÐМ: 0300000040 [11:05:34]line РÐМ: 0000000000092723 [11:05:34]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:05:34]line ФМ: 0000000000875060 [11:05:34]line ФД: 49063 [11:05:34]line ФПД: 273347883605919 [11:05:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T110546&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49063&fm=273347883605919&tin=02508201610067®Number=0000000000092723&sum=50000 [11:05:35]OFD Sender: Processing packet 49063 [packets to send 12, broken 11] [11:05:35]ProducePacketName [11:05:35]name=ofd_packets/00049063 [11:05:35]OFD Sender: To server: ‡•öpG, [11:05:35]CommunicateWithHost lk.salyk.kg:30040 [11:05:35]ConnectInit lk.salyk.kg [11:05:35]written 0, free lines is 4095 [11:05:35]Connected sock=10 [11:05:35]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 D5 B3 04 01 AB D8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 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 2E 00 00 00 F4 03 04 00 8A 86 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 F8 9B C3 80 9F 9F 82 0F 21 A7 5A 8A A2 46 [11:05:35]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 7D 47 00 5B 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A7 BF 00 00 F4 03 04 00 83 32 B7 65 B6 04 01 00 00 78 A5 43 1D DE 0A 33 58 [11:05:35]CommunicateWithHost err = 0 [11:05:35]CheckOFDResponse [11:05:35]1017 (14) - 77093643461234 [11:05:35]1041 (16) - 0000000000875060 [11:05:35]1040 (4) - 49063 [11:05:35]1012 (4) - 29.01.2024 05:07 [11:05:35]1206 (1) - 0 [11:05:35]OFD Sender: Remove packet 49063 [11:05:35]ProducePacketName [11:05:35]name=ofd_packets/00049063 [11:05:35]NVStorageDeleteData [11:05:35]Write to MH i2c: 01 00 00 88 4A D2 [11:05:35]Write i2c OK [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: 01 [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: 01 07 00 [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: 01 07 00 88 4A 00 00 00 00 00 F8 0C DD [11:05:35]RasterBufferAndPrint [11:05:35]line [11:05:35]line [11:05:35]line [11:05:35]line [11:05:35]line [11:05:35]written 0, free lines is 3327 [11:05:35]MH_Cut [11:05:35]Write to MH i2c: D1 01 00 8F 4A 01 AB [11:05:35]Write i2c OK [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: D1 [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: D1 01 00 [11:05:35]MH_I2C_Read... [11:05:35]Read from MH i2c: D1 01 00 8F 4A 00 AA [11:05:35]Write to MH i2c: 01 00 00 90 4A DA [11:05:35]Write i2c OK [11:05:35]MH_I2C_Read... [11:05:36]OFD Sender: No OFD packet to send [11:05:36]*** Cut start [11:05:36]*** Partial cut [11:05:36]*** CUTSNS_PIN = 1 [11:05:36]*** CUTSNS_PIN = 0 [11:05:36]*** Brake cut motor [11:05:37]Read from MH i2c: 01 [11:05:37]MH_I2C_Read... [11:05:37]*** Stop cut motor [11:05:37]*** Cut end [11:05:37]Read from MH i2c: 01 07 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: 01 07 00 90 4A 00 00 00 00 00 FF 0F EF [11:05:37]process_action close_receipt done [11:05:37]requested_data is exist [11:05:37]produce_requested_data [11:05:37]requested_item fm.sn is exist - process it [11:05:37]wFMCommunicate request_size=4 [11:05:37]MH_SAM_APDU [11:05:37]CAPDU: 80 11 00 00 [11:05:37]Write to MH i2c: E2 08 00 91 4A 80 11 00 00 00 00 00 00 55 [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:37]Read from MH i2c: E2 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 17 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 17 00 91 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A2 [11:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:05:37]wFMCommunicate OK [11:05:37]requested_item fd.num is exist - process it [11:05:37]SAM_PROTO_GetFieldsCounters [11:05:37]wFMCommunicate request_size=4 [11:05:37]MH_SAM_APDU [11:05:37]CAPDU: 80 13 00 00 [11:05:37]Write to MH i2c: E2 08 00 92 4A 80 13 00 00 00 00 00 00 58 [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:37]Read from MH i2c: E2 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 62 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 62 00 92 4A 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 BF 00 00 0E 04 04 00 F5 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 56 [11:05:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:05:37]wFMCommunicate OK [11:05:37]SAM_PROTO_GetFieldsCounters done [11:05:37]requested_item shift.num is exist - process it [11:05:37]requested_item shift.opened is exist - process it [11:05:37]req_shift_opened [11:05:37]FM_GetShiftState [11:05:37]SAM_PROTO_GetShiftState [11:05:37]wFMCommunicate request_size=4 [11:05:37]MH_SAM_APDU [11:05:37]CAPDU: 80 13 01 00 [11:05:37]Write to MH i2c: E2 08 00 93 4A 80 13 01 00 00 00 00 00 5A [11:05:37]Write i2c OK [11:05:37]MH_I2C_Read... [11:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:37]Read from MH i2c: E2 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 0E 00 [11:05:37]MH_I2C_Read... [11:05:37]Read from MH i2c: E2 0E 00 93 4A 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 CC [11:05:37]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:05:37]wFMCommunicate OK [11:05:37]SAM_PROTO_GetShiftState done [11:05:37]FM_GetShiftState done [11:05:37]req_shift_opened done [11:05:37]requested_item shift.open_date is exist - process it [11:05:37]req_shift_open_date [11:05:37]req_shift_open_date done [11:05:37]produce_requested_data done [11:05:37]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49063,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [11:05:37]process_action_free close_receipt [11:05:37]json_value_free [11:05:37]json_value_free done [11:05:37]process_json_proto returns [11:05:37]Send response to host [11:05:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49063,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [11:05:37]free response buf [11:05:37]execute_script done [11:05:37]execute_script returns [11:05:37]free content buf [11:05:37]Sock 9.Close socket [11:05:37]Sock 9.Thread stoped [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:53]accept exits with 7 [11:08:53]New connection [11:08:53]New thread 3066813796 created [11:08:53]Thread 3066670436 joined [11:08:53]Waiting for new connection... [11:08:53] Sock 7.Parse request [11:08:53]Sock 7.Check first char [11:08:53]Sock 7.First char is OK [11:08:53]request: POST /json_proto HTTP/1.0 [11:08:53]Method: POST [11:08:53]URL: /json_proto [11:08:53]Method is POST - this is cgi request [11:08:53]url: /json_proto [11:08:53]query_string will be loaded in cgi processing [11:08:53]execute_cgi json_proto POST (null) [11:08:53]execute_cgi path=json_proto method=POST [11:08:53]POST find Content-Length [11:08:53]Host: 172.17.56.67:8080 [11:08:53]Content-Length: 677 [11:08:53]Content-Type: application/json [11:08:53] [11:08:53]POST finish read [11:08:53]Found Content-Length = 677 [11:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216164", "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:08:53]execute_script... [11:08: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)216164", "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:08:53]POST & json_proto [11:08:53]process_json_proto [11:08:53]json parsed OK: [11:08:53]protocol is kg_v1.0 [11:08:53]action value=close_receipt [11:08:53]process_action close_receipt [11:08:53]cmd_close_receipt [11:08:53]MH_GetDate [11:08:53]Write to MH i2c: F0 00 00 94 4A CD [11:08:53]Write i2c OK [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: F0 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: F0 09 00 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: F0 09 00 94 4A 00 52 87 B7 65 26 5D 9E 65 51 [11:08:53]GetLastDocTimeStamp 1706526346 [11:08:53]current date 1706526546 [11:08:53]FM_GetShiftState [11:08:53]SAM_PROTO_GetShiftState [11:08:53]wFMCommunicate request_size=4 [11:08:53]MH_SAM_APDU [11:08:53]CAPDU: 80 13 01 00 [11:08:53]Write to MH i2c: E2 08 00 95 4A 80 13 01 00 00 00 00 00 5C [11:08:53]Write i2c OK [11:08:53]MH_I2C_Read... [11:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:53]Read from MH i2c: E2 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: E2 0E 00 [11:08:53]MH_I2C_Read... [11:08:53]Read from MH i2c: E2 0E 00 95 4A 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 CE [11:08:53]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:08:53]wFMCommunicate OK [11:08:53]SAM_PROTO_GetShiftState done [11:08:53]FM_GetShiftState done [11:08:53]opened in 1706486624 [11:08:53]opened+sec_in_day 1706573024 [11:08:53]quantity*price = 50049 [11:08:53]sum+1 = 50050 [11:08:53]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 СÐО: Общий режим Чек 47 29.01.2024 11:09 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49064 ФПД: 109061415185376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T110906&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49064&fm=109061415185376&tin=02508201610067®Number=0000000000092723&sum=50000 [11:08:54]StoreToDocumentArchive [11:08:54]shift 245 fd 49064 [11:08:54]save to /storage/0245/doc_00049064 [11:08:54]save last doc name /storage/0245/doc_00049064 to /storage/kkm_last_doc_name [11:08:54]save OK [11:08:54]Clear old archive folders... [11:08:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:54]tlvbuf is B6EB8950 [11:08:54]SAM_PROTO_ClearQueue [11:08:54]wFMCommunicate request_size=4 [11:08:54]MH_SAM_APDU [11:08:54]CAPDU: 80 09 00 00 [11:08:54]Write to MH i2c: E2 08 00 A2 4A 80 09 00 00 00 00 00 00 5E [11:08:54]Write i2c OK [11:08:54]MH_I2C_Read... [11:08:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:54]Read from MH i2c: E2 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 03 00 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 03 00 A2 4A 00 90 00 60 [11:08:54]RAPDU: 90 00 [11:08:54]wFMCommunicate OK [11:08:54]SAM_PROTO_ClearQueue done [11:08:54]KKMCreateOFDPacket [11:08:54]OFDProtocolAddRootSTLVToBuf [11:08:54]FM_MakeSignedData [11:08:54]FM_MakeSignedData [11:08:54]SAM_PROTO_SignData [11:08:54]wFMCommunicate request_size=4 [11:08:54]MH_SAM_APDU [11:08:54]CAPDU: 80 0D 01 02 [11:08:54]Write to MH i2c: E2 08 00 A3 4A 80 0D 01 02 00 00 00 00 66 [11:08:54]Write i2c OK [11:08:54]MH_I2C_Read... [11:08:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:54]Read from MH i2c: E2 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 03 00 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 03 00 A3 4A 00 90 00 61 [11:08:54]RAPDU: 90 00 [11:08:54]wFMCommunicate OK [11:08:54]wFMCommunicate request_size=255 [11:08:54]MH_SAM_APDU [11:08: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 2F 00 00 00 F4 03 04 00 52 87 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 63 [11:08:54]Write to MH i2c: E2 02 01 A4 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2F 00 00 00 F4 03 04 00 52 87 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 63 00 00 79 [11:08:54]Write i2c OK [11:08:54]MH_I2C_Read... [11:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:54]Read from MH i2c: E2 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 03 00 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 03 00 A4 4A 00 90 00 62 [11:08:54]RAPDU: 90 00 [11:08:54]wFMCommunicate OK [11:08:54]wFMCommunicate request_size=10 [11:08:54]MH_SAM_APDU [11:08:54]CAPDU: 80 0D 02 02 05 30 D6 E9 2B E0 [11:08:54]Write to MH i2c: E2 0D 00 A5 4A 80 0D 02 02 05 00 30 D6 E9 2B E0 00 00 6D [11:08:54]Write i2c OK [11:08:54]MH_I2C_Read... [11:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:54]Read from MH i2c: E2 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 03 00 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 03 00 A5 4A 00 90 00 63 [11:08:54]RAPDU: 90 00 [11:08:54]wFMCommunicate OK [11:08:54]wFMCommunicate request_size=4 [11:08:54]MH_SAM_APDU [11:08:54]CAPDU: 80 0D 03 02 [11:08:54]Write to MH i2c: E2 08 00 A6 4A 80 0D 03 02 00 00 00 00 6B [11:08:54]Write i2c OK [11:08:54]MH_I2C_Read... [11:08:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:54]Read from MH i2c: E2 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 0B 00 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 0B 00 A6 4A 00 D5 A0 D6 1B 04 F0 20 C6 90 00 AC [11:08:54]RAPDU: D5 A0 D6 1B 04 F0 20 C6 90 00 [11:08:54]wFMCommunicate OK [11:08:54]SAM_PROTO_SignData done [11:08:54]FM_MakeSignedData done [11:08:54]CreateOFDProtocolMessage [11:08:54]wFMCommunicate request_size=4 [11:08:54]MH_SAM_APDU [11:08:54]CAPDU: 80 11 00 00 [11:08:54]Write to MH i2c: E2 08 00 A7 4A 80 11 00 00 00 00 00 00 6B [11:08:54]Write i2c OK [11:08:54]MH_I2C_Read... [11:08:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:54]Read from MH i2c: E2 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 17 00 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: E2 17 00 A7 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B8 [11:08:54]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:54]wFMCommunicate OK [11:08:54]CreateOFDProtocolMessage done [11:08:54]OFDSenderStorePacket 49064 [11:08:54]StoreOFDPacket docnum=49064 [11:08: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 30 47 07 01 F8 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2F 00 00 00 F4 03 04 00 52 87 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 63 30 D6 E9 2B E0 D5 A0 D6 1B 04 F0 20 C6 [11:08:54]CheckFolder [11:08:54]dirname=/storage/ofd_packets [11:08:54]CheckFolder done [11:08:54]ProducePacketName [11:08:54]name=ofd_packets/00049064 [11:08:54]NVStorageSaveData ofd_packets/00049064 [11:08:54]File name is /storage/ofd_packets/00049064 [11:08:54]Write 301 bytes [11:08:54]NVStorageSaveData done [11:08:54]OFDSenderStorePacket done [11:08:54]KKMCreateOFDPacket done [11:08:54]NVStorageSaveData kkm_last_timestamp [11:08:54]File name is /storage/kkm_last_timestamp [11:08:54]Write 4 bytes [11:08:54]NVStorageSaveData done [11:08:54]ExternCall_PrintAddStr [11:08:54]wPrintStart [11:08:54]Write to MH i2c: 01 00 00 A8 4A F2 [11:08:54]Write i2c OK [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: 01 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: 01 07 00 [11:08:54]MH_I2C_Read... [11:08:54]Read from MH i2c: 01 07 00 A8 4A 00 00 00 00 00 FF 0F 07 [11:08:54]RasterBufferAndPrint [11:08:54]line Счет N : (1)216164 [11:08:54]line ИÐÐ: 02508201610067 [11:08:54]line Контрольно-КаÑÑовый Чек [11:08:54]line ПРОДÐЖР[11:08:54]line ТРК (МРК, ГÐК) : 22 [11:08:54]line Товар: 2710124130 [11:08:54]line Ðи-92-К-5 [11:08:54]line 8.300 * 60.30 [11:08:54]line = 500.49 [11:08:54]line ÐДС 12% ÐСП 1% [11:08:54]line > о реализуемом товаре [11:08:54]line ОКРУГЛЕÐИЕ: -0.49 [11:08:54]line ИТОГО: 500.00 [11:08:54]line ВнеÑено: 500.00 [11:08:54]line СДÐЧÐ: 0.00 [11:08:54]line ÐСП 1% : 4.43 [11:08:54]line ÐДС 12% : 53.15 [11:08:54]line Ðаличными: 500.00 [11:08:54]line Безнал.: 0.00 [11:08:54]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [11:08:54]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:08:54]line СÐО: Общий режим [11:08:54]line Чек 47 29.01.2024 11:09 [11:08:54]line Смена: 245 ФФД: 1.0 [11:08:54]line ЗÐМ: 0300000040 [11:08:54]line РÐМ: 0000000000092723 [11:08:54]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:08:54]line ФМ: 0000000000875060 [11:08:54]line ФД: 49064 [11:08:54]line ФПД: 109061415185376 [11:08:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T110906&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49064&fm=109061415185376&tin=02508201610067®Number=0000000000092723&sum=50000 [11:08:55]OFD Sender: Processing packet 49064 [packets to send 12, broken 11] [11:08:55]ProducePacketName [11:08:55]name=ofd_packets/00049064 [11:08:55]OFD Sender: To server: ‡•öpG, [11:08:55]CommunicateWithHost lk.salyk.kg:30040 [11:08:55]ConnectInit lk.salyk.kg [11:08:55]written 0, free lines is 4095 [11:08:55]Connected sock=10 [11:08: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 30 47 07 01 F8 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 2F 00 00 00 F4 03 04 00 52 87 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 63 30 D6 E9 2B E0 D5 A0 D6 1B 04 F0 20 C6 [11:08: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 1E F6 47 00 FD 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 A8 BF 00 00 F4 03 04 00 4B 33 B7 65 B6 04 01 00 00 48 72 20 89 AA 15 4B 08 [11:08:55]CommunicateWithHost err = 0 [11:08:55]CheckOFDResponse [11:08:55]1017 (14) - 77093643461234 [11:08:55]1041 (16) - 0000000000875060 [11:08:55]1040 (4) - 49064 [11:08:55]1012 (4) - 29.01.2024 05:10 [11:08:55]1206 (1) - 0 [11:08:55]OFD Sender: Remove packet 49064 [11:08:55]ProducePacketName [11:08:55]name=ofd_packets/00049064 [11:08:55]NVStorageDeleteData [11:08:55]Write to MH i2c: 01 00 00 D3 4A 1D [11:08:55]Write i2c OK [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: 01 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: 01 07 00 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: 01 07 00 D3 4A 00 00 00 00 00 F5 0C 25 [11:08:55]RasterBufferAndPrint [11:08:55]line [11:08:55]line [11:08:55]line [11:08:55]line [11:08:55]line [11:08:55]written 0, free lines is 3323 [11:08:55]MH_Cut [11:08:55]Write to MH i2c: D1 01 00 DA 4A 01 F6 [11:08:55]Write i2c OK [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: D1 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: D1 01 00 [11:08:55]MH_I2C_Read... [11:08:55]Read from MH i2c: D1 01 00 DA 4A 00 F5 [11:08:55]Write to MH i2c: 01 00 00 DB 4A 25 [11:08:55]Write i2c OK [11:08:55]MH_I2C_Read... [11:08:56]OFD Sender: No OFD packet to send [11:08:56]*** Cut start [11:08:56]*** Partial cut [11:08:56]*** CUTSNS_PIN = 1 [11:08:56]*** CUTSNS_PIN = 0 [11:08:56]*** Brake cut motor [11:08:56]Read from MH i2c: 01 [11:08:56]MH_I2C_Read... [11:08:56]*** Stop cut motor [11:08:56]*** Cut end [11:08:56]Read from MH i2c: 01 07 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: 01 07 00 DB 4A 00 00 00 00 00 FF 0F 3A [11:08:56]process_action close_receipt done [11:08:56]requested_data is exist [11:08:56]produce_requested_data [11:08:56]requested_item fm.sn is exist - process it [11:08:56]wFMCommunicate request_size=4 [11:08:56]MH_SAM_APDU [11:08:56]CAPDU: 80 11 00 00 [11:08:56]Write to MH i2c: E2 08 00 DC 4A 80 11 00 00 00 00 00 00 A0 [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:56]Read from MH i2c: E2 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 17 00 [11:08:56]MH_I2C_Read... [11:08:56]Read from MH i2c: E2 17 00 DC 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 ED [11:08:56]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:56]wFMCommunicate OK [11:08:56]requested_item fd.num is exist - process it [11:08:56]SAM_PROTO_GetFieldsCounters [11:08:56]wFMCommunicate request_size=4 [11:08:56]MH_SAM_APDU [11:08:56]CAPDU: 80 13 00 00 [11:08:56]Write to MH i2c: E2 08 00 DD 4A 80 13 00 00 00 00 00 00 A3 [11:08:56]Write i2c OK [11:08:56]MH_I2C_Read... [11:08:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:57]Read from MH i2c: E2 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: E2 62 00 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: E2 62 00 DD 4A 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 BF 00 00 0E 04 04 00 F5 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 A5 [11:08: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 A8 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:57]wFMCommunicate OK [11:08:57]SAM_PROTO_GetFieldsCounters done [11:08:57]requested_item shift.num is exist - process it [11:08:57]requested_item shift.opened is exist - process it [11:08:57]req_shift_opened [11:08:57]FM_GetShiftState [11:08:57]SAM_PROTO_GetShiftState [11:08:57]wFMCommunicate request_size=4 [11:08:57]MH_SAM_APDU [11:08:57]CAPDU: 80 13 01 00 [11:08:57]Write to MH i2c: E2 08 00 DE 4A 80 13 01 00 00 00 00 00 A5 [11:08:57]Write i2c OK [11:08:57]MH_I2C_Read... [11:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:57]Read from MH i2c: E2 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: E2 0E 00 [11:08:57]MH_I2C_Read... [11:08:57]Read from MH i2c: E2 0E 00 DE 4A 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 17 [11:08:57]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:08:57]wFMCommunicate OK [11:08:57]SAM_PROTO_GetShiftState done [11:08:57]FM_GetShiftState done [11:08:57]req_shift_opened done [11:08:57]requested_item shift.open_date is exist - process it [11:08:57]req_shift_open_date [11:08:57]req_shift_open_date done [11:08:57]produce_requested_data done [11:08:57]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49064,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [11:08:57]process_action_free close_receipt [11:08:57]json_value_free [11:08:57]json_value_free done [11:08:57]process_json_proto returns [11:08:57]Send response to host [11:08:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49064,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [11:08:57]free response buf [11:08:57]execute_script done [11:08:57]execute_script returns [11:08:57]free content buf [11:08:57]Sock 7.Close socket [11:08:57]Sock 7.Thread stoped [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:41]accept exits with 9 [11:12:41]New connection [11:12:41]New thread 3066670436 created [11:12:41]Thread 3066813796 joined [11:12:41]Waiting for new connection... [11:12:41] Sock 9.Parse request [11:12:41]Sock 9.Check first char [11:12:41]Sock 9.First char is OK [11:12:41]request: POST /json_proto HTTP/1.0 [11:12:41]Method: POST [11:12:41]URL: /json_proto [11:12:41]Method is POST - this is cgi request [11:12:41]url: /json_proto [11:12:41]query_string will be loaded in cgi processing [11:12:41]execute_cgi json_proto POST (null) [11:12:41]execute_cgi path=json_proto method=POST [11:12:41]POST find Content-Length [11:12:41]Host: 172.17.56.67:8080 [11:12:41]Content-Length: 677 [11:12:41]Content-Type: application/json [11:12:41] [11:12:41]POST finish read [11:12:41]Found Content-Length = 677 [11:12:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216165", "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:12:41]execute_script... [11:12: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)216165", "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:12:41]POST & json_proto [11:12:41]process_json_proto [11:12:41]json parsed OK: [11:12:41]protocol is kg_v1.0 [11:12:41]action value=close_receipt [11:12:41]process_action close_receipt [11:12:41]cmd_close_receipt [11:12:41]MH_GetDate [11:12:41]Write to MH i2c: F0 00 00 DF 4A 18 [11:12:41]Write i2c OK [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: F0 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: F0 09 00 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: F0 09 00 DF 4A 00 37 88 B7 65 26 5D 9E 65 82 [11:12:41]GetLastDocTimeStamp 1706526546 [11:12:41]current date 1706526775 [11:12:41]FM_GetShiftState [11:12:41]SAM_PROTO_GetShiftState [11:12:41]wFMCommunicate request_size=4 [11:12:41]MH_SAM_APDU [11:12:41]CAPDU: 80 13 01 00 [11:12:41]Write to MH i2c: E2 08 00 E0 4A 80 13 01 00 00 00 00 00 A7 [11:12:41]Write i2c OK [11:12:41]MH_I2C_Read... [11:12:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:41]Read from MH i2c: E2 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: E2 0E 00 [11:12:41]MH_I2C_Read... [11:12:41]Read from MH i2c: E2 0E 00 E0 4A 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 19 [11:12:41]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:12:41]wFMCommunicate OK [11:12:41]SAM_PROTO_GetShiftState done [11:12:41]FM_GetShiftState done [11:12:41]opened in 1706486624 [11:12:41]opened+sec_in_day 1706573024 [11:12:41]quantity*price = 50049 [11:12:41]sum+1 = 50050 [11:12:41]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 СÐО: Общий режим Чек 48 29.01.2024 11:12 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49065 ФПД: 171427460307056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T111255&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49065&fm=171427460307056&tin=02508201610067®Number=0000000000092723&sum=50000 [11:12:43]StoreToDocumentArchive [11:12:43]shift 245 fd 49065 [11:12:43]save to /storage/0245/doc_00049065 [11:12:43]save last doc name /storage/0245/doc_00049065 to /storage/kkm_last_doc_name [11:12:43]save OK [11:12:43]Clear old archive folders... [11:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:43]tlvbuf is 013B8A00 [11:12:43]SAM_PROTO_ClearQueue [11:12:43]wFMCommunicate request_size=4 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 09 00 00 [11:12:43]Write to MH i2c: E2 08 00 ED 4A 80 09 00 00 00 00 00 00 A9 [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 ED 4A 00 90 00 AB [11:12:43]RAPDU: 90 00 [11:12:43]wFMCommunicate OK [11:12:43]SAM_PROTO_ClearQueue done [11:12:43]KKMCreateOFDPacket [11:12:43]OFDProtocolAddRootSTLVToBuf [11:12:43]FM_MakeSignedData [11:12:43]FM_MakeSignedData [11:12:43]SAM_PROTO_SignData [11:12:43]wFMCommunicate request_size=4 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 0D 01 02 [11:12:43]Write to MH i2c: E2 08 00 EE 4A 80 0D 01 02 00 00 00 00 B1 [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 EE 4A 00 90 00 AC [11:12:43]RAPDU: 90 00 [11:12:43]wFMCommunicate OK [11:12:43]wFMCommunicate request_size=255 [11:12:43]MH_SAM_APDU [11: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 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 30 00 00 00 F4 03 04 00 37 88 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 9B [11:12:43]Write to MH i2c: E2 02 01 EF 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 30 00 00 00 F4 03 04 00 37 88 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 9B 00 00 E4 [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 EF 4A 00 90 00 AD [11:12:43]RAPDU: 90 00 [11:12:43]wFMCommunicate OK [11:12:43]wFMCommunicate request_size=10 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 0D 02 02 05 E9 90 E0 58 70 [11:12:43]Write to MH i2c: E2 0D 00 F0 4A 80 0D 02 02 05 00 E9 90 E0 58 70 00 00 DF [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 03 00 F0 4A 00 90 00 AE [11:12:43]RAPDU: 90 00 [11:12:43]wFMCommunicate OK [11:12:43]wFMCommunicate request_size=4 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 0D 03 02 [11:12:43]Write to MH i2c: E2 08 00 F1 4A 80 0D 03 02 00 00 00 00 B6 [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 0B 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 0B 00 F1 4A 00 8C 9E 68 BB 56 74 D8 A0 90 00 46 [11:12:43]RAPDU: 8C 9E 68 BB 56 74 D8 A0 90 00 [11:12:43]wFMCommunicate OK [11:12:43]SAM_PROTO_SignData done [11:12:43]FM_MakeSignedData done [11:12:43]CreateOFDProtocolMessage [11:12:43]wFMCommunicate request_size=4 [11:12:43]MH_SAM_APDU [11:12:43]CAPDU: 80 11 00 00 [11:12:43]Write to MH i2c: E2 08 00 F2 4A 80 11 00 00 00 00 00 00 B6 [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:43]Read from MH i2c: E2 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 17 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: E2 17 00 F2 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 03 [11: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 [11:12:43]wFMCommunicate OK [11:12:43]CreateOFDProtocolMessage done [11:12:43]OFDSenderStorePacket 49065 [11:12:43]StoreOFDPacket docnum=49065 [11: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 29 6E 07 01 6D 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 30 00 00 00 F4 03 04 00 37 88 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 9B E9 90 E0 58 70 8C 9E 68 BB 56 74 D8 A0 [11:12:43]CheckFolder [11:12:43]dirname=/storage/ofd_packets [11:12:43]CheckFolder done [11:12:43]ProducePacketName [11:12:43]name=ofd_packets/00049065 [11:12:43]NVStorageSaveData ofd_packets/00049065 [11:12:43]File name is /storage/ofd_packets/00049065 [11:12:43]Write 301 bytes [11:12:43]NVStorageSaveData done [11:12:43]OFDSenderStorePacket done [11:12:43]KKMCreateOFDPacket done [11:12:43]NVStorageSaveData kkm_last_timestamp [11:12:43]File name is /storage/kkm_last_timestamp [11:12:43]Write 4 bytes [11:12:43]NVStorageSaveData done [11:12:43]ExternCall_PrintAddStr [11:12:43]wPrintStart [11:12:43]Write to MH i2c: 01 00 00 F3 4A 3D [11:12:43]Write i2c OK [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: 01 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: 01 07 00 [11:12:43]MH_I2C_Read... [11:12:43]Read from MH i2c: 01 07 00 F3 4A 00 00 00 00 00 FF 0F 52 [11:12:43]RasterBufferAndPrint [11:12:43]line Счет N : (1)216165 [11:12:43]line ИÐÐ: 02508201610067 [11:12:43]line Контрольно-КаÑÑовый Чек [11:12:43]line ПРОДÐЖР[11:12:43]line ТРК (МРК, ГÐК) : 22 [11:12:43]line Товар: 2710124130 [11:12:43]line Ðи-92-К-5 [11:12:43]line 8.300 * 60.30 [11:12:43]line = 500.49 [11:12:43]line ÐДС 12% ÐСП 1% [11:12:43]line > о реализуемом товаре [11:12:43]line ОКРУГЛЕÐИЕ: -0.49 [11:12:43]line ИТОГО: 500.00 [11:12:43]line ВнеÑено: 500.00 [11:12:43]line СДÐЧÐ: 0.00 [11:12:43]line ÐСП 1% : 4.43 [11:12:43]line ÐДС 12% : 53.15 [11:12:43]line Ðаличными: 500.00 [11:12:43]line Безнал.: 0.00 [11:12:43]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [11:12:43]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:12:43]line СÐО: Общий режим [11:12:43]line Чек 48 29.01.2024 11:12 [11:12:43]line Смена: 245 ФФД: 1.0 [11:12:43]line ЗÐМ: 0300000040 [11:12:43]line РÐМ: 0000000000092723 [11:12:43]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:12:43]line ФМ: 0000000000875060 [11:12:43]line ФД: 49065 [11:12:43]line ФПД: 171427460307056 [11:12:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T111255&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49065&fm=171427460307056&tin=02508201610067®Number=0000000000092723&sum=50000 [11:12:43]OFD Sender: Processing packet 49065 [packets to send 12, broken 11] [11:12:43]ProducePacketName [11:12:43]name=ofd_packets/00049065 [11:12:43]OFD Sender: To server: ‡•öpG, [11:12:43]CommunicateWithHost lk.salyk.kg:30040 [11:12:43]ConnectInit lk.salyk.kg [11:12:43]written 0, free lines is 4095 [11:12:44]Connected sock=10 [11: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 29 6E 07 01 6D 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 30 00 00 00 F4 03 04 00 37 88 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 9B E9 90 E0 58 70 8C 9E 68 BB 56 74 D8 A0 [11: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 C9 A3 47 00 B4 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 A9 BF 00 00 F4 03 04 00 2F 34 B7 65 B6 04 01 00 00 0D 90 48 0D 75 B2 F5 41 [11:12:44]CommunicateWithHost err = 0 [11:12:44]CheckOFDResponse [11:12:44]1017 (14) - 77093643461234 [11:12:44]1041 (16) - 0000000000875060 [11:12:44]1040 (4) - 49065 [11:12:44]1012 (4) - 29.01.2024 05:14 [11:12:44]1206 (1) - 0 [11:12:44]OFD Sender: Remove packet 49065 [11:12:44]ProducePacketName [11:12:44]name=ofd_packets/00049065 [11:12:44]NVStorageDeleteData [11:12:44]Write to MH i2c: 01 00 00 1E 4B 69 [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: 01 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: 01 07 00 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: 01 07 00 1E 4B 00 00 00 00 00 FD 0C 79 [11:12:44]RasterBufferAndPrint [11:12:44]line [11:12:44]line [11:12:44]line [11:12:44]line [11:12:44]line [11:12:44]written 0, free lines is 3332 [11:12:44]MH_Cut [11:12:44]Write to MH i2c: D1 01 00 25 4B 01 42 [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: D1 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: D1 01 00 [11:12:44]MH_I2C_Read... [11:12:44]Read from MH i2c: D1 01 00 25 4B 00 41 [11:12:44]Write to MH i2c: 01 00 00 26 4B 71 [11:12:44]Write i2c OK [11:12:44]MH_I2C_Read... [11:12:44]OFD Sender: No OFD packet to send [11:12:44]int [11:12:44]*** FLAG_PRN_PAP2 set [11:12:44]*** Cut start [11:12:44]*** Partial cut [11:12:44]*** CUTSNS_PIN = 1 [11:12:44]*** CUTSNS_PIN = 0 [11:12:45]*** Brake cut motor [11:12:45]Read from MH i2c: 01 [11:12:45]MH_I2C_Read... [11:12:45]*** Stop cut motor [11:12:45]*** Cut end [11:12:45]Read from MH i2c: 01 07 00 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: 01 07 00 26 4B 00 02 00 00 00 FF 0F 88 [11:12:45]process_action close_receipt done [11:12:45]requested_data is exist [11:12:45]produce_requested_data [11:12:45]requested_item fm.sn is exist - process it [11:12:45]wFMCommunicate request_size=4 [11:12:45]MH_SAM_APDU [11:12:45]CAPDU: 80 11 00 00 [11:12:45]Write to MH i2c: E2 08 00 27 4B 80 11 00 00 00 00 00 00 EC [11:12:45]Write i2c OK [11:12:45]MH_I2C_Read... [11:12:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:45]Read from MH i2c: E2 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: E2 17 00 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: E2 17 00 27 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 39 [11:12: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:12:45]wFMCommunicate OK [11:12:45]requested_item fd.num is exist - process it [11:12:45]SAM_PROTO_GetFieldsCounters [11:12:45]wFMCommunicate request_size=4 [11:12:45]MH_SAM_APDU [11:12:45]CAPDU: 80 13 00 00 [11:12:45]Write to MH i2c: E2 08 00 28 4B 80 13 00 00 00 00 00 00 EF [11:12:45]Write i2c OK [11:12:45]MH_I2C_Read... [11:12:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:45]Read from MH i2c: E2 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: E2 62 00 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: E2 62 00 28 4B 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 BF 00 00 0E 04 04 00 F5 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 F5 [11:12: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 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:45]wFMCommunicate OK [11:12:45]SAM_PROTO_GetFieldsCounters done [11:12:45]requested_item shift.num is exist - process it [11:12:45]requested_item shift.opened is exist - process it [11:12:45]req_shift_opened [11:12:45]FM_GetShiftState [11:12:45]SAM_PROTO_GetShiftState [11:12:45]wFMCommunicate request_size=4 [11:12:45]MH_SAM_APDU [11:12:45]CAPDU: 80 13 01 00 [11:12:45]Write to MH i2c: 01 00 00 29 4B 74 [11:12:45]Write i2c OK [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: 01 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: 01 07 00 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: 01 07 00 29 4B 00 02 00 00 00 FF 0F 8B [11:12:45]state=0 [11:12:45]Cover opened [11:12:45]Write to MH i2c: E2 08 00 2A 4B 80 13 01 00 00 00 00 00 F2 [11:12:45]Write i2c OK [11:12:45]MH_I2C_Read... [11:12:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:45]Read from MH i2c: E2 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: E2 0E 00 [11:12:45]MH_I2C_Read... [11:12:45]Read from MH i2c: E2 0E 00 2A 4B 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 64 [11:12:45]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:12:45]wFMCommunicate OK [11:12:45]SAM_PROTO_GetShiftState done [11:12:45]FM_GetShiftState done [11:12:45]req_shift_opened done [11:12:45]requested_item shift.open_date is exist - process it [11:12:45]req_shift_open_date [11:12:45]req_shift_open_date done [11:12:45]produce_requested_data done [11:12:45]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49065,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [11:12:45]process_action_free close_receipt [11:12:45]json_value_free [11:12:45]json_value_free done [11:12:45]process_json_proto returns [11:12:45]Send response to host [11:12:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49065,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [11:12:45]free response buf [11:12:45]execute_script done [11:12:45]execute_script returns [11:12:45]free content buf [11:12:45]Sock 9.Close socket [11:12:45]Sock 9.Thread stoped [11:12:49]OFD Sender: No OFD packet to send [11:12:50]Write to MH i2c: 01 00 00 2B 4B 76 [11:12:50]Write i2c OK [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 07 00 [11:12:50]MH_I2C_Read... [11:12:50]Read from MH i2c: 01 07 00 2B 4B 00 02 00 00 00 FF 0F 8D [11:12:50]state=3 [11:12:50]Cover opened [11:12:54]OFD Sender: No OFD packet to send [11:12:55]Write to MH i2c: 01 00 00 2C 4B 77 [11:12:55]Write i2c OK [11:12:55]MH_I2C_Read... [11:12:55]Read from MH i2c: 01 [11:12:55]MH_I2C_Read... [11:12:55]Read from MH i2c: 01 07 00 [11:12:55]MH_I2C_Read... [11:12:55]Read from MH i2c: 01 07 00 2C 4B 00 02 00 00 00 FF 0F 8E [11:12:55]state=3 [11:12:55]Cover opened [11:12:59]OFD Sender: No OFD packet to send [11:13:00]Write to MH i2c: 01 00 00 2D 4B 78 [11:13:00]Write i2c OK [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: 01 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: 01 07 00 [11:13:00]MH_I2C_Read... [11:13:00]Read from MH i2c: 01 07 00 2D 4B 00 02 00 00 00 FF 0F 8F [11:13:00]state=3 [11:13:00]Cover opened [11:13:04]OFD Sender: No OFD packet to send [11:13:05]Write to MH i2c: 01 00 00 2E 4B 79 [11:13:05]Write i2c OK [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: 01 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: 01 07 00 [11:13:05]MH_I2C_Read... [11:13:05]Read from MH i2c: 01 07 00 2E 4B 00 02 00 00 00 FF 0F 90 [11:13:05]state=3 [11:13:05]Cover opened [11:13:09]OFD Sender: No OFD packet to send [11:13:10]Write to MH i2c: 01 00 00 2F 4B 7A [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: 01 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: 01 07 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: 01 07 00 2F 4B 00 02 00 00 00 FF 0F 91 [11:13:10]state=3 [11:13:10]Cover opened [11:13:14]OFD Sender: No OFD packet to send [11:13:15]Write to MH i2c: 01 00 00 30 4B 7B [11:13:15]Write i2c OK [11:13:15]MH_I2C_Read... [11:13:15]Read from MH i2c: 01 [11:13:15]MH_I2C_Read... [11:13:15]Read from MH i2c: 01 07 00 [11:13:15]MH_I2C_Read... [11:13:15]Read from MH i2c: 01 07 00 30 4B 00 02 00 00 00 FF 0F 92 [11:13:15]state=3 [11:13:15]Cover opened [11:13:19]OFD Sender: No OFD packet to send [11:13:20]Write to MH i2c: 01 00 00 31 4B 7C [11:13:20]Write i2c OK [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: 01 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: 01 07 00 [11:13:20]MH_I2C_Read... [11:13:20]Read from MH i2c: 01 07 00 31 4B 00 02 00 00 00 FF 0F 93 [11:13:20]state=3 [11:13:20]Cover opened [11:13:24]OFD Sender: No OFD packet to send [11:13:25]Write to MH i2c: 01 00 00 32 4B 7D [11:13:25]Write i2c OK [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: 01 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: 01 07 00 [11:13:25]MH_I2C_Read... [11:13:25]Read from MH i2c: 01 07 00 32 4B 00 02 00 00 00 FF 0F 94 [11:13:25]state=3 [11:13:25]Cover opened [11:13:29]OFD Sender: No OFD packet to send [11:13:30]Write to MH i2c: 01 00 00 33 4B 7E [11:13:30]Write i2c OK [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: 01 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: 01 07 00 [11:13:30]MH_I2C_Read... [11:13:30]Read from MH i2c: 01 07 00 33 4B 00 02 00 00 00 FF 0F 95 [11:13:30]state=3 [11:13:30]Cover opened [11:13:34]OFD Sender: No OFD packet to send [11:13:35]Write to MH i2c: 01 00 00 34 4B 7F [11:13:35]Write i2c OK [11:13:35]MH_I2C_Read... [11:13:35]Read from MH i2c: 01 [11:13:35]MH_I2C_Read... [11:13:35]Read from MH i2c: 01 07 00 [11:13:35]MH_I2C_Read... [11:13:35]Read from MH i2c: 01 07 00 34 4B 00 02 00 00 00 FF 0F 96 [11:13:35]state=3 [11:13:35]Cover opened [11:13:39]OFD Sender: No OFD packet to send [11:13:40]Write to MH i2c: 01 00 00 35 4B 80 [11:13:40]Write i2c OK [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: 01 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: 01 07 00 [11:13:40]MH_I2C_Read... [11:13:40]Read from MH i2c: 01 07 00 35 4B 00 02 00 00 00 FF 0F 97 [11:13:40]state=3 [11:13:40]Cover opened [11:13:44]OFD Sender: No OFD packet to send [11:13:45]Write to MH i2c: 01 00 00 36 4B 81 [11:13:45]Write i2c OK [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 07 00 [11:13:45]MH_I2C_Read... [11:13:45]Read from MH i2c: 01 07 00 36 4B 00 02 00 00 00 FF 0F 98 [11:13:45]state=3 [11:13:45]Cover opened [11:13:49]OFD Sender: No OFD packet to send [11:13:50]Write to MH i2c: 01 00 00 37 4B 82 [11:13:50]Write i2c OK [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: 01 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: 01 07 00 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: 01 07 00 37 4B 00 02 00 00 00 FF 0F 99 [11:13:50]state=3 [11:13:50]Cover opened [11:13:54]OFD Sender: No OFD packet to send [11:13:55]Write to MH i2c: 01 00 00 38 4B 83 [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: 01 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: 01 07 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: 01 07 00 38 4B 00 02 00 00 00 FF 0F 9A [11:13:55]state=3 [11:13:55]Cover opened [11:13:59]OFD Sender: No OFD packet to send [11:14:00]Write to MH i2c: 01 00 00 39 4B 84 [11:14:00]Write i2c OK [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 07 00 [11:14:00]MH_I2C_Read... [11:14:00]Read from MH i2c: 01 07 00 39 4B 00 02 00 00 00 FF 0F 9B [11:14:00]state=3 [11:14:00]Cover opened [11:14:04]OFD Sender: No OFD packet to send [11:14:05]Write to MH i2c: 01 00 00 3A 4B 85 [11:14:05]Write i2c OK [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: 01 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: 01 07 00 [11:14:05]MH_I2C_Read... [11:14:05]Read from MH i2c: 01 07 00 3A 4B 00 02 00 00 00 FF 0F 9C [11:14:05]state=3 [11:14:05]Cover opened [11:14:09]OFD Sender: No OFD packet to send [11:14:10]Write to MH i2c: 01 00 00 3B 4B 86 [11:14:10]Write i2c OK [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 [11:14:10]MH_I2C_Read... [11:14:10]Read from MH i2c: 01 07 00 3B 4B 00 02 00 00 00 FF 0F 9D [11:14:10]state=3 [11:14:10]Cover opened [11:14:14]OFD Sender: No OFD packet to send [11:14:15]Write to MH i2c: 01 00 00 3C 4B 87 [11:14:15]Write i2c OK [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: 01 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: 01 07 00 [11:14:15]MH_I2C_Read... [11:14:15]Read from MH i2c: 01 07 00 3C 4B 00 02 00 00 00 FF 0F 9E [11:14:15]state=3 [11:14:15]Cover opened [11:14:19]OFD Sender: No OFD packet to send [11:14:20]Write to MH i2c: 01 00 00 3D 4B 88 [11:14:20]Write i2c OK [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: 01 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: 01 07 00 [11:14:20]MH_I2C_Read... [11:14:20]Read from MH i2c: 01 07 00 3D 4B 00 02 00 00 00 FF 0F 9F [11:14:20]state=3 [11:14:20]Cover opened [11:14:24]OFD Sender: No OFD packet to send [11:14:25]Write to MH i2c: 01 00 00 3E 4B 89 [11:14:25]Write i2c OK [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: 01 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: 01 07 00 [11:14:25]MH_I2C_Read... [11:14:25]Read from MH i2c: 01 07 00 3E 4B 00 02 00 00 00 FF 0F A0 [11:14:25]state=3 [11:14:25]Cover opened [11:14:29]OFD Sender: No OFD packet to send [11:14:30]Write to MH i2c: 01 00 00 3F 4B 8A [11:14:30]Write i2c OK [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: 01 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: 01 07 00 [11:14:30]MH_I2C_Read... [11:14:30]Read from MH i2c: 01 07 00 3F 4B 00 02 00 00 00 FF 0F A1 [11:14:30]state=3 [11:14:30]Cover opened [11:14:34]OFD Sender: No OFD packet to send [11:14:35]Write to MH i2c: 01 00 00 40 4B 8B [11:14:35]Write i2c OK [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: 01 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: 01 07 00 [11:14:35]MH_I2C_Read... [11:14:35]Read from MH i2c: 01 07 00 40 4B 00 02 00 00 00 FF 0F A2 [11:14:35]state=3 [11:14:35]Cover opened [11:14:39]OFD Sender: No OFD packet to send [11:14:40]Write to MH i2c: 01 00 00 41 4B 8C [11:14:40]Write i2c OK [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: 01 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: 01 07 00 [11:14:40]MH_I2C_Read... [11:14:40]Read from MH i2c: 01 07 00 41 4B 00 02 00 00 00 FF 0F A3 [11:14:40]state=3 [11:14:40]Cover opened [11:14:44]OFD Sender: No OFD packet to send [11:14:45]Write to MH i2c: 01 00 00 42 4B 8D [11:14:45]Write i2c OK [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: 01 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: 01 07 00 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: 01 07 00 42 4B 00 02 00 00 00 FF 0F A4 [11:14:45]state=3 [11:14:45]Cover opened [11:14:49]OFD Sender: No OFD packet to send [11:14:50]Write to MH i2c: 01 00 00 43 4B 8E [11:14:50]Write i2c OK [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: 01 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: 01 07 00 [11:14:50]MH_I2C_Read... [11:14:50]Read from MH i2c: 01 07 00 43 4B 00 02 00 00 00 FF 0F A5 [11:14:50]state=3 [11:14:50]Cover opened [11:14:54]OFD Sender: No OFD packet to send [11:14:55]Write to MH i2c: 01 00 00 44 4B 8F [11:14:55]Write i2c OK [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: 01 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: 01 07 00 [11:14:55]MH_I2C_Read... [11:14:55]Read from MH i2c: 01 07 00 44 4B 00 02 00 00 00 FF 0F A6 [11:14:55]state=3 [11:14:55]Cover opened [11:14:59]OFD Sender: No OFD packet to send [11:15:00]Write to MH i2c: 01 00 00 45 4B 90 [11:15:00]Write i2c OK [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: 01 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: 01 07 00 [11:15:00]MH_I2C_Read... [11:15:00]Read from MH i2c: 01 07 00 45 4B 00 02 00 00 00 FF 0F A7 [11:15:00]state=3 [11:15:00]Cover opened [11:15:04]OFD Sender: No OFD packet to send [11:15:05]Write to MH i2c: 01 00 00 46 4B 91 [11:15:05]Write i2c OK [11:15:05]MH_I2C_Read... [11:15:05]Read from MH i2c: 01 [11:15:05]MH_I2C_Read... [11:15:05]Read from MH i2c: 01 07 00 [11:15:05]MH_I2C_Read... [11:15:05]Read from MH i2c: 01 07 00 46 4B 00 02 00 00 00 FF 0F A8 [11:15:05]state=3 [11:15:05]Cover opened [11:15:09]OFD Sender: No OFD packet to send [11:15:10]Write to MH i2c: 01 00 00 47 4B 92 [11:15:10]Write i2c OK [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: 01 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: 01 07 00 [11:15:10]MH_I2C_Read... [11:15:10]Read from MH i2c: 01 07 00 47 4B 00 02 00 00 00 FF 0F A9 [11:15:10]state=3 [11:15:10]Cover opened [11:15:14]OFD Sender: No OFD packet to send [11:15:15]Write to MH i2c: 01 00 00 48 4B 93 [11:15:15]Write i2c OK [11:15:15]MH_I2C_Read... [11:15:15]Read from MH i2c: 01 [11:15:15]MH_I2C_Read... [11:15:15]Read from MH i2c: 01 07 00 [11:15:15]MH_I2C_Read... [11:15:15]Read from MH i2c: 01 07 00 48 4B 00 02 00 00 00 FF 0F AA [11:15:15]state=3 [11:15:15]Cover opened [11:15:19]OFD Sender: No OFD packet to send [11:15:20]Write to MH i2c: 01 00 00 49 4B 94 [11:15:20]Write i2c OK [11:15:20]MH_I2C_Read... [11:15:20]Read from MH i2c: 01 [11:15:20]MH_I2C_Read... [11:15:20]Read from MH i2c: 01 07 00 [11:15:20]MH_I2C_Read... [11:15:20]Read from MH i2c: 01 07 00 49 4B 00 02 00 00 00 FF 0F AB [11:15:20]state=3 [11:15:20]Cover opened [11:15:24]OFD Sender: No OFD packet to send [11:15:25]Write to MH i2c: 01 00 00 4A 4B 95 [11:15:25]Write i2c OK [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: 01 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: 01 07 00 [11:15:25]MH_I2C_Read... [11:15:25]Read from MH i2c: 01 07 00 4A 4B 00 02 00 00 00 FF 0F AC [11:15:25]state=3 [11:15:25]Cover opened [11:15:29]OFD Sender: No OFD packet to send [11:15:30]Write to MH i2c: 01 00 00 4B 4B 96 [11:15:30]Write i2c OK [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: 01 [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: 01 07 00 [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: 01 07 00 4B 4B 00 02 00 00 00 FF 0F AD [11:15:30]state=3 [11:15:30]Cover opened [11:15:34]OFD Sender: No OFD packet to send [11:15:35]Write to MH i2c: 01 00 00 4C 4B 97 [11:15:35]Write i2c OK [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: 01 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: 01 07 00 [11:15:35]MH_I2C_Read... [11:15:35]Read from MH i2c: 01 07 00 4C 4B 00 02 00 00 00 FF 0F AE [11:15:35]state=3 [11:15:35]Cover opened [11:15:39]OFD Sender: No OFD packet to send [11:15:40]Write to MH i2c: 01 00 00 4D 4B 98 [11:15:40]Write i2c OK [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 07 00 [11:15:40]MH_I2C_Read... [11:15:40]Read from MH i2c: 01 07 00 4D 4B 00 02 00 00 00 FF 0F AF [11:15:40]state=3 [11:15:40]Cover opened [11:15:44]OFD Sender: No OFD packet to send [11:15:45]Write to MH i2c: 01 00 00 4E 4B 99 [11:15:45]Write i2c OK [11:15:45]MH_I2C_Read... [11:15:45]Read from MH i2c: 01 [11:15:45]MH_I2C_Read... [11:15:45]Read from MH i2c: 01 07 00 [11:15:45]MH_I2C_Read... [11:15:45]Read from MH i2c: 01 07 00 4E 4B 00 02 00 00 00 FF 0F B0 [11:15:45]state=3 [11:15:45]Cover opened [11:15:49]OFD Sender: No OFD packet to send [11:15:50]Write to MH i2c: 01 00 00 4F 4B 9A [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: 01 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: 01 07 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: 01 07 00 4F 4B 00 02 00 00 00 FF 0F B1 [11:15:50]state=3 [11:15:50]Cover opened [11:15:54]OFD Sender: No OFD packet to send [11:15:55]Write to MH i2c: 01 00 00 50 4B 9B [11:15:55]Write i2c OK [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: 01 [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: 01 07 00 [11:15:55]MH_I2C_Read... [11:15:55]Read from MH i2c: 01 07 00 50 4B 00 02 00 00 00 FF 0F B2 [11:15:55]state=3 [11:15:55]Cover opened [11:15:59]OFD Sender: No OFD packet to send [11:16:00]Write to MH i2c: 01 00 00 51 4B 9C [11:16:00]Write i2c OK [11:16:00]MH_I2C_Read... [11:16:00]Read from MH i2c: 01 [11:16:00]MH_I2C_Read... [11:16:00]Read from MH i2c: 01 07 00 [11:16:00]MH_I2C_Read... [11:16:00]Read from MH i2c: 01 07 00 51 4B 00 02 00 00 00 FF 0F B3 [11:16:00]state=3 [11:16:00]Cover opened [11:16:04]OFD Sender: No OFD packet to send [11:16:05]Write to MH i2c: 01 00 00 52 4B 9D [11:16:05]Write i2c OK [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: 01 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: 01 07 00 [11:16:05]MH_I2C_Read... [11:16:05]Read from MH i2c: 01 07 00 52 4B 00 02 00 00 00 FF 0F B4 [11:16:05]state=3 [11:16:05]Cover opened [11:16:09]OFD Sender: No OFD packet to send [11:16:10]Write to MH i2c: 01 00 00 53 4B 9E [11:16:10]Write i2c OK [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: 01 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: 01 07 00 [11:16:10]MH_I2C_Read... [11:16:10]Read from MH i2c: 01 07 00 53 4B 00 02 00 00 00 FF 0F B5 [11:16:10]state=3 [11:16:10]Cover opened [11:16:14]OFD Sender: No OFD packet to send [11:16:15]Write to MH i2c: 01 00 00 54 4B 9F [11:16:15]Write i2c OK [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: 01 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: 01 07 00 [11:16:15]MH_I2C_Read... [11:16:15]Read from MH i2c: 01 07 00 54 4B 00 02 00 00 00 FF 0F B6 [11:16:15]state=3 [11:16:15]Cover opened [11:16:18]accept exits with 7 [11:16:18]New connection [11:16:18]New thread 3066813796 created [11:16:18]Thread 3066670436 joined [11:16:18]Waiting for new connection... [11:16:18] Sock 7.Parse request [11:16:18]Sock 7.Check first char [11:16:18]Sock 7.First char is OK [11:16:18]request: POST /json_proto HTTP/1.0 [11:16:18]Method: POST [11:16:18]URL: /json_proto [11:16:18]Method is POST - this is cgi request [11:16:18]url: /json_proto [11:16:18]query_string will be loaded in cgi processing [11:16:18]execute_cgi json_proto POST (null) [11:16:18]execute_cgi path=json_proto method=POST [11:16:18]POST find Content-Length [11:16:18]Host: 172.17.56.67:8080 [11:16:18]Content-Length: 682 [11:16:18]Content-Type: application/json [11:16:18] [11:16:18]POST finish read [11:16:18]Found Content-Length = 682 [11:16:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216166", "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" : 26.540, "sum" : 1600.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:18]execute_script... [11:16:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216166", "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" : 26.540, "sum" : 1600.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1600.00, "total" : 1600.00, "payments": [ { "type": 0, "sum" : 1600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:18]POST & json_proto [11:16:18]process_json_proto [11:16:18]json parsed OK: [11:16:18]protocol is kg_v1.0 [11:16:18]action value=close_receipt [11:16:18]process_action close_receipt [11:16:18]cmd_close_receipt [11:16:18]MH_GetDate [11:16:18]Write to MH i2c: F0 00 00 55 4B 8F [11:16:18]Write i2c OK [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: F0 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: F0 09 00 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: F0 09 00 55 4B 00 10 89 B7 65 26 5D 9E 65 D3 [11:16:18]GetLastDocTimeStamp 1706526775 [11:16:18]current date 1706526992 [11:16:18]FM_GetShiftState [11:16:18]SAM_PROTO_GetShiftState [11:16:18]wFMCommunicate request_size=4 [11:16:18]MH_SAM_APDU [11:16:18]CAPDU: 80 13 01 00 [11:16:18]Write to MH i2c: E2 08 00 56 4B 80 13 01 00 00 00 00 00 1E [11:16:18]Write i2c OK [11:16:18]MH_I2C_Read... [11:16:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:18]Read from MH i2c: E2 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: E2 0E 00 [11:16:18]MH_I2C_Read... [11:16:18]Read from MH i2c: E2 0E 00 56 4B 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 90 [11:16:18]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:16:18]wFMCommunicate OK [11:16:18]SAM_PROTO_GetShiftState done [11:16:18]FM_GetShiftState done [11:16:18]opened in 1706486624 [11:16:18]opened+sec_in_day 1706573024 [11:16:18]quantity*price = 160036 [11:16:18]sum+1 = 160037 [11:16:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.36 ИТОГО: 1600.00 ВнеÑено: 1600.00 СДÐЧÐ: 0.00 ÐСП 1% : 14.16 ÐДС 12% : 169.95 Ðаличными: 1600.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 49 29.01.2024 11:16 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49066 ФПД: 3467793788515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T111632&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49066&fm=3467793788515&tin=02508201610067®Number=0000000000092723&sum=160000 [11:16:19]StoreToDocumentArchive [11:16:19]shift 245 fd 49066 [11:16:19]save to /storage/0245/doc_00049066 [11:16:19]save last doc name /storage/0245/doc_00049066 to /storage/kkm_last_doc_name [11:16:19]save OK [11:16:19]Clear old archive folders... [11:16:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:19]tlvbuf is 01199F50 [11:16:19]SAM_PROTO_ClearQueue [11:16:19]wFMCommunicate request_size=4 [11:16:19]MH_SAM_APDU [11:16:19]CAPDU: 80 09 00 00 [11:16:19]Write to MH i2c: E2 08 00 63 4B 80 09 00 00 00 00 00 00 20 [11:16:19]Write i2c OK [11:16:19]MH_I2C_Read... [11:16:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:19]Read from MH i2c: E2 [11:16:19]MH_I2C_Read... [11:16:19]Read from MH i2c: E2 03 00 [11:16:19]MH_I2C_Read... [11:16:19]Read from MH i2c: E2 03 00 63 4B 00 90 00 22 [11:16:19]RAPDU: 90 00 [11:16:19]wFMCommunicate OK [11:16:19]SAM_PROTO_ClearQueue done [11:16:19]KKMCreateOFDPacket [11:16:19]OFDProtocolAddRootSTLVToBuf [11:16:19]FM_MakeSignedData [11:16:19]FM_MakeSignedData [11:16:19]SAM_PROTO_SignData [11:16:19]wFMCommunicate request_size=4 [11:16:19]MH_SAM_APDU [11:16:19]CAPDU: 80 0D 01 02 [11:16:19]Write to MH i2c: E2 08 00 64 4B 80 0D 01 02 00 00 00 00 28 [11:16:19]Write i2c OK [11:16:19]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 64 4B 00 90 00 23 [11:16:20]RAPDU: 90 00 [11:16:20]wFMCommunicate OK [11:16:20]wFMCommunicate request_size=255 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 67 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 24 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 10 89 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 03 [11:16:20]Write to MH i2c: E2 02 01 65 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 67 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 24 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 10 89 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 03 00 00 D8 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 65 4B 00 90 00 24 [11:16:20]RAPDU: 90 00 [11:16:20]wFMCommunicate OK [11:16:20]wFMCommunicate request_size=10 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 0D 02 02 05 27 68 9D EE 63 [11:16:20]Write to MH i2c: E2 0D 00 66 4B 80 0D 02 02 05 00 27 68 9D EE 63 00 00 B2 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 03 00 66 4B 00 90 00 25 [11:16:20]RAPDU: 90 00 [11:16:20]wFMCommunicate OK [11:16:20]wFMCommunicate request_size=4 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 0D 03 02 [11:16:20]Write to MH i2c: E2 08 00 67 4B 80 0D 03 02 00 00 00 00 2D [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 0B 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 0B 00 67 4B 00 01 48 A5 84 A1 E5 DE E2 90 00 E6 [11:16:20]RAPDU: 01 48 A5 84 A1 E5 DE E2 90 00 [11:16:20]wFMCommunicate OK [11:16:20]SAM_PROTO_SignData done [11:16:20]FM_MakeSignedData done [11:16:20]CreateOFDProtocolMessage [11:16:20]wFMCommunicate request_size=4 [11:16:20]MH_SAM_APDU [11:16:20]CAPDU: 80 11 00 00 [11:16:20]Write to MH i2c: E2 08 00 68 4B 80 11 00 00 00 00 00 00 2D [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:20]Read from MH i2c: E2 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 17 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: E2 17 00 68 4B 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:16: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:16:20]wFMCommunicate OK [11:16:20]CreateOFDProtocolMessage done [11:16:20]OFDSenderStorePacket 49066 [11:16:20]StoreOFDPacket docnum=49066 [11:16:20]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 54 46 07 01 6F CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 67 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 24 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 10 89 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 03 27 68 9D EE 63 01 48 A5 84 A1 E5 DE E2 [11:16:20]CheckFolder [11:16:20]dirname=/storage/ofd_packets [11:16:20]CheckFolder done [11:16:20]ProducePacketName [11:16:20]name=ofd_packets/00049066 [11:16:20]NVStorageSaveData ofd_packets/00049066 [11:16:20]File name is /storage/ofd_packets/00049066 [11:16:20]Write 301 bytes [11:16:20]NVStorageSaveData done [11:16:20]OFDSenderStorePacket done [11:16:20]KKMCreateOFDPacket done [11:16:20]NVStorageSaveData kkm_last_timestamp [11:16:20]File name is /storage/kkm_last_timestamp [11:16:20]Write 4 bytes [11:16:20]NVStorageSaveData done [11:16:20]ExternCall_PrintAddStr [11:16:20]wPrintStart [11:16:20]Write to MH i2c: 01 00 00 69 4B B4 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: 01 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: 01 07 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: 01 07 00 69 4B 00 02 00 00 00 FF 0F CB [11:16:20]RasterBufferAndPrint [11:16:20]line Счет N : (1)216166 [11:16:20]line ИÐÐ: 02508201610067 [11:16:20]line Контрольно-КаÑÑовый Чек [11:16:20]line ПРОДÐЖР[11:16:20]line ТРК (МРК, ГÐК) : 22 [11:16:20]line Товар: 2710124130 [11:16:20]line Ðи-92-К-5 [11:16:20]line 26.540 * 60.30 [11:16:20]line = 1600.36 [11:16:20]line ÐДС 12% ÐСП 1% [11:16:20]line > о реализуемом товаре [11:16:20]line ОКРУГЛЕÐИЕ: -0.36 [11:16:20]line ИТОГО: 1600.00 [11:16:20]line ВнеÑено: 1600.00 [11:16:20]line СДÐЧÐ: 0.00 [11:16:20]line ÐСП 1% : 14.16 [11:16:20]line ÐДС 12% : 169.95 [11:16:20]line Ðаличными: 1600.00 [11:16:20]line Безнал.: 0.00 [11:16:20]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [11:16:20]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:16:20]line СÐО: Общий режим [11:16:20]line Чек 49 29.01.2024 11:16 [11:16:20]line Смена: 245 ФФД: 1.0 [11:16:20]line ЗÐМ: 0300000040 [11:16:20]line РÐМ: 0000000000092723 [11:16:20]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:16:20]line ФМ: 0000000000875060 [11:16:20]line ФД: 49066 [11:16:20]line ФПД: 3467793788515 [11:16:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T111632&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49066&fm=3467793788515&tin=02508201610067®Number=0000000000092723&sum=160000 [11:16:20]written 0, free lines is 4095 [11:16:20]Error from MH - 05 [11:16:20]process_action_free close_receipt [11:16:20]json_value_free [11:16:20]json_value_free done [11:16:20]process_json_proto returns [11:16:20]Send response to host [11:16:20]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [11:16:20]free response buf [11:16:20]execute_script done [11:16:20]execute_script returns [11:16:20]free content buf [11:16:20]Sock 7.Close socket [11:16:20]Sock 7.Thread stoped [11:16:20]OFD Sender: Processing packet 49066 [packets to send 12, broken 11] [11:16:20]ProducePacketName [11:16:20]name=ofd_packets/00049066 [11:16:20]OFD Sender: To server: ‡•öpG, [11:16:20]CommunicateWithHost lk.salyk.kg:30040 [11:16:20]ConnectInit lk.salyk.kg [11:16:20]Write to MH i2c: 01 00 00 6C 4B B7 [11:16:20]Write i2c OK [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: 01 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: 01 07 00 [11:16:20]MH_I2C_Read... [11:16:20]Read from MH i2c: 01 07 00 6C 4B 00 02 00 00 00 FF 0F CE [11:16:20]state=3 [11:16:20]Cover opened [11:16:20]Connected sock=7 [11:16:20]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 54 46 07 01 6F CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AC 67 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 24 71 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 71 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 42 00 00 00 00 07 04 06 00 00 71 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 10 89 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 03 27 68 9D EE 63 01 48 A5 84 A1 E5 DE E2 [11:16: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 AD F2 47 00 42 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AA BF 00 00 F4 03 04 00 08 35 B7 65 B6 04 01 00 00 C5 88 74 13 DA D6 FB D6 [11:16:21]CommunicateWithHost err = 0 [11:16:21]CheckOFDResponse [11:16:21]1017 (14) - 77093643461234 [11:16:21]1041 (16) - 0000000000875060 [11:16:21]1040 (4) - 49066 [11:16:21]1012 (4) - 29.01.2024 05:18 [11:16:21]1206 (1) - 0 [11:16:21]OFD Sender: Remove packet 49066 [11:16:21]ProducePacketName [11:16:21]name=ofd_packets/00049066 [11:16:21]NVStorageDeleteData [11:16:21]OFD Sender: No OFD packet to send [11:16:25]Write to MH i2c: 01 00 00 6D 4B B8 [11:16:25]Write i2c OK [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: 01 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: 01 07 00 [11:16:25]MH_I2C_Read... [11:16:25]Read from MH i2c: 01 07 00 6D 4B 00 02 00 00 00 FF 0F CF [11:16:25]state=3 [11:16:25]Cover opened [11:16:26]OFD Sender: No OFD packet to send [11:16:30]Write to MH i2c: 01 00 00 6E 4B B9 [11:16:30]Write i2c OK [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: 01 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: 01 07 00 [11:16:30]MH_I2C_Read... [11:16:30]Read from MH i2c: 01 07 00 6E 4B 00 02 00 00 00 FF 0F D0 [11:16:30]state=3 [11:16:30]Cover opened [11:16:31]OFD Sender: No OFD packet to send [11:16:32]int [11:16:32]Write to MH i2c: 01 00 00 6F 4B BA [11:16:32]*** FLAG_PRN_PAP1 set [11:16:32]Write i2c OK [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: 01 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: 01 07 00 [11:16:32]MH_I2C_Read... [11:16:32]Read from MH i2c: 01 07 00 6F 4B 00 03 00 00 00 FF 0F D2 [11:16:32]state=3 [11:16:32]No paper [11:16:32]Cover opened [11:16:36]OFD Sender: No OFD packet to send [11:16:37]Write to MH i2c: 01 00 00 70 4B BB [11:16:37]Write i2c OK [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: 01 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: 01 07 00 [11:16:37]MH_I2C_Read... [11:16:37]Read from MH i2c: 01 07 00 70 4B 00 03 00 00 00 FF 0F D3 [11:16:37]state=3 [11:16:37]No paper [11:16:37]Cover opened [11:16:41]OFD Sender: No OFD packet to send [11:16:42]Write to MH i2c: 01 00 00 71 4B BC [11:16:42]Write i2c OK [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: 01 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: 01 07 00 [11:16:42]MH_I2C_Read... [11:16:42]Read from MH i2c: 01 07 00 71 4B 00 03 00 00 00 FF 0F D4 [11:16:42]state=3 [11:16:42]No paper [11:16:42]Cover opened [11:16:46]OFD Sender: No OFD packet to send [11:16:48]Write to MH i2c: 01 00 00 72 4B BD [11:16:48]Write i2c OK [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 [11:16:48]MH_I2C_Read... [11:16:48]Read from MH i2c: 01 07 00 72 4B 00 03 00 00 00 FF 0F D5 [11:16:48]state=3 [11:16:48]No paper [11:16:48]Cover opened [11:16:51]OFD Sender: No OFD packet to send [11:16:53]Write to MH i2c: 01 00 00 73 4B BE [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: 01 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: 01 07 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: 01 07 00 73 4B 00 03 00 00 00 FF 0F D6 [11:16:53]state=3 [11:16:53]No paper [11:16:53]Cover opened [11:16:56]OFD Sender: No OFD packet to send [11:16:58]Write to MH i2c: 01 00 00 74 4B BF [11:16:58]Write i2c OK [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: 01 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: 01 07 00 [11:16:58]MH_I2C_Read... [11:16:58]Read from MH i2c: 01 07 00 74 4B 00 03 00 00 00 FF 0F D7 [11:16:58]state=3 [11:16:58]No paper [11:16:58]Cover opened [11:17:01]OFD Sender: No OFD packet to send [11:17:02]int [11:17:02]Write to MH i2c: 01 00 00 75 4B C0 [11:17:02]*** FLAG_PRN_PAP2 reset [11:17:02]Write i2c OK [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: 01 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: 01 07 00 [11:17:02]MH_I2C_Read... [11:17:02]Read from MH i2c: 01 07 00 75 4B 00 01 00 00 00 FF 0F D6 [11:17:02]state=3 [11:17:02]No paper [11:17:02]Cover closed [11:17:03]int [11:17:03]Write to MH i2c: 01 00 00 76 4B C1 [11:17:03]*** FLAG_PRN_PAP2 set [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 07 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 07 00 76 4B 00 03 00 00 00 FF 0F D9 [11:17:03]state=0 [11:17:03]No paper [11:17:03]Cover opened [11:17:03]int [11:17:03]Write to MH i2c: 01 00 00 77 4B C2 [11:17:03]*** FLAG_PRN_PAP2 reset [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 07 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 07 00 77 4B 00 01 00 00 00 FF 0F D8 [11:17:03]state=3 [11:17:03]No paper [11:17:03]Cover closed [11:17:03]int [11:17:03]Write to MH i2c: 01 00 00 78 4B C3 [11:17:03]*** FLAG_PRN_PAP1 reset [11:17:03]Write i2c OK [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 07 00 [11:17:03]MH_I2C_Read... [11:17:03]Read from MH i2c: 01 07 00 78 4B 00 00 00 00 00 FF 0F D8 [11:17:03]state=0 [11:17:06]OFD Sender: No OFD packet to send [11:17:07]accept exits with 9 [11:17:07]New connection [11:17:07]New thread 3066670436 created [11:17:07]Thread 3066813796 joined [11:17:07]Waiting for new connection... [11:17:07] Sock 9.Parse request [11:17:07]Sock 9.Check first char [11:17:07]Sock 9.First char is OK [11:17:07]request: POST /json_proto HTTP/1.0 [11:17:07]Method: POST [11:17:07]URL: /json_proto [11:17:07]Method is POST - this is cgi request [11:17:07]url: /json_proto [11:17:07]query_string will be loaded in cgi processing [11:17:07]execute_cgi json_proto POST (null) [11:17:07]execute_cgi path=json_proto method=POST [11:17:07]POST find Content-Length [11:17:07]Host: 172.17.56.67:8080 [11:17:07]Content-Length: 215 [11:17:07]Content-Type: application/json [11:17:07] [11:17:07]POST finish read [11:17:07]Found Content-Length = 215 [11:17:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:07]execute_script... [11:17:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:07]POST & json_proto [11:17:07]process_json_proto [11:17:07]json parsed OK: [11:17:07]protocol is kg_v1.0 [11:17:07]action value=get_value [11:17:07]process_action get_value [11:17:07]cmd_get_value [11:17:07]process_action get_value done [11:17:07]requested_data is exist [11:17:07]produce_requested_data [11:17:07]requested_item kkm.sn is exist - process it [11:17:07]requested_item kkm.ver is exist - process it [11:17:07]requested_item fm.sn is exist - process it [11:17:07]wFMCommunicate request_size=4 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 11 00 00 [11:17:07]Write to MH i2c: E2 08 00 79 4B 80 11 00 00 00 00 00 00 3E [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 17 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 17 00 79 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8B [11:17: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:17:07]wFMCommunicate OK [11:17:07]requested_item fd.num is exist - process it [11:17:07]SAM_PROTO_GetFieldsCounters [11:17:07]wFMCommunicate request_size=4 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 13 00 00 [11:17:07]Write to MH i2c: E2 08 00 7A 4B 80 13 00 00 00 00 00 00 41 [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 62 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 62 00 7A 4B 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 BF 00 00 0E 04 04 00 F5 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 4B [11:17: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 AA BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:07]wFMCommunicate OK [11:17:07]SAM_PROTO_GetFieldsCounters done [11:17:07]requested_item shift.num is exist - process it [11:17:07]requested_item shift.opened is exist - process it [11:17:07]req_shift_opened [11:17:07]FM_GetShiftState [11:17:07]SAM_PROTO_GetShiftState [11:17:07]wFMCommunicate request_size=4 [11:17:07]MH_SAM_APDU [11:17:07]CAPDU: 80 13 01 00 [11:17:07]Write to MH i2c: E2 08 00 7B 4B 80 13 01 00 00 00 00 00 43 [11:17:07]Write i2c OK [11:17:07]MH_I2C_Read... [11:17:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:07]Read from MH i2c: E2 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 0E 00 [11:17:07]MH_I2C_Read... [11:17:07]Read from MH i2c: E2 0E 00 7B 4B 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 B5 [11:17:07]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:17:07]wFMCommunicate OK [11:17:07]SAM_PROTO_GetShiftState done [11:17:07]FM_GetShiftState done [11:17:07]req_shift_opened done [11:17:07]requested_item shift.open_date is exist - process it [11:17:07]req_shift_open_date [11:17:07]req_shift_open_date done [11:17:07]produce_requested_data done [11:17:07]produce_requested_data return {"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49066,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [11:17:07]process_action_free get_value [11:17:07]json_value_free [11:17:07]json_value_free done [11:17:07]process_json_proto returns [11:17:07]Send response to host [11:17:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49066,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [11:17:07]free response buf [11:17:07]execute_script done [11:17:07]execute_script returns [11:17:07]free content buf [11:17:07]Sock 9.Close socket [11:17:07]Sock 9.Thread stoped [11:17:07]accept exits with 7 [11:17:07]New connection [11:17:07]New thread 3066813796 created [11:17:07]Thread 3066670436 joined [11:17:07]Waiting for new connection... [11:17:07] Sock 7.Parse request [11:17:07]Sock 7.Check first char [11:17:07]Sock 7.First char is OK [11:17:07]request: POST /json_proto HTTP/1.0 [11:17:07]Method: POST [11:17:07]URL: /json_proto [11:17:07]Method is POST - this is cgi request [11:17:07]url: /json_proto [11:17:07]query_string will be loaded in cgi processing [11:17:07]execute_cgi json_proto POST (null) [11:17:07]execute_cgi path=json_proto method=POST [11:17:07]POST find Content-Length [11:17:07]Host: 172.17.56.67:8080 [11:17:07]Content-Length: 331 [11:17:07]Content-Type: application/json [11:17:07] [11:17:07]POST finish read [11:17:07]Found Content-Length = 331 [11:17:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:17:07]execute_script... [11:17:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [11:17:08]POST & json_proto [11:17:08]process_json_proto [11:17:08]json parsed OK: [11:17:08]protocol is kg_v1.0 [11:17:08]action value=get_value [11:17:08]process_action get_value [11:17:08]cmd_get_value [11:17:08]process_action get_value done [11:17:08]requested_data is exist [11:17:08]produce_requested_data [11:17:08]requested_item fm.sale.total is exist - process it [11:17:08]SAM_PROTO_GetFMData [11:17:08]wFMCommunicate request_size=4 [11:17:08]MH_SAM_APDU [11:17:08]CAPDU: 80 13 03 00 [11:17:08]Write to MH i2c: E2 08 00 7C 4B 80 13 03 00 00 00 00 00 46 [11:17:08]Write i2c OK [11:17:08]MH_I2C_Read... [11:17:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [11:17:08]Read from MH i2c: E2 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: E2 FD 00 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: E2 FD 00 7C 4B 00 BF 04 85 04 BB 04 6E 04 04 00 C2 BD 00 00 69 04 A1 00 6F 04 04 00 BE BD 00 00 B1 04 04 00 A9 2A 05 BC 70 04 04 00 14 18 4C AF 72 04 04 00 95 12 B9 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 D4 F2 F9 13 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 35 21 AA 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 94 [11:17:08]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 C2 BD 00 00 69 04 A1 00 6F 04 04 00 BE BD 00 00 B1 04 04 00 A9 2A 05 BC 70 04 04 00 14 18 4C AF 72 04 04 00 95 12 B9 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 D4 F2 F9 13 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 35 21 AA 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 [11:17:08]wFMCommunicate OK [11:17:08]wFMCommunicate request_size=4 [11:17:08]MH_SAM_APDU [11:17:08]CAPDU: 80 17 00 00 [11:17:08]Write to MH i2c: E2 08 00 7D 4B 80 17 00 00 00 00 00 00 48 [11:17:08]Write i2c OK [11:17:08]MH_I2C_Read... [11:17:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:17:08]Read from MH i2c: E2 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: E2 FD 00 [11:17:08]MH_I2C_Read... [11:17:08]Read from MH i2c: E2 FD 00 7D 4B 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 F8 [11:17:08]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 [11:17:08]wFMCommunicate OK [11:17:08]wFMCommunicate request_size=4 [11:17:08]MH_SAM_APDU [11:17:08]CAPDU: 80 17 00 00 [11:17:08]Write to MH i2c: E2 08 00 7E 4B 80 17 00 00 00 00 00 00 49 [11:17:08]Write i2c OK [11:17:08]MH_I2C_Read... [11:17:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:17:09]Read from MH i2c: E2 [11:17:09]MH_I2C_Read... [11:17:09]Read from MH i2c: E2 FD 00 [11:17:09]MH_I2C_Read... [11:17:09]Read from MH i2c: E2 FD 00 7E 4B 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 ED [11:17:09]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 [11:17:09]wFMCommunicate OK [11:17:09]wFMCommunicate request_size=4 [11:17:09]MH_SAM_APDU [11:17:09]CAPDU: 80 17 00 00 [11:17:09]Write to MH i2c: E2 08 00 7F 4B 80 17 00 00 00 00 00 00 4A [11:17:09]Write i2c OK [11:17:09]MH_I2C_Read... [11:17:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:17:09]Read from MH i2c: E2 [11:17:09]MH_I2C_Read... [11:17:09]Read from MH i2c: E2 FD 00 [11:17:09]MH_I2C_Read... [11:17:09]Read from MH i2c: E2 FD 00 7F 4B 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 C4 [11:17:09]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 [11:17:09]wFMCommunicate OK [11:17:09]wFMCommunicate request_size=4 [11:17:09]MH_SAM_APDU [11:17:09]CAPDU: 80 17 00 00 [11:17:09]Write to MH i2c: E2 08 00 80 4B 80 17 00 00 00 00 00 00 4B [11:17:09]Write i2c OK [11:17:09]MH_I2C_Read... [11:17:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [11:17:09]Read from MH i2c: E2 [11:17:09]MH_I2C_Read... [11:17:09]Read from MH i2c: E2 DC 00 [11:17:09]MH_I2C_Read... [11:17:09]Read from MH i2c: E2 DC 00 80 4B 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 2F [11:17:09]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 [11:17:09]wFMCommunicate OK [11:17:09]SAM_PROTO_GetFMData done [11:17:09]requested_item fm.sale_refund.total is exist - process it [11:17:09]requested_item fm.buy.total is exist - process it [11:17:09]requested_item shift.sale.total is exist - process it [11:17:09]SAM_PROTO_GetShiftData [11:17:09]wFMCommunicate request_size=4 [11:17:09]MH_SAM_APDU [11:17:09]CAPDU: 80 13 02 00 [11:17:09]Write to MH i2c: E2 08 00 81 4B 80 13 02 00 00 00 00 00 4A [11:17:09]Write i2c OK [11:17:09]MH_I2C_Read... [11:17:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [11:17:10]Read from MH i2c: E2 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 FD 00 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 FD 00 81 4B 00 AD 04 AA 04 A9 04 6E 04 04 00 31 00 00 00 69 04 9A 00 6F 04 04 00 31 00 00 00 B1 04 03 00 81 14 32 70 04 03 00 00 51 31 72 04 02 00 81 C3 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 3C 52 05 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 83 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 80 [11:17:10]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 31 00 00 00 69 04 9A 00 6F 04 04 00 31 00 00 00 B1 04 03 00 81 14 32 70 04 03 00 00 51 31 72 04 02 00 81 C3 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 3C 52 05 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 83 71 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:17:10]wFMCommunicate OK [11:17:10]wFMCommunicate request_size=4 [11:17:10]MH_SAM_APDU [11:17:10]CAPDU: 80 17 00 00 [11:17:10]Write to MH i2c: E2 08 00 82 4B 80 17 00 00 00 00 00 00 4D [11:17:10]Write i2c OK [11:17:10]MH_I2C_Read... [11:17:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:17:10]Read from MH i2c: E2 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 FD 00 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 FD 00 82 4B 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 5F [11:17:10]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [11:17:10]wFMCommunicate OK [11:17:10]wFMCommunicate request_size=4 [11:17:10]MH_SAM_APDU [11:17:10]CAPDU: 80 17 00 00 [11:17:10]Write to MH i2c: E2 08 00 83 4B 80 17 00 00 00 00 00 00 4E [11:17:10]Write i2c OK [11:17:10]MH_I2C_Read... [11:17:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:17:10]Read from MH i2c: E2 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 FD 00 [11:17:10]MH_I2C_Read... [11:17:10]Read from MH i2c: E2 FD 00 83 4B 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 12 [11:17:10]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [11:17:10]wFMCommunicate OK [11:17:10]wFMCommunicate request_size=4 [11:17:10]MH_SAM_APDU [11:17:10]CAPDU: 80 17 00 00 [11:17:10]Write to MH i2c: E2 08 00 84 4B 80 17 00 00 00 00 00 00 4F [11:17:10]Write i2c OK [11:17:10]MH_I2C_Read... [11:17:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [11:17:11]Read from MH i2c: E2 [11:17:11]MH_I2C_Read... [11:17:11]Read from MH i2c: E2 FD 00 [11:17:11]MH_I2C_Read... [11:17:11]Read from MH i2c: E2 FD 00 84 4B 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 90 00 C4 [11:17:11]RAPDU: 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 90 00 [11:17:11]wFMCommunicate OK [11:17:11]wFMCommunicate request_size=4 [11:17:11]MH_SAM_APDU [11:17:11]CAPDU: 80 17 00 00 [11:17:11]Write to MH i2c: E2 08 00 85 4B 80 17 00 00 00 00 00 00 50 [11:17:11]Write i2c OK [11:17:11]MH_I2C_Read... [11:17:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [11:17:11]Read from MH i2c: E2 [11:17:11]MH_I2C_Read... [11:17:11]Read from MH i2c: E2 CA 00 [11:17:11]MH_I2C_Read... [11:17:11]Read from MH i2c: E2 CA 00 85 4B 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 35 [11:17:11]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [11:17:11]wFMCommunicate OK [11:17:11]SAM_PROTO_GetShiftData done [11:17:11]requested_item shift.sale.total_cash is exist - process it [11:17:11]requested_item shift.sale_refund.total is exist - process it [11:17:11]requested_item shift.sale_refund.total_cash is exist - process it [11:17:11]requested_item shift.buy.total is exist - process it [11:17:11]requested_item shift.buy.total_cash is exist - process it [11:17:11]produce_requested_data done [11:17:11]produce_requested_data return {"fm.sale.total":31544552.09,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":32820.49,"shift.sale.total_cash":32320.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [11:17:11]process_action_free get_value [11:17:11]json_value_free [11:17:11]json_value_free done [11:17:11]process_json_proto returns [11:17:11]Send response to host [11:17:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31544552.09,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":32820.49,"shift.sale.total_cash":32320.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [11:17:11]free response buf [11:17:11]execute_script done [11:17:11]execute_script returns [11:17:11]free content buf [11:17:11]Sock 7.Close socket [11:17:11]Sock 7.Thread stoped [11:17:11]accept exits with 9 [11:17:11]New connection [11:17:11]New thread 3066670436 created [11:17:11]Thread 3066813796 joined [11:17:11]Waiting for new connection... [11:17:11] Sock 9.Parse request [11:17:11]Sock 9.Check first char [11:17:11]Sock 9.First char is OK [11:17:11]request: POST /json_proto HTTP/1.0 [11:17:11]Method: POST [11:17:11]URL: /json_proto [11:17:11]Method is POST - this is cgi request [11:17:11]url: /json_proto [11:17:11]query_string will be loaded in cgi processing [11:17:11]execute_cgi json_proto POST (null) [11:17:11]execute_cgi path=json_proto method=POST [11:17:11]POST find Content-Length [11:17:11]Host: 172.17.56.67:8080 [11:17:11]Content-Length: 144 [11:17:11]Content-Type: application/json [11:17:11] [11:17:11]POST finish read [11:17:11]Found Content-Length = 144 [11:17:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [11:17:11]execute_script... [11:17:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [11:17:11]POST & json_proto [11:17:11]process_json_proto [11:17:11]json parsed OK: [11:17:11]protocol is kg_v1.0 [11:17:11]action value=print_doc [11:17:11]process_action print_doc [11:17:11]ExternCall_PrintAddStr [11:17:11]wPrintStart [11:17:11]Write to MH i2c: 01 00 00 86 4B D1 [11:17:11]Write i2c OK [11:17:11]MH_I2C_Read... [11:17:11]Read from MH i2c: 01 [11:17:11]MH_I2C_Read... [11:17:11]Read from MH i2c: 01 07 00 [11:17:11]MH_I2C_Read... [11:17:11]Read from MH i2c: 01 07 00 86 4B 00 00 00 00 00 FF 0F E6 [11:17:11]RasterBufferAndPrint [11:17:11]line Счет N : (1)216166 [11:17:11]line ИÐÐ: 02508201610067 [11:17:11]line Контрольно-КаÑÑовый Чек [11:17:11]line ПРОДÐЖР[11:17:11]line ТРК (МРК, ГÐК) : 22 [11:17:11]line Товар: 2710124130 [11:17:11]line Ðи-92-К-5 [11:17:11]line 26.540 * 60.30 [11:17:11]line = 1600.36 [11:17:11]line ÐДС 12% ÐСП 1% [11:17:11]line > о реализуемом товаре [11:17:11]line ОКРУГЛЕÐИЕ: -0.36 [11:17:11]line ИТОГО: 1600.00 [11:17:11]line ВнеÑено: 1600.00 [11:17:11]line СДÐЧÐ: 0.00 [11:17:11]line ÐСП 1% : 14.16 [11:17:11]line ÐДС 12% : 169.95 [11:17:11]line Ðаличными: 1600.00 [11:17:11]line Безнал.: 0.00 [11:17:11]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [11:17:11]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:17:11]line СÐО: Общий режим [11:17:11]line Чек 49 29.01.2024 11:16 [11:17:11]line Смена: 245 ФФД: 1.0 [11:17:11]line ЗÐМ: 0300000040 [11:17:11]line РÐМ: 0000000000092723 [11:17:11]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:17:11]line ФМ: 0000000000875060 [11:17:11]line ФД: 49066 [11:17:11]line ФПД: 3467793788515 [11:17:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T111632&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49066&fm=3467793788515&tin=02508201610067®Number=0000000000092723&sum=160000 [11:17:11]OFD Sender: No OFD packet to send [11:17:11]written 0, free lines is 4095 [11:17:12]Write to MH i2c: 01 00 00 B1 4B FC [11:17:12]Write i2c OK [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: 01 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: 01 07 00 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: 01 07 00 B1 4B 00 00 00 00 00 FA 0C 09 [11:17:12]RasterBufferAndPrint [11:17:12]line [11:17:12]line [11:17:12]line [11:17:12]line [11:17:12]line [11:17:12]written 0, free lines is 3337 [11:17:12]MH_Cut [11:17:12]Write to MH i2c: D1 01 00 B8 4B 01 D5 [11:17:12]Write i2c OK [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: D1 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: D1 01 00 [11:17:12]MH_I2C_Read... [11:17:12]Read from MH i2c: D1 01 00 B8 4B 00 D4 [11:17:12]Write to MH i2c: 01 00 00 B9 4B 04 [11:17:12]Write i2c OK [11:17:12]MH_I2C_Read... [11:17:12]*** Cut start [11:17:12]*** Partial cut [11:17:12]*** CUTSNS_PIN = 1 [11:17:12]*** CUTSNS_PIN = 0 [11:17:13]*** Brake cut motor [11:17:13]Read from MH i2c: 01 [11:17:13]MH_I2C_Read... [11:17:13]*** Stop cut motor [11:17:13]*** Cut end [11:17:13]Read from MH i2c: 01 07 00 [11:17:13]MH_I2C_Read... [11:17:13]Read from MH i2c: 01 07 00 B9 4B 00 00 00 00 00 FF 0F 19 [11:17:13]process_action print_doc done [11:17:13]requested_data is exist [11:17:13]produce_requested_data [11:17:13]produce_requested_data return (null) [11:17:13]process_action_free print_doc [11:17:13]json_value_free [11:17:13]json_value_free done [11:17:13]process_json_proto returns [11:17:13]Send response to host [11:17:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [11:17:13]free response buf [11:17:13]execute_script done [11:17:13]execute_script returns [11:17:13]free content buf [11:17:13]Sock 9.Close socket [11:17:13]Sock 9.Thread stoped [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [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:54]accept exits with 7 [11:19:54]New connection [11:19:54]New thread 3066813796 created [11:19:54]Thread 3066670436 joined [11:19:54]Waiting for new connection... [11:19:54] Sock 7.Parse request [11:19:54]Sock 7.Check first char [11:19:54]Sock 7.First char is OK [11:19:54]request: POST /json_proto HTTP/1.0 [11:19:54]Method: POST [11:19:54]URL: /json_proto [11:19:54]Method is POST - this is cgi request [11:19:54]url: /json_proto [11:19:54]query_string will be loaded in cgi processing [11:19:54]execute_cgi json_proto POST (null) [11:19:54]execute_cgi path=json_proto method=POST [11:19:54]POST find Content-Length [11:19:54]Host: 172.17.56.67:8080 [11:19:54]Content-Length: 677 [11:19:54]Content-Type: application/json [11:19:54] [11:19:54]POST finish read [11:19:54]Found Content-Length = 677 [11:19:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216167", "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" ] } } [11:19:54]execute_script... [11:19:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216167", "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" ] } } [11:19:54]POST & json_proto [11:19:54]process_json_proto [11:19:54]json parsed OK: [11:19:54]protocol is kg_v1.0 [11:19:54]action value=close_receipt [11:19:54]process_action close_receipt [11:19:54]cmd_close_receipt [11:19:54]MH_GetDate [11:19:54]Write to MH i2c: F0 00 00 BA 4B F4 [11:19:54]Write i2c OK [11:19:54]MH_I2C_Read... [11:19:54]Read from MH i2c: F0 [11:19:54]MH_I2C_Read... [11:19:54]Read from MH i2c: F0 09 00 [11:19:54]MH_I2C_Read... [11:19:54]Read from MH i2c: F0 09 00 BA 4B 00 E7 89 B7 65 26 5D 9E 65 0F [11:19:54]GetLastDocTimeStamp 1706526992 [11:19:54]current date 1706527207 [11:19:54]FM_GetShiftState [11:19:54]SAM_PROTO_GetShiftState [11:19:54]wFMCommunicate request_size=4 [11:19:54]MH_SAM_APDU [11:19:54]CAPDU: 80 13 01 00 [11:19:54]Write to MH i2c: E2 08 00 BB 4B 80 13 01 00 00 00 00 00 83 [11:19:54]Write i2c OK [11:19:54]MH_I2C_Read... [11:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:54]Read from MH i2c: E2 [11:19:54]MH_I2C_Read... [11:19:54]Read from MH i2c: E2 0E 00 [11:19:54]MH_I2C_Read... [11:19:54]Read from MH i2c: E2 0E 00 BB 4B 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 F5 [11:19:54]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:19:54]wFMCommunicate OK [11:19:54]SAM_PROTO_GetShiftState done [11:19:54]FM_GetShiftState done [11:19:54]opened in 1706486624 [11:19:54]opened+sec_in_day 1706573024 [11:19:54]quantity*price = 60058 [11:19:54]sum+1 = 60060 [11:19:54]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 СÐО: Общий режим Чек 50 29.01.2024 11:20 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49067 ФПД: 51779454852350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T112007&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49067&fm=51779454852350&tin=02508201610067®Number=0000000000092723&sum=60000 [11:19:55]StoreToDocumentArchive [11:19:55]shift 245 fd 49067 [11:19:55]save to /storage/0245/doc_00049067 [11:19:55]save last doc name /storage/0245/doc_00049067 to /storage/kkm_last_doc_name [11:19:55]save OK [11:19:55]Clear old archive folders... [11:19:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:55]tlvbuf is 0139F570 [11:19:55]SAM_PROTO_ClearQueue [11:19:55]wFMCommunicate request_size=4 [11:19:55]MH_SAM_APDU [11:19:55]CAPDU: 80 09 00 00 [11:19:55]Write to MH i2c: E2 08 00 C8 4B 80 09 00 00 00 00 00 00 85 [11:19:55]Write i2c OK [11:19:55]MH_I2C_Read... [11:19:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:55]Read from MH i2c: E2 [11:19:55]MH_I2C_Read... [11:19:55]Read from MH i2c: E2 03 00 [11:19:55]MH_I2C_Read... [11:19:55]Read from MH i2c: E2 03 00 C8 4B 00 90 00 87 [11:19:55]RAPDU: 90 00 [11:19:55]wFMCommunicate OK [11:19:55]SAM_PROTO_ClearQueue done [11:19:55]KKMCreateOFDPacket [11:19:55]OFDProtocolAddRootSTLVToBuf [11:19:55]FM_MakeSignedData [11:19:55]FM_MakeSignedData [11:19:55]SAM_PROTO_SignData [11:19:55]wFMCommunicate request_size=4 [11:19:55]MH_SAM_APDU [11:19:55]CAPDU: 80 0D 01 02 [11:19:55]Write to MH i2c: E2 08 00 C9 4B 80 0D 01 02 00 00 00 00 8D [11:19:55]Write i2c OK [11:19:55]MH_I2C_Read... [11:19:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:55]Read from MH i2c: E2 [11:19:55]MH_I2C_Read... [11:19:55]Read from MH i2c: E2 03 00 [11:19:55]MH_I2C_Read... [11:19:55]Read from MH i2c: E2 03 00 C9 4B 00 90 00 88 [11:19:55]RAPDU: 90 00 [11:19:55]wFMCommunicate OK [11:19:55]wFMCommunicate request_size=255 [11:19:55]MH_SAM_APDU [11:19:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 32 00 00 00 F4 03 04 00 E7 89 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 2F [11:19:55]Write to MH i2c: E2 02 01 CA 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 32 00 00 00 F4 03 04 00 E7 89 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 2F 00 00 BE [11:19:55]Write i2c OK [11:19:55]MH_I2C_Read... [11:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:56]Read from MH i2c: E2 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 03 00 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 03 00 CA 4B 00 90 00 89 [11:19:56]RAPDU: 90 00 [11:19:56]wFMCommunicate OK [11:19:56]wFMCommunicate request_size=10 [11:19:56]MH_SAM_APDU [11:19:56]CAPDU: 80 0D 02 02 05 17 D8 03 5C FE [11:19:56]Write to MH i2c: E2 0D 00 CB 4B 80 0D 02 02 05 00 17 D8 03 5C FE 00 00 E6 [11:19:56]Write i2c OK [11:19:56]MH_I2C_Read... [11:19:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:56]Read from MH i2c: E2 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 03 00 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 03 00 CB 4B 00 90 00 8A [11:19:56]RAPDU: 90 00 [11:19:56]wFMCommunicate OK [11:19:56]wFMCommunicate request_size=4 [11:19:56]MH_SAM_APDU [11:19:56]CAPDU: 80 0D 03 02 [11:19:56]Write to MH i2c: E2 08 00 CC 4B 80 0D 03 02 00 00 00 00 92 [11:19:56]Write i2c OK [11:19:56]MH_I2C_Read... [11:19:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:56]Read from MH i2c: E2 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 0B 00 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 0B 00 CC 4B 00 15 B2 51 97 56 67 C1 22 90 00 E2 [11:19:56]RAPDU: 15 B2 51 97 56 67 C1 22 90 00 [11:19:56]wFMCommunicate OK [11:19:56]SAM_PROTO_SignData done [11:19:56]FM_MakeSignedData done [11:19:56]CreateOFDProtocolMessage [11:19:56]wFMCommunicate request_size=4 [11:19:56]MH_SAM_APDU [11:19:56]CAPDU: 80 11 00 00 [11:19:56]Write to MH i2c: E2 08 00 CD 4B 80 11 00 00 00 00 00 00 92 [11:19:56]Write i2c OK [11:19:56]MH_I2C_Read... [11:19:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:56]Read from MH i2c: E2 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 17 00 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: E2 17 00 CD 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DF [11:19:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:19:56]wFMCommunicate OK [11:19:56]CreateOFDProtocolMessage done [11:19:56]OFDSenderStorePacket 49067 [11:19:56]StoreOFDPacket docnum=49067 [11:19: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 F2 3B 07 01 AE B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 32 00 00 00 F4 03 04 00 E7 89 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 2F 17 D8 03 5C FE 15 B2 51 97 56 67 C1 22 [11:19:56]CheckFolder [11:19:56]dirname=/storage/ofd_packets [11:19:56]CheckFolder done [11:19:56]ProducePacketName [11:19:56]name=ofd_packets/00049067 [11:19:56]NVStorageSaveData ofd_packets/00049067 [11:19:56]File name is /storage/ofd_packets/00049067 [11:19:56]Write 301 bytes [11:19:56]NVStorageSaveData done [11:19:56]OFDSenderStorePacket done [11:19:56]KKMCreateOFDPacket done [11:19:56]NVStorageSaveData kkm_last_timestamp [11:19:56]File name is /storage/kkm_last_timestamp [11:19:56]Write 4 bytes [11:19:56]NVStorageSaveData done [11:19:56]ExternCall_PrintAddStr [11:19:56]wPrintStart [11:19:56]Write to MH i2c: 01 00 00 CE 4B 19 [11:19:56]Write i2c OK [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: 01 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: 01 07 00 [11:19:56]MH_I2C_Read... [11:19:56]Read from MH i2c: 01 07 00 CE 4B 00 00 00 00 00 FF 0F 2E [11:19:56]RasterBufferAndPrint [11:19:56]line Счет N : (1)216167 [11:19:56]line ИÐÐ: 02508201610067 [11:19:56]line Контрольно-КаÑÑовый Чек [11:19:56]line ПРОДÐЖР[11:19:56]line ТРК (МРК, ГÐК) : 22 [11:19:56]line Товар: 2710124130 [11:19:56]line Ðи-92-К-5 [11:19:56]line 9.960 * 60.30 [11:19:56]line = 600.59 [11:19:56]line ÐДС 12% ÐСП 1% [11:19:56]line > о реализуемом товаре [11:19:56]line ОКРУГЛЕÐИЕ: -0.59 [11:19:56]line ИТОГО: 600.00 [11:19:56]line ВнеÑено: 600.00 [11:19:56]line СДÐЧÐ: 0.00 [11:19:56]line ÐСП 1% : 5.31 [11:19:56]line ÐДС 12% : 63.78 [11:19:56]line Ðаличными: 600.00 [11:19:56]line Безнал.: 0.00 [11:19:56]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [11:19:56]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:19:56]line СÐО: Общий режим [11:19:56]line Чек 50 29.01.2024 11:20 [11:19:56]line Смена: 245 ФФД: 1.0 [11:19:56]line ЗÐМ: 0300000040 [11:19:56]line РÐМ: 0000000000092723 [11:19:56]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:19:56]line ФМ: 0000000000875060 [11:19:56]line ФД: 49067 [11:19:56]line ФПД: 51779454852350 [11:19:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T112007&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49067&fm=51779454852350&tin=02508201610067®Number=0000000000092723&sum=60000 [11:19:56]written 0, free lines is 4095 [11:19:56]OFD Sender: Processing packet 49067 [packets to send 12, broken 11] [11:19:56]ProducePacketName [11:19:56]name=ofd_packets/00049067 [11:19:56]OFD Sender: To server: ‡•öpG, [11:19:56]CommunicateWithHost lk.salyk.kg:30040 [11:19:56]ConnectInit lk.salyk.kg [11:19:56]Connected sock=10 [11:19:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 F2 3B 07 01 AE B0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 32 00 00 00 F4 03 04 00 E7 89 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 2F 17 D8 03 5C FE 15 B2 51 97 56 67 C1 22 [11:19: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 04 6E 47 00 C5 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AB BF 00 00 F4 03 04 00 E0 35 B7 65 B6 04 01 00 00 3A EE B3 3E 4D 5D 02 3A [11:19:56]CommunicateWithHost err = 0 [11:19:56]CheckOFDResponse [11:19:56]1017 (14) - 77093643461234 [11:19:56]1041 (16) - 0000000000875060 [11:19:56]1040 (4) - 49067 [11:19:56]1012 (4) - 29.01.2024 05:21 [11:19:56]1206 (1) - 0 [11:19:56]OFD Sender: Remove packet 49067 [11:19:56]ProducePacketName [11:19:56]name=ofd_packets/00049067 [11:19:56]NVStorageDeleteData [11:19:57]Write to MH i2c: 01 00 00 F9 4B 44 [11:19:57]Write i2c OK [11:19:57]MH_I2C_Read... [11:19:57]Read from MH i2c: 01 [11:19:57]MH_I2C_Read... [11:19:57]Read from MH i2c: 01 07 00 [11:19:57]MH_I2C_Read... [11:19:57]Read from MH i2c: 01 07 00 F9 4B 00 00 00 00 00 E6 0C 3D [11:19:57]RasterBufferAndPrint [11:19:57]line [11:19:57]line [11:19:57]line [11:19:57]line [11:19:57]line [11:19:57]written 0, free lines is 3308 [11:19:57]MH_Cut [11:19:57]Write to MH i2c: D1 01 00 00 4C 01 1E [11:19:57]Write i2c OK [11:19:57]MH_I2C_Read... [11:19:57]Read from MH i2c: D1 [11:19:57]MH_I2C_Read... [11:19:57]Read from MH i2c: D1 01 00 [11:19:57]MH_I2C_Read... [11:19:57]Read from MH i2c: D1 01 00 00 4C 00 1D [11:19:57]Write to MH i2c: 01 00 00 01 4C 4D [11:19:57]Write i2c OK [11:19:57]MH_I2C_Read... [11:19:57]OFD Sender: No OFD packet to send [11:19:57]*** Cut start [11:19:57]*** Partial cut [11:19:57]*** CUTSNS_PIN = 1 [11:19:57]*** CUTSNS_PIN = 0 [11:19:57]*** Brake cut motor [11:19:58]Read from MH i2c: 01 [11:19:58]MH_I2C_Read... [11:19:58]*** Stop cut motor [11:19:58]*** Cut end [11:19:58]Read from MH i2c: 01 07 00 [11:19:58]MH_I2C_Read... [11:19:58]Read from MH i2c: 01 07 00 01 4C 00 00 00 00 00 FF 0F 62 [11:19:58]process_action close_receipt done [11:19:58]requested_data is exist [11:19:58]produce_requested_data [11:19:58]requested_item fm.sn is exist - process it [11:19:58]wFMCommunicate request_size=4 [11:19:58]MH_SAM_APDU [11:19:58]CAPDU: 80 11 00 00 [11:19:58]Write to MH i2c: E2 08 00 02 4C 80 11 00 00 00 00 00 00 C8 [11:19:58]Write i2c OK [11:19:58]MH_I2C_Read... [11:19:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:58]Read from MH i2c: E2 [11:19:58]MH_I2C_Read... [11:19:58]Read from MH i2c: E2 17 00 [11:19:58]MH_I2C_Read... [11:19:58]Read from MH i2c: E2 17 00 02 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 15 [11:19:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:19:58]wFMCommunicate OK [11:19:58]requested_item fd.num is exist - process it [11:19:58]SAM_PROTO_GetFieldsCounters [11:19:58]wFMCommunicate request_size=4 [11:19:58]MH_SAM_APDU [11:19:58]CAPDU: 80 13 00 00 [11:19:58]Write to MH i2c: E2 08 00 03 4C 80 13 00 00 00 00 00 00 CB [11:19:58]Write i2c OK [11:19:58]MH_I2C_Read... [11:19:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:58]Read from MH i2c: E2 [11:19:58]MH_I2C_Read... [11:19:58]Read from MH i2c: E2 62 00 [11:19:58]MH_I2C_Read... [11:19:58]Read from MH i2c: E2 62 00 03 4C 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 BF 00 00 0E 04 04 00 F5 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 D9 [11:19: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 AB BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:58]wFMCommunicate OK [11:19:58]SAM_PROTO_GetFieldsCounters done [11:19:58]requested_item shift.num is exist - process it [11:19:58]requested_item shift.opened is exist - process it [11:19:58]req_shift_opened [11:19:58]FM_GetShiftState [11:19:58]SAM_PROTO_GetShiftState [11:19:58]wFMCommunicate request_size=4 [11:19:58]MH_SAM_APDU [11:19:58]CAPDU: 80 13 01 00 [11:19:58]Write to MH i2c: E2 08 00 04 4C 80 13 01 00 00 00 00 00 CD [11:19:58]Write i2c OK [11:19:58]MH_I2C_Read... [11:19:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:58]Read from MH i2c: E2 [11:19:58]MH_I2C_Read... [11:19:58]Read from MH i2c: E2 0E 00 [11:19:58]MH_I2C_Read... [11:19:58]Read from MH i2c: E2 0E 00 04 4C 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 3F [11:19:58]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:19:58]wFMCommunicate OK [11:19:58]SAM_PROTO_GetShiftState done [11:19:58]FM_GetShiftState done [11:19:58]req_shift_opened done [11:19:58]requested_item shift.open_date is exist - process it [11:19:58]req_shift_open_date [11:19:58]req_shift_open_date done [11:19:58]produce_requested_data done [11:19:58]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49067,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [11:19:58]process_action_free close_receipt [11:19:58]json_value_free [11:19:58]json_value_free done [11:19:58]process_json_proto returns [11:19:58]Send response to host [11:19:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49067,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [11:19:58]free response buf [11:19:58]execute_script done [11:19:58]execute_script returns [11:19:58]free content buf [11:19:58]Sock 7.Close socket [11:19:58]Sock 7.Thread stoped [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28: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:20]accept exits with 9 [11:29:20]New connection [11:29:20]New thread 3066670436 created [11:29:20]Thread 3066813796 joined [11:29:20]Waiting for new connection... [11:29:20] Sock 9.Parse request [11:29:20]Sock 9.Check first char [11:29:20]Sock 9.First char is OK [11:29:20]request: POST /json_proto HTTP/1.0 [11:29:20]Method: POST [11:29:20]URL: /json_proto [11:29:20]Method is POST - this is cgi request [11:29:20]url: /json_proto [11:29:20]query_string will be loaded in cgi processing [11:29:20]execute_cgi json_proto POST (null) [11:29:20]execute_cgi path=json_proto method=POST [11:29:20]POST find Content-Length [11:29:20]Host: 172.17.56.67:8080 [11:29:20]Content-Length: 640 [11:29:20]Content-Type: application/json [11:29:20] [11:29:20]POST finish read [11:29:20]Found Content-Length = 640 [11:29:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216168", "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.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" ] } } [11:29:20]execute_script... [11:29: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)216168", "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.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" ] } } [11:29:20]POST & json_proto [11:29:20]process_json_proto [11:29:20]json parsed OK: [11:29:20]protocol is kg_v1.0 [11:29:20]action value=close_receipt [11:29:20]process_action close_receipt [11:29:20]cmd_close_receipt [11:29:20]MH_GetDate [11:29:20]Write to MH i2c: F0 00 00 05 4C 40 [11:29:20]Write i2c OK [11:29:20]MH_I2C_Read... [11:29:20]Read from MH i2c: F0 [11:29:20]MH_I2C_Read... [11:29:20]Read from MH i2c: F0 09 00 [11:29:20]MH_I2C_Read... [11:29:20]Read from MH i2c: F0 09 00 05 4C 00 1D 8C B7 65 26 5D 9E 65 94 [11:29:20]GetLastDocTimeStamp 1706527207 [11:29:20]current date 1706527773 [11:29:20]FM_GetShiftState [11:29:20]SAM_PROTO_GetShiftState [11:29:20]wFMCommunicate request_size=4 [11:29:20]MH_SAM_APDU [11:29:20]CAPDU: 80 13 01 00 [11:29:20]Write to MH i2c: E2 08 00 06 4C 80 13 01 00 00 00 00 00 CF [11:29:20]Write i2c OK [11:29:20]MH_I2C_Read... [11:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:20]Read from MH i2c: E2 [11:29:20]MH_I2C_Read... [11:29:20]Read from MH i2c: E2 0E 00 [11:29:20]MH_I2C_Read... [11:29:20]Read from MH i2c: E2 0E 00 06 4C 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 41 [11:29:20]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:29:20]wFMCommunicate OK [11:29:20]SAM_PROTO_GetShiftState done [11:29:20]FM_GetShiftState done [11:29:20]opened in 1706486624 [11:29:20]opened+sec_in_day 1706573024 [11:29:20]quantity*price = 60300 [11:29:20]sum+1 = 60301 [11:29:20]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 СÐО: Общий режим Чек 51 29.01.2024 11:29 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49068 ФПД: 218224574647198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T112933&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49068&fm=218224574647198&tin=02508201610067®Number=0000000000092723&sum=60300 [11:29:21]StoreToDocumentArchive [11:29:21]shift 245 fd 49068 [11:29:21]save to /storage/0245/doc_00049068 [11:29:21]save last doc name /storage/0245/doc_00049068 to /storage/kkm_last_doc_name [11:29:21]save OK [11:29:21]Clear old archive folders... [11:29:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:21]tlvbuf is 011D82D0 [11:29:21]SAM_PROTO_ClearQueue [11:29:21]wFMCommunicate request_size=4 [11:29:21]MH_SAM_APDU [11:29:21]CAPDU: 80 09 00 00 [11:29:21]Write to MH i2c: E2 08 00 13 4C 80 09 00 00 00 00 00 00 D1 [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:21]Read from MH i2c: E2 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 03 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 03 00 13 4C 00 90 00 D3 [11:29:21]RAPDU: 90 00 [11:29:21]wFMCommunicate OK [11:29:21]SAM_PROTO_ClearQueue done [11:29:21]KKMCreateOFDPacket [11:29:21]OFDProtocolAddRootSTLVToBuf [11:29:21]FM_MakeSignedData [11:29:21]FM_MakeSignedData [11:29:21]SAM_PROTO_SignData [11:29:21]wFMCommunicate request_size=4 [11:29:21]MH_SAM_APDU [11:29:21]CAPDU: 80 0D 01 02 [11:29:21]Write to MH i2c: E2 08 00 14 4C 80 0D 01 02 00 00 00 00 D9 [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:21]Read from MH i2c: E2 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 03 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 03 00 14 4C 00 90 00 D4 [11:29:21]RAPDU: 90 00 [11:29:21]wFMCommunicate OK [11:29:21]wFMCommunicate request_size=255 [11:29:21]MH_SAM_APDU [11:29: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 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 33 00 00 00 F4 03 04 00 1D 8C B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C6 [11:29:21]Write to MH i2c: E2 02 01 15 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 33 00 00 00 F4 03 04 00 1D 8C B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C6 00 00 6E [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:21]Read from MH i2c: E2 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 03 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 03 00 15 4C 00 90 00 D5 [11:29:21]RAPDU: 90 00 [11:29:21]wFMCommunicate OK [11:29:21]wFMCommunicate request_size=10 [11:29:21]MH_SAM_APDU [11:29:21]CAPDU: 80 0D 02 02 05 79 5E 40 CB 9E [11:29:21]Write to MH i2c: E2 0D 00 16 4C 80 0D 02 02 05 00 79 5E 40 CB 9E 00 00 66 [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:21]Read from MH i2c: E2 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 03 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 03 00 16 4C 00 90 00 D6 [11:29:21]RAPDU: 90 00 [11:29:21]wFMCommunicate OK [11:29:21]wFMCommunicate request_size=4 [11:29:21]MH_SAM_APDU [11:29:21]CAPDU: 80 0D 03 02 [11:29:21]Write to MH i2c: E2 08 00 17 4C 80 0D 03 02 00 00 00 00 DE [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:21]Read from MH i2c: E2 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 0B 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 0B 00 17 4C 00 B6 CB 51 9B 98 7E 99 07 90 00 02 [11:29:21]RAPDU: B6 CB 51 9B 98 7E 99 07 90 00 [11:29:21]wFMCommunicate OK [11:29:21]SAM_PROTO_SignData done [11:29:21]FM_MakeSignedData done [11:29:21]CreateOFDProtocolMessage [11:29:21]wFMCommunicate request_size=4 [11:29:21]MH_SAM_APDU [11:29:21]CAPDU: 80 11 00 00 [11:29:21]Write to MH i2c: E2 08 00 18 4C 80 11 00 00 00 00 00 00 DE [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:21]Read from MH i2c: E2 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 17 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: E2 17 00 18 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2B [11:29: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:29:21]wFMCommunicate OK [11:29:21]CreateOFDProtocolMessage done [11:29:21]OFDSenderStorePacket 49068 [11:29:21]StoreOFDPacket docnum=49068 [11:29: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 44 0A 07 01 6A 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 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 33 00 00 00 F4 03 04 00 1D 8C B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C6 79 5E 40 CB 9E B6 CB 51 9B 98 7E 99 07 [11:29:21]CheckFolder [11:29:21]dirname=/storage/ofd_packets [11:29:21]CheckFolder done [11:29:21]ProducePacketName [11:29:21]name=ofd_packets/00049068 [11:29:21]NVStorageSaveData ofd_packets/00049068 [11:29:21]File name is /storage/ofd_packets/00049068 [11:29:21]Write 301 bytes [11:29:21]NVStorageSaveData done [11:29:21]OFDSenderStorePacket done [11:29:21]KKMCreateOFDPacket done [11:29:21]NVStorageSaveData kkm_last_timestamp [11:29:21]File name is /storage/kkm_last_timestamp [11:29:21]Write 4 bytes [11:29:21]NVStorageSaveData done [11:29:21]ExternCall_PrintAddStr [11:29:21]wPrintStart [11:29:21]Write to MH i2c: 01 00 00 19 4C 65 [11:29:21]Write i2c OK [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: 01 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: 01 07 00 [11:29:21]MH_I2C_Read... [11:29:21]Read from MH i2c: 01 07 00 19 4C 00 00 00 00 00 FF 0F 7A [11:29:21]RasterBufferAndPrint [11:29:21]line Счет N : (1)216168 [11:29:21]line ИÐÐ: 02508201610067 [11:29:21]line Контрольно-КаÑÑовый Чек [11:29:21]line ПРОДÐЖР[11:29:21]line ТРК (МРК, ГÐК) : 22 [11:29:21]line Товар: 2710124130 [11:29:21]line Ðи-92-К-5 [11:29:21]line 10.000 * 60.30 [11:29:21]line = 603.00 [11:29:21]line ÐДС 12% ÐСП 1% [11:29:21]line > о реализуемом товаре [11:29:21]line ИТОГО: 603.00 [11:29:21]line ÐСП 1% : 5.34 [11:29:21]line ÐДС 12% : 64.03 [11:29:21]line Ðаличными: 603.00 [11:29:21]line Безнал.: 0.00 [11:29:21]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [11:29:21]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:29:21]line СÐО: Общий режим [11:29:21]line Чек 51 29.01.2024 11:29 [11:29:21]line Смена: 245 ФФД: 1.0 [11:29:21]line ЗÐМ: 0300000040 [11:29:21]line РÐМ: 0000000000092723 [11:29:21]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:29:21]line ФМ: 0000000000875060 [11:29:21]line ФД: 49068 [11:29:21]line ФПД: 218224574647198 [11:29:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T112933&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49068&fm=218224574647198&tin=02508201610067®Number=0000000000092723&sum=60300 [11:29:21]written 0, free lines is 4095 [11:29:21]OFD Sender: Processing packet 49068 [packets to send 12, broken 11] [11:29:21]ProducePacketName [11:29:21]name=ofd_packets/00049068 [11:29:21]OFD Sender: To server: ‡•öpG, [11:29:21]CommunicateWithHost lk.salyk.kg:30040 [11:29:22]ConnectInit lk.salyk.kg [11:29:22]Connected sock=10 [11:29: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 44 0A 07 01 6A 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 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 33 00 00 00 F4 03 04 00 1D 8C B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C6 79 5E 40 CB 9E B6 CB 51 9B 98 7E 99 07 [11:29:22]Write to MH i2c: 01 00 00 41 4C 8D [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: 01 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: 01 07 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: 01 07 00 41 4C 00 00 00 00 00 2D 0D CE [11:29:22]RasterBufferAndPrint [11:29:22]line [11:29:22]line [11:29:22]line [11:29:22]line [11:29:22]line [11:29:22]written 0, free lines is 3379 [11:29:22]MH_Cut [11:29:22]Write to MH i2c: D1 01 00 48 4C 01 66 [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: D1 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: D1 01 00 [11:29:22]MH_I2C_Read... [11:29:22]Read from MH i2c: D1 01 00 48 4C 00 65 [11:29:22]Write to MH i2c: 01 00 00 49 4C 95 [11:29:22]Write i2c OK [11:29:22]MH_I2C_Read... [11:29: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 0B D9 47 00 07 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 AC BF 00 00 F4 03 04 00 16 38 B7 65 B6 04 01 00 00 E9 FD AF 14 7A DA A3 FC [11:29:22]CommunicateWithHost err = 0 [11:29:22]CheckOFDResponse [11:29:22]1017 (14) - 77093643461234 [11:29:22]1041 (16) - 0000000000875060 [11:29:22]1040 (4) - 49068 [11:29:22]1012 (4) - 29.01.2024 05:31 [11:29:22]1206 (1) - 0 [11:29:22]OFD Sender: Remove packet 49068 [11:29:22]ProducePacketName [11:29:22]name=ofd_packets/00049068 [11:29:22]NVStorageDeleteData [11:29:23]*** Cut start [11:29:23]*** Partial cut [11:29:23]*** CUTSNS_PIN = 1 [11:29:23]OFD Sender: No OFD packet to send [11:29:23]*** CUTSNS_PIN = 0 [11:29:23]*** Brake cut motor [11:29:23]Read from MH i2c: 01 [11:29:23]MH_I2C_Read... [11:29:23]*** Stop cut motor [11:29:23]*** Cut end [11:29:23]Read from MH i2c: 01 07 00 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: 01 07 00 49 4C 00 00 00 00 00 FF 0F AA [11:29:23]process_action close_receipt done [11:29:23]requested_data is exist [11:29:23]produce_requested_data [11:29:23]requested_item fm.sn is exist - process it [11:29:23]wFMCommunicate request_size=4 [11:29:23]MH_SAM_APDU [11:29:23]CAPDU: 80 11 00 00 [11:29:23]Write to MH i2c: E2 08 00 4A 4C 80 11 00 00 00 00 00 00 10 [11:29:23]Write i2c OK [11:29:23]MH_I2C_Read... [11:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:23]Read from MH i2c: E2 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: E2 17 00 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: E2 17 00 4A 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5D [11:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:29:23]wFMCommunicate OK [11:29:23]requested_item fd.num is exist - process it [11:29:23]SAM_PROTO_GetFieldsCounters [11:29:23]wFMCommunicate request_size=4 [11:29:23]MH_SAM_APDU [11:29:23]CAPDU: 80 13 00 00 [11:29:23]Write to MH i2c: E2 08 00 4B 4C 80 13 00 00 00 00 00 00 13 [11:29:23]Write i2c OK [11:29:23]MH_I2C_Read... [11:29:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:23]Read from MH i2c: E2 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: E2 62 00 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: E2 62 00 4B 4C 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 BF 00 00 0E 04 04 00 F5 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 25 [11:29: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 AC BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:23]wFMCommunicate OK [11:29:23]SAM_PROTO_GetFieldsCounters done [11:29:23]requested_item shift.num is exist - process it [11:29:23]requested_item shift.opened is exist - process it [11:29:23]req_shift_opened [11:29:23]FM_GetShiftState [11:29:23]SAM_PROTO_GetShiftState [11:29:23]wFMCommunicate request_size=4 [11:29:23]MH_SAM_APDU [11:29:23]CAPDU: 80 13 01 00 [11:29:23]Write to MH i2c: E2 08 00 4C 4C 80 13 01 00 00 00 00 00 15 [11:29:23]Write i2c OK [11:29:23]MH_I2C_Read... [11:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:23]Read from MH i2c: E2 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: E2 0E 00 [11:29:23]MH_I2C_Read... [11:29:23]Read from MH i2c: E2 0E 00 4C 4C 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 87 [11:29:23]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:29:23]wFMCommunicate OK [11:29:23]SAM_PROTO_GetShiftState done [11:29:23]FM_GetShiftState done [11:29:23]req_shift_opened done [11:29:23]requested_item shift.open_date is exist - process it [11:29:23]req_shift_open_date [11:29:23]req_shift_open_date done [11:29:23]produce_requested_data done [11:29:23]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49068,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [11:29:23]process_action_free close_receipt [11:29:23]json_value_free [11:29:23]json_value_free done [11:29:23]process_json_proto returns [11:29:23]Send response to host [11:29:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49068,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [11:29:23]free response buf [11:29:23]execute_script done [11:29:23]execute_script returns [11:29:23]free content buf [11:29:23]Sock 9.Close socket [11:29:23]Sock 9.Thread stoped [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:43]OFD Sender: No OFD packet to send [11:29:48]OFD Sender: No OFD packet to send [11:29:53]OFD Sender: No OFD packet to send [11:29:58]OFD Sender: No OFD packet to send [11:30:03]OFD Sender: No OFD packet to send [11:30:08]OFD Sender: No OFD packet to send [11:30:13]OFD Sender: No OFD packet to send [11:30:18]OFD Sender: No OFD packet to send [11:30:23]OFD Sender: No OFD packet to send [11:30:28]OFD Sender: No OFD packet to send [11:30:33]OFD Sender: No OFD packet to send [11:30:38]OFD Sender: No OFD packet to send [11:30:43]OFD Sender: No OFD packet to send [11:30:48]OFD Sender: No OFD packet to send [11:30:53]OFD Sender: No OFD packet to send [11:30:58]OFD Sender: No OFD packet to send [11:31:03]OFD Sender: No OFD packet to send [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:48]OFD Sender: No OFD packet to send [11:36:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:48]OFD Sender: No OFD packet to send [11:37:53]OFD Sender: No OFD packet to send [11:37:58]OFD Sender: No OFD packet to send [11:38:03]OFD Sender: No OFD packet to send [11:38:08]OFD Sender: No OFD packet to send [11:38:13]OFD Sender: No OFD packet to send [11:38:18]OFD Sender: No OFD packet to send [11:38:23]OFD Sender: No OFD packet to send [11:38:28]OFD Sender: No OFD packet to send [11:38:33]OFD Sender: No OFD packet to send [11:38:38]OFD Sender: No OFD packet to send [11:38:43]OFD Sender: No OFD packet to send [11:38:48]OFD Sender: No OFD packet to send [11:38:53]OFD Sender: No OFD packet to send [11:38:58]OFD Sender: No OFD packet to send [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:21]accept exits with 7 [11:48:21]New connection [11:48:21]New thread 3066813796 created [11:48:21]Thread 3066670436 joined [11:48:21]Waiting for new connection... [11:48:21] Sock 7.Parse request [11:48:21]Sock 7.Check first char [11:48:21]Sock 7.First char is OK [11:48:21]request: POST /json_proto HTTP/1.0 [11:48:21]Method: POST [11:48:21]URL: /json_proto [11:48:21]Method is POST - this is cgi request [11:48:21]url: /json_proto [11:48:21]query_string will be loaded in cgi processing [11:48:21]execute_cgi json_proto POST (null) [11:48:21]execute_cgi path=json_proto method=POST [11:48:21]POST find Content-Length [11:48:21]Host: 172.17.56.67:8080 [11:48:21]Content-Length: 677 [11:48:21]Content-Type: application/json [11:48:21] [11:48:21]POST finish read [11:48:21]Found Content-Length = 677 [11:48:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216169", "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:48:21]execute_script... [11:48: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)216169", "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:48:21]POST & json_proto [11:48:21]process_json_proto [11:48:21]json parsed OK: [11:48:21]protocol is kg_v1.0 [11:48:21]action value=close_receipt [11:48:21]process_action close_receipt [11:48:21]cmd_close_receipt [11:48:21]MH_GetDate [11:48:21]Write to MH i2c: F0 00 00 4D 4C 88 [11:48:21]Write i2c OK [11:48:21]MH_I2C_Read... [11:48:21]Read from MH i2c: F0 [11:48:21]MH_I2C_Read... [11:48:21]Read from MH i2c: F0 09 00 [11:48:21]MH_I2C_Read... [11:48:21]Read from MH i2c: F0 09 00 4D 4C 00 92 90 B7 65 26 5D 9E 65 55 [11:48:21]GetLastDocTimeStamp 1706527773 [11:48:21]current date 1706528914 [11:48:21]FM_GetShiftState [11:48:21]SAM_PROTO_GetShiftState [11:48:21]wFMCommunicate request_size=4 [11:48:21]MH_SAM_APDU [11:48:21]CAPDU: 80 13 01 00 [11:48:21]Write to MH i2c: E2 08 00 4E 4C 80 13 01 00 00 00 00 00 17 [11:48:21]Write i2c OK [11:48:21]MH_I2C_Read... [11:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:21]Read from MH i2c: E2 [11:48:21]MH_I2C_Read... [11:48:21]Read from MH i2c: E2 0E 00 [11:48:21]MH_I2C_Read... [11:48:21]Read from MH i2c: E2 0E 00 4E 4C 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 89 [11:48:21]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:48:21]wFMCommunicate OK [11:48:21]SAM_PROTO_GetShiftState done [11:48:21]FM_GetShiftState done [11:48:21]opened in 1706486624 [11:48:21]opened+sec_in_day 1706573024 [11:48:21]quantity*price = 50049 [11:48:21]sum+1 = 50050 [11:48:21]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 СÐО: Общий режим Чек 52 29.01.2024 11:48 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49069 ФПД: 219258445846265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T114834&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49069&fm=219258445846265&tin=02508201610067®Number=0000000000092723&sum=50000 [11:48:22]StoreToDocumentArchive [11:48:22]shift 245 fd 49069 [11:48:22]save to /storage/0245/doc_00049069 [11:48:22]save last doc name /storage/0245/doc_00049069 to /storage/kkm_last_doc_name [11:48:22]save OK [11:48:22]Clear old archive folders... [11:48:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:22]tlvbuf is B6F368A0 [11:48:22]SAM_PROTO_ClearQueue [11:48:22]wFMCommunicate request_size=4 [11:48:22]MH_SAM_APDU [11:48:22]CAPDU: 80 09 00 00 [11:48:22]Write to MH i2c: E2 08 00 5B 4C 80 09 00 00 00 00 00 00 19 [11:48:22]Write i2c OK [11:48:22]MH_I2C_Read... [11:48:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:22]Read from MH i2c: E2 [11:48:22]MH_I2C_Read... [11:48:22]Read from MH i2c: E2 03 00 [11:48:22]MH_I2C_Read... [11:48:22]Read from MH i2c: E2 03 00 5B 4C 00 90 00 1B [11:48:22]RAPDU: 90 00 [11:48:22]wFMCommunicate OK [11:48:22]SAM_PROTO_ClearQueue done [11:48:22]KKMCreateOFDPacket [11:48:22]OFDProtocolAddRootSTLVToBuf [11:48:22]FM_MakeSignedData [11:48:22]FM_MakeSignedData [11:48:22]SAM_PROTO_SignData [11:48:22]wFMCommunicate request_size=4 [11:48:22]MH_SAM_APDU [11:48:22]CAPDU: 80 0D 01 02 [11:48:22]Write to MH i2c: E2 08 00 5C 4C 80 0D 01 02 00 00 00 00 21 [11:48:22]Write i2c OK [11:48:22]MH_I2C_Read... [11:48:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:22]Read from MH i2c: E2 [11:48:22]MH_I2C_Read... [11:48:22]Read from MH i2c: E2 03 00 [11:48:22]MH_I2C_Read... [11:48:22]Read from MH i2c: E2 03 00 5C 4C 00 90 00 1C [11:48:22]RAPDU: 90 00 [11:48:22]wFMCommunicate OK [11:48:22]wFMCommunicate request_size=255 [11:48:22]MH_SAM_APDU [11:48: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 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 34 00 00 00 F4 03 04 00 92 90 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C7 [11:48:22]Write to MH i2c: E2 02 01 5D 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 34 00 00 00 F4 03 04 00 92 90 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C7 00 00 EB [11:48:22]Write i2c OK [11:48:22]MH_I2C_Read... [11:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:23]Read from MH i2c: E2 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: E2 03 00 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: E2 03 00 5D 4C 00 90 00 1D [11:48:23]RAPDU: 90 00 [11:48:23]wFMCommunicate OK [11:48:23]wFMCommunicate request_size=10 [11:48:23]MH_SAM_APDU [11:48:23]CAPDU: 80 0D 02 02 05 6A 15 C7 56 F9 [11:48:23]Write to MH i2c: E2 0D 00 5E 4C 80 0D 02 02 05 00 6A 15 C7 56 F9 00 00 C3 [11:48:23]Write i2c OK [11:48:23]MH_I2C_Read... [11:48:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:23]Read from MH i2c: E2 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: E2 03 00 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: E2 03 00 5E 4C 00 90 00 1E [11:48:23]RAPDU: 90 00 [11:48:23]wFMCommunicate OK [11:48:23]wFMCommunicate request_size=4 [11:48:23]MH_SAM_APDU [11:48:23]CAPDU: 80 0D 03 02 [11:48:23]Write to MH i2c: E2 08 00 5F 4C 80 0D 03 02 00 00 00 00 26 [11:48:23]Write i2c OK [11:48:23]MH_I2C_Read... [11:48:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:23]Read from MH i2c: E2 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: E2 0B 00 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: E2 0B 00 5F 4C 00 47 47 4F 4C A8 6D 41 6B 90 00 11 [11:48:23]RAPDU: 47 47 4F 4C A8 6D 41 6B 90 00 [11:48:23]wFMCommunicate OK [11:48:23]SAM_PROTO_SignData done [11:48:23]FM_MakeSignedData done [11:48:23]CreateOFDProtocolMessage [11:48:23]wFMCommunicate request_size=4 [11:48:23]MH_SAM_APDU [11:48:23]CAPDU: 80 11 00 00 [11:48:23]Write to MH i2c: E2 08 00 60 4C 80 11 00 00 00 00 00 00 26 [11:48:23]Write i2c OK [11:48:23]MH_I2C_Read... [11:48:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:23]Read from MH i2c: E2 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: E2 17 00 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: E2 17 00 60 4C 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:48:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:48:23]wFMCommunicate OK [11:48:23]CreateOFDProtocolMessage done [11:48:23]OFDSenderStorePacket 49069 [11:48:23]StoreOFDPacket docnum=49069 [11:48: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 0F 01 00 00 BB 93 07 01 85 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 34 00 00 00 F4 03 04 00 92 90 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C7 6A 15 C7 56 F9 47 47 4F 4C A8 6D 41 6B [11:48:23]CheckFolder [11:48:23]dirname=/storage/ofd_packets [11:48:23]CheckFolder done [11:48:23]ProducePacketName [11:48:23]name=ofd_packets/00049069 [11:48:23]NVStorageSaveData ofd_packets/00049069 [11:48:23]File name is /storage/ofd_packets/00049069 [11:48:23]Write 301 bytes [11:48:23]NVStorageSaveData done [11:48:23]OFDSenderStorePacket done [11:48:23]KKMCreateOFDPacket done [11:48:23]NVStorageSaveData kkm_last_timestamp [11:48:23]File name is /storage/kkm_last_timestamp [11:48:23]Write 4 bytes [11:48:23]NVStorageSaveData done [11:48:23]ExternCall_PrintAddStr [11:48:23]wPrintStart [11:48:23]Write to MH i2c: 01 00 00 61 4C AD [11:48:23]Write i2c OK [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: 01 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: 01 07 00 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: 01 07 00 61 4C 00 00 00 00 00 FF 0F C2 [11:48:23]RasterBufferAndPrint [11:48:23]line Счет N : (1)216169 [11:48:23]line ИÐÐ: 02508201610067 [11:48:23]line Контрольно-КаÑÑовый Чек [11:48:23]line ПРОДÐЖР[11:48:23]line ТРК (МРК, ГÐК) : 22 [11:48:23]line Товар: 2710124130 [11:48:23]line Ðи-92-К-5 [11:48:23]line 8.300 * 60.30 [11:48:23]line = 500.49 [11:48:23]line ÐДС 12% ÐСП 1% [11:48:23]line > о реализуемом товаре [11:48:23]line ОКРУГЛЕÐИЕ: -0.49 [11:48:23]line ИТОГО: 500.00 [11:48:23]line ВнеÑено: 500.00 [11:48:23]line СДÐЧÐ: 0.00 [11:48:23]line ÐСП 1% : 4.43 [11:48:23]line ÐДС 12% : 53.15 [11:48:23]line Ðаличными: 500.00 [11:48:23]line Безнал.: 0.00 [11:48:23]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [11:48:23]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:48:23]line СÐО: Общий режим [11:48:23]line Чек 52 29.01.2024 11:48 [11:48:23]line Смена: 245 ФФД: 1.0 [11:48:23]line ЗÐМ: 0300000040 [11:48:23]line РÐМ: 0000000000092723 [11:48:23]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:48:23]line ФМ: 0000000000875060 [11:48:23]line ФД: 49069 [11:48:23]line ФПД: 219258445846265 [11:48:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T114834&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49069&fm=219258445846265&tin=02508201610067®Number=0000000000092723&sum=50000 [11:48:23]OFD Sender: Processing packet 49069 [packets to send 12, broken 11] [11:48:23]ProducePacketName [11:48:23]name=ofd_packets/00049069 [11:48:23]OFD Sender: To server: ‡•öpG, [11:48:23]CommunicateWithHost lk.salyk.kg:30040 [11:48:23]ConnectInit lk.salyk.kg [11:48:23]written 0, free lines is 4095 [11:48:23]Connected sock=10 [11:48: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 BB 93 07 01 85 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 34 00 00 00 F4 03 04 00 92 90 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C7 6A 15 C7 56 F9 47 47 4F 4C A8 6D 41 6B [11:48: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 4B 36 47 00 04 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AD BF 00 00 F4 03 04 00 8B 3C B7 65 B6 04 01 00 00 0D 95 9E 43 17 71 06 D3 [11:48:23]CommunicateWithHost err = 0 [11:48:23]CheckOFDResponse [11:48:23]1017 (14) - 77093643461234 [11:48:23]1041 (16) - 0000000000875060 [11:48:23]1040 (4) - 49069 [11:48:23]1012 (4) - 29.01.2024 05:50 [11:48:23]1206 (1) - 0 [11:48:23]OFD Sender: Remove packet 49069 [11:48:23]ProducePacketName [11:48:23]name=ofd_packets/00049069 [11:48:23]NVStorageDeleteData [11:48:23]Write to MH i2c: 01 00 00 8C 4C D8 [11:48:23]Write i2c OK [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: 01 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: 01 07 00 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: 01 07 00 8C 4C 00 00 00 00 00 F3 0C DE [11:48:23]RasterBufferAndPrint [11:48:23]line [11:48:23]line [11:48:23]line [11:48:23]line [11:48:23]line [11:48:23]written 0, free lines is 3322 [11:48:23]MH_Cut [11:48:23]Write to MH i2c: D1 01 00 93 4C 01 B1 [11:48:23]Write i2c OK [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: D1 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: D1 01 00 [11:48:23]MH_I2C_Read... [11:48:23]Read from MH i2c: D1 01 00 93 4C 00 B0 [11:48:23]Write to MH i2c: 01 00 00 94 4C E0 [11:48:24]Write i2c OK [11:48:24]MH_I2C_Read... [11:48:24]OFD Sender: No OFD packet to send [11:48:24]*** Cut start [11:48:24]*** Partial cut [11:48:24]*** CUTSNS_PIN = 1 [11:48:24]*** CUTSNS_PIN = 0 [11:48:24]*** Brake cut motor [11:48:25]Read from MH i2c: 01 [11:48:25]MH_I2C_Read... [11:48:25]*** Stop cut motor [11:48:25]*** Cut end [11:48:25]Read from MH i2c: 01 07 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: 01 07 00 94 4C 00 00 00 00 00 FF 0F F5 [11:48:25]process_action close_receipt done [11:48:25]requested_data is exist [11:48:25]produce_requested_data [11:48:25]requested_item fm.sn is exist - process it [11:48:25]wFMCommunicate request_size=4 [11:48:25]MH_SAM_APDU [11:48:25]CAPDU: 80 11 00 00 [11:48:25]Write to MH i2c: E2 08 00 95 4C 80 11 00 00 00 00 00 00 5B [11:48:25]Write i2c OK [11:48:25]MH_I2C_Read... [11:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:25]Read from MH i2c: E2 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 17 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 17 00 95 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A8 [11:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:48:25]wFMCommunicate OK [11:48:25]requested_item fd.num is exist - process it [11:48:25]SAM_PROTO_GetFieldsCounters [11:48:25]wFMCommunicate request_size=4 [11:48:25]MH_SAM_APDU [11:48:25]CAPDU: 80 13 00 00 [11:48:25]Write to MH i2c: E2 08 00 96 4C 80 13 00 00 00 00 00 00 5E [11:48:25]Write i2c OK [11:48:25]MH_I2C_Read... [11:48:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:25]Read from MH i2c: E2 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 62 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 62 00 96 4C 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 BF 00 00 0E 04 04 00 F5 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 74 [11:48: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 AD BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:25]wFMCommunicate OK [11:48:25]SAM_PROTO_GetFieldsCounters done [11:48:25]requested_item shift.num is exist - process it [11:48:25]requested_item shift.opened is exist - process it [11:48:25]req_shift_opened [11:48:25]FM_GetShiftState [11:48:25]SAM_PROTO_GetShiftState [11:48:25]wFMCommunicate request_size=4 [11:48:25]MH_SAM_APDU [11:48:25]CAPDU: 80 13 01 00 [11:48:25]Write to MH i2c: E2 08 00 97 4C 80 13 01 00 00 00 00 00 60 [11:48:25]Write i2c OK [11:48:25]MH_I2C_Read... [11:48:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:25]Read from MH i2c: E2 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 0E 00 [11:48:25]MH_I2C_Read... [11:48:25]Read from MH i2c: E2 0E 00 97 4C 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 D2 [11:48:25]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:48:25]wFMCommunicate OK [11:48:25]SAM_PROTO_GetShiftState done [11:48:25]FM_GetShiftState done [11:48:25]req_shift_opened done [11:48:25]requested_item shift.open_date is exist - process it [11:48:25]req_shift_open_date [11:48:25]req_shift_open_date done [11:48:25]produce_requested_data done [11:48:25]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49069,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [11:48:25]process_action_free close_receipt [11:48:25]json_value_free [11:48:25]json_value_free done [11:48:25]process_json_proto returns [11:48:25]Send response to host [11:48:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49069,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [11:48:25]free response buf [11:48:25]execute_script done [11:48:25]execute_script returns [11:48:25]free content buf [11:48:25]Sock 7.Close socket [11:48:25]Sock 7.Thread stoped [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:29]accept exits with 9 [11:49:29]New connection [11:49:29]New thread 3066670436 created [11:49:29]Thread 3066813796 joined [11:49:29]Waiting for new connection... [11:49:29] Sock 9.Parse request [11:49:29]Sock 9.Check first char [11:49:29]Sock 9.First char is OK [11:49:29]request: POST /json_proto HTTP/1.0 [11:49:29]Method: POST [11:49:29]URL: /json_proto [11:49:29]Method is POST - this is cgi request [11:49:29]url: /json_proto [11:49:29]query_string will be loaded in cgi processing [11:49:29]execute_cgi json_proto POST (null) [11:49:29]execute_cgi path=json_proto method=POST [11:49:29]POST find Content-Length [11:49:29]Host: 172.17.56.67:8080 [11:49:29]Content-Length: 677 [11:49:29]Content-Type: application/json [11:49:29] [11:49:29]POST finish read [11:49:29]Found Content-Length = 677 [11:49:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216170", "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:49:29]execute_script... [11:49: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)216170", "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:49:29]POST & json_proto [11:49:29]process_json_proto [11:49:29]json parsed OK: [11:49:29]protocol is kg_v1.0 [11:49:29]action value=close_receipt [11:49:29]process_action close_receipt [11:49:29]cmd_close_receipt [11:49:29]MH_GetDate [11:49:29]Write to MH i2c: F0 00 00 98 4C D3 [11:49:29]Write i2c OK [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: F0 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: F0 09 00 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: F0 09 00 98 4C 00 D7 90 B7 65 26 5D 9E 65 E5 [11:49:29]GetLastDocTimeStamp 1706528914 [11:49:29]current date 1706528983 [11:49:29]FM_GetShiftState [11:49:29]SAM_PROTO_GetShiftState [11:49:29]wFMCommunicate request_size=4 [11:49:29]MH_SAM_APDU [11:49:29]CAPDU: 80 13 01 00 [11:49:29]Write to MH i2c: E2 08 00 99 4C 80 13 01 00 00 00 00 00 62 [11:49:29]Write i2c OK [11:49:29]MH_I2C_Read... [11:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:29]Read from MH i2c: E2 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: E2 0E 00 [11:49:29]MH_I2C_Read... [11:49:29]Read from MH i2c: E2 0E 00 99 4C 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 D4 [11:49:29]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:49:29]wFMCommunicate OK [11:49:29]SAM_PROTO_GetShiftState done [11:49:29]FM_GetShiftState done [11:49:29]opened in 1706486624 [11:49:29]opened+sec_in_day 1706573024 [11:49:29]quantity*price = 20019 [11:49:29]sum+1 = 20021 [11:49:29]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 СÐО: Общий режим Чек 53 29.01.2024 11:49 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49070 ФПД: 74701562706549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T114943&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49070&fm=74701562706549&tin=02508201610067®Number=0000000000092723&sum=20000 [11:49:31]StoreToDocumentArchive [11:49:31]shift 245 fd 49070 [11:49:31]save to /storage/0245/doc_00049070 [11:49:31]save last doc name /storage/0245/doc_00049070 to /storage/kkm_last_doc_name [11:49:31]save OK [11:49:31]Clear old archive folders... [11:49:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:31]tlvbuf is B6D86580 [11:49:31]SAM_PROTO_ClearQueue [11:49:31]wFMCommunicate request_size=4 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 09 00 00 [11:49:31]Write to MH i2c: E2 08 00 A6 4C 80 09 00 00 00 00 00 00 64 [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 A6 4C 00 90 00 66 [11:49:31]RAPDU: 90 00 [11:49:31]wFMCommunicate OK [11:49:31]SAM_PROTO_ClearQueue done [11:49:31]KKMCreateOFDPacket [11:49:31]OFDProtocolAddRootSTLVToBuf [11:49:31]FM_MakeSignedData [11:49:31]FM_MakeSignedData [11:49:31]SAM_PROTO_SignData [11:49:31]wFMCommunicate request_size=4 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 0D 01 02 [11:49:31]Write to MH i2c: E2 08 00 A7 4C 80 0D 01 02 00 00 00 00 6C [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 A7 4C 00 90 00 67 [11:49:31]RAPDU: 90 00 [11:49:31]wFMCommunicate OK [11:49:31]wFMCommunicate request_size=255 [11:49:31]MH_SAM_APDU [11:49: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 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 35 00 00 00 F4 03 04 00 D7 90 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 43 [11:49:31]Write to MH i2c: E2 02 01 A8 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 35 00 00 00 F4 03 04 00 D7 90 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 43 00 00 D9 [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 A8 4C 00 90 00 68 [11:49:31]RAPDU: 90 00 [11:49:31]wFMCommunicate OK [11:49:31]wFMCommunicate request_size=10 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 0D 02 02 05 F0 D0 1B FA 75 [11:49:31]Write to MH i2c: E2 0D 00 A9 4C 80 0D 02 02 05 00 F0 D0 1B FA 75 00 00 C3 [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 03 00 A9 4C 00 90 00 69 [11:49:31]RAPDU: 90 00 [11:49:31]wFMCommunicate OK [11:49:31]wFMCommunicate request_size=4 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 0D 03 02 [11:49:31]Write to MH i2c: E2 08 00 AA 4C 80 0D 03 02 00 00 00 00 71 [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 0B 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 0B 00 AA 4C 00 F7 74 3C B0 8E 9F DD C3 90 00 96 [11:49:31]RAPDU: F7 74 3C B0 8E 9F DD C3 90 00 [11:49:31]wFMCommunicate OK [11:49:31]SAM_PROTO_SignData done [11:49:31]FM_MakeSignedData done [11:49:31]CreateOFDProtocolMessage [11:49:31]wFMCommunicate request_size=4 [11:49:31]MH_SAM_APDU [11:49:31]CAPDU: 80 11 00 00 [11:49:31]Write to MH i2c: E2 08 00 AB 4C 80 11 00 00 00 00 00 00 71 [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:31]Read from MH i2c: E2 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 17 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: E2 17 00 AB 4C 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:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:49:31]wFMCommunicate OK [11:49:31]CreateOFDProtocolMessage done [11:49:31]OFDSenderStorePacket 49070 [11:49:31]StoreOFDPacket docnum=49070 [11:49: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 A0 EE 07 01 CE E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 35 00 00 00 F4 03 04 00 D7 90 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 43 F0 D0 1B FA 75 F7 74 3C B0 8E 9F DD C3 [11:49:31]CheckFolder [11:49:31]dirname=/storage/ofd_packets [11:49:31]CheckFolder done [11:49:31]ProducePacketName [11:49:31]name=ofd_packets/00049070 [11:49:31]NVStorageSaveData ofd_packets/00049070 [11:49:31]File name is /storage/ofd_packets/00049070 [11:49:31]Write 301 bytes [11:49:31]NVStorageSaveData done [11:49:31]OFDSenderStorePacket done [11:49:31]KKMCreateOFDPacket done [11:49:31]NVStorageSaveData kkm_last_timestamp [11:49:31]File name is /storage/kkm_last_timestamp [11:49:31]Write 4 bytes [11:49:31]NVStorageSaveData done [11:49:31]ExternCall_PrintAddStr [11:49:31]wPrintStart [11:49:31]Write to MH i2c: 01 00 00 AC 4C F8 [11:49:31]Write i2c OK [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: 01 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: 01 07 00 [11:49:31]MH_I2C_Read... [11:49:31]Read from MH i2c: 01 07 00 AC 4C 00 00 00 00 00 FF 0F 0D [11:49:31]RasterBufferAndPrint [11:49:31]line Счет N : (1)216170 [11:49:31]line ИÐÐ: 02508201610067 [11:49:31]line Контрольно-КаÑÑовый Чек [11:49:31]line ПРОДÐЖР[11:49:31]line ТРК (МРК, ГÐК) : 22 [11:49:31]line Товар: 2710124130 [11:49:31]line Ðи-92-К-5 [11:49:31]line 3.320 * 60.30 [11:49:31]line = 200.20 [11:49:31]line ÐДС 12% ÐСП 1% [11:49:31]line > о реализуемом товаре [11:49:31]line ОКРУГЛЕÐИЕ: -0.20 [11:49:31]line ИТОГО: 200.00 [11:49:31]line ВнеÑено: 200.00 [11:49:31]line СДÐЧÐ: 0.00 [11:49:31]line ÐСП 1% : 1.77 [11:49:31]line ÐДС 12% : 21.26 [11:49:31]line Ðаличными: 200.00 [11:49:31]line Безнал.: 0.00 [11:49:31]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [11:49:31]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:49:31]line СÐО: Общий режим [11:49:31]line Чек 53 29.01.2024 11:49 [11:49:31]line Смена: 245 ФФД: 1.0 [11:49:31]line ЗÐМ: 0300000040 [11:49:31]line РÐМ: 0000000000092723 [11:49:31]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:49:31]line ФМ: 0000000000875060 [11:49:31]line ФД: 49070 [11:49:31]line ФПД: 74701562706549 [11:49:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T114943&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49070&fm=74701562706549&tin=02508201610067®Number=0000000000092723&sum=20000 [11:49:31]OFD Sender: Processing packet 49070 [packets to send 12, broken 11] [11:49:31]ProducePacketName [11:49:31]name=ofd_packets/00049070 [11:49:31]OFD Sender: To server: ‡•öpG, [11:49:31]CommunicateWithHost lk.salyk.kg:30040 [11:49:31]ConnectInit lk.salyk.kg [11:49:31]written 0, free lines is 4095 [11:49:32]Connected sock=10 [11:49: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 A0 EE 07 01 CE E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 35 00 00 00 F4 03 04 00 D7 90 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 43 F0 D0 1B FA 75 F7 74 3C B0 8E 9F DD C3 [11:49: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 A8 E3 47 00 D9 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AE BF 00 00 F4 03 04 00 D0 3C B7 65 B6 04 01 00 00 CC 11 92 FE 96 56 EA 56 [11:49:32]CommunicateWithHost err = 0 [11:49:32]CheckOFDResponse [11:49:32]1017 (14) - 77093643461234 [11:49:32]1041 (16) - 0000000000875060 [11:49:32]1040 (4) - 49070 [11:49:32]1012 (4) - 29.01.2024 05:51 [11:49:32]1206 (1) - 0 [11:49:32]OFD Sender: Remove packet 49070 [11:49:32]ProducePacketName [11:49:32]name=ofd_packets/00049070 [11:49:32]NVStorageDeleteData [11:49:32]Write to MH i2c: 01 00 00 D7 4C 23 [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: 01 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: 01 07 00 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: 01 07 00 D7 4C 00 00 00 00 00 F8 0C 2E [11:49:32]RasterBufferAndPrint [11:49:32]line [11:49:32]line [11:49:32]line [11:49:32]line [11:49:32]line [11:49:32]written 0, free lines is 3327 [11:49:32]MH_Cut [11:49:32]Write to MH i2c: D1 01 00 DE 4C 01 FC [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: D1 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: D1 01 00 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: D1 01 00 DE 4C 00 FB [11:49:32]Write to MH i2c: 01 00 00 DF 4C 2B [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]OFD Sender: No OFD packet to send [11:49:33]*** Cut start [11:49:33]*** Partial cut [11:49:33]*** CUTSNS_PIN = 1 [11:49:33]*** CUTSNS_PIN = 0 [11:49:33]*** Brake cut motor [11:49:33]Read from MH i2c: 01 [11:49:33]MH_I2C_Read... [11:49:33]*** Stop cut motor [11:49:33]*** Cut end [11:49:33]Read from MH i2c: 01 07 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: 01 07 00 DF 4C 00 00 00 00 00 FF 0F 40 [11:49:33]process_action close_receipt done [11:49:33]requested_data is exist [11:49:33]produce_requested_data [11:49:33]requested_item fm.sn is exist - process it [11:49:33]wFMCommunicate request_size=4 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 11 00 00 [11:49:33]Write to MH i2c: E2 08 00 E0 4C 80 11 00 00 00 00 00 00 A6 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 17 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 17 00 E0 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F3 [11:49:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [11:49:33]wFMCommunicate OK [11:49:33]requested_item fd.num is exist - process it [11:49:33]SAM_PROTO_GetFieldsCounters [11:49:33]wFMCommunicate request_size=4 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 13 00 00 [11:49:33]Write to MH i2c: E2 08 00 E1 4C 80 13 00 00 00 00 00 00 A9 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 62 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 62 00 E1 4C 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 BF 00 00 0E 04 04 00 F5 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 C3 [11:49: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 AE BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:33]wFMCommunicate OK [11:49:33]SAM_PROTO_GetFieldsCounters done [11:49:33]requested_item shift.num is exist - process it [11:49:33]requested_item shift.opened is exist - process it [11:49:33]req_shift_opened [11:49:33]FM_GetShiftState [11:49:33]SAM_PROTO_GetShiftState [11:49:33]wFMCommunicate request_size=4 [11:49:33]MH_SAM_APDU [11:49:33]CAPDU: 80 13 01 00 [11:49:33]Write to MH i2c: E2 08 00 E2 4C 80 13 01 00 00 00 00 00 AB [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:33]Read from MH i2c: E2 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 0E 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: E2 0E 00 E2 4C 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 1D [11:49:33]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:49:33]wFMCommunicate OK [11:49:33]SAM_PROTO_GetShiftState done [11:49:33]FM_GetShiftState done [11:49:33]req_shift_opened done [11:49:33]requested_item shift.open_date is exist - process it [11:49:33]req_shift_open_date [11:49:33]req_shift_open_date done [11:49:33]produce_requested_data done [11:49:33]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49070,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [11:49:33]process_action_free close_receipt [11:49:33]json_value_free [11:49:33]json_value_free done [11:49:33]process_json_proto returns [11:49:33]Send response to host [11:49:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49070,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [11:49:33]free response buf [11:49:33]execute_script done [11:49:33]execute_script returns [11:49:33]free content buf [11:49:33]Sock 9.Close socket [11:49:33]Sock 9.Thread stoped [11:49:37]OFD Sender: No OFD packet to send [11:49:42]OFD Sender: No OFD packet to send [11:49:47]OFD Sender: No OFD packet to send [11:49:52]OFD Sender: No OFD packet to send [11:49:57]OFD Sender: No OFD packet to send [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]OFD Sender: No OFD packet to send [11:52:17]OFD Sender: No OFD packet to send [11:52:22]OFD Sender: No OFD packet to send [11:52:27]OFD Sender: No OFD packet to send [11:52:32]OFD Sender: No OFD packet to send [11:52:37]OFD Sender: No OFD packet to send [11:52:42]OFD Sender: No OFD packet to send [11:52:47]OFD Sender: No OFD packet to send [11:52:52]OFD Sender: No OFD packet to send [11:52:57]OFD Sender: No OFD packet to send [11:53:02]OFD Sender: No OFD packet to send [11:53:07]OFD Sender: No OFD packet to send [11:53:12]OFD Sender: No OFD packet to send [11:53:17]OFD Sender: No OFD packet to send [11:53:22]OFD Sender: No OFD packet to send [11:53:27]OFD Sender: No OFD packet to send [11:53:32]OFD Sender: No OFD packet to send [11:53:37]OFD Sender: No OFD packet to send [11:53:42]OFD Sender: No OFD packet to send [11:53:47]OFD Sender: No OFD packet to send [11:53:52]OFD Sender: No OFD packet to send [11:53:57]OFD Sender: No OFD packet to send [11:54:02]OFD Sender: No OFD packet to send [11:54:07]OFD Sender: No OFD packet to send [11:54:12]OFD Sender: No OFD packet to send [11:54:17]OFD Sender: No OFD packet to send [11:54:22]OFD Sender: No OFD packet to send [11:54:27]OFD Sender: No OFD packet to send [11:54:32]OFD Sender: No OFD packet to send [11:54:37]OFD Sender: No OFD packet to send [11:54:42]OFD Sender: No OFD packet to send [11:54:47]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:43]OFD Sender: No OFD packet to send [11:55:48]OFD Sender: No OFD packet to send [11:55:53]OFD Sender: No OFD packet to send [11:55:58]OFD Sender: No OFD packet to send [11:56:03]OFD Sender: No OFD packet to send [11:56:08]OFD Sender: No OFD packet to send [11:56:13]OFD Sender: No OFD packet to send [11:56:18]OFD Sender: No OFD packet to send [11:56:23]OFD Sender: No OFD packet to send [11:56:28]OFD Sender: No OFD packet to send [11:56:33]OFD Sender: No OFD packet to send [11:56:38]OFD Sender: No OFD packet to send [11:56:43]OFD Sender: No OFD packet to send [11:56:48]OFD Sender: No OFD packet to send [11:56:53]OFD Sender: No OFD packet to send [11:56:58]OFD Sender: No OFD packet to send [11:57:03]OFD Sender: No OFD packet to send [11:57:08]OFD Sender: No OFD packet to send [11:57:13]OFD Sender: No OFD packet to send [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [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:30]accept exits with 7 [11:59:30]New connection [11:59:30]New thread 3066813796 created [11:59:30]Thread 3066670436 joined [11:59:30]Waiting for new connection... [11:59:30] Sock 7.Parse request [11:59:30]Sock 7.Check first char [11:59:30]Sock 7.First char is OK [11:59:30]request: POST /json_proto HTTP/1.0 [11:59:30]Method: POST [11:59:30]URL: /json_proto [11:59:30]Method is POST - this is cgi request [11:59:30]url: /json_proto [11:59:30]query_string will be loaded in cgi processing [11:59:30]execute_cgi json_proto POST (null) [11:59:30]execute_cgi path=json_proto method=POST [11:59:30]POST find Content-Length [11:59:30]Host: 172.17.56.67:8080 [11:59:30]Content-Length: 642 [11:59:30]Content-Type: application/json [11:59:30] [11:59:30]POST finish read [11:59:30]Found Content-Length = 642 [11:59:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216171", "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" : 80.000, "sum" : 4824.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4824.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:30]execute_script... [11:59:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216171", "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" : 80.000, "sum" : 4824.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4824.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:30]POST & json_proto [11:59:30]process_json_proto [11:59:30]json parsed OK: [11:59:30]protocol is kg_v1.0 [11:59:30]action value=close_receipt [11:59:30]process_action close_receipt [11:59:30]cmd_close_receipt [11:59:30]MH_GetDate [11:59:30]Write to MH i2c: F0 00 00 E3 4C 1E [11:59:30]Write i2c OK [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: F0 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: F0 09 00 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: F0 09 00 E3 4C 00 2F 93 B7 65 26 5D 9E 65 8B [11:59:30]GetLastDocTimeStamp 1706528983 [11:59:30]current date 1706529583 [11:59:30]FM_GetShiftState [11:59:30]SAM_PROTO_GetShiftState [11:59:30]wFMCommunicate request_size=4 [11:59:30]MH_SAM_APDU [11:59:30]CAPDU: 80 13 01 00 [11:59:30]Write to MH i2c: E2 08 00 E4 4C 80 13 01 00 00 00 00 00 AD [11:59:30]Write i2c OK [11:59:30]MH_I2C_Read... [11:59:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:30]Read from MH i2c: E2 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: E2 0E 00 [11:59:30]MH_I2C_Read... [11:59:30]Read from MH i2c: E2 0E 00 E4 4C 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 1F [11:59:30]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:59:30]wFMCommunicate OK [11:59:30]SAM_PROTO_GetShiftState done [11:59:30]FM_GetShiftState done [11:59:30]opened in 1706486624 [11:59:30]opened+sec_in_day 1706573024 [11:59:30]quantity*price = 482400 [11:59:30]sum+1 = 482401 [11:59:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4824.00 ÐСП 1% : 42.69 ÐДС 12% : 512.28 Ðаличными: 4824.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 54 29.01.2024 11:59 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49071 ФПД: 87311669418576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T115943&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49071&fm=87311669418576&tin=02508201610067®Number=0000000000092723&sum=482400 [11:59:31]StoreToDocumentArchive [11:59:31]shift 245 fd 49071 [11:59:31]save to /storage/0245/doc_00049071 [11:59:31]save last doc name /storage/0245/doc_00049071 to /storage/kkm_last_doc_name [11:59:31]save OK [11:59:31]Clear old archive folders... [11:59:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:59:31]tlvbuf is 013845D0 [11:59:31]SAM_PROTO_ClearQueue [11:59:31]wFMCommunicate request_size=4 [11:59:31]MH_SAM_APDU [11:59:31]CAPDU: 80 09 00 00 [11:59:31]Write to MH i2c: E2 08 00 F1 4C 80 09 00 00 00 00 00 00 AF [11:59:31]Write i2c OK [11:59:31]MH_I2C_Read... [11:59:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:31]Read from MH i2c: E2 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: E2 03 00 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: E2 03 00 F1 4C 00 90 00 B1 [11:59:31]RAPDU: 90 00 [11:59:31]wFMCommunicate OK [11:59:31]SAM_PROTO_ClearQueue done [11:59:31]KKMCreateOFDPacket [11:59:31]OFDProtocolAddRootSTLVToBuf [11:59:31]FM_MakeSignedData [11:59:31]FM_MakeSignedData [11:59:31]SAM_PROTO_SignData [11:59:31]wFMCommunicate request_size=4 [11:59:31]MH_SAM_APDU [11:59:31]CAPDU: 80 0D 01 02 [11:59:31]Write to MH i2c: E2 08 00 F2 4C 80 0D 01 02 00 00 00 00 B7 [11:59:31]Write i2c OK [11:59:31]MH_I2C_Read... [11:59:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:31]Read from MH i2c: E2 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: E2 03 00 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: E2 03 00 F2 4C 00 90 00 B2 [11:59:31]RAPDU: 90 00 [11:59:31]wFMCommunicate OK [11:59:31]wFMCommunicate request_size=255 [11:59:31]MH_SAM_APDU [11:59: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 80 38 01 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 60 5C 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5C 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C C8 00 00 00 00 07 04 06 00 60 5C 07 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 2F 93 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 4F [11:59:31]Write to MH i2c: E2 02 01 F3 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 60 5C 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5C 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C C8 00 00 00 00 07 04 06 00 60 5C 07 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 2F 93 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 4F 00 00 C7 [11:59:31]Write i2c OK [11:59:31]MH_I2C_Read... [11:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:31]Read from MH i2c: E2 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: E2 03 00 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: E2 03 00 F3 4C 00 90 00 B3 [11:59:31]RAPDU: 90 00 [11:59:31]wFMCommunicate OK [11:59:31]wFMCommunicate request_size=10 [11:59:31]MH_SAM_APDU [11:59:31]CAPDU: 80 0D 02 02 05 68 D5 0A 5A 50 [11:59:31]Write to MH i2c: E2 0D 00 F4 4C 80 0D 02 02 05 00 68 D5 0A 5A 50 00 00 B5 [11:59:31]Write i2c OK [11:59:31]MH_I2C_Read... [11:59:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:31]Read from MH i2c: E2 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: E2 03 00 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: E2 03 00 F4 4C 00 90 00 B4 [11:59:31]RAPDU: 90 00 [11:59:31]wFMCommunicate OK [11:59:31]wFMCommunicate request_size=4 [11:59:31]MH_SAM_APDU [11:59:31]CAPDU: 80 0D 03 02 [11:59:31]Write to MH i2c: E2 08 00 F5 4C 80 0D 03 02 00 00 00 00 BC [11:59:31]Write i2c OK [11:59:31]MH_I2C_Read... [11:59:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:31]Read from MH i2c: E2 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: E2 0B 00 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: E2 0B 00 F5 4C 00 52 9F 36 DF 0C DA 47 88 90 00 78 [11:59:31]RAPDU: 52 9F 36 DF 0C DA 47 88 90 00 [11:59:31]wFMCommunicate OK [11:59:31]SAM_PROTO_SignData done [11:59:31]FM_MakeSignedData done [11:59:31]CreateOFDProtocolMessage [11:59:31]wFMCommunicate request_size=4 [11:59:31]MH_SAM_APDU [11:59:31]CAPDU: 80 11 00 00 [11:59:31]Write to MH i2c: E2 08 00 F6 4C 80 11 00 00 00 00 00 00 BC [11:59:31]Write i2c OK [11:59:31]MH_I2C_Read... [11:59:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:31]Read from MH i2c: E2 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: E2 17 00 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: E2 17 00 F6 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 09 [11:59:31]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:31]wFMCommunicate OK [11:59:31]CreateOFDProtocolMessage done [11:59:31]OFDSenderStorePacket 49071 [11:59:31]StoreOFDPacket docnum=49071 [11:59: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 09 F0 07 01 5B 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 60 5C 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5C 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C C8 00 00 00 00 07 04 06 00 60 5C 07 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 2F 93 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 4F 68 D5 0A 5A 50 52 9F 36 DF 0C DA 47 88 [11:59:31]CheckFolder [11:59:31]dirname=/storage/ofd_packets [11:59:31]CheckFolder done [11:59:31]ProducePacketName [11:59:31]name=ofd_packets/00049071 [11:59:31]NVStorageSaveData ofd_packets/00049071 [11:59:31]File name is /storage/ofd_packets/00049071 [11:59:31]Write 301 bytes [11:59:31]NVStorageSaveData done [11:59:31]OFDSenderStorePacket done [11:59:31]KKMCreateOFDPacket done [11:59:31]NVStorageSaveData kkm_last_timestamp [11:59:31]File name is /storage/kkm_last_timestamp [11:59:31]Write 4 bytes [11:59:31]NVStorageSaveData done [11:59:31]ExternCall_PrintAddStr [11:59:31]wPrintStart [11:59:31]Write to MH i2c: 01 00 00 F7 4C 43 [11:59:31]Write i2c OK [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: 01 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: 01 07 00 [11:59:31]MH_I2C_Read... [11:59:31]Read from MH i2c: 01 07 00 F7 4C 00 00 00 00 00 FF 0F 58 [11:59:31]RasterBufferAndPrint [11:59:31]line Счет N : (1)216171 [11:59:31]line ИÐÐ: 02508201610067 [11:59:31]line Контрольно-КаÑÑовый Чек [11:59:31]line ПРОДÐЖР[11:59:31]line ТРК (МРК, ГÐК) : 12 [11:59:31]line Товар: 2710124130 [11:59:31]line Ðи-92-К-5 [11:59:31]line 80.000 * 60.30 [11:59:31]line = 4824.00 [11:59:31]line ÐДС 12% ÐСП 1% [11:59:31]line > о реализуемом товаре [11:59:31]line ИТОГО: 4824.00 [11:59:31]line ÐСП 1% : 42.69 [11:59:31]line ÐДС 12% : 512.28 [11:59:31]line Ðаличными: 4824.00 [11:59:31]line Безнал.: 0.00 [11:59:31]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [11:59:31]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [11:59:31]line СÐО: Общий режим [11:59:31]line Чек 54 29.01.2024 11:59 [11:59:31]line Смена: 245 ФФД: 1.0 [11:59:31]line ЗÐМ: 0300000040 [11:59:31]line РÐМ: 0000000000092723 [11:59:31]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [11:59:31]line ФМ: 0000000000875060 [11:59:31]line ФД: 49071 [11:59:31]line ФПД: 87311669418576 [11:59:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T115943&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49071&fm=87311669418576&tin=02508201610067®Number=0000000000092723&sum=482400 [11:59:32]OFD Sender: Processing packet 49071 [packets to send 12, broken 11] [11:59:32]ProducePacketName [11:59:32]name=ofd_packets/00049071 [11:59:32]OFD Sender: To server: ‡•öpG, [11:59:32]CommunicateWithHost lk.salyk.kg:30040 [11:59:32]ConnectInit lk.salyk.kg [11:59:32]written 0, free lines is 4095 [11:59:32]Connected sock=10 [11:59: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 09 F0 07 01 5B 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 60 5C 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 5C 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 10 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C C8 00 00 00 00 07 04 06 00 60 5C 07 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 2F 93 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 4F 68 D5 0A 5A 50 52 9F 36 DF 0C DA 47 88 [11:59: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 16 29 47 00 FD C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 AF BF 00 00 F4 03 04 00 28 3F B7 65 B6 04 01 00 00 9C 99 70 61 F1 50 26 2E [11:59:32]CommunicateWithHost err = 0 [11:59:32]CheckOFDResponse [11:59:32]1017 (14) - 77093643461234 [11:59:32]1041 (16) - 0000000000875060 [11:59:32]1040 (4) - 49071 [11:59:32]1012 (4) - 29.01.2024 06:01 [11:59:32]1206 (1) - 0 [11:59:32]OFD Sender: Remove packet 49071 [11:59:32]ProducePacketName [11:59:32]name=ofd_packets/00049071 [11:59:32]NVStorageDeleteData [11:59:32]Write to MH i2c: 01 00 00 1F 4D 6C [11:59:32]Write i2c OK [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: 01 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: 01 07 00 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: 01 07 00 1F 4D 00 00 00 00 00 27 0D A7 [11:59:32]RasterBufferAndPrint [11:59:32]line [11:59:32]line [11:59:32]line [11:59:32]line [11:59:32]line [11:59:32]written 0, free lines is 3373 [11:59:32]MH_Cut [11:59:32]Write to MH i2c: D1 01 00 26 4D 01 45 [11:59:32]Write i2c OK [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: D1 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: D1 01 00 [11:59:32]MH_I2C_Read... [11:59:32]Read from MH i2c: D1 01 00 26 4D 00 44 [11:59:32]Write to MH i2c: 01 00 00 27 4D 74 [11:59:32]Write i2c OK [11:59:32]MH_I2C_Read... [11:59:32]OFD Sender: No OFD packet to send [11:59:33]*** Cut start [11:59:33]*** Partial cut [11:59:33]*** CUTSNS_PIN = 1 [11:59:33]*** CUTSNS_PIN = 0 [11:59:33]*** Brake cut motor [11:59:33]Read from MH i2c: 01 [11:59:33]MH_I2C_Read... [11:59:33]*** Stop cut motor [11:59:33]*** Cut end [11:59:33]Read from MH i2c: 01 07 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: 01 07 00 27 4D 00 00 00 00 00 FF 0F 89 [11:59:33]process_action close_receipt done [11:59:33]requested_data is exist [11:59:33]produce_requested_data [11:59:33]requested_item fm.sn is exist - process it [11:59:33]wFMCommunicate request_size=4 [11:59:33]MH_SAM_APDU [11:59:33]CAPDU: 80 11 00 00 [11:59:33]Write to MH i2c: E2 08 00 28 4D 80 11 00 00 00 00 00 00 EF [11:59:33]Write i2c OK [11:59:33]MH_I2C_Read... [11:59:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:33]Read from MH i2c: E2 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 17 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 17 00 28 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3C [11:59:33]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:33]wFMCommunicate OK [11:59:33]requested_item fd.num is exist - process it [11:59:33]SAM_PROTO_GetFieldsCounters [11:59:33]wFMCommunicate request_size=4 [11:59:33]MH_SAM_APDU [11:59:33]CAPDU: 80 13 00 00 [11:59:33]Write to MH i2c: E2 08 00 29 4D 80 13 00 00 00 00 00 00 F2 [11:59:33]Write i2c OK [11:59:33]MH_I2C_Read... [11:59:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:33]Read from MH i2c: E2 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 62 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 62 00 29 4D 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 BF 00 00 0E 04 04 00 F5 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 10 [11:59: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 AF BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:33]wFMCommunicate OK [11:59:33]SAM_PROTO_GetFieldsCounters done [11:59:33]requested_item shift.num is exist - process it [11:59:33]requested_item shift.opened is exist - process it [11:59:33]req_shift_opened [11:59:33]FM_GetShiftState [11:59:33]SAM_PROTO_GetShiftState [11:59:33]wFMCommunicate request_size=4 [11:59:33]MH_SAM_APDU [11:59:33]CAPDU: 80 13 01 00 [11:59:33]Write to MH i2c: E2 08 00 2A 4D 80 13 01 00 00 00 00 00 F4 [11:59:33]Write i2c OK [11:59:33]MH_I2C_Read... [11:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:33]Read from MH i2c: E2 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 0E 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 0E 00 2A 4D 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 66 [11:59:33]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [11:59:33]wFMCommunicate OK [11:59:33]SAM_PROTO_GetShiftState done [11:59:33]FM_GetShiftState done [11:59:33]req_shift_opened done [11:59:33]requested_item shift.open_date is exist - process it [11:59:33]req_shift_open_date [11:59:33]req_shift_open_date done [11:59:33]produce_requested_data done [11:59:33]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49071,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [11:59:33]process_action_free close_receipt [11:59:33]json_value_free [11:59:33]json_value_free done [11:59:33]process_json_proto returns [11:59:33]Send response to host [11:59:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49071,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [11:59:33]free response buf [11:59:33]execute_script done [11:59:33]execute_script returns [11:59:33]free content buf [11:59:33]Sock 7.Close socket [11:59:33]Sock 7.Thread stoped [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:46]accept exits with 9 [12:00:46]New connection [12:00:46]New thread 3066670436 created [12:00:46]Thread 3066813796 joined [12:00:46]Waiting for new connection... [12:00:46] Sock 9.Parse request [12:00:46]Sock 9.Check first char [12:00:46]Sock 9.First char is OK [12:00:46]request: POST /json_proto HTTP/1.0 [12:00:46]Method: POST [12:00:46]URL: /json_proto [12:00:46]Method is POST - this is cgi request [12:00:46]url: /json_proto [12:00:46]query_string will be loaded in cgi processing [12:00:46]execute_cgi json_proto POST (null) [12:00:46]execute_cgi path=json_proto method=POST [12:00:46]POST find Content-Length [12:00:46]Host: 172.17.56.67:8080 [12:00:46]Content-Length: 679 [12:00:46]Content-Type: application/json [12:00:46] [12:00:46]POST finish read [12:00:46]Found Content-Length = 679 [12:00:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216172", "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" : 35.000, "sum" : 2446.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2446.00, "total" : 2446.00, "payments": [ { "type": 0, "sum" : 2446.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:46]execute_script... [12:00: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)216172", "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" : 35.000, "sum" : 2446.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2446.00, "total" : 2446.00, "payments": [ { "type": 0, "sum" : 2446.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:46]POST & json_proto [12:00:46]process_json_proto [12:00:46]json parsed OK: [12:00:46]protocol is kg_v1.0 [12:00:46]action value=close_receipt [12:00:46]process_action close_receipt [12:00:46]cmd_close_receipt [12:00:46]MH_GetDate [12:00:46]Write to MH i2c: F0 00 00 2B 4D 67 [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: F0 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: F0 09 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: F0 09 00 2B 4D 00 7C 93 B7 65 26 5D 9E 65 21 [12:00:46]GetLastDocTimeStamp 1706529583 [12:00:46]current date 1706529660 [12:00:46]FM_GetShiftState [12:00:46]SAM_PROTO_GetShiftState [12:00:46]wFMCommunicate request_size=4 [12:00:46]MH_SAM_APDU [12:00:46]CAPDU: 80 13 01 00 [12:00:46]Write to MH i2c: E2 08 00 2C 4D 80 13 01 00 00 00 00 00 F6 [12:00:46]Write i2c OK [12:00:46]MH_I2C_Read... [12:00:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:46]Read from MH i2c: E2 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 0E 00 [12:00:46]MH_I2C_Read... [12:00:46]Read from MH i2c: E2 0E 00 2C 4D 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 68 [12:00:46]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:00:46]wFMCommunicate OK [12:00:46]SAM_PROTO_GetShiftState done [12:00:46]FM_GetShiftState done [12:00:46]opened in 1706486624 [12:00:46]opened+sec_in_day 1706573024 [12:00:46]quantity*price = 244650 [12:00:46]sum+1 = 244651 [12:00:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.50 ИТОГО: 2446.00 ВнеÑено: 2446.00 СДÐЧÐ: 0.00 ÐСП 1% : 21.65 ÐДС 12% : 259.80 Ðаличными: 2446.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 55 29.01.2024 12:01 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49072 ФПД: 212941656684651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T120100&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49072&fm=212941656684651&tin=02508201610067®Number=0000000000092723&sum=244600 [12:00:48]StoreToDocumentArchive [12:00:48]shift 245 fd 49072 [12:00:48]save to /storage/0245/doc_00049072 [12:00:48]save last doc name /storage/0245/doc_00049072 to /storage/kkm_last_doc_name [12:00:48]save OK [12:00:48]Clear old archive folders... [12:00:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:00:48]tlvbuf is B6F36830 [12:00:48]SAM_PROTO_ClearQueue [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 09 00 00 [12:00:48]Write to MH i2c: E2 08 00 39 4D 80 09 00 00 00 00 00 00 F8 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 39 4D 00 90 00 FA [12:00:48]RAPDU: 90 00 [12:00:48]wFMCommunicate OK [12:00:48]SAM_PROTO_ClearQueue done [12:00:48]KKMCreateOFDPacket [12:00:48]OFDProtocolAddRootSTLVToBuf [12:00:48]FM_MakeSignedData [12:00:48]FM_MakeSignedData [12:00:48]SAM_PROTO_SignData [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 0D 01 02 [12:00:48]Write to MH i2c: E2 08 00 3A 4D 80 0D 01 02 00 00 00 00 00 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 3A 4D 00 90 00 FB [12:00:48]RAPDU: 90 00 [12:00:48]wFMCommunicate OK [12:00:48]wFMCommunicate request_size=255 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 AA BB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 BB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 65 00 00 00 00 07 04 06 00 78 BB 03 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 7C 93 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C1 AB 57 CD [12:00:48]Write to MH i2c: E2 02 01 3B 4D 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 B8 88 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 AA BB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 BB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 65 00 00 00 00 07 04 06 00 78 BB 03 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 7C 93 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C1 AB 57 CD 00 00 86 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 3B 4D 00 90 00 FC [12:00:48]RAPDU: 90 00 [12:00:48]wFMCommunicate OK [12:00:48]wFMCommunicate request_size=7 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 0D 02 02 02 F8 6B [12:00:48]Write to MH i2c: E2 0A 00 3C 4D 80 0D 02 02 02 00 F8 6B 00 00 6A [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 03 00 3C 4D 00 90 00 FD [12:00:48]RAPDU: 90 00 [12:00:48]wFMCommunicate OK [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 0D 03 02 [12:00:48]Write to MH i2c: E2 08 00 3D 4D 80 0D 03 02 00 00 00 00 05 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 0B 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 0B 00 3D 4D 00 A0 17 1E 58 97 11 83 7B 90 00 D9 [12:00:48]RAPDU: A0 17 1E 58 97 11 83 7B 90 00 [12:00:48]wFMCommunicate OK [12:00:48]SAM_PROTO_SignData done [12:00:48]FM_MakeSignedData done [12:00:48]CreateOFDProtocolMessage [12:00:48]wFMCommunicate request_size=4 [12:00:48]MH_SAM_APDU [12:00:48]CAPDU: 80 11 00 00 [12:00:48]Write to MH i2c: E2 08 00 3E 4D 80 11 00 00 00 00 00 00 05 [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:48]Read from MH i2c: E2 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 17 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: E2 17 00 3E 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 52 [12:00:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:00:48]wFMCommunicate OK [12:00:48]CreateOFDProtocolMessage done [12:00:48]OFDSenderStorePacket 49072 [12:00:48]StoreOFDPacket docnum=49072 [12:00: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 0C 01 00 00 D6 C1 04 01 8B 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 AA BB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 BB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 65 00 00 00 00 07 04 06 00 78 BB 03 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 7C 93 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C1 AB 57 CD F8 6B A0 17 1E 58 97 11 83 7B [12:00:48]CheckFolder [12:00:48]dirname=/storage/ofd_packets [12:00:48]CheckFolder done [12:00:48]ProducePacketName [12:00:48]name=ofd_packets/00049072 [12:00:48]NVStorageSaveData ofd_packets/00049072 [12:00:48]File name is /storage/ofd_packets/00049072 [12:00:48]Write 298 bytes [12:00:48]NVStorageSaveData done [12:00:48]OFDSenderStorePacket done [12:00:48]KKMCreateOFDPacket done [12:00:48]NVStorageSaveData kkm_last_timestamp [12:00:48]File name is /storage/kkm_last_timestamp [12:00:48]Write 4 bytes [12:00:48]NVStorageSaveData done [12:00:48]ExternCall_PrintAddStr [12:00:48]wPrintStart [12:00:48]Write to MH i2c: 01 00 00 3F 4D 8C [12:00:48]Write i2c OK [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: 01 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: 01 07 00 [12:00:48]MH_I2C_Read... [12:00:48]Read from MH i2c: 01 07 00 3F 4D 00 00 00 00 00 FF 0F A1 [12:00:48]RasterBufferAndPrint [12:00:48]line Счет N : (1)216172 [12:00:48]line ИÐÐ: 02508201610067 [12:00:48]line Контрольно-КаÑÑовый Чек [12:00:48]line ПРОДÐЖР[12:00:48]line ТРК (МРК, ГÐК) : 11 [12:00:48]line Товар: 2710194210 [12:00:48]line ДТ-К-5 [12:00:48]line 35.000 * 69.90 [12:00:48]line = 2446.50 [12:00:48]line ÐДС 12% ÐСП 1% [12:00:48]line > о реализуемом товаре [12:00:48]line ОКРУГЛЕÐИЕ: -0.50 [12:00:48]line ИТОГО: 2446.00 [12:00:48]line ВнеÑено: 2446.00 [12:00:48]line СДÐЧÐ: 0.00 [12:00:48]line ÐСП 1% : 21.65 [12:00:48]line ÐДС 12% : 259.80 [12:00:48]line Ðаличными: 2446.00 [12:00:48]line Безнал.: 0.00 [12:00:48]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [12:00:48]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:00:48]line СÐО: Общий режим [12:00:48]line Чек 55 29.01.2024 12:01 [12:00:48]line Смена: 245 ФФД: 1.0 [12:00:48]line ЗÐМ: 0300000040 [12:00:48]line РÐМ: 0000000000092723 [12:00:48]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:00:48]line ФМ: 0000000000875060 [12:00:48]line ФД: 49072 [12:00:48]line ФПД: 212941656684651 [12:00:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T120100&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49072&fm=212941656684651&tin=02508201610067®Number=0000000000092723&sum=244600 [12:00:48]OFD Sender: Processing packet 49072 [packets to send 12, broken 11] [12:00:48]ProducePacketName [12:00:48]name=ofd_packets/00049072 [12:00:48]OFD Sender: To server: ‡•öpG, [12:00:48]CommunicateWithHost lk.salyk.kg:30040 [12:00:48]ConnectInit lk.salyk.kg [12:00:48]written 0, free lines is 4095 [12:00:48]Connected sock=10 [12:00: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 0C 01 00 00 D6 C1 04 01 8B 07 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 AA BB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 BB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 65 00 00 00 00 07 04 06 00 78 BB 03 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 7C 93 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C1 AB 57 CD F8 6B A0 17 1E 58 97 11 83 7B [12:00: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 4B 36 47 00 04 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B0 BF 00 00 F4 03 04 00 74 3F B7 65 B6 04 01 00 00 D5 1B BF DE 75 9E EE F9 [12:00:49]CommunicateWithHost err = 0 [12:00:49]CheckOFDResponse [12:00:49]1017 (14) - 77093643461234 [12:00:49]1041 (16) - 0000000000875060 [12:00:49]1040 (4) - 49072 [12:00:49]1012 (4) - 29.01.2024 06:02 [12:00:49]1206 (1) - 0 [12:00:49]OFD Sender: Remove packet 49072 [12:00:49]ProducePacketName [12:00:49]name=ofd_packets/00049072 [12:00:49]NVStorageDeleteData [12:00:49]Write to MH i2c: 01 00 00 6A 4D B7 [12:00:49]Write i2c OK [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: 01 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: 01 07 00 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: 01 07 00 6A 4D 00 00 00 00 00 F7 0C C1 [12:00:49]RasterBufferAndPrint [12:00:49]line [12:00:49]line [12:00:49]line [12:00:49]line [12:00:49]line [12:00:49]written 0, free lines is 3327 [12:00:49]MH_Cut [12:00:49]Write to MH i2c: D1 01 00 71 4D 01 90 [12:00:49]Write i2c OK [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: D1 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: D1 01 00 [12:00:49]MH_I2C_Read... [12:00:49]Read from MH i2c: D1 01 00 71 4D 00 8F [12:00:49]Write to MH i2c: 01 00 00 72 4D BF [12:00:49]Write i2c OK [12:00:49]MH_I2C_Read... [12:00:49]OFD Sender: No OFD packet to send [12:00:50]*** Cut start [12:00:50]*** Partial cut [12:00:50]*** CUTSNS_PIN = 1 [12:00:50]*** CUTSNS_PIN = 0 [12:00:50]*** Brake cut motor [12:00:50]Read from MH i2c: 01 [12:00:50]MH_I2C_Read... [12:00:50]*** Stop cut motor [12:00:50]*** Cut end [12:00:50]Read from MH i2c: 01 07 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: 01 07 00 72 4D 00 00 00 00 00 FF 0F D4 [12:00:50]process_action close_receipt done [12:00:50]requested_data is exist [12:00:50]produce_requested_data [12:00:50]requested_item fm.sn is exist - process it [12:00:50]wFMCommunicate request_size=4 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 11 00 00 [12:00:50]Write to MH i2c: E2 08 00 73 4D 80 11 00 00 00 00 00 00 3A [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 17 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 17 00 73 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 87 [12:00: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:00:50]wFMCommunicate OK [12:00:50]requested_item fd.num is exist - process it [12:00:50]SAM_PROTO_GetFieldsCounters [12:00:50]wFMCommunicate request_size=4 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 13 00 00 [12:00:50]Write to MH i2c: E2 08 00 74 4D 80 13 00 00 00 00 00 00 3D [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 62 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 62 00 74 4D 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 BF 00 00 0E 04 04 00 F5 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 5F [12:00: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 B0 BF 00 00 0E 04 04 00 F5 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:00:50]wFMCommunicate OK [12:00:50]SAM_PROTO_GetFieldsCounters done [12:00:50]requested_item shift.num is exist - process it [12:00:50]requested_item shift.opened is exist - process it [12:00:50]req_shift_opened [12:00:50]FM_GetShiftState [12:00:50]SAM_PROTO_GetShiftState [12:00:50]wFMCommunicate request_size=4 [12:00:50]MH_SAM_APDU [12:00:50]CAPDU: 80 13 01 00 [12:00:50]Write to MH i2c: E2 08 00 75 4D 80 13 01 00 00 00 00 00 3F [12:00:50]Write i2c OK [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 [12:00:50]MH_I2C_Read... [12:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:50]Read from MH i2c: E2 0E 00 [12:00:50]MH_I2C_Read... [12:00:50]Read from MH i2c: E2 0E 00 75 4D 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 B1 [12:00:50]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:00:50]wFMCommunicate OK [12:00:50]SAM_PROTO_GetShiftState done [12:00:50]FM_GetShiftState done [12:00:50]req_shift_opened done [12:00:50]requested_item shift.open_date is exist - process it [12:00:50]req_shift_open_date [12:00:50]req_shift_open_date done [12:00:50]produce_requested_data done [12:00:50]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49072,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [12:00:50]process_action_free close_receipt [12:00:50]json_value_free [12:00:50]json_value_free done [12:00:50]process_json_proto returns [12:00:50]Send response to host [12:00:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49072,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [12:00:50]free response buf [12:00:50]execute_script done [12:00:50]execute_script returns [12:00:50]free content buf [12:00:50]Sock 9.Close socket [12:00:50]Sock 9.Thread stoped [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:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:39]OFD Sender: No OFD packet to send [12:02:44]OFD Sender: No OFD packet to send [12:02:49]OFD Sender: No OFD packet to send [12:02:54]OFD Sender: No OFD packet to send [12:02:59]OFD Sender: No OFD packet to send [12:03:04]OFD Sender: No OFD packet to send [12:03:09]OFD Sender: No OFD packet to send [12:03:14]OFD Sender: No OFD packet to send [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [12:03:59]OFD Sender: No OFD packet to send [12:04:04]OFD Sender: No OFD packet to send [12:04:09]OFD Sender: No OFD packet to send [12:04:14]OFD Sender: No OFD packet to send [12:04:19]OFD Sender: No OFD packet to send [12:04:24]OFD Sender: No OFD packet to send [12:04:29]OFD Sender: No OFD packet to send [12:04:34]OFD Sender: No OFD packet to send [12:04:39]OFD Sender: No OFD packet to send [12:04:44]OFD Sender: No OFD packet to send [12:04:49]OFD Sender: No OFD packet to send [12:04:54]OFD Sender: No OFD packet to send [12:04:59]OFD Sender: No OFD packet to send [12:05:04]OFD Sender: No OFD packet to send [12:05:09]OFD Sender: No OFD packet to send [12:05:14]OFD Sender: No OFD packet to send [12:05:19]OFD Sender: No OFD packet to send [12:05:24]OFD Sender: No OFD packet to send [12:05:29]OFD Sender: No OFD packet to send [12:05:34]OFD Sender: No OFD packet to send [12:05:39]OFD Sender: No OFD packet to send [12:05:44]OFD Sender: No OFD packet to send [12:05:49]OFD Sender: No OFD packet to send [12:05:54]OFD Sender: No OFD packet to send [12:05:59]OFD Sender: No OFD packet to send [12:06:04]OFD Sender: No OFD packet to send [12:06:09]OFD Sender: No OFD packet to send [12:06:14]OFD Sender: No OFD packet to send [12:06:19]OFD Sender: No OFD packet to send [12:06:24]OFD Sender: No OFD packet to send [12:06:29]OFD Sender: No OFD packet to send [12:06:34]OFD Sender: No OFD packet to send [12:06:39]OFD Sender: No OFD packet to send [12:06:44]OFD Sender: No OFD packet to send [12:06:49]OFD Sender: No OFD packet to send [12:06:54]OFD Sender: No OFD packet to send [12:06:59]OFD Sender: No OFD packet to send [12:07:04]OFD Sender: No OFD packet to send [12:07:09]OFD Sender: No OFD packet to send [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]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:42]accept exits with 7 [12:10:42]New connection [12:10:42]New thread 3066813796 created [12:10:42]Thread 3066670436 joined [12:10:42]Waiting for new connection... [12:10:42] Sock 7.Parse request [12:10:42]Sock 7.Check first char [12:10:42]Sock 7.First char is OK [12:10:42]request: POST /json_proto HTTP/1.0 [12:10:42]Method: POST [12:10:42]URL: /json_proto [12:10:42]Method is POST - this is cgi request [12:10:42]url: /json_proto [12:10:42]query_string will be loaded in cgi processing [12:10:42]execute_cgi json_proto POST (null) [12:10:42]execute_cgi path=json_proto method=POST [12:10:42]POST find Content-Length [12:10:42]Host: 172.17.56.67:8080 [12:10:42]Content-Length: 673 [12:10:42]Content-Type: application/json [12:10:42] [12:10:42]POST finish read [12:10:42]Found Content-Length = 673 [12:10:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216173", "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.500, "sum" : 90.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 90.00, "total" : 90.00, "payments": [ { "type": 0, "sum" : 90.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:42]execute_script... [12:10: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)216173", "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.500, "sum" : 90.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 90.00, "total" : 90.00, "payments": [ { "type": 0, "sum" : 90.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:10:42]POST & json_proto [12:10:42]process_json_proto [12:10:42]json parsed OK: [12:10:42]protocol is kg_v1.0 [12:10:42]action value=close_receipt [12:10:42]process_action close_receipt [12:10:42]cmd_close_receipt [12:10:42]MH_GetDate [12:10:42]Write to MH i2c: F0 00 00 76 4D B2 [12:10:42]Write i2c OK [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: F0 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: F0 09 00 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: F0 09 00 76 4D 00 D0 95 B7 65 26 5D 9E 65 C2 [12:10:42]GetLastDocTimeStamp 1706529660 [12:10:42]current date 1706530256 [12:10:42]FM_GetShiftState [12:10:42]SAM_PROTO_GetShiftState [12:10:42]wFMCommunicate request_size=4 [12:10:42]MH_SAM_APDU [12:10:42]CAPDU: 80 13 01 00 [12:10:42]Write to MH i2c: E2 08 00 77 4D 80 13 01 00 00 00 00 00 41 [12:10:42]Write i2c OK [12:10:42]MH_I2C_Read... [12:10:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:42]Read from MH i2c: E2 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: E2 0E 00 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: E2 0E 00 77 4D 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 B3 [12:10:42]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:10:42]wFMCommunicate OK [12:10:42]SAM_PROTO_GetShiftState done [12:10:42]FM_GetShiftState done [12:10:42]opened in 1706486624 [12:10:42]opened+sec_in_day 1706573024 [12:10:42]quantity*price = 9045 [12:10:42]sum+1 = 9046 [12:10:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.45 ИТОГО: 90.00 ВнеÑено: 90.00 СДÐЧÐ: 0.00 ÐСП 1% : 0.80 ÐДС 12% : 9.60 Ðаличными: 90.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 56 29.01.2024 12:10 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49073 ФПД: 48036045642477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T121056&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49073&fm=48036045642477&tin=02508201610067®Number=0000000000092723&sum=9000 [12:10:43]StoreToDocumentArchive [12:10:43]shift 245 fd 49073 [12:10:43]save to /storage/0245/doc_00049073 [12:10:43]save last doc name /storage/0245/doc_00049073 to /storage/kkm_last_doc_name [12:10:43]save OK [12:10:43]Clear old archive folders... [12:10:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:10:43]tlvbuf is 01232CF0 [12:10:43]SAM_PROTO_ClearQueue [12:10:43]wFMCommunicate request_size=4 [12:10:43]MH_SAM_APDU [12:10:43]CAPDU: 80 09 00 00 [12:10:43]Write to MH i2c: E2 08 00 84 4D 80 09 00 00 00 00 00 00 43 [12:10:43]Write i2c OK [12:10:43]MH_I2C_Read... [12:10:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:43]Read from MH i2c: E2 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 03 00 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 03 00 84 4D 00 90 00 45 [12:10:43]RAPDU: 90 00 [12:10:43]wFMCommunicate OK [12:10:43]SAM_PROTO_ClearQueue done [12:10:43]KKMCreateOFDPacket [12:10:43]OFDProtocolAddRootSTLVToBuf [12:10:43]FM_MakeSignedData [12:10:43]FM_MakeSignedData [12:10:43]SAM_PROTO_SignData [12:10:43]wFMCommunicate request_size=4 [12:10:43]MH_SAM_APDU [12:10:43]CAPDU: 80 0D 01 02 [12:10:43]Write to MH i2c: E2 08 00 85 4D 80 0D 01 02 00 00 00 00 4B [12:10:43]Write i2c OK [12:10:43]MH_I2C_Read... [12:10:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:43]Read from MH i2c: E2 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 03 00 [12:10:43]MH_I2C_Read... [12:10:43]Read from MH i2c: E2 03 00 85 4D 00 90 00 46 [12:10:43]RAPDU: 90 00 [12:10:43]wFMCommunicate OK [12:10:43]wFMCommunicate request_size=255 [12:10:43]MH_SAM_APDU [12:10: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 DC 05 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 55 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D0 95 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 2B [12:10:43]Write to MH i2c: E2 02 01 86 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 55 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D0 95 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 2B 00 00 3D [12:10:43]Write i2c OK [12:10:43]MH_I2C_Read... [12:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:44]Read from MH i2c: E2 [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: E2 03 00 [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: E2 03 00 86 4D 00 90 00 47 [12:10:44]RAPDU: 90 00 [12:10:44]wFMCommunicate OK [12:10:44]wFMCommunicate request_size=10 [12:10:44]MH_SAM_APDU [12:10:44]CAPDU: 80 0D 02 02 05 B0 43 6F DA ED [12:10:44]Write to MH i2c: E2 0D 00 87 4D 80 0D 02 02 05 00 B0 43 6F DA ED 00 00 81 [12:10:44]Write i2c OK [12:10:44]MH_I2C_Read... [12:10:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:44]Read from MH i2c: E2 [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: E2 03 00 [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: E2 03 00 87 4D 00 90 00 48 [12:10:44]RAPDU: 90 00 [12:10:44]wFMCommunicate OK [12:10:44]wFMCommunicate request_size=4 [12:10:44]MH_SAM_APDU [12:10:44]CAPDU: 80 0D 03 02 [12:10:44]Write to MH i2c: E2 08 00 88 4D 80 0D 03 02 00 00 00 00 50 [12:10:44]Write i2c OK [12:10:44]MH_I2C_Read... [12:10:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:44]Read from MH i2c: E2 [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: E2 0B 00 [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: E2 0B 00 88 4D 00 A7 F7 2C AC F7 3F F8 AF 90 00 A4 [12:10:44]RAPDU: A7 F7 2C AC F7 3F F8 AF 90 00 [12:10:44]wFMCommunicate OK [12:10:44]SAM_PROTO_SignData done [12:10:44]FM_MakeSignedData done [12:10:44]CreateOFDProtocolMessage [12:10:44]wFMCommunicate request_size=4 [12:10:44]MH_SAM_APDU [12:10:44]CAPDU: 80 11 00 00 [12:10:44]Write to MH i2c: E2 08 00 89 4D 80 11 00 00 00 00 00 00 50 [12:10:44]Write i2c OK [12:10:44]MH_I2C_Read... [12:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:44]Read from MH i2c: E2 [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: E2 17 00 [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: E2 17 00 89 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9D [12:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:10:44]wFMCommunicate OK [12:10:44]CreateOFDProtocolMessage done [12:10:44]OFDSenderStorePacket 49073 [12:10:44]StoreOFDPacket docnum=49073 [12:10: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 0F 01 00 00 86 AD 07 01 38 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 55 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D0 95 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 2B B0 43 6F DA ED A7 F7 2C AC F7 3F F8 AF [12:10:44]CheckFolder [12:10:44]dirname=/storage/ofd_packets [12:10:44]CheckFolder done [12:10:44]ProducePacketName [12:10:44]name=ofd_packets/00049073 [12:10:44]NVStorageSaveData ofd_packets/00049073 [12:10:44]File name is /storage/ofd_packets/00049073 [12:10:44]Write 301 bytes [12:10:44]NVStorageSaveData done [12:10:44]OFDSenderStorePacket done [12:10:44]KKMCreateOFDPacket done [12:10:44]NVStorageSaveData kkm_last_timestamp [12:10:44]File name is /storage/kkm_last_timestamp [12:10:44]Write 4 bytes [12:10:44]NVStorageSaveData done [12:10:44]ExternCall_PrintAddStr [12:10:44]wPrintStart [12:10:44]Write to MH i2c: 01 00 00 8A 4D D7 [12:10:44]Write i2c OK [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: 01 [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: 01 07 00 [12:10:44]MH_I2C_Read... [12:10:44]Read from MH i2c: 01 07 00 8A 4D 00 00 00 00 00 FF 0F EC [12:10:44]RasterBufferAndPrint [12:10:44]line Счет N : (1)216173 [12:10:44]line ИÐÐ: 02508201610067 [12:10:44]line Контрольно-КаÑÑовый Чек [12:10:44]line ПРОДÐЖР[12:10:44]line ТРК (МРК, ГÐК) : 12 [12:10:44]line Товар: 2710124130 [12:10:44]line Ðи-92-К-5 [12:10:44]line 1.500 * 60.30 [12:10:44]line = 90.45 [12:10:44]line ÐДС 12% ÐСП 1% [12:10:44]line > о реализуемом товаре [12:10:44]line ОКРУГЛЕÐИЕ: -0.45 [12:10:44]line ИТОГО: 90.00 [12:10:44]line ВнеÑено: 90.00 [12:10:44]line СДÐЧÐ: 0.00 [12:10:44]line ÐСП 1% : 0.80 [12:10:44]line ÐДС 12% : 9.60 [12:10:44]line Ðаличными: 90.00 [12:10:44]line Безнал.: 0.00 [12:10:44]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [12:10:44]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:10:44]line СÐО: Общий режим [12:10:44]line Чек 56 29.01.2024 12:10 [12:10:44]line Смена: 245 ФФД: 1.0 [12:10:44]line ЗÐМ: 0300000040 [12:10:44]line РÐМ: 0000000000092723 [12:10:44]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:10:44]line ФМ: 0000000000875060 [12:10:44]line ФД: 49073 [12:10:44]line ФПД: 48036045642477 [12:10:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T121056&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49073&fm=48036045642477&tin=02508201610067®Number=0000000000092723&sum=9000 [12:10:44]OFD Sender: Processing packet 49073 [packets to send 12, broken 11] [12:10:44]ProducePacketName [12:10:44]name=ofd_packets/00049073 [12:10:44]OFD Sender: To server: ‡•öpG, [12:10:44]CommunicateWithHost lk.salyk.kg:30040 [12:10:44]ConnectInit lk.salyk.kg [12:10:44]written 0, free lines is 4095 [12:10:44]Connected sock=10 [12:10: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 86 AD 07 01 38 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 55 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 D0 95 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 2B B0 43 6F DA ED A7 F7 2C AC F7 3F F8 AF [12:10: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 DE 03 47 00 65 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 B1 BF 00 00 F4 03 04 00 C8 41 B7 65 B6 04 01 00 00 F9 24 61 B9 39 BA 98 E5 [12:10:44]CommunicateWithHost err = 0 [12:10:44]CheckOFDResponse [12:10:44]1017 (14) - 77093643461234 [12:10:44]1041 (16) - 0000000000875060 [12:10:44]1040 (4) - 49073 [12:10:44]1012 (4) - 29.01.2024 06:12 [12:10:44]1206 (1) - 0 [12:10:44]OFD Sender: Remove packet 49073 [12:10:44]ProducePacketName [12:10:44]name=ofd_packets/00049073 [12:10:44]NVStorageDeleteData [12:10:45]Write to MH i2c: 01 00 00 B5 4D 02 [12:10:45]Write i2c OK [12:10:45]MH_I2C_Read... [12:10:45]Read from MH i2c: 01 [12:10:45]MH_I2C_Read... [12:10:45]Read from MH i2c: 01 07 00 [12:10:45]MH_I2C_Read... [12:10:45]Read from MH i2c: 01 07 00 B5 4D 00 00 00 00 00 EE 0C 03 [12:10:45]RasterBufferAndPrint [12:10:45]line [12:10:45]line [12:10:45]line [12:10:45]line [12:10:45]line [12:10:45]written 0, free lines is 3316 [12:10:45]MH_Cut [12:10:45]Write to MH i2c: D1 01 00 BC 4D 01 DB [12:10:45]Write i2c OK [12:10:45]MH_I2C_Read... [12:10:45]Read from MH i2c: D1 [12:10:45]MH_I2C_Read... [12:10:45]Read from MH i2c: D1 01 00 [12:10:45]MH_I2C_Read... [12:10:45]Read from MH i2c: D1 01 00 BC 4D 00 DA [12:10:45]Write to MH i2c: 01 00 00 BD 4D 0A [12:10:45]Write i2c OK [12:10:45]MH_I2C_Read... [12:10:45]OFD Sender: No OFD packet to send [12:10:45]*** Cut start [12:10:45]*** Partial cut [12:10:45]*** CUTSNS_PIN = 1 [12:10:45]*** CUTSNS_PIN = 0 [12:10:45]*** Brake cut motor [12:10:46]Read from MH i2c: 01 [12:10:46]MH_I2C_Read... [12:10:46]*** Stop cut motor [12:10:46]*** Cut end [12:10:46]Read from MH i2c: 01 07 00 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: 01 07 00 BD 4D 00 00 00 00 00 FF 0F 1F [12:10:46]process_action close_receipt done [12:10:46]requested_data is exist [12:10:46]produce_requested_data [12:10:46]requested_item fm.sn is exist - process it [12:10:46]wFMCommunicate request_size=4 [12:10:46]MH_SAM_APDU [12:10:46]CAPDU: 80 11 00 00 [12:10:46]Write to MH i2c: E2 08 00 BE 4D 80 11 00 00 00 00 00 00 85 [12:10:46]Write i2c OK [12:10:46]MH_I2C_Read... [12:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:46]Read from MH i2c: E2 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 17 00 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 17 00 BE 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D2 [12:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:10:46]wFMCommunicate OK [12:10:46]requested_item fd.num is exist - process it [12:10:46]SAM_PROTO_GetFieldsCounters [12:10:46]wFMCommunicate request_size=4 [12:10:46]MH_SAM_APDU [12:10:46]CAPDU: 80 13 00 00 [12:10:46]Write to MH i2c: E2 08 00 BF 4D 80 13 00 00 00 00 00 00 88 [12:10:46]Write i2c OK [12:10:46]MH_I2C_Read... [12:10:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:46]Read from MH i2c: E2 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 62 00 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 62 00 BF 4D 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 BF 00 00 0E 04 04 00 F5 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 AE [12:10: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 B1 BF 00 00 0E 04 04 00 F5 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 [12:10:46]wFMCommunicate OK [12:10:46]SAM_PROTO_GetFieldsCounters done [12:10:46]requested_item shift.num is exist - process it [12:10:46]requested_item shift.opened is exist - process it [12:10:46]req_shift_opened [12:10:46]FM_GetShiftState [12:10:46]SAM_PROTO_GetShiftState [12:10:46]wFMCommunicate request_size=4 [12:10:46]MH_SAM_APDU [12:10:46]CAPDU: 80 13 01 00 [12:10:46]Write to MH i2c: E2 08 00 C0 4D 80 13 01 00 00 00 00 00 8A [12:10:46]Write i2c OK [12:10:46]MH_I2C_Read... [12:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:46]Read from MH i2c: E2 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 0E 00 [12:10:46]MH_I2C_Read... [12:10:46]Read from MH i2c: E2 0E 00 C0 4D 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 FC [12:10:46]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:10:46]wFMCommunicate OK [12:10:46]SAM_PROTO_GetShiftState done [12:10:46]FM_GetShiftState done [12:10:46]req_shift_opened done [12:10:46]requested_item shift.open_date is exist - process it [12:10:46]req_shift_open_date [12:10:46]req_shift_open_date done [12:10:46]produce_requested_data done [12:10:46]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49073,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [12:10:46]process_action_free close_receipt [12:10:46]json_value_free [12:10:46]json_value_free done [12:10:46]process_json_proto returns [12:10:46]Send response to host [12:10:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49073,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [12:10:46]free response buf [12:10:46]execute_script done [12:10:46]execute_script returns [12:10:46]free content buf [12:10:46]Sock 7.Close socket [12:10:46]Sock 7.Thread stoped [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:43]accept exits with 9 [12:11:43]New connection [12:11:43]New thread 3066670436 created [12:11:43]Thread 3066813796 joined [12:11:43]Waiting for new connection... [12:11:43] Sock 9.Parse request [12:11:43]Sock 9.Check first char [12:11:43]Sock 9.First char is OK [12:11:43]request: POST /json_proto HTTP/1.0 [12:11:43]Method: POST [12:11:43]URL: /json_proto [12:11:43]Method is POST - this is cgi request [12:11:43]url: /json_proto [12:11:43]query_string will be loaded in cgi processing [12:11:43]execute_cgi json_proto POST (null) [12:11:43]execute_cgi path=json_proto method=POST [12:11:43]POST find Content-Length [12:11:43]Host: 172.17.56.67:8080 [12:11:43]Content-Length: 677 [12:11:43]Content-Type: application/json [12:11:43] [12:11:43]POST finish read [12:11:43]Found Content-Length = 677 [12:11:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216174", "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:11:43]execute_script... [12:11:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216174", "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:11:43]POST & json_proto [12:11:43]process_json_proto [12:11:43]json parsed OK: [12:11:43]protocol is kg_v1.0 [12:11:43]action value=close_receipt [12:11:43]process_action close_receipt [12:11:43]cmd_close_receipt [12:11:43]MH_GetDate [12:11:43]Write to MH i2c: F0 00 00 C1 4D FD [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: F0 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: F0 09 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: F0 09 00 C1 4D 00 0C 96 B7 65 26 5D 9E 65 4A [12:11:43]GetLastDocTimeStamp 1706530256 [12:11:43]current date 1706530316 [12:11:43]FM_GetShiftState [12:11:43]SAM_PROTO_GetShiftState [12:11:43]wFMCommunicate request_size=4 [12:11:43]MH_SAM_APDU [12:11:43]CAPDU: 80 13 01 00 [12:11:43]Write to MH i2c: E2 08 00 C2 4D 80 13 01 00 00 00 00 00 8C [12:11:43]Write i2c OK [12:11:43]MH_I2C_Read... [12:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:43]Read from MH i2c: E2 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 0E 00 [12:11:43]MH_I2C_Read... [12:11:43]Read from MH i2c: E2 0E 00 C2 4D 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 FE [12:11:43]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:11:43]wFMCommunicate OK [12:11:43]SAM_PROTO_GetShiftState done [12:11:43]FM_GetShiftState done [12:11:43]opened in 1706486624 [12:11:43]opened+sec_in_day 1706573024 [12:11:43]quantity*price = 50049 [12:11:43]sum+1 = 50050 [12:11: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 СÐО: Общий режим Чек 57 29.01.2024 12:11 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49074 ФПД: 215839687246930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T121156&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49074&fm=215839687246930&tin=02508201610067®Number=0000000000092723&sum=50000 [12:11:44]StoreToDocumentArchive [12:11:44]shift 245 fd 49074 [12:11:44]save to /storage/0245/doc_00049074 [12:11:44]save last doc name /storage/0245/doc_00049074 to /storage/kkm_last_doc_name [12:11:44]save OK [12:11:44]Clear old archive folders... [12:11:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:11:44]tlvbuf is 012325D0 [12:11:44]SAM_PROTO_ClearQueue [12:11:44]wFMCommunicate request_size=4 [12:11:44]MH_SAM_APDU [12:11:44]CAPDU: 80 09 00 00 [12:11:44]Write to MH i2c: E2 08 00 CF 4D 80 09 00 00 00 00 00 00 8E [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:44]Read from MH i2c: E2 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 03 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 03 00 CF 4D 00 90 00 90 [12:11:44]RAPDU: 90 00 [12:11:44]wFMCommunicate OK [12:11:44]SAM_PROTO_ClearQueue done [12:11:44]KKMCreateOFDPacket [12:11:44]OFDProtocolAddRootSTLVToBuf [12:11:44]FM_MakeSignedData [12:11:44]FM_MakeSignedData [12:11:44]SAM_PROTO_SignData [12:11:44]wFMCommunicate request_size=4 [12:11:44]MH_SAM_APDU [12:11:44]CAPDU: 80 0D 01 02 [12:11:44]Write to MH i2c: E2 08 00 D0 4D 80 0D 01 02 00 00 00 00 96 [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:44]Read from MH i2c: E2 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 03 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 03 00 D0 4D 00 90 00 91 [12:11:44]RAPDU: 90 00 [12:11:44]wFMCommunicate OK [12:11:44]wFMCommunicate request_size=255 [12:11:44]MH_SAM_APDU [12:11: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 39 00 00 00 F4 03 04 00 0C 96 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C4 [12:11:44]Write to MH i2c: E2 02 01 D1 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 39 00 00 00 F4 03 04 00 0C 96 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C4 00 00 E7 [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:44]Read from MH i2c: E2 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 03 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 03 00 D1 4D 00 90 00 92 [12:11:44]RAPDU: 90 00 [12:11:44]wFMCommunicate OK [12:11:44]wFMCommunicate request_size=10 [12:11:44]MH_SAM_APDU [12:11:44]CAPDU: 80 0D 02 02 05 4E 17 E3 04 52 [12:11:44]Write to MH i2c: E2 0D 00 D2 4D 80 0D 02 02 05 00 4E 17 E3 04 52 00 00 41 [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:44]Read from MH i2c: E2 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 03 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 03 00 D2 4D 00 90 00 93 [12:11:44]RAPDU: 90 00 [12:11:44]wFMCommunicate OK [12:11:44]wFMCommunicate request_size=4 [12:11:44]MH_SAM_APDU [12:11:44]CAPDU: 80 0D 03 02 [12:11:44]Write to MH i2c: E2 08 00 D3 4D 80 0D 03 02 00 00 00 00 9B [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:44]Read from MH i2c: E2 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 0B 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 0B 00 D3 4D 00 62 6E 2B 3F C9 D4 6C 9A 90 00 79 [12:11:44]RAPDU: 62 6E 2B 3F C9 D4 6C 9A 90 00 [12:11:44]wFMCommunicate OK [12:11:44]SAM_PROTO_SignData done [12:11:44]FM_MakeSignedData done [12:11:44]CreateOFDProtocolMessage [12:11:44]wFMCommunicate request_size=4 [12:11:44]MH_SAM_APDU [12:11:44]CAPDU: 80 11 00 00 [12:11:44]Write to MH i2c: E2 08 00 D4 4D 80 11 00 00 00 00 00 00 9B [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:44]Read from MH i2c: E2 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 17 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: E2 17 00 D4 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E8 [12:11:44]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:44]wFMCommunicate OK [12:11:44]CreateOFDProtocolMessage done [12:11:44]OFDSenderStorePacket 49074 [12:11:44]StoreOFDPacket docnum=49074 [12:11: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 0F 01 00 00 70 86 07 01 17 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 39 00 00 00 F4 03 04 00 0C 96 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C4 4E 17 E3 04 52 62 6E 2B 3F C9 D4 6C 9A [12:11:44]CheckFolder [12:11:44]dirname=/storage/ofd_packets [12:11:44]CheckFolder done [12:11:44]ProducePacketName [12:11:44]name=ofd_packets/00049074 [12:11:44]NVStorageSaveData ofd_packets/00049074 [12:11:44]File name is /storage/ofd_packets/00049074 [12:11:44]Write 301 bytes [12:11:44]NVStorageSaveData done [12:11:44]OFDSenderStorePacket done [12:11:44]KKMCreateOFDPacket done [12:11:44]NVStorageSaveData kkm_last_timestamp [12:11:44]File name is /storage/kkm_last_timestamp [12:11:44]Write 4 bytes [12:11:44]NVStorageSaveData done [12:11:44]ExternCall_PrintAddStr [12:11:44]wPrintStart [12:11:44]Write to MH i2c: 01 00 00 D5 4D 22 [12:11:44]Write i2c OK [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: 01 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: 01 07 00 [12:11:44]MH_I2C_Read... [12:11:44]Read from MH i2c: 01 07 00 D5 4D 00 00 00 00 00 FF 0F 37 [12:11:44]RasterBufferAndPrint [12:11:44]line Счет N : (1)216174 [12:11:44]line ИÐÐ: 02508201610067 [12:11:44]line Контрольно-КаÑÑовый Чек [12:11:44]line ПРОДÐЖР[12:11:44]line ТРК (МРК, ГÐК) : 22 [12:11:44]line Товар: 2710124130 [12:11:44]line Ðи-92-К-5 [12:11:44]line 8.300 * 60.30 [12:11:44]line = 500.49 [12:11:44]line ÐДС 12% ÐСП 1% [12:11:44]line > о реализуемом товаре [12:11:44]line ОКРУГЛЕÐИЕ: -0.49 [12:11:44]line ИТОГО: 500.00 [12:11:44]line ВнеÑено: 500.00 [12:11:44]line СДÐЧÐ: 0.00 [12:11:44]line ÐСП 1% : 4.43 [12:11:44]line ÐДС 12% : 53.15 [12:11:44]line Ðаличными: 500.00 [12:11:44]line Безнал.: 0.00 [12:11:44]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [12:11:44]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:11:44]line СÐО: Общий режим [12:11:44]line Чек 57 29.01.2024 12:11 [12:11:44]line Смена: 245 ФФД: 1.0 [12:11:44]line ЗÐМ: 0300000040 [12:11:44]line РÐМ: 0000000000092723 [12:11:44]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:11:44]line ФМ: 0000000000875060 [12:11:44]line ФД: 49074 [12:11:44]line ФПД: 215839687246930 [12:11:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T121156&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49074&fm=215839687246930&tin=02508201610067®Number=0000000000092723&sum=50000 [12:11:45]OFD Sender: Processing packet 49074 [packets to send 12, broken 11] [12:11:45]ProducePacketName [12:11:45]name=ofd_packets/00049074 [12:11:45]OFD Sender: To server: ‡•öpG, [12:11:45]CommunicateWithHost lk.salyk.kg:30040 [12:11:45]ConnectInit lk.salyk.kg [12:11:45]written 0, free lines is 4095 [12:11:45]Connected sock=7 [12:11: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 70 86 07 01 17 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 39 00 00 00 F4 03 04 00 0C 96 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C4 4E 17 E3 04 52 62 6E 2B 3F C9 D4 6C 9A [12:11: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 8D A5 47 00 A2 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B2 BF 00 00 F4 03 04 00 05 42 B7 65 B6 04 01 00 00 91 91 9E A2 4E 46 DA 63 [12:11:45]CommunicateWithHost err = 0 [12:11:45]CheckOFDResponse [12:11:45]1017 (14) - 77093643461234 [12:11:45]1041 (16) - 0000000000875060 [12:11:45]1040 (4) - 49074 [12:11:45]1012 (4) - 29.01.2024 06:13 [12:11:45]1206 (1) - 0 [12:11:45]OFD Sender: Remove packet 49074 [12:11:45]ProducePacketName [12:11:45]name=ofd_packets/00049074 [12:11:45]NVStorageDeleteData [12:11:45]Write to MH i2c: 01 00 00 00 4E 4E [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: 01 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: 01 07 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: 01 07 00 00 4E 00 00 00 00 00 EF 0C 50 [12:11:45]RasterBufferAndPrint [12:11:45]line [12:11:45]line [12:11:45]line [12:11:45]line [12:11:45]line [12:11:45]written 0, free lines is 3320 [12:11:45]MH_Cut [12:11:45]Write to MH i2c: D1 01 00 07 4E 01 27 [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: D1 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: D1 01 00 [12:11:45]MH_I2C_Read... [12:11:45]Read from MH i2c: D1 01 00 07 4E 00 26 [12:11:45]Write to MH i2c: 01 00 00 08 4E 56 [12:11:45]Write i2c OK [12:11:45]MH_I2C_Read... [12:11:45]OFD Sender: No OFD packet to send [12:11:46]*** Cut start [12:11:46]*** Partial cut [12:11:46]*** CUTSNS_PIN = 1 [12:11:46]*** CUTSNS_PIN = 0 [12:11:46]*** Brake cut motor [12:11:46]Read from MH i2c: 01 [12:11:46]MH_I2C_Read... [12:11:46]*** Stop cut motor [12:11:46]*** Cut end [12:11:46]Read from MH i2c: 01 07 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: 01 07 00 08 4E 00 00 00 00 00 FF 0F 6B [12:11:46]process_action close_receipt done [12:11:46]requested_data is exist [12:11:46]produce_requested_data [12:11:46]requested_item fm.sn is exist - process it [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 11 00 00 [12:11:46]Write to MH i2c: E2 08 00 09 4E 80 11 00 00 00 00 00 00 D1 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 17 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 17 00 09 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1E [12:11:46]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:46]wFMCommunicate OK [12:11:46]requested_item fd.num is exist - process it [12:11:46]SAM_PROTO_GetFieldsCounters [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 13 00 00 [12:11:46]Write to MH i2c: E2 08 00 0A 4E 80 13 00 00 00 00 00 00 D4 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 62 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 62 00 0A 4E 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 BF 00 00 0E 04 04 00 F5 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 FE [12:11: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 B2 BF 00 00 0E 04 04 00 F5 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 [12:11:46]wFMCommunicate OK [12:11:46]SAM_PROTO_GetFieldsCounters done [12:11:46]requested_item shift.num is exist - process it [12:11:46]requested_item shift.opened is exist - process it [12:11:46]req_shift_opened [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 0B 4E 80 13 01 00 00 00 00 00 D6 [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:47]Read from MH i2c: E2 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 0E 00 [12:11:47]MH_I2C_Read... [12:11:47]Read from MH i2c: E2 0E 00 0B 4E 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 48 [12:11:47]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:11:47]wFMCommunicate OK [12:11:47]SAM_PROTO_GetShiftState done [12:11:47]FM_GetShiftState done [12:11:47]req_shift_opened done [12:11:47]requested_item shift.open_date is exist - process it [12:11:47]req_shift_open_date [12:11:47]req_shift_open_date done [12:11:47]produce_requested_data done [12:11:47]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49074,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [12:11:47]process_action_free close_receipt [12:11:47]json_value_free [12:11:47]json_value_free done [12:11:47]process_json_proto returns [12:11:47]Send response to host [12:11:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49074,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [12:11:47]free response buf [12:11:47]execute_script done [12:11:47]execute_script returns [12:11:47]free content buf [12:11:47]Sock 9.Close socket [12:11:47]Sock 9.Thread stoped [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13: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:36]accept exits with 10 [12:17:36]New connection [12:17:36]New thread 3066813796 created [12:17:36]Thread 3066670436 joined [12:17:36]Waiting for new connection... [12:17:36] Sock 10.Parse request [12:17:36]Sock 10.Check first char [12:17:36]Sock 10.First char is OK [12:17:36]request: POST /json_proto HTTP/1.0 [12:17:36]Method: POST [12:17:36]URL: /json_proto [12:17:36]Method is POST - this is cgi request [12:17:36]url: /json_proto [12:17:36]query_string will be loaded in cgi processing [12:17:36]execute_cgi json_proto POST (null) [12:17:36]execute_cgi path=json_proto method=POST [12:17:36]POST find Content-Length [12:17:36]Host: 172.17.56.67:8080 [12:17:36]Content-Length: 677 [12:17:36]Content-Type: application/json [12:17:36] [12:17:36]POST finish read [12:17:36]Found Content-Length = 677 [12:17:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216175", "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:17:36]execute_script... [12:17: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)216175", "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:17:36]POST & json_proto [12:17:36]process_json_proto [12:17:36]json parsed OK: [12:17:36]protocol is kg_v1.0 [12:17:36]action value=close_receipt [12:17:36]process_action close_receipt [12:17:36]cmd_close_receipt [12:17:36]MH_GetDate [12:17:36]Write to MH i2c: F0 00 00 0C 4E 49 [12:17:36]Write i2c OK [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: F0 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: F0 09 00 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: F0 09 00 0C 4E 00 6D 97 B7 65 26 5D 9E 65 F8 [12:17:36]GetLastDocTimeStamp 1706530316 [12:17:36]current date 1706530669 [12:17:36]FM_GetShiftState [12:17:36]SAM_PROTO_GetShiftState [12:17:36]wFMCommunicate request_size=4 [12:17:36]MH_SAM_APDU [12:17:36]CAPDU: 80 13 01 00 [12:17:36]Write to MH i2c: E2 08 00 0D 4E 80 13 01 00 00 00 00 00 D8 [12:17:36]Write i2c OK [12:17:36]MH_I2C_Read... [12:17:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:36]Read from MH i2c: E2 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: E2 0E 00 [12:17:36]MH_I2C_Read... [12:17:36]Read from MH i2c: E2 0E 00 0D 4E 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 4A [12:17:36]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:17:36]wFMCommunicate OK [12:17:36]SAM_PROTO_GetShiftState done [12:17:36]FM_GetShiftState done [12:17:36]opened in 1706486624 [12:17:36]opened+sec_in_day 1706573024 [12:17:36]quantity*price = 30029 [12:17:36]sum+1 = 30030 [12:17:36]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 СÐО: Общий режим Чек 58 29.01.2024 12:17 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49075 ФПД: 76008562374296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T121750&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49075&fm=76008562374296&tin=02508201610067®Number=0000000000092723&sum=30000 [12:17:37]StoreToDocumentArchive [12:17:37]shift 245 fd 49075 [12:17:37]save to /storage/0245/doc_00049075 [12:17:37]save last doc name /storage/0245/doc_00049075 to /storage/kkm_last_doc_name [12:17:37]save OK [12:17:37]Clear old archive folders... [12:17:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:37]tlvbuf is 01384D90 [12:17:37]SAM_PROTO_ClearQueue [12:17:37]wFMCommunicate request_size=4 [12:17:37]MH_SAM_APDU [12:17:37]CAPDU: 80 09 00 00 [12:17:37]Write to MH i2c: E2 08 00 1A 4E 80 09 00 00 00 00 00 00 DA [12:17:37]Write i2c OK [12:17:37]MH_I2C_Read... [12:17:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:37]Read from MH i2c: E2 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 03 00 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 03 00 1A 4E 00 90 00 DC [12:17:37]RAPDU: 90 00 [12:17:37]wFMCommunicate OK [12:17:37]SAM_PROTO_ClearQueue done [12:17:37]KKMCreateOFDPacket [12:17:37]OFDProtocolAddRootSTLVToBuf [12:17:37]FM_MakeSignedData [12:17:37]FM_MakeSignedData [12:17:37]SAM_PROTO_SignData [12:17:37]wFMCommunicate request_size=4 [12:17:37]MH_SAM_APDU [12:17:37]CAPDU: 80 0D 01 02 [12:17:37]Write to MH i2c: E2 08 00 1B 4E 80 0D 01 02 00 00 00 00 E2 [12:17:37]Write i2c OK [12:17:37]MH_I2C_Read... [12:17:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:37]Read from MH i2c: E2 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 03 00 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 03 00 1B 4E 00 90 00 DD [12:17:37]RAPDU: 90 00 [12:17:37]wFMCommunicate OK [12:17:37]wFMCommunicate request_size=255 [12:17:37]MH_SAM_APDU [12:17: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 3A 00 00 00 F4 03 04 00 6E 97 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 45 [12:17:37]Write to MH i2c: E2 02 01 1C 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3A 00 00 00 F4 03 04 00 6E 97 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 45 00 00 AF [12:17:37]Write i2c OK [12:17:37]MH_I2C_Read... [12:17:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:37]Read from MH i2c: E2 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 03 00 [12:17:37]MH_I2C_Read... [12:17:37]Read from MH i2c: E2 03 00 1C 4E 00 90 00 DE [12:17:37]RAPDU: 90 00 [12:17:37]wFMCommunicate OK [12:17:37]wFMCommunicate request_size=10 [12:17:37]MH_SAM_APDU [12:17:37]CAPDU: 80 0D 02 02 05 21 1F 5C 36 98 [12:17:37]Write to MH i2c: E2 0D 00 1D 4E 80 0D 02 02 05 00 21 1F 5C 36 98 00 00 59 [12:17:37]Write i2c OK [12:17:37]MH_I2C_Read... [12:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:38]Read from MH i2c: E2 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: E2 03 00 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: E2 03 00 1D 4E 00 90 00 DF [12:17:38]RAPDU: 90 00 [12:17:38]wFMCommunicate OK [12:17:38]wFMCommunicate request_size=4 [12:17:38]MH_SAM_APDU [12:17:38]CAPDU: 80 0D 03 02 [12:17:38]Write to MH i2c: E2 08 00 1E 4E 80 0D 03 02 00 00 00 00 E7 [12:17:38]Write i2c OK [12:17:38]MH_I2C_Read... [12:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:38]Read from MH i2c: E2 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: E2 0B 00 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: E2 0B 00 1E 4E 00 85 0E 3E D7 D9 9A 18 21 90 00 3C [12:17:38]RAPDU: 85 0E 3E D7 D9 9A 18 21 90 00 [12:17:38]wFMCommunicate OK [12:17:38]SAM_PROTO_SignData done [12:17:38]FM_MakeSignedData done [12:17:38]CreateOFDProtocolMessage [12:17:38]wFMCommunicate request_size=4 [12:17:38]MH_SAM_APDU [12:17:38]CAPDU: 80 11 00 00 [12:17:38]Write to MH i2c: E2 08 00 1F 4E 80 11 00 00 00 00 00 00 E7 [12:17:38]Write i2c OK [12:17:38]MH_I2C_Read... [12:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:38]Read from MH i2c: E2 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: E2 17 00 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: E2 17 00 1F 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 34 [12:17:38]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:38]wFMCommunicate OK [12:17:38]CreateOFDProtocolMessage done [12:17:38]OFDSenderStorePacket 49075 [12:17:38]StoreOFDPacket docnum=49075 [12:17: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 9A 42 07 01 20 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3A 00 00 00 F4 03 04 00 6E 97 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 45 21 1F 5C 36 98 85 0E 3E D7 D9 9A 18 21 [12:17:38]CheckFolder [12:17:38]dirname=/storage/ofd_packets [12:17:38]CheckFolder done [12:17:38]ProducePacketName [12:17:38]name=ofd_packets/00049075 [12:17:38]NVStorageSaveData ofd_packets/00049075 [12:17:38]File name is /storage/ofd_packets/00049075 [12:17:38]Write 301 bytes [12:17:38]NVStorageSaveData done [12:17:38]OFDSenderStorePacket done [12:17:38]KKMCreateOFDPacket done [12:17:38]NVStorageSaveData kkm_last_timestamp [12:17:38]File name is /storage/kkm_last_timestamp [12:17:38]Write 4 bytes [12:17:38]NVStorageSaveData done [12:17:38]ExternCall_PrintAddStr [12:17:38]wPrintStart [12:17:38]Write to MH i2c: 01 00 00 20 4E 6E [12:17:38]Write i2c OK [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: 01 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: 01 07 00 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: 01 07 00 20 4E 00 00 00 00 00 FF 0F 83 [12:17:38]RasterBufferAndPrint [12:17:38]line Счет N : (1)216175 [12:17:38]line ИÐÐ: 02508201610067 [12:17:38]line Контрольно-КаÑÑовый Чек [12:17:38]line ПРОДÐЖР[12:17:38]line ТРК (МРК, ГÐК) : 22 [12:17:38]line Товар: 2710124130 [12:17:38]line Ðи-92-К-5 [12:17:38]line 4.980 * 60.30 [12:17:38]line = 300.29 [12:17:38]line ÐДС 12% ÐСП 1% [12:17:38]line > о реализуемом товаре [12:17:38]line ОКРУГЛЕÐИЕ: -0.29 [12:17:38]line ИТОГО: 300.00 [12:17:38]line ВнеÑено: 300.00 [12:17:38]line СДÐЧÐ: 0.00 [12:17:38]line ÐСП 1% : 2.66 [12:17:38]line ÐДС 12% : 31.89 [12:17:38]line Ðаличными: 300.00 [12:17:38]line Безнал.: 0.00 [12:17:38]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [12:17:38]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:17:38]line СÐО: Общий режим [12:17:38]line Чек 58 29.01.2024 12:17 [12:17:38]line Смена: 245 ФФД: 1.0 [12:17:38]line ЗÐМ: 0300000040 [12:17:38]line РÐМ: 0000000000092723 [12:17:38]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:17:38]line ФМ: 0000000000875060 [12:17:38]line ФД: 49075 [12:17:38]line ФПД: 76008562374296 [12:17:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T121750&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49075&fm=76008562374296&tin=02508201610067®Number=0000000000092723&sum=30000 [12:17:38]OFD Sender: Processing packet 49075 [packets to send 12, broken 11] [12:17:38]ProducePacketName [12:17:38]name=ofd_packets/00049075 [12:17:38]OFD Sender: To server: ‡•öpG, [12:17:38]CommunicateWithHost lk.salyk.kg:30040 [12:17:38]ConnectInit lk.salyk.kg [12:17:38]written 0, free lines is 4095 [12:17:38]Connected sock=9 [12:17: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 9A 42 07 01 20 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3A 00 00 00 F4 03 04 00 6E 97 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 45 21 1F 5C 36 98 85 0E 3E D7 D9 9A 18 21 [12:17: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 47 DD 47 00 8B 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 B3 BF 00 00 F4 03 04 00 66 43 B7 65 B6 04 01 00 00 81 72 7F B7 54 EF AB D8 [12:17:38]CommunicateWithHost err = 0 [12:17:38]CheckOFDResponse [12:17:38]1017 (14) - 77093643461234 [12:17:38]1041 (16) - 0000000000875060 [12:17:38]1040 (4) - 49075 [12:17:38]1012 (4) - 29.01.2024 06:19 [12:17:38]1206 (1) - 0 [12:17:38]OFD Sender: Remove packet 49075 [12:17:38]ProducePacketName [12:17:38]name=ofd_packets/00049075 [12:17:38]NVStorageDeleteData [12:17:38]Write to MH i2c: 01 00 00 4B 4E 99 [12:17:38]Write i2c OK [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: 01 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: 01 07 00 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: 01 07 00 4B 4E 00 00 00 00 00 00 0D AD [12:17:38]RasterBufferAndPrint [12:17:38]line [12:17:38]line [12:17:38]line [12:17:38]line [12:17:38]line [12:17:38]written 0, free lines is 3337 [12:17:38]MH_Cut [12:17:38]Write to MH i2c: D1 01 00 52 4E 01 72 [12:17:38]Write i2c OK [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: D1 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: D1 01 00 [12:17:38]MH_I2C_Read... [12:17:38]Read from MH i2c: D1 01 00 52 4E 00 71 [12:17:38]Write to MH i2c: 01 00 00 53 4E A1 [12:17:38]Write i2c OK [12:17:38]MH_I2C_Read... [12:17:39]OFD Sender: No OFD packet to send [12:17:39]*** Cut start [12:17:39]*** Partial cut [12:17:39]*** CUTSNS_PIN = 1 [12:17:39]*** CUTSNS_PIN = 0 [12:17:39]*** Brake cut motor [12:17:40]Read from MH i2c: 01 [12:17:40]MH_I2C_Read... [12:17:40]*** Stop cut motor [12:17:40]*** Cut end [12:17:40]Read from MH i2c: 01 07 00 [12:17:40]MH_I2C_Read... [12:17:40]Read from MH i2c: 01 07 00 53 4E 00 00 00 00 00 FF 0F B6 [12:17:40]process_action close_receipt done [12:17:40]requested_data is exist [12:17:40]produce_requested_data [12:17:40]requested_item fm.sn is exist - process it [12:17:40]wFMCommunicate request_size=4 [12:17:40]MH_SAM_APDU [12:17:40]CAPDU: 80 11 00 00 [12:17:40]Write to MH i2c: E2 08 00 54 4E 80 11 00 00 00 00 00 00 1C [12:17:40]Write i2c OK [12:17:40]MH_I2C_Read... [12:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:40]Read from MH i2c: E2 [12:17:40]MH_I2C_Read... [12:17:40]Read from MH i2c: E2 17 00 [12:17:40]MH_I2C_Read... [12:17:40]Read from MH i2c: E2 17 00 54 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 69 [12:17:40]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:40]wFMCommunicate OK [12:17:40]requested_item fd.num is exist - process it [12:17:40]SAM_PROTO_GetFieldsCounters [12:17:40]wFMCommunicate request_size=4 [12:17:40]MH_SAM_APDU [12:17:40]CAPDU: 80 13 00 00 [12:17:40]Write to MH i2c: E2 08 00 55 4E 80 13 00 00 00 00 00 00 1F [12:17:40]Write i2c OK [12:17:40]MH_I2C_Read... [12:17:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:40]Read from MH i2c: E2 [12:17:40]MH_I2C_Read... [12:17:40]Read from MH i2c: E2 62 00 [12:17:40]MH_I2C_Read... [12:17:40]Read from MH i2c: E2 62 00 55 4E 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 BF 00 00 0E 04 04 00 F5 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 4D [12:17: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 B3 BF 00 00 0E 04 04 00 F5 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 [12:17:40]wFMCommunicate OK [12:17:40]SAM_PROTO_GetFieldsCounters done [12:17:40]requested_item shift.num is exist - process it [12:17:40]requested_item shift.opened is exist - process it [12:17:40]req_shift_opened [12:17:40]FM_GetShiftState [12:17:40]SAM_PROTO_GetShiftState [12:17:40]wFMCommunicate request_size=4 [12:17:40]MH_SAM_APDU [12:17:40]CAPDU: 80 13 01 00 [12:17:40]Write to MH i2c: E2 08 00 56 4E 80 13 01 00 00 00 00 00 21 [12:17:40]Write i2c OK [12:17:40]MH_I2C_Read... [12:17:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:40]Read from MH i2c: E2 [12:17:40]MH_I2C_Read... [12:17:40]Read from MH i2c: E2 0E 00 [12:17:40]MH_I2C_Read... [12:17:40]Read from MH i2c: E2 0E 00 56 4E 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 93 [12:17:40]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:17:40]wFMCommunicate OK [12:17:40]SAM_PROTO_GetShiftState done [12:17:40]FM_GetShiftState done [12:17:40]req_shift_opened done [12:17:40]requested_item shift.open_date is exist - process it [12:17:40]req_shift_open_date [12:17:40]req_shift_open_date done [12:17:40]produce_requested_data done [12:17:40]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49075,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [12:17:40]process_action_free close_receipt [12:17:40]json_value_free [12:17:40]json_value_free done [12:17:40]process_json_proto returns [12:17:40]Send response to host [12:17:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49075,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [12:17:40]free response buf [12:17:40]execute_script done [12:17:40]execute_script returns [12:17:40]free content buf [12:17:40]Sock 10.Close socket [12:17:40]Sock 10.Thread stoped [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:12]accept exits with 7 [12:22:12]New connection [12:22:12]New thread 3066670436 created [12:22:12]Thread 3066813796 joined [12:22:12]Waiting for new connection... [12:22:12] Sock 7.Parse request [12:22:12]Sock 7.Check first char [12:22:12]Sock 7.First char is OK [12:22:12]request: POST /json_proto HTTP/1.0 [12:22:12]Method: POST [12:22:12]URL: /json_proto [12:22:12]Method is POST - this is cgi request [12:22:12]url: /json_proto [12:22:12]query_string will be loaded in cgi processing [12:22:12]execute_cgi json_proto POST (null) [12:22:12]execute_cgi path=json_proto method=POST [12:22:12]POST find Content-Length [12:22:12]Host: 172.17.56.67:8080 [12:22:12]Content-Length: 682 [12:22:12]Content-Type: application/json [12:22:12] [12:22:12]POST finish read [12:22:12]Found Content-Length = 682 [12:22:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216176", "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" : 33.170, "sum" : 2000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:12]execute_script... [12:22:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216176", "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" : 33.170, "sum" : 2000.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:12]POST & json_proto [12:22:12]process_json_proto [12:22:12]json parsed OK: [12:22:12]protocol is kg_v1.0 [12:22:12]action value=close_receipt [12:22:12]process_action close_receipt [12:22:12]cmd_close_receipt [12:22:12]MH_GetDate [12:22:12]Write to MH i2c: F0 00 00 57 4E 94 [12:22:12]Write i2c OK [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: F0 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: F0 09 00 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: F0 09 00 57 4E 00 82 98 B7 65 26 5D 9E 65 59 [12:22:12]GetLastDocTimeStamp 1706530670 [12:22:12]current date 1706530946 [12:22:12]FM_GetShiftState [12:22:12]SAM_PROTO_GetShiftState [12:22:12]wFMCommunicate request_size=4 [12:22:12]MH_SAM_APDU [12:22:12]CAPDU: 80 13 01 00 [12:22:12]Write to MH i2c: E2 08 00 58 4E 80 13 01 00 00 00 00 00 23 [12:22:12]Write i2c OK [12:22:12]MH_I2C_Read... [12:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:12]Read from MH i2c: E2 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: E2 0E 00 [12:22:12]MH_I2C_Read... [12:22:12]Read from MH i2c: E2 0E 00 58 4E 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 95 [12:22:12]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:22:12]wFMCommunicate OK [12:22:12]SAM_PROTO_GetShiftState done [12:22:12]FM_GetShiftState done [12:22:12]opened in 1706486624 [12:22:12]opened+sec_in_day 1706573024 [12:22:12]quantity*price = 200015 [12:22:12]sum+1 = 200016 [12:22:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.15 ИТОГО: 2000.00 ВнеÑено: 2000.00 СДÐЧÐ: 0.00 ÐСП 1% : 17.70 ÐДС 12% : 212.40 Ðаличными: 2000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 59 29.01.2024 12:22 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49076 ФПД: 230693757317252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T122226&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49076&fm=230693757317252&tin=02508201610067®Number=0000000000092723&sum=200000 [12:22:13]StoreToDocumentArchive [12:22:13]shift 245 fd 49076 [12:22:13]save to /storage/0245/doc_00049076 [12:22:13]save last doc name /storage/0245/doc_00049076 to /storage/kkm_last_doc_name [12:22:13]save OK [12:22:13]Clear old archive folders... [12:22:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:13]tlvbuf is 01217180 [12:22:13]SAM_PROTO_ClearQueue [12:22:13]wFMCommunicate request_size=4 [12:22:13]MH_SAM_APDU [12:22:13]CAPDU: 80 09 00 00 [12:22:13]Write to MH i2c: E2 08 00 65 4E 80 09 00 00 00 00 00 00 25 [12:22:13]Write i2c OK [12:22:13]MH_I2C_Read... [12:22:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:13]Read from MH i2c: E2 [12:22:13]MH_I2C_Read... [12:22:13]Read from MH i2c: E2 03 00 [12:22:13]MH_I2C_Read... [12:22:13]Read from MH i2c: E2 03 00 65 4E 00 90 00 27 [12:22:13]RAPDU: 90 00 [12:22:13]wFMCommunicate OK [12:22:13]SAM_PROTO_ClearQueue done [12:22:13]KKMCreateOFDPacket [12:22:13]OFDProtocolAddRootSTLVToBuf [12:22:13]FM_MakeSignedData [12:22:13]FM_MakeSignedData [12:22:13]SAM_PROTO_SignData [12:22:13]wFMCommunicate request_size=4 [12:22:13]MH_SAM_APDU [12:22:13]CAPDU: 80 0D 01 02 [12:22:13]Write to MH i2c: E2 08 00 66 4E 80 0D 01 02 00 00 00 00 2D [12:22:13]Write i2c OK [12:22:13]MH_I2C_Read... [12:22:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:13]Read from MH i2c: E2 [12:22:13]MH_I2C_Read... [12:22:13]Read from MH i2c: E2 03 00 [12:22:13]MH_I2C_Read... [12:22:13]Read from MH i2c: E2 03 00 66 4E 00 90 00 28 [12:22:13]RAPDU: 90 00 [12:22:13]wFMCommunicate OK [12:22:13]wFMCommunicate request_size=255 [12:22:13]MH_SAM_APDU [12:22:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 81 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 82 98 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 D1 [12:22:13]Write to MH i2c: E2 02 01 67 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 81 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 82 98 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 D1 00 00 CA [12:22:13]Write i2c OK [12:22:13]MH_I2C_Read... [12:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:14]Read from MH i2c: E2 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: E2 03 00 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: E2 03 00 67 4E 00 90 00 29 [12:22:14]RAPDU: 90 00 [12:22:14]wFMCommunicate OK [12:22:14]wFMCommunicate request_size=10 [12:22:14]MH_SAM_APDU [12:22:14]CAPDU: 80 0D 02 02 05 D0 93 74 F0 84 [12:22:14]Write to MH i2c: E2 0D 00 68 4E 80 0D 02 02 05 00 D0 93 74 F0 84 00 00 85 [12:22:14]Write i2c OK [12:22:14]MH_I2C_Read... [12:22:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:14]Read from MH i2c: E2 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: E2 03 00 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: E2 03 00 68 4E 00 90 00 2A [12:22:14]RAPDU: 90 00 [12:22:14]wFMCommunicate OK [12:22:14]wFMCommunicate request_size=4 [12:22:14]MH_SAM_APDU [12:22:14]CAPDU: 80 0D 03 02 [12:22:14]Write to MH i2c: E2 08 00 69 4E 80 0D 03 02 00 00 00 00 32 [12:22:14]Write i2c OK [12:22:14]MH_I2C_Read... [12:22:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:14]Read from MH i2c: E2 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: E2 0B 00 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: E2 0B 00 69 4E 00 A4 7F 7F 47 E9 C0 65 5D 90 00 87 [12:22:14]RAPDU: A4 7F 7F 47 E9 C0 65 5D 90 00 [12:22:14]wFMCommunicate OK [12:22:14]SAM_PROTO_SignData done [12:22:14]FM_MakeSignedData done [12:22:14]CreateOFDProtocolMessage [12:22:14]wFMCommunicate request_size=4 [12:22:14]MH_SAM_APDU [12:22:14]CAPDU: 80 11 00 00 [12:22:14]Write to MH i2c: E2 08 00 6A 4E 80 11 00 00 00 00 00 00 32 [12:22:14]Write i2c OK [12:22:14]MH_I2C_Read... [12:22:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:14]Read from MH i2c: E2 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: E2 17 00 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: E2 17 00 6A 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7F [12:22: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:22:14]wFMCommunicate OK [12:22:14]CreateOFDProtocolMessage done [12:22:14]OFDSenderStorePacket 49076 [12:22:14]StoreOFDPacket docnum=49076 [12:22: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 0F 01 00 00 58 86 07 01 A4 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 81 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 82 98 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 D1 D0 93 74 F0 84 A4 7F 7F 47 E9 C0 65 5D [12:22:14]CheckFolder [12:22:14]dirname=/storage/ofd_packets [12:22:14]CheckFolder done [12:22:14]ProducePacketName [12:22:14]name=ofd_packets/00049076 [12:22:14]NVStorageSaveData ofd_packets/00049076 [12:22:14]File name is /storage/ofd_packets/00049076 [12:22:14]Write 301 bytes [12:22:14]NVStorageSaveData done [12:22:14]OFDSenderStorePacket done [12:22:14]KKMCreateOFDPacket done [12:22:14]NVStorageSaveData kkm_last_timestamp [12:22:14]File name is /storage/kkm_last_timestamp [12:22:14]Write 4 bytes [12:22:14]NVStorageSaveData done [12:22:14]ExternCall_PrintAddStr [12:22:14]wPrintStart [12:22:14]Write to MH i2c: 01 00 00 6B 4E B9 [12:22:14]Write i2c OK [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: 01 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: 01 07 00 [12:22:14]MH_I2C_Read... [12:22:14]Read from MH i2c: 01 07 00 6B 4E 00 00 00 00 00 FF 0F CE [12:22:14]RasterBufferAndPrint [12:22:14]line Счет N : (1)216176 [12:22:14]line ИÐÐ: 02508201610067 [12:22:14]line Контрольно-КаÑÑовый Чек [12:22:14]line ПРОДÐЖР[12:22:14]line ТРК (МРК, ГÐК) : 12 [12:22:14]line Товар: 2710124130 [12:22:14]line Ðи-92-К-5 [12:22:14]line 33.170 * 60.30 [12:22:14]line = 2000.15 [12:22:14]line ÐДС 12% ÐСП 1% [12:22:14]line > о реализуемом товаре [12:22:14]line ОКРУГЛЕÐИЕ: -0.15 [12:22:14]line ИТОГО: 2000.00 [12:22:14]line ВнеÑено: 2000.00 [12:22:14]line СДÐЧÐ: 0.00 [12:22:14]line ÐСП 1% : 17.70 [12:22:14]line ÐДС 12% : 212.40 [12:22:14]line Ðаличными: 2000.00 [12:22:14]line Безнал.: 0.00 [12:22:14]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [12:22:14]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:22:14]line СÐО: Общий режим [12:22:14]line Чек 59 29.01.2024 12:22 [12:22:14]line Смена: 245 ФФД: 1.0 [12:22:14]line ЗÐМ: 0300000040 [12:22:14]line РÐМ: 0000000000092723 [12:22:14]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:22:14]line ФМ: 0000000000875060 [12:22:14]line ФД: 49076 [12:22:14]line ФПД: 230693757317252 [12:22:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T122226&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49076&fm=230693757317252&tin=02508201610067®Number=0000000000092723&sum=200000 [12:22:14]OFD Sender: Processing packet 49076 [packets to send 12, broken 11] [12:22:14]ProducePacketName [12:22:14]name=ofd_packets/00049076 [12:22:14]OFD Sender: To server: ‡•öpG, [12:22:14]CommunicateWithHost lk.salyk.kg:30040 [12:22:14]ConnectInit lk.salyk.kg [12:22:14]written 0, free lines is 4095 [12:22:14]Connected sock=10 [12:22:14]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 58 86 07 01 A4 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 81 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 82 98 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 D1 D0 93 74 F0 84 A4 7F 7F 47 E9 C0 65 5D [12:22: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 DE DE 47 00 B9 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B4 BF 00 00 F4 03 04 00 7A 44 B7 65 B6 04 01 00 00 DD 9B 1D 0E 51 3D 84 8B [12:22:14]CommunicateWithHost err = 0 [12:22:14]CheckOFDResponse [12:22:14]1017 (14) - 77093643461234 [12:22:14]1041 (16) - 0000000000875060 [12:22:14]1040 (4) - 49076 [12:22:14]1012 (4) - 29.01.2024 06:23 [12:22:14]1206 (1) - 0 [12:22:14]OFD Sender: Remove packet 49076 [12:22:14]ProducePacketName [12:22:14]name=ofd_packets/00049076 [12:22:14]NVStorageDeleteData [12:22:15]Write to MH i2c: 01 00 00 96 4E E4 [12:22:15]Write i2c OK [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: 01 [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: 01 07 00 [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: 01 07 00 96 4E 00 00 00 00 00 F6 0C ED [12:22:15]RasterBufferAndPrint [12:22:15]line [12:22:15]line [12:22:15]line [12:22:15]line [12:22:15]line [12:22:15]written 0, free lines is 3324 [12:22:15]MH_Cut [12:22:15]Write to MH i2c: D1 01 00 9D 4E 01 BD [12:22:15]Write i2c OK [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: D1 [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: D1 01 00 [12:22:15]MH_I2C_Read... [12:22:15]Read from MH i2c: D1 01 00 9D 4E 00 BC [12:22:15]Write to MH i2c: 01 00 00 9E 4E EC [12:22:15]Write i2c OK [12:22:15]MH_I2C_Read... [12:22:15]OFD Sender: No OFD packet to send [12:22:15]*** Cut start [12:22:15]*** Partial cut [12:22:15]*** CUTSNS_PIN = 1 [12:22:15]*** CUTSNS_PIN = 0 [12:22:15]*** Brake cut motor [12:22:16]Read from MH i2c: 01 [12:22:16]MH_I2C_Read... [12:22:16]*** Stop cut motor [12:22:16]*** Cut end [12:22:16]Read from MH i2c: 01 07 00 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: 01 07 00 9E 4E 00 00 00 00 00 FF 0F 01 [12:22:16]process_action close_receipt done [12:22:16]requested_data is exist [12:22:16]produce_requested_data [12:22:16]requested_item fm.sn is exist - process it [12:22:16]wFMCommunicate request_size=4 [12:22:16]MH_SAM_APDU [12:22:16]CAPDU: 80 11 00 00 [12:22:16]Write to MH i2c: E2 08 00 9F 4E 80 11 00 00 00 00 00 00 67 [12:22:16]Write i2c OK [12:22:16]MH_I2C_Read... [12:22:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:16]Read from MH i2c: E2 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: E2 17 00 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: E2 17 00 9F 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B4 [12:22: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:22:16]wFMCommunicate OK [12:22:16]requested_item fd.num is exist - process it [12:22:16]SAM_PROTO_GetFieldsCounters [12:22:16]wFMCommunicate request_size=4 [12:22:16]MH_SAM_APDU [12:22:16]CAPDU: 80 13 00 00 [12:22:16]Write to MH i2c: E2 08 00 A0 4E 80 13 00 00 00 00 00 00 6A [12:22:16]Write i2c OK [12:22:16]MH_I2C_Read... [12:22:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:16]Read from MH i2c: E2 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: E2 62 00 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: E2 62 00 A0 4E 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 BF 00 00 0E 04 04 00 F5 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 9C [12:22:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 [12:22:16]wFMCommunicate OK [12:22:16]SAM_PROTO_GetFieldsCounters done [12:22:16]requested_item shift.num is exist - process it [12:22:16]requested_item shift.opened is exist - process it [12:22:16]req_shift_opened [12:22:16]FM_GetShiftState [12:22:16]SAM_PROTO_GetShiftState [12:22:16]wFMCommunicate request_size=4 [12:22:16]MH_SAM_APDU [12:22:16]CAPDU: 80 13 01 00 [12:22:16]Write to MH i2c: E2 08 00 A1 4E 80 13 01 00 00 00 00 00 6C [12:22:16]Write i2c OK [12:22:16]MH_I2C_Read... [12:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:16]Read from MH i2c: E2 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: E2 0E 00 [12:22:16]MH_I2C_Read... [12:22:16]Read from MH i2c: E2 0E 00 A1 4E 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 DE [12:22:16]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:22:16]wFMCommunicate OK [12:22:16]SAM_PROTO_GetShiftState done [12:22:16]FM_GetShiftState done [12:22:16]req_shift_opened done [12:22:16]requested_item shift.open_date is exist - process it [12:22:16]req_shift_open_date [12:22:16]req_shift_open_date done [12:22:16]produce_requested_data done [12:22:16]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49076,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [12:22:16]process_action_free close_receipt [12:22:16]json_value_free [12:22:16]json_value_free done [12:22:16]process_json_proto returns [12:22:16]Send response to host [12:22:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49076,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [12:22:16]free response buf [12:22:16]execute_script done [12:22:16]execute_script returns [12:22:16]free content buf [12:22:16]Sock 7.Close socket [12:22:16]Sock 7.Thread stoped [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]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:46]accept exits with 9 [12:30:46]New connection [12:30:46]New thread 3066813796 created [12:30:46]Thread 3066670436 joined [12:30:46]Waiting for new connection... [12:30:46] Sock 9.Parse request [12:30:46]Sock 9.Check first char [12:30:46]Sock 9.First char is OK [12:30:46]request: POST /json_proto HTTP/1.0 [12:30:46]Method: POST [12:30:46]URL: /json_proto [12:30:46]Method is POST - this is cgi request [12:30:46]url: /json_proto [12:30:46]query_string will be loaded in cgi processing [12:30:46]execute_cgi json_proto POST (null) [12:30:46]execute_cgi path=json_proto method=POST [12:30:46]POST find Content-Length [12:30:46]Host: 172.17.56.67:8080 [12:30:46]Content-Length: 682 [12:30:46]Content-Type: application/json [12:30:46] [12:30:46]POST finish read [12:30:46]Found Content-Length = 682 [12:30:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216177", "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" ] } } [12:30:46]execute_script... [12:30:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216177", "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" ] } } [12:30:46]POST & json_proto [12:30:46]process_json_proto [12:30:46]json parsed OK: [12:30:46]protocol is kg_v1.0 [12:30:46]action value=close_receipt [12:30:46]process_action close_receipt [12:30:46]cmd_close_receipt [12:30:46]MH_GetDate [12:30:46]Write to MH i2c: F0 00 00 A2 4E DF [12:30:46]Write i2c OK [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: F0 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: F0 09 00 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: F0 09 00 A2 4E 00 84 9A B7 65 26 5D 9E 65 A8 [12:30:46]GetLastDocTimeStamp 1706530946 [12:30:46]current date 1706531460 [12:30:46]FM_GetShiftState [12:30:46]SAM_PROTO_GetShiftState [12:30:46]wFMCommunicate request_size=4 [12:30:46]MH_SAM_APDU [12:30:46]CAPDU: 80 13 01 00 [12:30:46]Write to MH i2c: E2 08 00 A3 4E 80 13 01 00 00 00 00 00 6E [12:30:46]Write i2c OK [12:30:46]MH_I2C_Read... [12:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:46]Read from MH i2c: E2 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 0E 00 [12:30:46]MH_I2C_Read... [12:30:46]Read from MH i2c: E2 0E 00 A3 4E 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 E0 [12:30:46]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:30:46]wFMCommunicate OK [12:30:46]SAM_PROTO_GetShiftState done [12:30:46]FM_GetShiftState done [12:30:46]opened in 1706486624 [12:30:46]opened+sec_in_day 1706573024 [12:30:46]quantity*price = 100037 [12:30:46]sum+1 = 100039 [12:30: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 СÐО: Общий режим Чек 60 29.01.2024 12:31 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49077 ФПД: 7025435341144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T123100&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49077&fm=7025435341144&tin=02508201610067®Number=0000000000092723&sum=100000 [12:30:47]StoreToDocumentArchive [12:30:47]shift 245 fd 49077 [12:30:47]save to /storage/0245/doc_00049077 [12:30:47]save last doc name /storage/0245/doc_00049077 to /storage/kkm_last_doc_name [12:30:47]save OK [12:30:47]Clear old archive folders... [12:30:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:47]tlvbuf is 012446E0 [12:30:47]SAM_PROTO_ClearQueue [12:30:47]wFMCommunicate request_size=4 [12:30:47]MH_SAM_APDU [12:30:47]CAPDU: 80 09 00 00 [12:30:47]Write to MH i2c: E2 08 00 B0 4E 80 09 00 00 00 00 00 00 70 [12:30:47]Write i2c OK [12:30:47]MH_I2C_Read... [12:30:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:47]Read from MH i2c: E2 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 03 00 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 03 00 B0 4E 00 90 00 72 [12:30:47]RAPDU: 90 00 [12:30:47]wFMCommunicate OK [12:30:47]SAM_PROTO_ClearQueue done [12:30:47]KKMCreateOFDPacket [12:30:47]OFDProtocolAddRootSTLVToBuf [12:30:47]FM_MakeSignedData [12:30:47]FM_MakeSignedData [12:30:47]SAM_PROTO_SignData [12:30:47]wFMCommunicate request_size=4 [12:30:47]MH_SAM_APDU [12:30:47]CAPDU: 80 0D 01 02 [12:30:47]Write to MH i2c: E2 08 00 B1 4E 80 0D 01 02 00 00 00 00 78 [12:30:47]Write i2c OK [12:30:47]MH_I2C_Read... [12:30:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:47]Read from MH i2c: E2 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 03 00 [12:30:47]MH_I2C_Read... [12:30:47]Read from MH i2c: E2 03 00 B1 4E 00 90 00 73 [12:30:47]RAPDU: 90 00 [12:30:47]wFMCommunicate OK [12:30:47]wFMCommunicate request_size=255 [12:30:47]MH_SAM_APDU [12:30:47]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 84 9A B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 06 [12:30:47]Write to MH i2c: E2 02 01 B2 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 84 9A B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 06 00 00 CD [12:30:47]Write i2c OK [12:30:47]MH_I2C_Read... [12:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:48]Read from MH i2c: E2 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: E2 03 00 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: E2 03 00 B2 4E 00 90 00 74 [12:30:48]RAPDU: 90 00 [12:30:48]wFMCommunicate OK [12:30:48]wFMCommunicate request_size=10 [12:30:48]MH_SAM_APDU [12:30:48]CAPDU: 80 0D 02 02 05 63 BC 93 F1 58 [12:30:48]Write to MH i2c: E2 0D 00 B3 4E 80 0D 02 02 05 00 63 BC 93 F1 58 00 00 80 [12:30:48]Write i2c OK [12:30:48]MH_I2C_Read... [12:30:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:48]Read from MH i2c: E2 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: E2 03 00 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: E2 03 00 B3 4E 00 90 00 75 [12:30:48]RAPDU: 90 00 [12:30:48]wFMCommunicate OK [12:30:48]wFMCommunicate request_size=4 [12:30:48]MH_SAM_APDU [12:30:48]CAPDU: 80 0D 03 02 [12:30:48]Write to MH i2c: E2 08 00 B4 4E 80 0D 03 02 00 00 00 00 7D [12:30:48]Write i2c OK [12:30:48]MH_I2C_Read... [12:30:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:48]Read from MH i2c: E2 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: E2 0B 00 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: E2 0B 00 B4 4E 00 BA 45 F0 C9 F7 36 8B B1 90 00 9F [12:30:48]RAPDU: BA 45 F0 C9 F7 36 8B B1 90 00 [12:30:48]wFMCommunicate OK [12:30:48]SAM_PROTO_SignData done [12:30:48]FM_MakeSignedData done [12:30:48]CreateOFDProtocolMessage [12:30:48]wFMCommunicate request_size=4 [12:30:48]MH_SAM_APDU [12:30:48]CAPDU: 80 11 00 00 [12:30:48]Write to MH i2c: E2 08 00 B5 4E 80 11 00 00 00 00 00 00 7D [12:30:48]Write i2c OK [12:30:48]MH_I2C_Read... [12:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:48]Read from MH i2c: E2 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: E2 17 00 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: E2 17 00 B5 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CA [12:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [12:30:48]wFMCommunicate OK [12:30:48]CreateOFDProtocolMessage done [12:30:48]OFDSenderStorePacket 49077 [12:30:48]StoreOFDPacket docnum=49077 [12:30: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 22 DB 07 01 50 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 84 9A B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 06 63 BC 93 F1 58 BA 45 F0 C9 F7 36 8B B1 [12:30:48]CheckFolder [12:30:48]dirname=/storage/ofd_packets [12:30:48]CheckFolder done [12:30:48]ProducePacketName [12:30:48]name=ofd_packets/00049077 [12:30:48]NVStorageSaveData ofd_packets/00049077 [12:30:48]File name is /storage/ofd_packets/00049077 [12:30:48]Write 301 bytes [12:30:48]NVStorageSaveData done [12:30:48]OFDSenderStorePacket done [12:30:48]KKMCreateOFDPacket done [12:30:48]NVStorageSaveData kkm_last_timestamp [12:30:48]File name is /storage/kkm_last_timestamp [12:30:48]Write 4 bytes [12:30:48]NVStorageSaveData done [12:30:48]ExternCall_PrintAddStr [12:30:48]wPrintStart [12:30:48]Write to MH i2c: 01 00 00 B6 4E 04 [12:30:48]Write i2c OK [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: 01 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: 01 07 00 [12:30:48]MH_I2C_Read... [12:30:48]Read from MH i2c: 01 07 00 B6 4E 00 00 00 00 00 FF 0F 19 [12:30:48]RasterBufferAndPrint [12:30:48]line Счет N : (1)216177 [12:30:48]line ИÐÐ: 02508201610067 [12:30:48]line Контрольно-КаÑÑовый Чек [12:30:48]line ПРОДÐЖР[12:30:48]line ТРК (МРК, ГÐК) : 12 [12:30:48]line Товар: 2710124130 [12:30:48]line Ðи-92-К-5 [12:30:48]line 16.590 * 60.30 [12:30:48]line = 1000.38 [12:30:48]line ÐДС 12% ÐСП 1% [12:30:48]line > о реализуемом товаре [12:30:48]line ОКРУГЛЕÐИЕ: -0.38 [12:30:48]line ИТОГО: 1000.00 [12:30:48]line ВнеÑено: 1000.00 [12:30:48]line СДÐЧÐ: 0.00 [12:30:48]line ÐСП 1% : 8.85 [12:30:48]line ÐДС 12% : 106.23 [12:30:48]line Ðаличными: 1000.00 [12:30:48]line Безнал.: 0.00 [12:30:48]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [12:30:48]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:30:48]line СÐО: Общий режим [12:30:48]line Чек 60 29.01.2024 12:31 [12:30:48]line Смена: 245 ФФД: 1.0 [12:30:48]line ЗÐМ: 0300000040 [12:30:48]line РÐМ: 0000000000092723 [12:30:48]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:30:48]line ФМ: 0000000000875060 [12:30:48]line ФД: 49077 [12:30:48]line ФПД: 7025435341144 [12:30:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T123100&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49077&fm=7025435341144&tin=02508201610067®Number=0000000000092723&sum=100000 [12:30:48]OFD Sender: Processing packet 49077 [packets to send 12, broken 11] [12:30:48]ProducePacketName [12:30:48]name=ofd_packets/00049077 [12:30:48]OFD Sender: To server: ‡•öpG, [12:30:48]CommunicateWithHost lk.salyk.kg:30040 [12:30:48]ConnectInit lk.salyk.kg [12:30:48]written 0, free lines is 4095 [12:30:48]Connected sock=10 [12:30:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 22 DB 07 01 50 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 84 9A B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 06 63 BC 93 F1 58 BA 45 F0 C9 F7 36 8B B1 [12:30: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 41 69 47 00 A5 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B5 BF 00 00 F4 03 04 00 7C 46 B7 65 B6 04 01 00 00 A8 A8 B2 5C FB 99 0C D4 [12:30:48]CommunicateWithHost err = 0 [12:30:48]CheckOFDResponse [12:30:48]1017 (14) - 77093643461234 [12:30:48]1041 (16) - 0000000000875060 [12:30:48]1040 (4) - 49077 [12:30:48]1012 (4) - 29.01.2024 06:32 [12:30:48]1206 (1) - 0 [12:30:48]OFD Sender: Remove packet 49077 [12:30:48]ProducePacketName [12:30:48]name=ofd_packets/00049077 [12:30:48]NVStorageDeleteData [12:30:49]Write to MH i2c: 01 00 00 E1 4E 2F [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: 01 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: 01 07 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: 01 07 00 E1 4E 00 00 00 00 00 F2 0C 34 [12:30:49]RasterBufferAndPrint [12:30:49]line [12:30:49]line [12:30:49]line [12:30:49]line [12:30:49]line [12:30:49]written 0, free lines is 3320 [12:30:49]MH_Cut [12:30:49]Write to MH i2c: D1 01 00 E8 4E 01 08 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: D1 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: D1 01 00 [12:30:49]MH_I2C_Read... [12:30:49]Read from MH i2c: D1 01 00 E8 4E 00 07 [12:30:49]Write to MH i2c: 01 00 00 E9 4E 37 [12:30:49]Write i2c OK [12:30:49]MH_I2C_Read... [12:30:49]OFD Sender: No OFD packet to send [12:30:49]*** Cut start [12:30:49]*** Partial cut [12:30:49]*** CUTSNS_PIN = 1 [12:30:49]*** CUTSNS_PIN = 0 [12:30:49]*** Brake cut motor [12:30:50]Read from MH i2c: 01 [12:30:50]MH_I2C_Read... [12:30:50]*** Stop cut motor [12:30:50]*** Cut end [12:30:50]Read from MH i2c: 01 07 00 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: 01 07 00 E9 4E 00 00 00 00 00 FF 0F 4C [12:30:50]process_action close_receipt done [12:30:50]requested_data is exist [12:30:50]produce_requested_data [12:30:50]requested_item fm.sn is exist - process it [12:30:50]wFMCommunicate request_size=4 [12:30:50]MH_SAM_APDU [12:30:50]CAPDU: 80 11 00 00 [12:30:50]Write to MH i2c: E2 08 00 EA 4E 80 11 00 00 00 00 00 00 B2 [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:50]Read from MH i2c: E2 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: E2 17 00 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: E2 17 00 EA 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FF [12:30: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:30:50]wFMCommunicate OK [12:30:50]requested_item fd.num is exist - process it [12:30:50]SAM_PROTO_GetFieldsCounters [12:30:50]wFMCommunicate request_size=4 [12:30:50]MH_SAM_APDU [12:30:50]CAPDU: 80 13 00 00 [12:30:50]Write to MH i2c: E2 08 00 EB 4E 80 13 00 00 00 00 00 00 B5 [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:50]Read from MH i2c: E2 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: E2 62 00 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: E2 62 00 EB 4E 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 BF 00 00 0E 04 04 00 F5 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 EB [12:30:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 [12:30:50]wFMCommunicate OK [12:30:50]SAM_PROTO_GetFieldsCounters done [12:30:50]requested_item shift.num is exist - process it [12:30:50]requested_item shift.opened is exist - process it [12:30:50]req_shift_opened [12:30:50]FM_GetShiftState [12:30:50]SAM_PROTO_GetShiftState [12:30:50]wFMCommunicate request_size=4 [12:30:50]MH_SAM_APDU [12:30:50]CAPDU: 80 13 01 00 [12:30:50]Write to MH i2c: E2 08 00 EC 4E 80 13 01 00 00 00 00 00 B7 [12:30:50]Write i2c OK [12:30:50]MH_I2C_Read... [12:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:50]Read from MH i2c: E2 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: E2 0E 00 [12:30:50]MH_I2C_Read... [12:30:50]Read from MH i2c: E2 0E 00 EC 4E 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 29 [12:30:50]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:30:50]wFMCommunicate OK [12:30:50]SAM_PROTO_GetShiftState done [12:30:50]FM_GetShiftState done [12:30:50]req_shift_opened done [12:30:50]requested_item shift.open_date is exist - process it [12:30:50]req_shift_open_date [12:30:50]req_shift_open_date done [12:30:50]produce_requested_data done [12:30:50]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49077,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [12:30:50]process_action_free close_receipt [12:30:50]json_value_free [12:30:50]json_value_free done [12:30:50]process_json_proto returns [12:30:50]Send response to host [12:30:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49077,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [12:30:50]free response buf [12:30:50]execute_script done [12:30:50]execute_script returns [12:30:50]free content buf [12:30:50]Sock 9.Close socket [12:30:50]Sock 9.Thread stoped [12:30:54]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:30:59]accept exits with 7 [12:30:59]New connection [12:30:59]New thread 3066670436 created [12:30:59]Thread 3066813796 joined [12:30:59]Waiting for new connection... [12:30:59] Sock 7.Parse request [12:30:59]Sock 7.Check first char [12:30:59]Sock 7.First char is OK [12:30:59]request: POST /json_proto HTTP/1.0 [12:30:59]Method: POST [12:30:59]URL: /json_proto [12:30:59]Method is POST - this is cgi request [12:30:59]url: /json_proto [12:30:59]query_string will be loaded in cgi processing [12:30:59]execute_cgi json_proto POST (null) [12:30:59]execute_cgi path=json_proto method=POST [12:30:59]POST find Content-Length [12:30:59]Host: 172.17.56.67:8080 [12:30:59]Content-Length: 682 [12:30:59]Content-Type: application/json [12:30:59] [12:30:59]POST finish read [12:30:59]Found Content-Length = 682 [12:30:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216178", "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:30:59]execute_script... [12:30: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)216178", "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:30:59]POST & json_proto [12:30:59]process_json_proto [12:30:59]json parsed OK: [12:30:59]protocol is kg_v1.0 [12:30:59]action value=close_receipt [12:30:59]process_action close_receipt [12:30:59]cmd_close_receipt [12:30:59]MH_GetDate [12:30:59]Write to MH i2c: F0 00 00 ED 4E 2A [12:30:59]Write i2c OK [12:30:59]MH_I2C_Read... [12:30:59]Read from MH i2c: F0 [12:30:59]MH_I2C_Read... [12:30:59]Read from MH i2c: F0 09 00 [12:30:59]MH_I2C_Read... [12:30:59]Read from MH i2c: F0 09 00 ED 4E 00 91 9A B7 65 26 5D 9E 65 00 [12:30:59]GetLastDocTimeStamp 1706531460 [12:30:59]current date 1706531473 [12:30:59]FM_GetShiftState [12:30:59]SAM_PROTO_GetShiftState [12:30:59]wFMCommunicate request_size=4 [12:30:59]MH_SAM_APDU [12:30:59]CAPDU: 80 13 01 00 [12:30:59]Write to MH i2c: E2 08 00 EE 4E 80 13 01 00 00 00 00 00 B9 [12:30:59]Write i2c OK [12:30:59]MH_I2C_Read... [12:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:59]Read from MH i2c: E2 [12:30:59]MH_I2C_Read... [12:30:59]Read from MH i2c: E2 0E 00 [12:30:59]MH_I2C_Read... [12:30:59]Read from MH i2c: E2 0E 00 EE 4E 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 2B [12:30:59]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:30:59]wFMCommunicate OK [12:30:59]SAM_PROTO_GetShiftState done [12:30:59]FM_GetShiftState done [12:30:59]opened in 1706486624 [12:30:59]opened+sec_in_day 1706573024 [12:30:59]quantity*price = 150026 [12:30:59]sum+1 = 150027 [12:30:59]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 СÐО: Общий режим Чек 61 29.01.2024 12:31 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49078 ФПД: 95570827564656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T123113&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49078&fm=95570827564656&tin=02508201610067®Number=0000000000092723&sum=150000 [12:31:00]StoreToDocumentArchive [12:31:00]shift 245 fd 49078 [12:31:00]save to /storage/0245/doc_00049078 [12:31:00]save last doc name /storage/0245/doc_00049078 to /storage/kkm_last_doc_name [12:31:00]save OK [12:31:00]Clear old archive folders... [12:31:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:00]tlvbuf is 011E6340 [12:31:00]SAM_PROTO_ClearQueue [12:31:00]wFMCommunicate request_size=4 [12:31:00]MH_SAM_APDU [12:31:00]CAPDU: 80 09 00 00 [12:31:00]Write to MH i2c: E2 08 00 FB 4E 80 09 00 00 00 00 00 00 BB [12:31:00]Write i2c OK [12:31:00]MH_I2C_Read... [12:31:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:00]Read from MH i2c: E2 [12:31:00]MH_I2C_Read... [12:31:00]Read from MH i2c: E2 03 00 [12:31:00]MH_I2C_Read... [12:31:00]Read from MH i2c: E2 03 00 FB 4E 00 90 00 BD [12:31:00]RAPDU: 90 00 [12:31:00]wFMCommunicate OK [12:31:00]SAM_PROTO_ClearQueue done [12:31:00]KKMCreateOFDPacket [12:31:00]OFDProtocolAddRootSTLVToBuf [12:31:00]FM_MakeSignedData [12:31:00]FM_MakeSignedData [12:31:00]SAM_PROTO_SignData [12:31:00]wFMCommunicate request_size=4 [12:31:00]MH_SAM_APDU [12:31:00]CAPDU: 80 0D 01 02 [12:31:00]Write to MH i2c: E2 08 00 FC 4E 80 0D 01 02 00 00 00 00 C3 [12:31:00]Write i2c OK [12:31:00]MH_I2C_Read... [12:31:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:00]Read from MH i2c: E2 [12:31:00]MH_I2C_Read... [12:31:00]Read from MH i2c: E2 03 00 [12:31:00]MH_I2C_Read... [12:31:00]Read from MH i2c: E2 03 00 FC 4E 00 90 00 BE [12:31:00]RAPDU: 90 00 [12:31:00]wFMCommunicate OK [12:31:00]wFMCommunicate request_size=255 [12:31:00]MH_SAM_APDU [12:31: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 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 3D 00 00 00 F4 03 04 00 91 9A B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 56 [12:31:00]Write to MH i2c: E2 02 01 FD 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3D 00 00 00 F4 03 04 00 91 9A B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 56 00 00 BA [12:31:00]Write i2c OK [12:31:00]MH_I2C_Read... [12:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:01]Read from MH i2c: E2 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 03 00 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 03 00 FD 4E 00 90 00 BF [12:31:01]RAPDU: 90 00 [12:31:01]wFMCommunicate OK [12:31:01]wFMCommunicate request_size=10 [12:31:01]MH_SAM_APDU [12:31:01]CAPDU: 80 0D 02 02 05 EB D1 3A 56 70 [12:31:01]Write to MH i2c: E2 0D 00 FE 4E 80 0D 02 02 05 00 EB D1 3A 56 70 00 00 8C [12:31:01]Write i2c OK [12:31:01]MH_I2C_Read... [12:31:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:01]Read from MH i2c: E2 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 03 00 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 03 00 FE 4E 00 90 00 C0 [12:31:01]RAPDU: 90 00 [12:31:01]wFMCommunicate OK [12:31:01]wFMCommunicate request_size=4 [12:31:01]MH_SAM_APDU [12:31:01]CAPDU: 80 0D 03 02 [12:31:01]Write to MH i2c: E2 08 00 FF 4E 80 0D 03 02 00 00 00 00 C8 [12:31:01]Write i2c OK [12:31:01]MH_I2C_Read... [12:31:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:01]Read from MH i2c: E2 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 0B 00 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 0B 00 FF 4E 00 7C 7C 68 93 19 96 93 0D 90 00 0B [12:31:01]RAPDU: 7C 7C 68 93 19 96 93 0D 90 00 [12:31:01]wFMCommunicate OK [12:31:01]SAM_PROTO_SignData done [12:31:01]FM_MakeSignedData done [12:31:01]CreateOFDProtocolMessage [12:31:01]wFMCommunicate request_size=4 [12:31:01]MH_SAM_APDU [12:31:01]CAPDU: 80 11 00 00 [12:31:01]Write to MH i2c: E2 08 00 00 4F 80 11 00 00 00 00 00 00 C9 [12:31:01]Write i2c OK [12:31:01]MH_I2C_Read... [12:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:01]Read from MH i2c: E2 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 17 00 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: E2 17 00 00 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 16 [12:31: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:31:01]wFMCommunicate OK [12:31:01]CreateOFDProtocolMessage done [12:31:01]OFDSenderStorePacket 49078 [12:31:01]StoreOFDPacket docnum=49078 [12:31: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 FD 37 07 01 FF 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3D 00 00 00 F4 03 04 00 91 9A B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 56 EB D1 3A 56 70 7C 7C 68 93 19 96 93 0D [12:31:01]CheckFolder [12:31:01]dirname=/storage/ofd_packets [12:31:01]CheckFolder done [12:31:01]ProducePacketName [12:31:01]name=ofd_packets/00049078 [12:31:01]NVStorageSaveData ofd_packets/00049078 [12:31:01]File name is /storage/ofd_packets/00049078 [12:31:01]Write 301 bytes [12:31:01]NVStorageSaveData done [12:31:01]OFDSenderStorePacket done [12:31:01]KKMCreateOFDPacket done [12:31:01]NVStorageSaveData kkm_last_timestamp [12:31:01]File name is /storage/kkm_last_timestamp [12:31:01]Write 4 bytes [12:31:01]NVStorageSaveData done [12:31:01]ExternCall_PrintAddStr [12:31:01]wPrintStart [12:31:01]Write to MH i2c: 01 00 00 01 4F 50 [12:31:01]Write i2c OK [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: 01 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: 01 07 00 [12:31:01]MH_I2C_Read... [12:31:01]Read from MH i2c: 01 07 00 01 4F 00 00 00 00 00 FF 0F 65 [12:31:01]RasterBufferAndPrint [12:31:01]line Счет N : (1)216178 [12:31:01]line ИÐÐ: 02508201610067 [12:31:01]line Контрольно-КаÑÑовый Чек [12:31:01]line ПРОДÐЖР[12:31:01]line ТРК (МРК, ГÐК) : 22 [12:31:01]line Товар: 2710124130 [12:31:01]line Ðи-92-К-5 [12:31:01]line 24.880 * 60.30 [12:31:01]line = 1500.26 [12:31:01]line ÐДС 12% ÐСП 1% [12:31:01]line > о реализуемом товаре [12:31:01]line ОКРУГЛЕÐИЕ: -0.26 [12:31:01]line ИТОГО: 1500.00 [12:31:01]line ВнеÑено: 1500.00 [12:31:01]line СДÐЧÐ: 0.00 [12:31:01]line ÐСП 1% : 13.28 [12:31:01]line ÐДС 12% : 159.32 [12:31:01]line Ðаличными: 1500.00 [12:31:01]line Безнал.: 0.00 [12:31:01]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [12:31:01]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:31:01]line СÐО: Общий режим [12:31:01]line Чек 61 29.01.2024 12:31 [12:31:01]line Смена: 245 ФФД: 1.0 [12:31:01]line ЗÐМ: 0300000040 [12:31:01]line РÐМ: 0000000000092723 [12:31:01]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:31:01]line ФМ: 0000000000875060 [12:31:01]line ФД: 49078 [12:31:01]line ФПД: 95570827564656 [12:31:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T123113&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49078&fm=95570827564656&tin=02508201610067®Number=0000000000092723&sum=150000 [12:31:01]OFD Sender: Processing packet 49078 [packets to send 12, broken 11] [12:31:01]ProducePacketName [12:31:01]name=ofd_packets/00049078 [12:31:01]OFD Sender: To server: ‡•öpG, [12:31:01]CommunicateWithHost lk.salyk.kg:30040 [12:31:01]ConnectInit lk.salyk.kg [12:31:01]written 0, free lines is 4095 [12:31:01]Connected sock=10 [12:31: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 FD 37 07 01 FF 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 3D 00 00 00 F4 03 04 00 91 9A B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 56 EB D1 3A 56 70 7C 7C 68 93 19 96 93 0D [12:31: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 97 DF 47 00 C5 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 B6 BF 00 00 F4 03 04 00 89 46 B7 65 B6 04 01 00 00 DB C3 68 B5 0B A6 E7 5E [12:31:01]CommunicateWithHost err = 0 [12:31:01]CheckOFDResponse [12:31:01]1017 (14) - 77093643461234 [12:31:01]1041 (16) - 0000000000875060 [12:31:01]1040 (4) - 49078 [12:31:01]1012 (4) - 29.01.2024 06:32 [12:31:01]1206 (1) - 0 [12:31:01]OFD Sender: Remove packet 49078 [12:31:01]ProducePacketName [12:31:01]name=ofd_packets/00049078 [12:31:01]NVStorageDeleteData [12:31:02]Write to MH i2c: 01 00 00 2C 4F 7B [12:31:02]Write i2c OK [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: 01 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: 01 07 00 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: 01 07 00 2C 4F 00 00 00 00 00 FD 0C 8B [12:31:02]RasterBufferAndPrint [12:31:02]line [12:31:02]line [12:31:02]line [12:31:02]line [12:31:02]line [12:31:02]written 0, free lines is 3331 [12:31:02]MH_Cut [12:31:02]Write to MH i2c: D1 01 00 33 4F 01 54 [12:31:02]Write i2c OK [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: D1 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: D1 01 00 [12:31:02]MH_I2C_Read... [12:31:02]Read from MH i2c: D1 01 00 33 4F 00 53 [12:31:02]Write to MH i2c: 01 00 00 34 4F 83 [12:31:02]Write i2c OK [12:31:02]MH_I2C_Read... [12:31:02]OFD Sender: No OFD packet to send [12:31:02]*** Cut start [12:31:02]*** Partial cut [12:31:02]*** CUTSNS_PIN = 1 [12:31:02]*** CUTSNS_PIN = 0 [12:31:02]*** Brake cut motor [12:31:03]Read from MH i2c: 01 [12:31:03]MH_I2C_Read... [12:31:03]*** Stop cut motor [12:31:03]*** Cut end [12:31:03]Read from MH i2c: 01 07 00 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: 01 07 00 34 4F 00 00 00 00 00 FF 0F 98 [12:31:03]process_action close_receipt done [12:31:03]requested_data is exist [12:31:03]produce_requested_data [12:31:03]requested_item fm.sn is exist - process it [12:31:03]wFMCommunicate request_size=4 [12:31:03]MH_SAM_APDU [12:31:03]CAPDU: 80 11 00 00 [12:31:03]Write to MH i2c: E2 08 00 35 4F 80 11 00 00 00 00 00 00 FE [12:31:03]Write i2c OK [12:31:03]MH_I2C_Read... [12:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:03]Read from MH i2c: E2 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 17 00 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 17 00 35 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4B [12:31: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:31:03]wFMCommunicate OK [12:31:03]requested_item fd.num is exist - process it [12:31:03]SAM_PROTO_GetFieldsCounters [12:31:03]wFMCommunicate request_size=4 [12:31:03]MH_SAM_APDU [12:31:03]CAPDU: 80 13 00 00 [12:31:03]Write to MH i2c: E2 08 00 36 4F 80 13 00 00 00 00 00 00 01 [12:31:03]Write i2c OK [12:31:03]MH_I2C_Read... [12:31:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:03]Read from MH i2c: E2 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 62 00 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 62 00 36 4F 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 BF 00 00 0E 04 04 00 F5 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 3B [12:31: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 B6 BF 00 00 0E 04 04 00 F5 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 [12:31:03]wFMCommunicate OK [12:31:03]SAM_PROTO_GetFieldsCounters done [12:31:03]requested_item shift.num is exist - process it [12:31:03]requested_item shift.opened is exist - process it [12:31:03]req_shift_opened [12:31:03]FM_GetShiftState [12:31:03]SAM_PROTO_GetShiftState [12:31:03]wFMCommunicate request_size=4 [12:31:03]MH_SAM_APDU [12:31:03]CAPDU: 80 13 01 00 [12:31:03]Write to MH i2c: E2 08 00 37 4F 80 13 01 00 00 00 00 00 03 [12:31:03]Write i2c OK [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 [12:31:03]MH_I2C_Read... [12:31:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:03]Read from MH i2c: E2 0E 00 [12:31:03]MH_I2C_Read... [12:31:03]Read from MH i2c: E2 0E 00 37 4F 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 75 [12:31:03]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:31:03]wFMCommunicate OK [12:31:03]SAM_PROTO_GetShiftState done [12:31:03]FM_GetShiftState done [12:31:03]req_shift_opened done [12:31:03]requested_item shift.open_date is exist - process it [12:31:03]req_shift_open_date [12:31:03]req_shift_open_date done [12:31:03]produce_requested_data done [12:31:03]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49078,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [12:31:03]process_action_free close_receipt [12:31:03]json_value_free [12:31:03]json_value_free done [12:31:03]process_json_proto returns [12:31:03]Send response to host [12:31:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49078,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [12:31:03]free response buf [12:31:03]execute_script done [12:31:03]execute_script returns [12:31:03]free content buf [12:31:03]Sock 7.Close socket [12:31:03]Sock 7.Thread stoped [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:30]accept exits with 9 [12:32:30]New connection [12:32:30]New thread 3066813796 created [12:32:30]Thread 3066670436 joined [12:32:30]Waiting for new connection... [12:32:30] Sock 9.Parse request [12:32:30]Sock 9.Check first char [12:32:30]Sock 9.First char is OK [12:32:30]request: POST /json_proto HTTP/1.0 [12:32:30]Method: POST [12:32:30]URL: /json_proto [12:32:30]Method is POST - this is cgi request [12:32:30]url: /json_proto [12:32:30]query_string will be loaded in cgi processing [12:32:30]execute_cgi json_proto POST (null) [12:32:30]execute_cgi path=json_proto method=POST [12:32:30]POST find Content-Length [12:32:30]Host: 172.17.56.67:8080 [12:32:30]Content-Length: 677 [12:32:30]Content-Type: application/json [12:32:30] [12:32:30]POST finish read [12:32:30]Found Content-Length = 677 [12:32:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216179", "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" ] } } [12:32:30]execute_script... [12:32:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216179", "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" ] } } [12:32:30]POST & json_proto [12:32:30]process_json_proto [12:32:30]json parsed OK: [12:32:30]protocol is kg_v1.0 [12:32:30]action value=close_receipt [12:32:30]process_action close_receipt [12:32:30]cmd_close_receipt [12:32:30]MH_GetDate [12:32:30]Write to MH i2c: F0 00 00 38 4F 76 [12:32:30]Write i2c OK [12:32:30]MH_I2C_Read... [12:32:30]Read from MH i2c: F0 [12:32:30]MH_I2C_Read... [12:32:30]Read from MH i2c: F0 09 00 [12:32:30]MH_I2C_Read... [12:32:30]Read from MH i2c: F0 09 00 38 4F 00 EB 9A B7 65 26 5D 9E 65 A6 [12:32:30]GetLastDocTimeStamp 1706531473 [12:32:30]current date 1706531563 [12:32:30]FM_GetShiftState [12:32:30]SAM_PROTO_GetShiftState [12:32:30]wFMCommunicate request_size=4 [12:32:30]MH_SAM_APDU [12:32:30]CAPDU: 80 13 01 00 [12:32:30]Write to MH i2c: E2 08 00 39 4F 80 13 01 00 00 00 00 00 05 [12:32:30]Write i2c OK [12:32:30]MH_I2C_Read... [12:32:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:30]Read from MH i2c: E2 [12:32:30]MH_I2C_Read... [12:32:30]Read from MH i2c: E2 0E 00 [12:32:30]MH_I2C_Read... [12:32:30]Read from MH i2c: E2 0E 00 39 4F 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 77 [12:32:30]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:32:30]wFMCommunicate OK [12:32:30]SAM_PROTO_GetShiftState done [12:32:30]FM_GetShiftState done [12:32:30]opened in 1706486624 [12:32:30]opened+sec_in_day 1706573024 [12:32:30]quantity*price = 20019 [12:32:30]sum+1 = 20021 [12:32:30]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 СÐО: Общий режим Чек 62 29.01.2024 12:32 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49079 ФПД: 250291864812215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T123243&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49079&fm=250291864812215&tin=02508201610067®Number=0000000000092723&sum=20000 [12:32:31]StoreToDocumentArchive [12:32:31]shift 245 fd 49079 [12:32:31]save to /storage/0245/doc_00049079 [12:32:31]save last doc name /storage/0245/doc_00049079 to /storage/kkm_last_doc_name [12:32:31]save OK [12:32:31]Clear old archive folders... [12:32:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:31]tlvbuf is 011EA0B0 [12:32:31]SAM_PROTO_ClearQueue [12:32:31]wFMCommunicate request_size=4 [12:32:31]MH_SAM_APDU [12:32:31]CAPDU: 80 09 00 00 [12:32:31]Write to MH i2c: E2 08 00 46 4F 80 09 00 00 00 00 00 00 07 [12:32:31]Write i2c OK [12:32:31]MH_I2C_Read... [12:32:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:31]Read from MH i2c: E2 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 03 00 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 03 00 46 4F 00 90 00 09 [12:32:31]RAPDU: 90 00 [12:32:31]wFMCommunicate OK [12:32:31]SAM_PROTO_ClearQueue done [12:32:31]KKMCreateOFDPacket [12:32:31]OFDProtocolAddRootSTLVToBuf [12:32:31]FM_MakeSignedData [12:32:31]FM_MakeSignedData [12:32:31]SAM_PROTO_SignData [12:32:31]wFMCommunicate request_size=4 [12:32:31]MH_SAM_APDU [12:32:31]CAPDU: 80 0D 01 02 [12:32:31]Write to MH i2c: E2 08 00 47 4F 80 0D 01 02 00 00 00 00 0F [12:32:31]Write i2c OK [12:32:31]MH_I2C_Read... [12:32:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:31]Read from MH i2c: E2 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 03 00 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 03 00 47 4F 00 90 00 0A [12:32:31]RAPDU: 90 00 [12:32:31]wFMCommunicate OK [12:32:31]wFMCommunicate request_size=255 [12:32:31]MH_SAM_APDU [12:32: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 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 3E 00 00 00 F4 03 04 00 EB 9A B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E3 [12:32:31]Write to MH i2c: E2 02 01 48 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3E 00 00 00 F4 03 04 00 EB 9A B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E3 00 00 4C [12:32:31]Write i2c OK [12:32:31]MH_I2C_Read... [12:32:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:31]Read from MH i2c: E2 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 03 00 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 03 00 48 4F 00 90 00 0B [12:32:31]RAPDU: 90 00 [12:32:31]wFMCommunicate OK [12:32:31]wFMCommunicate request_size=10 [12:32:31]MH_SAM_APDU [12:32:31]CAPDU: 80 0D 02 02 05 A3 9D B1 3A B7 [12:32:31]Write to MH i2c: E2 0D 00 49 4F 80 0D 02 02 05 00 A3 9D B1 3A B7 00 00 FE [12:32:31]Write i2c OK [12:32:31]MH_I2C_Read... [12:32:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:31]Read from MH i2c: E2 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 03 00 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 03 00 49 4F 00 90 00 0C [12:32:31]RAPDU: 90 00 [12:32:31]wFMCommunicate OK [12:32:31]wFMCommunicate request_size=4 [12:32:31]MH_SAM_APDU [12:32:31]CAPDU: 80 0D 03 02 [12:32:31]Write to MH i2c: E2 08 00 4A 4F 80 0D 03 02 00 00 00 00 14 [12:32:31]Write i2c OK [12:32:31]MH_I2C_Read... [12:32:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:31]Read from MH i2c: E2 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 0B 00 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 0B 00 4A 4F 00 9E 42 71 90 26 54 EA B7 90 00 11 [12:32:31]RAPDU: 9E 42 71 90 26 54 EA B7 90 00 [12:32:31]wFMCommunicate OK [12:32:31]SAM_PROTO_SignData done [12:32:31]FM_MakeSignedData done [12:32:31]CreateOFDProtocolMessage [12:32:31]wFMCommunicate request_size=4 [12:32:31]MH_SAM_APDU [12:32:31]CAPDU: 80 11 00 00 [12:32:31]Write to MH i2c: E2 08 00 4B 4F 80 11 00 00 00 00 00 00 14 [12:32:31]Write i2c OK [12:32:31]MH_I2C_Read... [12:32:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:31]Read from MH i2c: E2 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 17 00 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: E2 17 00 4B 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 61 [12:32: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:32:31]wFMCommunicate OK [12:32:31]CreateOFDProtocolMessage done [12:32:31]OFDSenderStorePacket 49079 [12:32:31]StoreOFDPacket docnum=49079 [12:32: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 7B 3A 07 01 5C 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 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 3E 00 00 00 F4 03 04 00 EB 9A B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E3 A3 9D B1 3A B7 9E 42 71 90 26 54 EA B7 [12:32:31]CheckFolder [12:32:31]dirname=/storage/ofd_packets [12:32:31]CheckFolder done [12:32:31]ProducePacketName [12:32:31]name=ofd_packets/00049079 [12:32:31]NVStorageSaveData ofd_packets/00049079 [12:32:31]File name is /storage/ofd_packets/00049079 [12:32:31]Write 301 bytes [12:32:31]NVStorageSaveData done [12:32:31]OFDSenderStorePacket done [12:32:31]KKMCreateOFDPacket done [12:32:31]NVStorageSaveData kkm_last_timestamp [12:32:31]File name is /storage/kkm_last_timestamp [12:32:31]Write 4 bytes [12:32:31]NVStorageSaveData done [12:32:31]ExternCall_PrintAddStr [12:32:31]wPrintStart [12:32:31]Write to MH i2c: 01 00 00 4C 4F 9B [12:32:31]Write i2c OK [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: 01 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: 01 07 00 [12:32:31]MH_I2C_Read... [12:32:31]Read from MH i2c: 01 07 00 4C 4F 00 00 00 00 00 FF 0F B0 [12:32:31]RasterBufferAndPrint [12:32:31]line Счет N : (1)216179 [12:32:31]line ИÐÐ: 02508201610067 [12:32:31]line Контрольно-КаÑÑовый Чек [12:32:31]line ПРОДÐЖР[12:32:31]line ТРК (МРК, ГÐК) : 22 [12:32:31]line Товар: 2710124130 [12:32:31]line Ðи-92-К-5 [12:32:31]line 3.320 * 60.30 [12:32:31]line = 200.20 [12:32:31]line ÐДС 12% ÐСП 1% [12:32:31]line > о реализуемом товаре [12:32:31]line ОКРУГЛЕÐИЕ: -0.20 [12:32:31]line ИТОГО: 200.00 [12:32:31]line ВнеÑено: 200.00 [12:32:31]line СДÐЧÐ: 0.00 [12:32:31]line ÐСП 1% : 1.77 [12:32:31]line ÐДС 12% : 21.26 [12:32:31]line Ðаличными: 200.00 [12:32:31]line Безнал.: 0.00 [12:32:31]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [12:32:31]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:32:31]line СÐО: Общий режим [12:32:31]line Чек 62 29.01.2024 12:32 [12:32:31]line Смена: 245 ФФД: 1.0 [12:32:31]line ЗÐМ: 0300000040 [12:32:31]line РÐМ: 0000000000092723 [12:32:31]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:32:31]line ФМ: 0000000000875060 [12:32:31]line ФД: 49079 [12:32:31]line ФПД: 250291864812215 [12:32:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T123243&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49079&fm=250291864812215&tin=02508201610067®Number=0000000000092723&sum=20000 [12:32:32]OFD Sender: Processing packet 49079 [packets to send 12, broken 11] [12:32:32]ProducePacketName [12:32:32]name=ofd_packets/00049079 [12:32:32]OFD Sender: To server: ‡•öpG, [12:32:32]CommunicateWithHost lk.salyk.kg:30040 [12:32:32]ConnectInit lk.salyk.kg [12:32:32]written 0, free lines is 4095 [12:32:32]Connected sock=10 [12:32: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 7B 3A 07 01 5C 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 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 3E 00 00 00 F4 03 04 00 EB 9A B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E3 A3 9D B1 3A B7 9E 42 71 90 26 54 EA B7 [12:32: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 99 56 47 00 B4 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B7 BF 00 00 F4 03 04 00 E4 46 B7 65 B6 04 01 00 00 AA 03 6E 71 D8 CA E8 7B [12:32:32]CommunicateWithHost err = 0 [12:32:32]CheckOFDResponse [12:32:32]1017 (14) - 77093643461234 [12:32:32]1041 (16) - 0000000000875060 [12:32:32]1040 (4) - 49079 [12:32:32]1012 (4) - 29.01.2024 06:34 [12:32:32]1206 (1) - 0 [12:32:32]OFD Sender: Remove packet 49079 [12:32:32]ProducePacketName [12:32:32]name=ofd_packets/00049079 [12:32:32]NVStorageDeleteData [12:32:32]Write to MH i2c: 01 00 00 77 4F C6 [12:32:32]Write i2c OK [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: 01 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: 01 07 00 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: 01 07 00 77 4F 00 00 00 00 00 01 0D DB [12:32:32]RasterBufferAndPrint [12:32:32]line [12:32:32]line [12:32:32]line [12:32:32]line [12:32:32]line [12:32:32]written 0, free lines is 3335 [12:32:32]MH_Cut [12:32:32]Write to MH i2c: D1 01 00 7E 4F 01 9F [12:32:32]Write i2c OK [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: D1 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: D1 01 00 [12:32:32]MH_I2C_Read... [12:32:32]Read from MH i2c: D1 01 00 7E 4F 00 9E [12:32:32]Write to MH i2c: 01 00 00 7F 4F CE [12:32:32]Write i2c OK [12:32:32]MH_I2C_Read... [12:32:32]OFD Sender: No OFD packet to send [12:32:33]*** Cut start [12:32:33]*** Partial cut [12:32:33]*** CUTSNS_PIN = 1 [12:32:33]*** CUTSNS_PIN = 0 [12:32:33]*** Brake cut motor [12:32:33]Read from MH i2c: 01 [12:32:33]MH_I2C_Read... [12:32:33]*** Stop cut motor [12:32:33]*** Cut end [12:32:33]Read from MH i2c: 01 07 00 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: 01 07 00 7F 4F 00 00 00 00 00 FF 0F E3 [12:32:33]process_action close_receipt done [12:32:33]requested_data is exist [12:32:33]produce_requested_data [12:32:33]requested_item fm.sn is exist - process it [12:32:33]wFMCommunicate request_size=4 [12:32:33]MH_SAM_APDU [12:32:33]CAPDU: 80 11 00 00 [12:32:33]Write to MH i2c: E2 08 00 80 4F 80 11 00 00 00 00 00 00 49 [12:32:33]Write i2c OK [12:32:33]MH_I2C_Read... [12:32:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:33]Read from MH i2c: E2 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 17 00 [12:32:33]MH_I2C_Read... [12:32:33]Read from MH i2c: E2 17 00 80 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 96 [12:32:33]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:33]wFMCommunicate OK [12:32:33]requested_item fd.num is exist - process it [12:32:33]SAM_PROTO_GetFieldsCounters [12:32:33]wFMCommunicate request_size=4 [12:32:33]MH_SAM_APDU [12:32:33]CAPDU: 80 13 00 00 [12:32:33]Write to MH i2c: E2 08 00 81 4F 80 13 00 00 00 00 00 00 4C [12:32:33]Write i2c OK [12:32:33]MH_I2C_Read... [12:32:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:34]Read from MH i2c: E2 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: E2 62 00 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: E2 62 00 81 4F 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 BF 00 00 0E 04 04 00 F5 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 [12:32:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 [12:32:34]wFMCommunicate OK [12:32:34]SAM_PROTO_GetFieldsCounters done [12:32:34]requested_item shift.num is exist - process it [12:32:34]requested_item shift.opened is exist - process it [12:32:34]req_shift_opened [12:32:34]FM_GetShiftState [12:32:34]SAM_PROTO_GetShiftState [12:32:34]wFMCommunicate request_size=4 [12:32:34]MH_SAM_APDU [12:32:34]CAPDU: 80 13 01 00 [12:32:34]Write to MH i2c: E2 08 00 82 4F 80 13 01 00 00 00 00 00 4E [12:32:34]Write i2c OK [12:32:34]MH_I2C_Read... [12:32:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:34]Read from MH i2c: E2 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: E2 0E 00 [12:32:34]MH_I2C_Read... [12:32:34]Read from MH i2c: E2 0E 00 82 4F 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 C0 [12:32:34]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:32:34]wFMCommunicate OK [12:32:34]SAM_PROTO_GetShiftState done [12:32:34]FM_GetShiftState done [12:32:34]req_shift_opened done [12:32:34]requested_item shift.open_date is exist - process it [12:32:34]req_shift_open_date [12:32:34]req_shift_open_date done [12:32:34]produce_requested_data done [12:32:34]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49079,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [12:32:34]process_action_free close_receipt [12:32:34]json_value_free [12:32:34]json_value_free done [12:32:34]process_json_proto returns [12:32:34]Send response to host [12:32:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49079,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [12:32:34]free response buf [12:32:34]execute_script done [12:32:34]execute_script returns [12:32:34]free content buf [12:32:34]Sock 9.Close socket [12:32:34]Sock 9.Thread stoped [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:37:58]OFD Sender: No OFD packet to send [12:38:03]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:43]OFD Sender: No OFD packet to send [12:38:48]OFD Sender: No OFD packet to send [12:38:53]OFD Sender: No OFD packet to send [12:38:58]OFD Sender: No OFD packet to send [12:39:03]OFD Sender: No OFD packet to send [12:39:08]OFD Sender: No OFD packet to send [12:39:13]OFD Sender: No OFD packet to send [12:39:18]OFD Sender: No OFD packet to send [12:39:23]OFD Sender: No OFD packet to send [12:39:28]OFD Sender: No OFD packet to send [12:39:33]OFD Sender: No OFD packet to send [12:39:38]OFD Sender: No OFD packet to send [12:39:43]OFD Sender: No OFD packet to send [12:39:48]OFD Sender: No OFD packet to send [12:39:53]OFD Sender: No OFD packet to send [12:39:58]OFD Sender: No OFD packet to send [12:40:03]OFD Sender: No OFD packet to send [12:40:08]OFD Sender: No OFD packet to send [12:40:13]OFD Sender: No OFD packet to send [12:40:18]OFD Sender: No OFD packet to send [12:40:23]OFD Sender: No OFD packet to send [12:40:28]OFD Sender: No OFD packet to send [12:40:33]OFD Sender: No OFD packet to send [12:40:38]OFD Sender: No OFD packet to send [12:40:43]OFD Sender: No OFD packet to send [12:40:48]OFD Sender: No OFD packet to send [12:40:53]OFD Sender: No OFD packet to send [12:40:58]OFD Sender: No OFD packet to send [12:41:03]OFD Sender: No OFD packet to send [12:41:08]OFD Sender: No OFD packet to send [12:41:13]OFD Sender: No OFD packet to send [12:41:18]OFD Sender: No OFD packet to send [12:41:23]OFD Sender: No OFD packet to send [12:41:28]OFD Sender: No OFD packet to send [12:41:33]OFD Sender: No OFD packet to send [12:41:38]OFD Sender: No OFD packet to send [12:41:43]OFD Sender: No OFD packet to send [12:41:48]OFD Sender: No OFD packet to send [12:41:53]OFD Sender: No OFD packet to send [12:41:58]OFD Sender: No OFD packet to send [12:42:03]OFD Sender: No OFD packet to send [12:42:08]OFD Sender: No OFD packet to send [12:42:13]OFD Sender: No OFD packet to send [12:42:18]OFD Sender: No OFD packet to send [12:42:23]OFD Sender: No OFD packet to send [12:42:28]OFD Sender: No OFD packet to send [12:42:33]OFD Sender: No OFD packet to send [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:41]accept exits with 7 [12:53:41]New connection [12:53:41]New thread 3066670436 created [12:53:41]Thread 3066813796 joined [12:53:41]Waiting for new connection... [12:53:41] Sock 7.Parse request [12:53:41]Sock 7.Check first char [12:53:41]Sock 7.First char is OK [12:53:41]request: POST /json_proto HTTP/1.0 [12:53:41]Method: POST [12:53:41]URL: /json_proto [12:53:41]Method is POST - this is cgi request [12:53:41]url: /json_proto [12:53:41]query_string will be loaded in cgi processing [12:53:41]execute_cgi json_proto POST (null) [12:53:41]execute_cgi path=json_proto method=POST [12:53:41]POST find Content-Length [12:53:41]Host: 172.17.56.67:8080 [12:53:41]Content-Length: 677 [12:53:41]Content-Type: application/json [12:53:41] [12:53:41]POST finish read [12:53:41]Found Content-Length = 677 [12:53:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216180", "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" ] } } [12:53:41]execute_script... [12:53: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)216180", "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" ] } } [12:53:41]POST & json_proto [12:53:41]process_json_proto [12:53:41]json parsed OK: [12:53:41]protocol is kg_v1.0 [12:53:41]action value=close_receipt [12:53:41]process_action close_receipt [12:53:41]cmd_close_receipt [12:53:41]MH_GetDate [12:53:41]Write to MH i2c: F0 00 00 83 4F C1 [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: F0 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: F0 09 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: F0 09 00 83 4F 00 E3 9F B7 65 26 5D 9E 65 EE [12:53:41]GetLastDocTimeStamp 1706531563 [12:53:41]current date 1706532835 [12:53:41]FM_GetShiftState [12:53:41]SAM_PROTO_GetShiftState [12:53:41]wFMCommunicate request_size=4 [12:53:41]MH_SAM_APDU [12:53:41]CAPDU: 80 13 01 00 [12:53:41]Write to MH i2c: E2 08 00 84 4F 80 13 01 00 00 00 00 00 50 [12:53:41]Write i2c OK [12:53:41]MH_I2C_Read... [12:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:41]Read from MH i2c: E2 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 0E 00 [12:53:41]MH_I2C_Read... [12:53:41]Read from MH i2c: E2 0E 00 84 4F 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 C2 [12:53:41]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:53:41]wFMCommunicate OK [12:53:41]SAM_PROTO_GetShiftState done [12:53:41]FM_GetShiftState done [12:53:41]opened in 1706486624 [12:53:41]opened+sec_in_day 1706573024 [12:53:41]quantity*price = 20019 [12:53:41]sum+1 = 20021 [12:53:41]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 СÐО: Общий режим Чек 63 29.01.2024 12:53 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49080 ФПД: 95797258724724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T125355&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49080&fm=95797258724724&tin=02508201610067®Number=0000000000092723&sum=20000 [12:53:42]StoreToDocumentArchive [12:53:42]shift 245 fd 49080 [12:53:42]save to /storage/0245/doc_00049080 [12:53:42]save last doc name /storage/0245/doc_00049080 to /storage/kkm_last_doc_name [12:53:42]save OK [12:53:42]Clear old archive folders... [12:53:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:42]tlvbuf is 011FACB0 [12:53:42]SAM_PROTO_ClearQueue [12:53:42]wFMCommunicate request_size=4 [12:53:42]MH_SAM_APDU [12:53:42]CAPDU: 80 09 00 00 [12:53:42]Write to MH i2c: E2 08 00 91 4F 80 09 00 00 00 00 00 00 52 [12:53:42]Write i2c OK [12:53:42]MH_I2C_Read... [12:53:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:42]Read from MH i2c: E2 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: E2 03 00 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: E2 03 00 91 4F 00 90 00 54 [12:53:42]RAPDU: 90 00 [12:53:42]wFMCommunicate OK [12:53:42]SAM_PROTO_ClearQueue done [12:53:42]KKMCreateOFDPacket [12:53:42]OFDProtocolAddRootSTLVToBuf [12:53:42]FM_MakeSignedData [12:53:42]FM_MakeSignedData [12:53:42]SAM_PROTO_SignData [12:53:42]wFMCommunicate request_size=4 [12:53:42]MH_SAM_APDU [12:53:42]CAPDU: 80 0D 01 02 [12:53:42]Write to MH i2c: E2 08 00 92 4F 80 0D 01 02 00 00 00 00 5A [12:53:42]Write i2c OK [12:53:42]MH_I2C_Read... [12:53:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:42]Read from MH i2c: E2 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: E2 03 00 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: E2 03 00 92 4F 00 90 00 55 [12:53:42]RAPDU: 90 00 [12:53:42]wFMCommunicate OK [12:53:42]wFMCommunicate request_size=255 [12:53:42]MH_SAM_APDU [12:53: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 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 3F 00 00 00 F4 03 04 00 E3 9F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 57 [12:53:42]Write to MH i2c: E2 02 01 93 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3F 00 00 00 F4 03 04 00 E3 9F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 57 00 00 0A [12:53:42]Write i2c OK [12:53:42]MH_I2C_Read... [12:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:42]Read from MH i2c: E2 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: E2 03 00 [12:53:42]MH_I2C_Read... [12:53:42]Read from MH i2c: E2 03 00 93 4F 00 90 00 56 [12:53:42]RAPDU: 90 00 [12:53:42]wFMCommunicate OK [12:53:42]wFMCommunicate request_size=10 [12:53:42]MH_SAM_APDU [12:53:42]CAPDU: 80 0D 02 02 05 20 89 93 A5 74 [12:53:42]Write to MH i2c: E2 0D 00 94 4F 80 0D 02 02 05 00 20 89 93 A5 74 00 00 BC [12:53:42]Write i2c OK [12:53:42]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 03 00 94 4F 00 90 00 57 [12:53:43]RAPDU: 90 00 [12:53:43]wFMCommunicate OK [12:53:43]wFMCommunicate request_size=4 [12:53:43]MH_SAM_APDU [12:53:43]CAPDU: 80 0D 03 02 [12:53:43]Write to MH i2c: E2 08 00 95 4F 80 0D 03 02 00 00 00 00 5F [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 0B 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 0B 00 95 4F 00 6B 15 D9 A1 68 E3 29 89 90 00 57 [12:53:43]RAPDU: 6B 15 D9 A1 68 E3 29 89 90 00 [12:53:43]wFMCommunicate OK [12:53:43]SAM_PROTO_SignData done [12:53:43]FM_MakeSignedData done [12:53:43]CreateOFDProtocolMessage [12:53:43]wFMCommunicate request_size=4 [12:53:43]MH_SAM_APDU [12:53:43]CAPDU: 80 11 00 00 [12:53:43]Write to MH i2c: E2 08 00 96 4F 80 11 00 00 00 00 00 00 5F [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:43]Read from MH i2c: E2 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 17 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: E2 17 00 96 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AC [12:53:43]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:43]wFMCommunicate OK [12:53:43]CreateOFDProtocolMessage done [12:53:43]OFDSenderStorePacket 49080 [12:53:43]StoreOFDPacket docnum=49080 [12:53: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 50 06 07 01 32 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3F 00 00 00 F4 03 04 00 E3 9F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 57 20 89 93 A5 74 6B 15 D9 A1 68 E3 29 89 [12:53:43]CheckFolder [12:53:43]dirname=/storage/ofd_packets [12:53:43]CheckFolder done [12:53:43]ProducePacketName [12:53:43]name=ofd_packets/00049080 [12:53:43]NVStorageSaveData ofd_packets/00049080 [12:53:43]File name is /storage/ofd_packets/00049080 [12:53:43]Write 301 bytes [12:53:43]NVStorageSaveData done [12:53:43]OFDSenderStorePacket done [12:53:43]KKMCreateOFDPacket done [12:53:43]NVStorageSaveData kkm_last_timestamp [12:53:43]File name is /storage/kkm_last_timestamp [12:53:43]Write 4 bytes [12:53:43]NVStorageSaveData done [12:53:43]ExternCall_PrintAddStr [12:53:43]wPrintStart [12:53:43]Write to MH i2c: 01 00 00 97 4F E6 [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: 01 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: 01 07 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: 01 07 00 97 4F 00 00 00 00 00 FF 0F FB [12:53:43]RasterBufferAndPrint [12:53:43]line Счет N : (1)216180 [12:53:43]line ИÐÐ: 02508201610067 [12:53:43]line Контрольно-КаÑÑовый Чек [12:53:43]line ПРОДÐЖР[12:53:43]line ТРК (МРК, ГÐК) : 22 [12:53:43]line Товар: 2710124130 [12:53:43]line Ðи-92-К-5 [12:53:43]line 3.320 * 60.30 [12:53:43]line = 200.20 [12:53:43]line ÐДС 12% ÐСП 1% [12:53:43]line > о реализуемом товаре [12:53:43]line ОКРУГЛЕÐИЕ: -0.20 [12:53:43]line ИТОГО: 200.00 [12:53:43]line ВнеÑено: 200.00 [12:53:43]line СДÐЧÐ: 0.00 [12:53:43]line ÐСП 1% : 1.77 [12:53:43]line ÐДС 12% : 21.26 [12:53:43]line Ðаличными: 200.00 [12:53:43]line Безнал.: 0.00 [12:53:43]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [12:53:43]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [12:53:43]line СÐО: Общий режим [12:53:43]line Чек 63 29.01.2024 12:53 [12:53:43]line Смена: 245 ФФД: 1.0 [12:53:43]line ЗÐМ: 0300000040 [12:53:43]line РÐМ: 0000000000092723 [12:53:43]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [12:53:43]line ФМ: 0000000000875060 [12:53:43]line ФД: 49080 [12:53:43]line ФПД: 95797258724724 [12:53:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T125355&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49080&fm=95797258724724&tin=02508201610067®Number=0000000000092723&sum=20000 [12:53:43]OFD Sender: Processing packet 49080 [packets to send 12, broken 11] [12:53:43]ProducePacketName [12:53:43]name=ofd_packets/00049080 [12:53:43]OFD Sender: To server: ‡•öpG, [12:53:43]CommunicateWithHost lk.salyk.kg:30040 [12:53:43]ConnectInit lk.salyk.kg [12:53:43]written 0, free lines is 4095 [12:53:43]Connected sock=10 [12:53: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 50 06 07 01 32 1E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3F 00 00 00 F4 03 04 00 E3 9F B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 57 20 89 93 A5 74 6B 15 D9 A1 68 E3 29 89 [12:53:43]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 CE 47 00 47 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 B8 BF 00 00 F4 03 04 00 DB 4B B7 65 B6 04 01 00 00 52 70 97 B9 CA 1F 11 ED [12:53:43]CommunicateWithHost err = 0 [12:53:43]CheckOFDResponse [12:53:43]1017 (14) - 77093643461234 [12:53:43]1041 (16) - 0000000000875060 [12:53:43]1040 (4) - 49080 [12:53:43]1012 (4) - 29.01.2024 06:55 [12:53:43]1206 (1) - 0 [12:53:43]OFD Sender: Remove packet 49080 [12:53:43]ProducePacketName [12:53:43]name=ofd_packets/00049080 [12:53:43]NVStorageDeleteData [12:53:43]Write to MH i2c: 01 00 00 C2 4F 11 [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: 01 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: 01 07 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: 01 07 00 C2 4F 00 00 00 00 00 F1 0C 15 [12:53:43]RasterBufferAndPrint [12:53:43]line [12:53:43]line [12:53:43]line [12:53:43]line [12:53:43]line [12:53:43]written 0, free lines is 3319 [12:53:43]MH_Cut [12:53:43]Write to MH i2c: D1 01 00 C9 4F 01 EA [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: D1 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: D1 01 00 [12:53:43]MH_I2C_Read... [12:53:43]Read from MH i2c: D1 01 00 C9 4F 00 E9 [12:53:43]Write to MH i2c: 01 00 00 CA 4F 19 [12:53:43]Write i2c OK [12:53:43]MH_I2C_Read... [12:53:44]OFD Sender: No OFD packet to send [12:53:44]*** Cut start [12:53:44]*** Partial cut [12:53:44]*** CUTSNS_PIN = 1 [12:53:44]*** CUTSNS_PIN = 0 [12:53:44]*** Brake cut motor [12:53:45]Read from MH i2c: 01 [12:53:45]MH_I2C_Read... [12:53:45]*** Stop cut motor [12:53:45]*** Cut end [12:53:45]Read from MH i2c: 01 07 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: 01 07 00 CA 4F 00 00 00 00 00 FF 0F 2E [12:53:45]process_action close_receipt done [12:53:45]requested_data is exist [12:53:45]produce_requested_data [12:53:45]requested_item fm.sn is exist - process it [12:53:45]wFMCommunicate request_size=4 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 11 00 00 [12:53:45]Write to MH i2c: E2 08 00 CB 4F 80 11 00 00 00 00 00 00 94 [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:45]Read from MH i2c: E2 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 17 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 17 00 CB 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E1 [12:53:45]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:45]wFMCommunicate OK [12:53:45]requested_item fd.num is exist - process it [12:53:45]SAM_PROTO_GetFieldsCounters [12:53:45]wFMCommunicate request_size=4 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 13 00 00 [12:53:45]Write to MH i2c: E2 08 00 CC 4F 80 13 00 00 00 00 00 00 97 [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:45]Read from MH i2c: E2 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 62 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 62 00 CC 4F 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 BF 00 00 0E 04 04 00 F5 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 [12:53: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 B8 BF 00 00 0E 04 04 00 F5 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 [12:53:45]wFMCommunicate OK [12:53:45]SAM_PROTO_GetFieldsCounters done [12:53:45]requested_item shift.num is exist - process it [12:53:45]requested_item shift.opened is exist - process it [12:53:45]req_shift_opened [12:53:45]FM_GetShiftState [12:53:45]SAM_PROTO_GetShiftState [12:53:45]wFMCommunicate request_size=4 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 13 01 00 [12:53:45]Write to MH i2c: E2 08 00 CD 4F 80 13 01 00 00 00 00 00 99 [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:45]Read from MH i2c: E2 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 0E 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 0E 00 CD 4F 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 0B [12:53:45]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [12:53:45]wFMCommunicate OK [12:53:45]SAM_PROTO_GetShiftState done [12:53:45]FM_GetShiftState done [12:53:45]req_shift_opened done [12:53:45]requested_item shift.open_date is exist - process it [12:53:45]req_shift_open_date [12:53:45]req_shift_open_date done [12:53:45]produce_requested_data done [12:53:45]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49080,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [12:53:45]process_action_free close_receipt [12:53:45]json_value_free [12:53:45]json_value_free done [12:53:45]process_json_proto returns [12:53:45]Send response to host [12:53:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49080,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [12:53:45]free response buf [12:53:45]execute_script done [12:53:45]execute_script returns [12:53:45]free content buf [12:53:45]Sock 7.Close socket [12:53:45]Sock 7.Thread stoped [12:53:49]OFD Sender: No OFD packet to send [12:53:54]OFD Sender: No OFD packet to send [12:53:59]OFD Sender: No OFD packet to send [12:54:04]OFD Sender: No OFD packet to send [12:54:09]OFD Sender: No OFD packet to send [12:54:14]OFD Sender: No OFD packet to send [12:54:19]OFD Sender: No OFD packet to send [12:54:24]OFD Sender: No OFD packet to send [12:54:29]OFD Sender: No OFD packet to send [12:54:34]OFD Sender: No OFD packet to send [12:54:39]OFD Sender: No OFD packet to send [12:54:44]OFD Sender: No OFD packet to send [12:54:49]OFD Sender: No OFD packet to send [12:54:54]OFD Sender: No OFD packet to send [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:44]OFD Sender: No OFD packet to send [12:55:49]OFD Sender: No OFD packet to send [12:55:54]OFD Sender: No OFD packet to send [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:04]OFD Sender: No OFD packet to send [13:00:09]OFD Sender: No OFD packet to send [13:00:14]OFD Sender: No OFD packet to send [13:00:19]OFD Sender: No OFD packet to send [13:00:24]OFD Sender: No OFD packet to send [13:00:29]OFD Sender: No OFD packet to send [13:00:34]OFD Sender: No OFD packet to send [13:00:39]OFD Sender: No OFD packet to send [13:00:44]OFD Sender: No OFD packet to send [13:00:49]OFD Sender: No OFD packet to send [13:00:54]OFD Sender: No OFD packet to send [13:00:59]OFD Sender: No OFD packet to send [13:01:04]OFD Sender: No OFD packet to send [13:01:09]OFD Sender: No OFD packet to send [13:01:14]OFD Sender: No OFD packet to send [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:31]accept exits with 9 [13:03:31]New connection [13:03:31]New thread 3066813796 created [13:03:31]Thread 3066670436 joined [13:03:31]Waiting for new connection... [13:03:31] Sock 9.Parse request [13:03:31]Sock 9.Check first char [13:03:31]Sock 9.First char is OK [13:03:31]request: POST /json_proto HTTP/1.0 [13:03:31]Method: POST [13:03:31]URL: /json_proto [13:03:31]Method is POST - this is cgi request [13:03:31]url: /json_proto [13:03:31]query_string will be loaded in cgi processing [13:03:31]execute_cgi json_proto POST (null) [13:03:31]execute_cgi path=json_proto method=POST [13:03:31]POST find Content-Length [13:03:31]Host: 172.17.56.67:8080 [13:03:31]Content-Length: 677 [13:03:31]Content-Type: application/json [13:03:31] [13:03:31]POST finish read [13:03:31]Found Content-Length = 677 [13:03:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216181", "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.990, "sum" : 361.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 361.00, "total" : 361.00, "payments": [ { "type": 0, "sum" : 361.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:31]execute_script... [13:03: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)216181", "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.990, "sum" : 361.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 361.00, "total" : 361.00, "payments": [ { "type": 0, "sum" : 361.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:31]POST & json_proto [13:03:31]process_json_proto [13:03:31]json parsed OK: [13:03:31]protocol is kg_v1.0 [13:03:31]action value=close_receipt [13:03:31]process_action close_receipt [13:03:31]cmd_close_receipt [13:03:31]MH_GetDate [13:03:31]Write to MH i2c: F0 00 00 CE 4F 0C [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: F0 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: F0 09 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: F0 09 00 CE 4F 00 31 A2 B7 65 26 5D 9E 65 8A [13:03:31]GetLastDocTimeStamp 1706532835 [13:03:31]current date 1706533425 [13:03:31]FM_GetShiftState [13:03:31]SAM_PROTO_GetShiftState [13:03:31]wFMCommunicate request_size=4 [13:03:31]MH_SAM_APDU [13:03:31]CAPDU: 80 13 01 00 [13:03:31]Write to MH i2c: E2 08 00 CF 4F 80 13 01 00 00 00 00 00 9B [13:03:31]Write i2c OK [13:03:31]MH_I2C_Read... [13:03:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:31]Read from MH i2c: E2 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 0E 00 [13:03:31]MH_I2C_Read... [13:03:31]Read from MH i2c: E2 0E 00 CF 4F 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 0D [13:03:31]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [13:03:31]wFMCommunicate OK [13:03:31]SAM_PROTO_GetShiftState done [13:03:31]FM_GetShiftState done [13:03:31]opened in 1706486624 [13:03:31]opened+sec_in_day 1706573024 [13:03:31]quantity*price = 36119 [13:03:31]sum+1 = 36121 [13:03:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.20 ИТОГО: 361.00 ВнеÑено: 361.00 СДÐЧÐ: 0.00 ÐСП 1% : 3.20 ÐДС 12% : 38.36 Ðаличными: 361.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 64 29.01.2024 13:03 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49081 ФПД: 174706739238414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T130345&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49081&fm=174706739238414&tin=02508201610067®Number=0000000000092723&sum=36100 [13:03:32]StoreToDocumentArchive [13:03:32]shift 245 fd 49081 [13:03:32]save to /storage/0245/doc_00049081 [13:03:32]save last doc name /storage/0245/doc_00049081 to /storage/kkm_last_doc_name [13:03:32]save OK [13:03:32]Clear old archive folders... [13:03:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:32]tlvbuf is 012446E0 [13:03:32]SAM_PROTO_ClearQueue [13:03:32]wFMCommunicate request_size=4 [13:03:32]MH_SAM_APDU [13:03:32]CAPDU: 80 09 00 00 [13:03:32]Write to MH i2c: E2 08 00 DC 4F 80 09 00 00 00 00 00 00 9D [13:03:32]Write i2c OK [13:03:32]MH_I2C_Read... [13:03:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:32]Read from MH i2c: E2 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: E2 03 00 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: E2 03 00 DC 4F 00 90 00 9F [13:03:32]RAPDU: 90 00 [13:03:32]wFMCommunicate OK [13:03:32]SAM_PROTO_ClearQueue done [13:03:32]KKMCreateOFDPacket [13:03:32]OFDProtocolAddRootSTLVToBuf [13:03:32]FM_MakeSignedData [13:03:32]FM_MakeSignedData [13:03:32]SAM_PROTO_SignData [13:03:32]wFMCommunicate request_size=4 [13:03:32]MH_SAM_APDU [13:03:32]CAPDU: 80 0D 01 02 [13:03:32]Write to MH i2c: E2 08 00 DD 4F 80 0D 01 02 00 00 00 00 A5 [13:03:32]Write i2c OK [13:03:32]MH_I2C_Read... [13:03:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:32]Read from MH i2c: E2 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: E2 03 00 [13:03:32]MH_I2C_Read... [13:03:32]Read from MH i2c: E2 03 00 DD 4F 00 90 00 A0 [13:03:32]RAPDU: 90 00 [13:03:32]wFMCommunicate OK [13:03:32]wFMCommunicate request_size=255 [13:03:32]MH_SAM_APDU [13:03: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 66 17 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 18 8D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 0E 00 00 00 00 07 04 06 00 04 8D 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 31 A2 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 9E [13:03:32]Write to MH i2c: E2 02 01 DE 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 18 8D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 0E 00 00 00 00 07 04 06 00 04 8D 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 31 A2 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 9E 00 00 15 [13:03:32]Write i2c OK [13:03:32]MH_I2C_Read... [13:03:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:33]Read from MH i2c: E2 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 03 00 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 03 00 DE 4F 00 90 00 A1 [13:03:33]RAPDU: 90 00 [13:03:33]wFMCommunicate OK [13:03:33]wFMCommunicate request_size=10 [13:03:33]MH_SAM_APDU [13:03:33]CAPDU: 80 0D 02 02 05 E5 15 21 D6 0E [13:03:33]Write to MH i2c: E2 0D 00 DF 4F 80 0D 02 02 05 00 E5 15 21 D6 0E 00 00 B1 [13:03:33]Write i2c OK [13:03:33]MH_I2C_Read... [13:03:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:33]Read from MH i2c: E2 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 03 00 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 03 00 DF 4F 00 90 00 A2 [13:03:33]RAPDU: 90 00 [13:03:33]wFMCommunicate OK [13:03:33]wFMCommunicate request_size=4 [13:03:33]MH_SAM_APDU [13:03:33]CAPDU: 80 0D 03 02 [13:03:33]Write to MH i2c: E2 08 00 E0 4F 80 0D 03 02 00 00 00 00 AA [13:03:33]Write i2c OK [13:03:33]MH_I2C_Read... [13:03:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:33]Read from MH i2c: E2 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 0B 00 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 0B 00 E0 4F 00 C3 AC B2 0A 80 E2 50 82 90 00 0A [13:03:33]RAPDU: C3 AC B2 0A 80 E2 50 82 90 00 [13:03:33]wFMCommunicate OK [13:03:33]SAM_PROTO_SignData done [13:03:33]FM_MakeSignedData done [13:03:33]CreateOFDProtocolMessage [13:03:33]wFMCommunicate request_size=4 [13:03:33]MH_SAM_APDU [13:03:33]CAPDU: 80 11 00 00 [13:03:33]Write to MH i2c: E2 08 00 E1 4F 80 11 00 00 00 00 00 00 AA [13:03:33]Write i2c OK [13:03:33]MH_I2C_Read... [13:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:33]Read from MH i2c: E2 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 17 00 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 17 00 E1 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F7 [13:03: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:03:33]wFMCommunicate OK [13:03:33]CreateOFDProtocolMessage done [13:03:33]OFDSenderStorePacket 49081 [13:03:33]StoreOFDPacket docnum=49081 [13:03: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 CB B5 07 01 8E D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 18 8D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 0E 00 00 00 00 07 04 06 00 04 8D 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 31 A2 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 9E E5 15 21 D6 0E C3 AC B2 0A 80 E2 50 82 [13:03:33]CheckFolder [13:03:33]dirname=/storage/ofd_packets [13:03:33]CheckFolder done [13:03:33]ProducePacketName [13:03:33]name=ofd_packets/00049081 [13:03:33]NVStorageSaveData ofd_packets/00049081 [13:03:33]File name is /storage/ofd_packets/00049081 [13:03:33]Write 301 bytes [13:03:33]NVStorageSaveData done [13:03:33]OFDSenderStorePacket done [13:03:33]KKMCreateOFDPacket done [13:03:33]NVStorageSaveData kkm_last_timestamp [13:03:33]File name is /storage/kkm_last_timestamp [13:03:33]Write 4 bytes [13:03:33]NVStorageSaveData done [13:03:33]ExternCall_PrintAddStr [13:03:33]wPrintStart [13:03:33]Write to MH i2c: 01 00 00 E2 4F 31 [13:03:33]Write i2c OK [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: 01 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: 01 07 00 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: 01 07 00 E2 4F 00 00 00 00 00 FF 0F 46 [13:03:33]RasterBufferAndPrint [13:03:33]line Счет N : (1)216181 [13:03:33]line ИÐÐ: 02508201610067 [13:03:33]line Контрольно-КаÑÑовый Чек [13:03:33]line ПРОДÐЖР[13:03:33]line ТРК (МРК, ГÐК) : 22 [13:03:33]line Товар: 2710124130 [13:03:33]line Ðи-92-К-5 [13:03:33]line 5.990 * 60.30 [13:03:33]line = 361.20 [13:03:33]line ÐДС 12% ÐСП 1% [13:03:33]line > о реализуемом товаре [13:03:33]line ОКРУГЛЕÐИЕ: -0.20 [13:03:33]line ИТОГО: 361.00 [13:03:33]line ВнеÑено: 361.00 [13:03:33]line СДÐЧÐ: 0.00 [13:03:33]line ÐСП 1% : 3.20 [13:03:33]line ÐДС 12% : 38.36 [13:03:33]line Ðаличными: 361.00 [13:03:33]line Безнал.: 0.00 [13:03:33]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [13:03:33]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:03:33]line СÐО: Общий режим [13:03:33]line Чек 64 29.01.2024 13:03 [13:03:33]line Смена: 245 ФФД: 1.0 [13:03:33]line ЗÐМ: 0300000040 [13:03:33]line РÐМ: 0000000000092723 [13:03:33]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:03:33]line ФМ: 0000000000875060 [13:03:33]line ФД: 49081 [13:03:33]line ФПД: 174706739238414 [13:03:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T130345&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49081&fm=174706739238414&tin=02508201610067®Number=0000000000092723&sum=36100 [13:03:33]OFD Sender: Processing packet 49081 [packets to send 12, broken 11] [13:03:33]ProducePacketName [13:03:33]name=ofd_packets/00049081 [13:03:33]OFD Sender: To server: ‡•öpG, [13:03:33]CommunicateWithHost lk.salyk.kg:30040 [13:03:33]ConnectInit lk.salyk.kg [13:03:33]written 0, free lines is 4095 [13:03:33]Connected sock=10 [13:03: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 CB B5 07 01 8E D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 18 8D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 8D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 40 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FC 0E 00 00 00 00 07 04 06 00 04 8D 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 31 A2 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 9E E5 15 21 D6 0E C3 AC B2 0A 80 E2 50 82 [13:03: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 C7 E0 47 00 86 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 B9 BF 00 00 F4 03 04 00 29 4E B7 65 B6 04 01 00 00 8A E1 D8 B1 47 2E 9F 36 [13:03:33]CommunicateWithHost err = 0 [13:03:33]CheckOFDResponse [13:03:33]1017 (14) - 77093643461234 [13:03:33]1041 (16) - 0000000000875060 [13:03:33]1040 (4) - 49081 [13:03:33]1012 (4) - 29.01.2024 07:05 [13:03:33]1206 (1) - 0 [13:03:33]OFD Sender: Remove packet 49081 [13:03:33]ProducePacketName [13:03:33]name=ofd_packets/00049081 [13:03:33]NVStorageDeleteData [13:03:34]Write to MH i2c: 01 00 00 0D 50 5D [13:03:34]Write i2c OK [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: 01 [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: 01 07 00 [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: 01 07 00 0D 50 00 00 00 00 00 EF 0C 5F [13:03:34]RasterBufferAndPrint [13:03:34]line [13:03:34]line [13:03:34]line [13:03:34]line [13:03:34]line [13:03:34]written 0, free lines is 3317 [13:03:34]MH_Cut [13:03:34]Write to MH i2c: D1 01 00 14 50 01 36 [13:03:34]Write i2c OK [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: D1 [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: D1 01 00 [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: D1 01 00 14 50 00 35 [13:03:34]Write to MH i2c: 01 00 00 15 50 65 [13:03:34]Write i2c OK [13:03:34]MH_I2C_Read... [13:03:34]OFD Sender: No OFD packet to send [13:03:34]*** Cut start [13:03:34]*** Partial cut [13:03:34]*** CUTSNS_PIN = 1 [13:03:34]*** CUTSNS_PIN = 0 [13:03:34]*** Brake cut motor [13:03:35]Read from MH i2c: 01 [13:03:35]MH_I2C_Read... [13:03:35]*** Stop cut motor [13:03:35]*** Cut end [13:03:35]Read from MH i2c: 01 07 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: 01 07 00 15 50 00 00 00 00 00 FF 0F 7A [13:03:35]process_action close_receipt done [13:03:35]requested_data is exist [13:03:35]produce_requested_data [13:03:35]requested_item fm.sn is exist - process it [13:03:35]wFMCommunicate request_size=4 [13:03:35]MH_SAM_APDU [13:03:35]CAPDU: 80 11 00 00 [13:03:35]Write to MH i2c: E2 08 00 16 50 80 11 00 00 00 00 00 00 E0 [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:35]Read from MH i2c: E2 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 17 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 17 00 16 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2D [13:03: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:03:35]wFMCommunicate OK [13:03:35]requested_item fd.num is exist - process it [13:03:35]SAM_PROTO_GetFieldsCounters [13:03:35]wFMCommunicate request_size=4 [13:03:35]MH_SAM_APDU [13:03:35]CAPDU: 80 13 00 00 [13:03:35]Write to MH i2c: E2 08 00 17 50 80 13 00 00 00 00 00 00 E3 [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:35]Read from MH i2c: E2 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 62 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 62 00 17 50 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 BF 00 00 0E 04 04 00 F5 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 29 [13:03: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 B9 BF 00 00 0E 04 04 00 F5 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:03:35]wFMCommunicate OK [13:03:35]SAM_PROTO_GetFieldsCounters done [13:03:35]requested_item shift.num is exist - process it [13:03:35]requested_item shift.opened is exist - process it [13:03:35]req_shift_opened [13:03:35]FM_GetShiftState [13:03:35]SAM_PROTO_GetShiftState [13:03:35]wFMCommunicate request_size=4 [13:03:35]MH_SAM_APDU [13:03:35]CAPDU: 80 13 01 00 [13:03:35]Write to MH i2c: E2 08 00 18 50 80 13 01 00 00 00 00 00 E5 [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:35]Read from MH i2c: E2 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 0E 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 0E 00 18 50 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 57 [13:03:35]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [13:03:35]wFMCommunicate OK [13:03:35]SAM_PROTO_GetShiftState done [13:03:35]FM_GetShiftState done [13:03:35]req_shift_opened done [13:03:35]requested_item shift.open_date is exist - process it [13:03:35]req_shift_open_date [13:03:35]req_shift_open_date done [13:03:35]produce_requested_data done [13:03:35]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49081,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [13:03:35]process_action_free close_receipt [13:03:35]json_value_free [13:03:35]json_value_free done [13:03:35]process_json_proto returns [13:03:35]Send response to host [13:03:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49081,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [13:03:35]free response buf [13:03:35]execute_script done [13:03:35]execute_script returns [13:03:35]free content buf [13:03:35]Sock 9.Close socket [13:03:35]Sock 9.Thread stoped [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:39]OFD Sender: No OFD packet to send [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]OFD Sender: No OFD packet to send [13:10:49]OFD Sender: No OFD packet to send [13:10:54]OFD Sender: No OFD packet to send [13:10:59]OFD Sender: No OFD packet to send [13:11:04]OFD Sender: No OFD packet to send [13:11:09]OFD Sender: No OFD packet to send [13:11:14]OFD Sender: No OFD packet to send [13:11:19]OFD Sender: No OFD packet to send [13:11:24]OFD Sender: No OFD packet to send [13:11:29]OFD Sender: No OFD packet to send [13:11:34]OFD Sender: No OFD packet to send [13:11:39]OFD Sender: No OFD packet to send [13:11:44]OFD Sender: No OFD packet to send [13:11:49]OFD Sender: No OFD packet to send [13:11:54]OFD Sender: No OFD packet to send [13:11:59]OFD Sender: No OFD packet to send [13:12:04]OFD Sender: No OFD packet to send [13:12:09]OFD Sender: No OFD packet to send [13:12:14]OFD Sender: No OFD packet to send [13:12:19]OFD Sender: No OFD packet to send [13:12:24]OFD Sender: No OFD packet to send [13:12:29]OFD Sender: No OFD packet to send [13:12:34]OFD Sender: No OFD packet to send [13:12:39]OFD Sender: No OFD packet to send [13:12:44]OFD Sender: No OFD packet to send [13:12:49]OFD Sender: No OFD packet to send [13:12:54]OFD Sender: No OFD packet to send [13:12:59]OFD Sender: No OFD packet to send [13:13:04]OFD Sender: No OFD packet to send [13:13:09]OFD Sender: No OFD packet to send [13:13:14]OFD Sender: No OFD packet to send [13:13:19]OFD Sender: No OFD packet to send [13:13:24]OFD Sender: No OFD packet to send [13:13:29]OFD Sender: No OFD packet to send [13:13:34]OFD Sender: No OFD packet to send [13:13:39]OFD Sender: No OFD packet to send [13:13:44]OFD Sender: No OFD packet to send [13:13:49]OFD Sender: No OFD packet to send [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:09]OFD Sender: No OFD packet to send [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:45]OFD Sender: No OFD packet to send [13:17:50]OFD Sender: No OFD packet to send [13:17:55]OFD Sender: No OFD packet to send [13:18:00]OFD Sender: No OFD packet to send [13:18:05]OFD Sender: No OFD packet to send [13:18:10]OFD Sender: No OFD packet to send [13:18:15]OFD Sender: No OFD packet to send [13:18:20]OFD Sender: No OFD packet to send [13:18:25]OFD Sender: No OFD packet to send [13:18:30]OFD Sender: No OFD packet to send [13:18:35]OFD Sender: No OFD packet to send [13:18:40]OFD Sender: No OFD packet to send [13:18:45]OFD Sender: No OFD packet to send [13:18:50]OFD Sender: No OFD packet to send [13:18:55]OFD Sender: No OFD packet to send [13:19:00]OFD Sender: No OFD packet to send [13:19:05]OFD Sender: No OFD packet to send [13:19:10]OFD Sender: No OFD packet to send [13:19:15]OFD Sender: No OFD packet to send [13:19:20]OFD Sender: No OFD packet to send [13:19:25]OFD Sender: No OFD packet to send [13:19:30]OFD Sender: No OFD packet to send [13:19:35]OFD Sender: No OFD packet to send [13:19:40]OFD Sender: No OFD packet to send [13:19:45]OFD Sender: No OFD packet to send [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:30]OFD Sender: No OFD packet to send [13:20:35]OFD Sender: No OFD packet to send [13:20:40]OFD Sender: No OFD packet to send [13:20:45]OFD Sender: No OFD packet to send [13:20:50]OFD Sender: No OFD packet to send [13:20:55]OFD Sender: No OFD packet to send [13:21:00]OFD Sender: No OFD packet to send [13:21:05]OFD Sender: No OFD packet to send [13:21:10]OFD Sender: No OFD packet to send [13:21:15]OFD Sender: No OFD packet to send [13:21:20]OFD Sender: No OFD packet to send [13:21:25]OFD Sender: No OFD packet to send [13:21:30]OFD Sender: No OFD packet to send [13:21:35]OFD Sender: No OFD packet to send [13:21:40]OFD Sender: No OFD packet to send [13:21:45]OFD Sender: No OFD packet to send [13:21:50]OFD Sender: No OFD packet to send [13:21:55]OFD Sender: No OFD packet to send [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34: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:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:31]OFD Sender: No OFD packet to send [13:41:36]OFD Sender: No OFD packet to send [13:41:41]OFD Sender: No OFD packet to send [13:41:46]OFD Sender: No OFD packet to send [13:41:51]OFD Sender: No OFD packet to send [13:41:56]OFD Sender: No OFD packet to send [13:42:01]OFD Sender: No OFD packet to send [13:42:06]OFD Sender: No OFD packet to send [13:42:11]OFD Sender: No OFD packet to send [13:42:16]OFD Sender: No OFD packet to send [13:42:21]OFD Sender: No OFD packet to send [13:42:26]OFD Sender: No OFD packet to send [13:42:31]OFD Sender: No OFD packet to send [13:42:36]OFD Sender: No OFD packet to send [13:42:41]OFD Sender: No OFD packet to send [13:42:46]OFD Sender: No OFD packet to send [13:42:51]OFD Sender: No OFD packet to send [13:42:56]OFD Sender: No OFD packet to send [13:43:01]OFD Sender: No OFD packet to send [13:43:06]OFD Sender: No OFD packet to send [13:43:11]OFD Sender: No OFD packet to send [13:43:16]OFD Sender: No OFD packet to send [13:43:21]OFD Sender: No OFD packet to send [13:43:26]OFD Sender: No OFD packet to send [13:43:31]OFD Sender: No OFD packet to send [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:54]accept exits with 7 [13:48:54]New connection [13:48:54]New thread 3066670436 created [13:48:54]Thread 3066813796 joined [13:48:54]Waiting for new connection... [13:48:54] Sock 7.Parse request [13:48:54]Sock 7.Check first char [13:48:54]Sock 7.First char is OK [13:48:54]request: POST /json_proto HTTP/1.0 [13:48:54]Method: POST [13:48:54]URL: /json_proto [13:48:54]Method is POST - this is cgi request [13:48:54]url: /json_proto [13:48:54]query_string will be loaded in cgi processing [13:48:54]execute_cgi json_proto POST (null) [13:48:54]execute_cgi path=json_proto method=POST [13:48:54]POST find Content-Length [13:48:54]Host: 172.17.56.67:8080 [13:48:54]Content-Length: 677 [13:48:54]Content-Type: application/json [13:48:54] [13:48:54]POST finish read [13:48:54]Found Content-Length = 677 [13:48:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216182", "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:48:54]execute_script... [13:48: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)216182", "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:48:54]POST & json_proto [13:48:54]process_json_proto [13:48:54]json parsed OK: [13:48:54]protocol is kg_v1.0 [13:48:54]action value=close_receipt [13:48:54]process_action close_receipt [13:48:54]cmd_close_receipt [13:48:54]MH_GetDate [13:48:54]Write to MH i2c: F0 00 00 19 50 58 [13:48:54]Write i2c OK [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: F0 [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: F0 09 00 [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: F0 09 00 19 50 00 D4 AC B7 65 26 5D 9E 65 83 [13:48:54]GetLastDocTimeStamp 1706533425 [13:48:54]current date 1706536148 [13:48:54]FM_GetShiftState [13:48:54]SAM_PROTO_GetShiftState [13:48:54]wFMCommunicate request_size=4 [13:48:54]MH_SAM_APDU [13:48:54]CAPDU: 80 13 01 00 [13:48:54]Write to MH i2c: E2 08 00 1A 50 80 13 01 00 00 00 00 00 E7 [13:48:54]Write i2c OK [13:48:54]MH_I2C_Read... [13:48:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:54]Read from MH i2c: E2 [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: E2 0E 00 [13:48:54]MH_I2C_Read... [13:48:54]Read from MH i2c: E2 0E 00 1A 50 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 59 [13:48:54]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [13:48:54]wFMCommunicate OK [13:48:54]SAM_PROTO_GetShiftState done [13:48:54]FM_GetShiftState done [13:48:54]opened in 1706486624 [13:48:54]opened+sec_in_day 1706573024 [13:48:54]quantity*price = 30029 [13:48:54]sum+1 = 30030 [13:48:54]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 29.01.2024 13:49 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49082 ФПД: 258034914404406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T134908&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49082&fm=258034914404406&tin=02508201610067®Number=0000000000092723&sum=30000 [13:48:55]StoreToDocumentArchive [13:48:55]shift 245 fd 49082 [13:48:55]save to /storage/0245/doc_00049082 [13:48:55]save last doc name /storage/0245/doc_00049082 to /storage/kkm_last_doc_name [13:48:55]save OK [13:48:55]Clear old archive folders... [13:48:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:48:55]tlvbuf is 01210380 [13:48:55]SAM_PROTO_ClearQueue [13:48:55]wFMCommunicate request_size=4 [13:48:55]MH_SAM_APDU [13:48:55]CAPDU: 80 09 00 00 [13:48:55]Write to MH i2c: E2 08 00 27 50 80 09 00 00 00 00 00 00 E9 [13:48:55]Write i2c OK [13:48:55]MH_I2C_Read... [13:48:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:48:55]Read from MH i2c: E2 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 03 00 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 03 00 27 50 00 90 00 EB [13:48:55]RAPDU: 90 00 [13:48:55]wFMCommunicate OK [13:48:55]SAM_PROTO_ClearQueue done [13:48:55]KKMCreateOFDPacket [13:48:55]OFDProtocolAddRootSTLVToBuf [13:48:55]FM_MakeSignedData [13:48:55]FM_MakeSignedData [13:48:55]SAM_PROTO_SignData [13:48:55]wFMCommunicate request_size=4 [13:48:55]MH_SAM_APDU [13:48:55]CAPDU: 80 0D 01 02 [13:48:55]Write to MH i2c: E2 08 00 28 50 80 0D 01 02 00 00 00 00 F1 [13:48:55]Write i2c OK [13:48:55]MH_I2C_Read... [13:48:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:48:55]Read from MH i2c: E2 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 03 00 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 03 00 28 50 00 90 00 EC [13:48:55]RAPDU: 90 00 [13:48:55]wFMCommunicate OK [13:48:55]wFMCommunicate request_size=255 [13:48:55]MH_SAM_APDU [13:48: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 41 00 00 00 F4 03 04 00 D4 AC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 EA [13:48:55]Write to MH i2c: E2 02 01 29 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D4 AC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 EA 00 00 EC [13:48:55]Write i2c OK [13:48:55]MH_I2C_Read... [13:48:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:55]Read from MH i2c: E2 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 03 00 [13:48:55]MH_I2C_Read... [13:48:55]Read from MH i2c: E2 03 00 29 50 00 90 00 ED [13:48:55]RAPDU: 90 00 [13:48:55]wFMCommunicate OK [13:48:55]wFMCommunicate request_size=10 [13:48:55]MH_SAM_APDU [13:48:55]CAPDU: 80 0D 02 02 05 AE 6F 69 A8 36 [13:48:55]Write to MH i2c: E2 0D 00 2A 50 80 0D 02 02 05 00 AE 6F 69 A8 36 00 00 62 [13:48:55]Write i2c OK [13:48:55]MH_I2C_Read... [13:48:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:48:56]Read from MH i2c: E2 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: E2 03 00 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: E2 03 00 2A 50 00 90 00 EE [13:48:56]RAPDU: 90 00 [13:48:56]wFMCommunicate OK [13:48:56]wFMCommunicate request_size=4 [13:48:56]MH_SAM_APDU [13:48:56]CAPDU: 80 0D 03 02 [13:48:56]Write to MH i2c: E2 08 00 2B 50 80 0D 03 02 00 00 00 00 F6 [13:48:56]Write i2c OK [13:48:56]MH_I2C_Read... [13:48:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:48:56]Read from MH i2c: E2 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: E2 0B 00 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: E2 0B 00 2B 50 00 FD 57 52 77 3D 51 7D 99 90 00 B8 [13:48:56]RAPDU: FD 57 52 77 3D 51 7D 99 90 00 [13:48:56]wFMCommunicate OK [13:48:56]SAM_PROTO_SignData done [13:48:56]FM_MakeSignedData done [13:48:56]CreateOFDProtocolMessage [13:48:56]wFMCommunicate request_size=4 [13:48:56]MH_SAM_APDU [13:48:56]CAPDU: 80 11 00 00 [13:48:56]Write to MH i2c: E2 08 00 2C 50 80 11 00 00 00 00 00 00 F6 [13:48:56]Write i2c OK [13:48:56]MH_I2C_Read... [13:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:56]Read from MH i2c: E2 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: E2 17 00 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: E2 17 00 2C 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 43 [13:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [13:48:56]wFMCommunicate OK [13:48:56]CreateOFDProtocolMessage done [13:48:56]OFDSenderStorePacket 49082 [13:48:56]StoreOFDPacket docnum=49082 [13:48: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 25 25 07 01 9F F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D4 AC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 EA AE 6F 69 A8 36 FD 57 52 77 3D 51 7D 99 [13:48:56]CheckFolder [13:48:56]dirname=/storage/ofd_packets [13:48:56]CheckFolder done [13:48:56]ProducePacketName [13:48:56]name=ofd_packets/00049082 [13:48:56]NVStorageSaveData ofd_packets/00049082 [13:48:56]File name is /storage/ofd_packets/00049082 [13:48:56]Write 301 bytes [13:48:56]NVStorageSaveData done [13:48:56]OFDSenderStorePacket done [13:48:56]KKMCreateOFDPacket done [13:48:56]NVStorageSaveData kkm_last_timestamp [13:48:56]File name is /storage/kkm_last_timestamp [13:48:56]Write 4 bytes [13:48:56]NVStorageSaveData done [13:48:56]ExternCall_PrintAddStr [13:48:56]wPrintStart [13:48:56]Write to MH i2c: 01 00 00 2D 50 7D [13:48:56]Write i2c OK [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: 01 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: 01 07 00 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: 01 07 00 2D 50 00 00 00 00 00 FF 0F 92 [13:48:56]RasterBufferAndPrint [13:48:56]line Счет N : (1)216182 [13:48:56]line ИÐÐ: 02508201610067 [13:48:56]line Контрольно-КаÑÑовый Чек [13:48:56]line ПРОДÐЖР[13:48:56]line ТРК (МРК, ГÐК) : 22 [13:48:56]line Товар: 2710124130 [13:48:56]line Ðи-92-К-5 [13:48:56]line 4.980 * 60.30 [13:48:56]line = 300.29 [13:48:56]line ÐДС 12% ÐСП 1% [13:48:56]line > о реализуемом товаре [13:48:56]line ОКРУГЛЕÐИЕ: -0.29 [13:48:56]line ИТОГО: 300.00 [13:48:56]line ВнеÑено: 300.00 [13:48:56]line СДÐЧÐ: 0.00 [13:48:56]line ÐСП 1% : 2.66 [13:48:56]line ÐДС 12% : 31.89 [13:48:56]line Ðаличными: 300.00 [13:48:56]line Безнал.: 0.00 [13:48:56]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [13:48:56]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:48:56]line СÐО: Общий режим [13:48:56]line Чек 65 29.01.2024 13:49 [13:48:56]line Смена: 245 ФФД: 1.0 [13:48:56]line ЗÐМ: 0300000040 [13:48:56]line РÐМ: 0000000000092723 [13:48:56]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:48:56]line ФМ: 0000000000875060 [13:48:56]line ФД: 49082 [13:48:56]line ФПД: 258034914404406 [13:48:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T134908&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49082&fm=258034914404406&tin=02508201610067®Number=0000000000092723&sum=30000 [13:48:56]OFD Sender: Processing packet 49082 [packets to send 12, broken 11] [13:48:56]ProducePacketName [13:48:56]name=ofd_packets/00049082 [13:48:56]OFD Sender: To server: ‡•öpG, [13:48:56]CommunicateWithHost lk.salyk.kg:30040 [13:48:56]ConnectInit lk.salyk.kg [13:48:56]written 0, free lines is 4095 [13:48:56]Connected sock=10 [13:48: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 25 25 07 01 9F F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 D4 AC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 EA AE 6F 69 A8 36 FD 57 52 77 3D 51 7D 99 [13:48: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 0D 0E 47 00 05 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BA BF 00 00 F4 03 04 00 CC 58 B7 65 B6 04 01 00 00 4B FF E7 36 F2 8E 4A D2 [13:48:56]CommunicateWithHost err = 0 [13:48:56]CheckOFDResponse [13:48:56]1017 (14) - 77093643461234 [13:48:56]1041 (16) - 0000000000875060 [13:48:56]1040 (4) - 49082 [13:48:56]1012 (4) - 29.01.2024 07:50 [13:48:56]1206 (1) - 0 [13:48:56]OFD Sender: Remove packet 49082 [13:48:56]ProducePacketName [13:48:56]name=ofd_packets/00049082 [13:48:56]NVStorageDeleteData [13:48:56]Write to MH i2c: 01 00 00 58 50 A8 [13:48:56]Write i2c OK [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: 01 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: 01 07 00 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: 01 07 00 58 50 00 00 00 00 00 18 0D D4 [13:48:56]RasterBufferAndPrint [13:48:56]line [13:48:56]line [13:48:56]line [13:48:56]line [13:48:56]line [13:48:56]written 0, free lines is 3358 [13:48:56]MH_Cut [13:48:56]Write to MH i2c: D1 01 00 5F 50 01 81 [13:48:56]Write i2c OK [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: D1 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: D1 01 00 [13:48:56]MH_I2C_Read... [13:48:56]Read from MH i2c: D1 01 00 5F 50 00 80 [13:48:56]Write to MH i2c: 01 00 00 60 50 B0 [13:48:56]Write i2c OK [13:48:56]MH_I2C_Read... [13:48:57]OFD Sender: No OFD packet to send [13:48:57]*** Cut start [13:48:57]*** Partial cut [13:48:57]*** CUTSNS_PIN = 1 [13:48:57]*** CUTSNS_PIN = 0 [13:48:57]*** Brake cut motor [13:48:58]Read from MH i2c: 01 [13:48:58]MH_I2C_Read... [13:48:58]*** Stop cut motor [13:48:58]*** Cut end [13:48:58]Read from MH i2c: 01 07 00 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: 01 07 00 60 50 00 00 00 00 00 FF 0F C5 [13:48:58]process_action close_receipt done [13:48:58]requested_data is exist [13:48:58]produce_requested_data [13:48:58]requested_item fm.sn is exist - process it [13:48:58]wFMCommunicate request_size=4 [13:48:58]MH_SAM_APDU [13:48:58]CAPDU: 80 11 00 00 [13:48:58]Write to MH i2c: E2 08 00 61 50 80 11 00 00 00 00 00 00 2B [13:48:58]Write i2c OK [13:48:58]MH_I2C_Read... [13:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:48:58]Read from MH i2c: E2 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: E2 17 00 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: E2 17 00 61 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 78 [13:48: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:48:58]wFMCommunicate OK [13:48:58]requested_item fd.num is exist - process it [13:48:58]SAM_PROTO_GetFieldsCounters [13:48:58]wFMCommunicate request_size=4 [13:48:58]MH_SAM_APDU [13:48:58]CAPDU: 80 13 00 00 [13:48:58]Write to MH i2c: E2 08 00 62 50 80 13 00 00 00 00 00 00 2E [13:48:58]Write i2c OK [13:48:58]MH_I2C_Read... [13:48:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:48:58]Read from MH i2c: E2 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: E2 62 00 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: E2 62 00 62 50 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 BF 00 00 0E 04 04 00 F5 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 78 [13:48: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 BA BF 00 00 0E 04 04 00 F5 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:48:58]wFMCommunicate OK [13:48:58]SAM_PROTO_GetFieldsCounters done [13:48:58]requested_item shift.num is exist - process it [13:48:58]requested_item shift.opened is exist - process it [13:48:58]req_shift_opened [13:48:58]FM_GetShiftState [13:48:58]SAM_PROTO_GetShiftState [13:48:58]wFMCommunicate request_size=4 [13:48:58]MH_SAM_APDU [13:48:58]CAPDU: 80 13 01 00 [13:48:58]Write to MH i2c: E2 08 00 63 50 80 13 01 00 00 00 00 00 30 [13:48:58]Write i2c OK [13:48:58]MH_I2C_Read... [13:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:48:58]Read from MH i2c: E2 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: E2 0E 00 [13:48:58]MH_I2C_Read... [13:48:58]Read from MH i2c: E2 0E 00 63 50 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 A2 [13:48:58]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [13:48:58]wFMCommunicate OK [13:48:58]SAM_PROTO_GetShiftState done [13:48:58]FM_GetShiftState done [13:48:58]req_shift_opened done [13:48:58]requested_item shift.open_date is exist - process it [13:48:58]req_shift_open_date [13:48:58]req_shift_open_date done [13:48:58]produce_requested_data done [13:48:58]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49082,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [13:48:58]process_action_free close_receipt [13:48:58]json_value_free [13:48:58]json_value_free done [13:48:58]process_json_proto returns [13:48:58]Send response to host [13:48:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49082,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [13:48:58]free response buf [13:48:58]execute_script done [13:48:58]execute_script returns [13:48:58]free content buf [13:48:58]Sock 7.Close socket [13:48:58]Sock 7.Thread stoped [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:14]accept exits with 9 [13:58:14]New connection [13:58:14]New thread 3066813796 created [13:58:14]Thread 3066670436 joined [13:58:14]Waiting for new connection... [13:58:14] Sock 9.Parse request [13:58:14]Sock 9.Check first char [13:58:14]Sock 9.First char is OK [13:58:14]request: POST /json_proto HTTP/1.0 [13:58:14]Method: POST [13:58:14]URL: /json_proto [13:58:14]Method is POST - this is cgi request [13:58:14]url: /json_proto [13:58:14]query_string will be loaded in cgi processing [13:58:14]execute_cgi json_proto POST (null) [13:58:14]execute_cgi path=json_proto method=POST [13:58:14]POST find Content-Length [13:58:14]Host: 172.17.56.67:8080 [13:58:14]Content-Length: 677 [13:58:14]Content-Type: application/json [13:58:14] [13:58:14]POST finish read [13:58:14]Found Content-Length = 677 [13:58:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216183", "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" ] } } [13:58:14]execute_script... [13:58:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216183", "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" ] } } [13:58:14]POST & json_proto [13:58:14]process_json_proto [13:58:14]json parsed OK: [13:58:14]protocol is kg_v1.0 [13:58:14]action value=close_receipt [13:58:14]process_action close_receipt [13:58:14]cmd_close_receipt [13:58:14]MH_GetDate [13:58:14]Write to MH i2c: F0 00 00 64 50 A3 [13:58:14]Write i2c OK [13:58:14]MH_I2C_Read... [13:58:14]Read from MH i2c: F0 [13:58:14]MH_I2C_Read... [13:58:14]Read from MH i2c: F0 09 00 [13:58:14]MH_I2C_Read... [13:58:14]Read from MH i2c: F0 09 00 64 50 00 04 AF B7 65 26 5D 9E 65 01 [13:58:14]GetLastDocTimeStamp 1706536148 [13:58:14]current date 1706536708 [13:58:14]FM_GetShiftState [13:58:14]SAM_PROTO_GetShiftState [13:58:14]wFMCommunicate request_size=4 [13:58:14]MH_SAM_APDU [13:58:14]CAPDU: 80 13 01 00 [13:58:14]Write to MH i2c: E2 08 00 65 50 80 13 01 00 00 00 00 00 32 [13:58:14]Write i2c OK [13:58:14]MH_I2C_Read... [13:58:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:14]Read from MH i2c: E2 [13:58:14]MH_I2C_Read... [13:58:14]Read from MH i2c: E2 0E 00 [13:58:14]MH_I2C_Read... [13:58:14]Read from MH i2c: E2 0E 00 65 50 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 A4 [13:58:14]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [13:58:14]wFMCommunicate OK [13:58:14]SAM_PROTO_GetShiftState done [13:58:14]FM_GetShiftState done [13:58:14]opened in 1706486624 [13:58:14]opened+sec_in_day 1706573024 [13:58:14]quantity*price = 30029 [13:58:14]sum+1 = 30030 [13:58:14]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 СÐО: Общий режим Чек 66 29.01.2024 13:58 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49083 ФПД: 140097458275152 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T135828&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49083&fm=140097458275152&tin=02508201610067®Number=0000000000092723&sum=30000 [13:58:15]StoreToDocumentArchive [13:58:15]shift 245 fd 49083 [13:58:15]save to /storage/0245/doc_00049083 [13:58:15]save last doc name /storage/0245/doc_00049083 to /storage/kkm_last_doc_name [13:58:15]save OK [13:58:15]Clear old archive folders... [13:58:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:15]tlvbuf is 0139F7B0 [13:58:15]SAM_PROTO_ClearQueue [13:58:15]wFMCommunicate request_size=4 [13:58:15]MH_SAM_APDU [13:58:15]CAPDU: 80 09 00 00 [13:58:15]Write to MH i2c: E2 08 00 72 50 80 09 00 00 00 00 00 00 34 [13:58:15]Write i2c OK [13:58:15]MH_I2C_Read... [13:58:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:15]Read from MH i2c: E2 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 03 00 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 03 00 72 50 00 90 00 36 [13:58:15]RAPDU: 90 00 [13:58:15]wFMCommunicate OK [13:58:15]SAM_PROTO_ClearQueue done [13:58:15]KKMCreateOFDPacket [13:58:15]OFDProtocolAddRootSTLVToBuf [13:58:15]FM_MakeSignedData [13:58:15]FM_MakeSignedData [13:58:15]SAM_PROTO_SignData [13:58:15]wFMCommunicate request_size=4 [13:58:15]MH_SAM_APDU [13:58:15]CAPDU: 80 0D 01 02 [13:58:15]Write to MH i2c: E2 08 00 73 50 80 0D 01 02 00 00 00 00 3C [13:58:15]Write i2c OK [13:58:15]MH_I2C_Read... [13:58:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:15]Read from MH i2c: E2 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 03 00 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 03 00 73 50 00 90 00 37 [13:58:15]RAPDU: 90 00 [13:58:15]wFMCommunicate OK [13:58:15]wFMCommunicate request_size=255 [13:58:15]MH_SAM_APDU [13:58:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 04 AF B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 7F [13:58:15]Write to MH i2c: E2 02 01 74 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 42 00 00 00 F4 03 04 00 04 AF B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 7F 00 00 01 [13:58:15]Write i2c OK [13:58:15]MH_I2C_Read... [13:58:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:15]Read from MH i2c: E2 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 03 00 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 03 00 74 50 00 90 00 38 [13:58:15]RAPDU: 90 00 [13:58:15]wFMCommunicate OK [13:58:15]wFMCommunicate request_size=10 [13:58:15]MH_SAM_APDU [13:58:15]CAPDU: 80 0D 02 02 05 6A FB 3C 03 50 [13:58:15]Write to MH i2c: E2 0D 00 75 50 80 0D 02 02 05 00 6A FB 3C 03 50 00 00 3D [13:58:15]Write i2c OK [13:58:15]MH_I2C_Read... [13:58:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:15]Read from MH i2c: E2 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 03 00 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 03 00 75 50 00 90 00 39 [13:58:15]RAPDU: 90 00 [13:58:15]wFMCommunicate OK [13:58:15]wFMCommunicate request_size=4 [13:58:15]MH_SAM_APDU [13:58:15]CAPDU: 80 0D 03 02 [13:58:15]Write to MH i2c: E2 08 00 76 50 80 0D 03 02 00 00 00 00 41 [13:58:15]Write i2c OK [13:58:15]MH_I2C_Read... [13:58:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:15]Read from MH i2c: E2 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 0B 00 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 0B 00 76 50 00 D1 BD 75 6D 4F F4 FD 64 90 00 56 [13:58:15]RAPDU: D1 BD 75 6D 4F F4 FD 64 90 00 [13:58:15]wFMCommunicate OK [13:58:15]SAM_PROTO_SignData done [13:58:15]FM_MakeSignedData done [13:58:15]CreateOFDProtocolMessage [13:58:15]wFMCommunicate request_size=4 [13:58:15]MH_SAM_APDU [13:58:15]CAPDU: 80 11 00 00 [13:58:15]Write to MH i2c: E2 08 00 77 50 80 11 00 00 00 00 00 00 41 [13:58:15]Write i2c OK [13:58:15]MH_I2C_Read... [13:58:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:15]Read from MH i2c: E2 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 17 00 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: E2 17 00 77 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8E [13:58: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:58:15]wFMCommunicate OK [13:58:15]CreateOFDProtocolMessage done [13:58:15]OFDSenderStorePacket 49083 [13:58:15]StoreOFDPacket docnum=49083 [13:58: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 D1 21 07 01 97 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 04 AF B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 7F 6A FB 3C 03 50 D1 BD 75 6D 4F F4 FD 64 [13:58:15]CheckFolder [13:58:15]dirname=/storage/ofd_packets [13:58:15]CheckFolder done [13:58:15]ProducePacketName [13:58:15]name=ofd_packets/00049083 [13:58:15]NVStorageSaveData ofd_packets/00049083 [13:58:15]File name is /storage/ofd_packets/00049083 [13:58:15]Write 301 bytes [13:58:15]NVStorageSaveData done [13:58:15]OFDSenderStorePacket done [13:58:15]KKMCreateOFDPacket done [13:58:15]NVStorageSaveData kkm_last_timestamp [13:58:15]File name is /storage/kkm_last_timestamp [13:58:15]Write 4 bytes [13:58:15]NVStorageSaveData done [13:58:15]ExternCall_PrintAddStr [13:58:15]wPrintStart [13:58:15]Write to MH i2c: 01 00 00 78 50 C8 [13:58:15]Write i2c OK [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: 01 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: 01 07 00 [13:58:15]MH_I2C_Read... [13:58:15]Read from MH i2c: 01 07 00 78 50 00 00 00 00 00 FF 0F DD [13:58:15]RasterBufferAndPrint [13:58:15]line Счет N : (1)216183 [13:58:15]line ИÐÐ: 02508201610067 [13:58:15]line Контрольно-КаÑÑовый Чек [13:58:15]line ПРОДÐЖР[13:58:15]line ТРК (МРК, ГÐК) : 12 [13:58:15]line Товар: 2710124130 [13:58:15]line Ðи-92-К-5 [13:58:15]line 4.980 * 60.30 [13:58:15]line = 300.29 [13:58:15]line ÐДС 12% ÐСП 1% [13:58:15]line > о реализуемом товаре [13:58:15]line ОКРУГЛЕÐИЕ: -0.29 [13:58:15]line ИТОГО: 300.00 [13:58:15]line ВнеÑено: 300.00 [13:58:15]line СДÐЧÐ: 0.00 [13:58:15]line ÐСП 1% : 2.66 [13:58:15]line ÐДС 12% : 31.89 [13:58:15]line Ðаличными: 300.00 [13:58:15]line Безнал.: 0.00 [13:58:15]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [13:58:15]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [13:58:15]line СÐО: Общий режим [13:58:15]line Чек 66 29.01.2024 13:58 [13:58:15]line Смена: 245 ФФД: 1.0 [13:58:15]line ЗÐМ: 0300000040 [13:58:15]line РÐМ: 0000000000092723 [13:58:15]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [13:58:15]line ФМ: 0000000000875060 [13:58:15]line ФД: 49083 [13:58:15]line ФПД: 140097458275152 [13:58:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T135828&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49083&fm=140097458275152&tin=02508201610067®Number=0000000000092723&sum=30000 [13:58:16]OFD Sender: Processing packet 49083 [packets to send 12, broken 11] [13:58:16]ProducePacketName [13:58:16]name=ofd_packets/00049083 [13:58:16]OFD Sender: To server: ‡•öpG, [13:58:16]CommunicateWithHost lk.salyk.kg:30040 [13:58:16]ConnectInit lk.salyk.kg [13:58:16]written 0, free lines is 4095 [13:58:16]Connected sock=10 [13:58:16]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 21 07 01 97 DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 04 AF B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 7F 6A FB 3C 03 50 D1 BD 75 6D 4F F4 FD 64 [13:58:16]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 48 47 00 EA 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 BB BF 00 00 F4 03 04 00 FC 5A B7 65 B6 04 01 00 00 7E AD 96 6B 46 D2 0A C3 [13:58:16]CommunicateWithHost err = 0 [13:58:16]CheckOFDResponse [13:58:16]1017 (14) - 77093643461234 [13:58:16]1041 (16) - 0000000000875060 [13:58:16]1040 (4) - 49083 [13:58:16]1012 (4) - 29.01.2024 07:59 [13:58:16]1206 (1) - 0 [13:58:16]OFD Sender: Remove packet 49083 [13:58:16]ProducePacketName [13:58:16]name=ofd_packets/00049083 [13:58:16]NVStorageDeleteData [13:58:16]Write to MH i2c: 01 00 00 A3 50 F3 [13:58:16]Write i2c OK [13:58:16]MH_I2C_Read... [13:58:16]Read from MH i2c: 01 [13:58:16]MH_I2C_Read... [13:58:16]Read from MH i2c: 01 07 00 [13:58:16]MH_I2C_Read... [13:58:16]Read from MH i2c: 01 07 00 A3 50 00 00 00 00 00 FC 0C 02 [13:58:16]RasterBufferAndPrint [13:58:16]line [13:58:16]line [13:58:16]line [13:58:16]line [13:58:16]line [13:58:16]written 0, free lines is 3331 [13:58:16]MH_Cut [13:58:16]Write to MH i2c: D1 01 00 AA 50 01 CC [13:58:16]Write i2c OK [13:58:16]MH_I2C_Read... [13:58:16]Read from MH i2c: D1 [13:58:16]MH_I2C_Read... [13:58:16]Read from MH i2c: D1 01 00 [13:58:16]MH_I2C_Read... [13:58:16]Read from MH i2c: D1 01 00 AA 50 00 CB [13:58:16]Write to MH i2c: 01 00 00 AB 50 FB [13:58:16]Write i2c OK [13:58:16]MH_I2C_Read... [13:58:17]OFD Sender: No OFD packet to send [13:58:17]*** Cut start [13:58:17]*** Partial cut [13:58:17]*** CUTSNS_PIN = 1 [13:58:17]*** CUTSNS_PIN = 0 [13:58:17]*** Brake cut motor [13:58:17]Read from MH i2c: 01 [13:58:17]MH_I2C_Read... [13:58:17]*** Stop cut motor [13:58:17]*** Cut end [13:58:17]Read from MH i2c: 01 07 00 [13:58:17]MH_I2C_Read... [13:58:17]Read from MH i2c: 01 07 00 AB 50 00 00 00 00 00 FF 0F 10 [13:58:17]process_action close_receipt done [13:58:17]requested_data is exist [13:58:17]produce_requested_data [13:58:17]requested_item fm.sn is exist - process it [13:58:17]wFMCommunicate request_size=4 [13:58:17]MH_SAM_APDU [13:58:17]CAPDU: 80 11 00 00 [13:58:17]Write to MH i2c: E2 08 00 AC 50 80 11 00 00 00 00 00 00 76 [13:58:17]Write i2c OK [13:58:17]MH_I2C_Read... [13:58:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:18]Read from MH i2c: E2 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 17 00 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 17 00 AC 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C3 [13:58:18]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:18]wFMCommunicate OK [13:58:18]requested_item fd.num is exist - process it [13:58:18]SAM_PROTO_GetFieldsCounters [13:58:18]wFMCommunicate request_size=4 [13:58:18]MH_SAM_APDU [13:58:18]CAPDU: 80 13 00 00 [13:58:18]Write to MH i2c: E2 08 00 AD 50 80 13 00 00 00 00 00 00 79 [13:58:18]Write i2c OK [13:58:18]MH_I2C_Read... [13:58:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:18]Read from MH i2c: E2 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 62 00 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 62 00 AD 50 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 BF 00 00 0E 04 04 00 F5 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 C7 [13:58:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:18]wFMCommunicate OK [13:58:18]SAM_PROTO_GetFieldsCounters done [13:58:18]requested_item shift.num is exist - process it [13:58:18]requested_item shift.opened is exist - process it [13:58:18]req_shift_opened [13:58:18]FM_GetShiftState [13:58:18]SAM_PROTO_GetShiftState [13:58:18]wFMCommunicate request_size=4 [13:58:18]MH_SAM_APDU [13:58:18]CAPDU: 80 13 01 00 [13:58:18]Write to MH i2c: E2 08 00 AE 50 80 13 01 00 00 00 00 00 7B [13:58:18]Write i2c OK [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 [13:58:18]MH_I2C_Read... [13:58:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:18]Read from MH i2c: E2 0E 00 [13:58:18]MH_I2C_Read... [13:58:18]Read from MH i2c: E2 0E 00 AE 50 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 ED [13:58:18]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [13:58:18]wFMCommunicate OK [13:58:18]SAM_PROTO_GetShiftState done [13:58:18]FM_GetShiftState done [13:58:18]req_shift_opened done [13:58:18]requested_item shift.open_date is exist - process it [13:58:18]req_shift_open_date [13:58:18]req_shift_open_date done [13:58:18]produce_requested_data done [13:58:18]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49083,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [13:58:18]process_action_free close_receipt [13:58:18]json_value_free [13:58:18]json_value_free done [13:58:18]process_json_proto returns [13:58:18]Send response to host [13:58:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49083,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [13:58:18]free response buf [13:58:18]execute_script done [13:58:18]execute_script returns [13:58:18]free content buf [13:58:18]Sock 9.Close socket [13:58:18]Sock 9.Thread stoped [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03:52]OFD Sender: No OFD packet to send [14:03:57]OFD Sender: No OFD packet to send [14:04:02]OFD Sender: No OFD packet to send [14:04:07]OFD Sender: No OFD packet to send [14:04:12]OFD Sender: No OFD packet to send [14:04:17]OFD Sender: No OFD packet to send [14:04:22]OFD Sender: No OFD packet to send [14:04:27]OFD Sender: No OFD packet to send [14:04:32]OFD Sender: No OFD packet to send [14:04:37]OFD Sender: No OFD packet to send [14:04:42]OFD Sender: No OFD packet to send [14:04:47]OFD Sender: No OFD packet to send [14:04:52]OFD Sender: No OFD packet to send [14:04:57]OFD Sender: No OFD packet to send [14:05:00]accept exits with 7 [14:05:00]New connection [14:05:00]New thread 3066670436 created [14:05:00]Thread 3066813796 joined [14:05:00]Waiting for new connection... [14:05:00] Sock 7.Parse request [14:05:00]Sock 7.Check first char [14:05:00]Sock 7.First char is OK [14:05:00]request: POST /json_proto HTTP/1.0 [14:05:00]Method: POST [14:05:00]URL: /json_proto [14:05:00]Method is POST - this is cgi request [14:05:00]url: /json_proto [14:05:00]query_string will be loaded in cgi processing [14:05:00]execute_cgi json_proto POST (null) [14:05:00]execute_cgi path=json_proto method=POST [14:05:00]POST find Content-Length [14:05:00]Host: 172.17.56.67:8080 [14:05:00]Content-Length: 677 [14:05:00]Content-Type: application/json [14:05:00] [14:05:00]POST finish read [14:05:00]Found Content-Length = 677 [14:05:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216184", "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" ] } } [14:05:00]execute_script... [14:05:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216184", "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" ] } } [14:05:00]POST & json_proto [14:05:00]process_json_proto [14:05:00]json parsed OK: [14:05:00]protocol is kg_v1.0 [14:05:00]action value=close_receipt [14:05:00]process_action close_receipt [14:05:00]cmd_close_receipt [14:05:00]MH_GetDate [14:05:00]Write to MH i2c: F0 00 00 AF 50 EE [14:05:00]Write i2c OK [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: F0 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: F0 09 00 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: F0 09 00 AF 50 00 9A B0 B7 65 26 5D 9E 65 E3 [14:05:00]GetLastDocTimeStamp 1706536708 [14:05:00]current date 1706537114 [14:05:00]FM_GetShiftState [14:05:00]SAM_PROTO_GetShiftState [14:05:00]wFMCommunicate request_size=4 [14:05:00]MH_SAM_APDU [14:05:00]CAPDU: 80 13 01 00 [14:05:00]Write to MH i2c: E2 08 00 B0 50 80 13 01 00 00 00 00 00 7D [14:05:00]Write i2c OK [14:05:00]MH_I2C_Read... [14:05:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:00]Read from MH i2c: E2 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 0E 00 [14:05:00]MH_I2C_Read... [14:05:00]Read from MH i2c: E2 0E 00 B0 50 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 EF [14:05:00]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:05:00]wFMCommunicate OK [14:05:00]SAM_PROTO_GetShiftState done [14:05:00]FM_GetShiftState done [14:05:00]opened in 1706486624 [14:05:00]opened+sec_in_day 1706573024 [14:05:00]quantity*price = 50049 [14:05:00]sum+1 = 50050 [14:05:00]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 СÐО: Общий режим Чек 67 29.01.2024 14:05 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49084 ФПД: 84711853480095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T140514&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49084&fm=84711853480095&tin=02508201610067®Number=0000000000092723&sum=50000 [14:05:01]StoreToDocumentArchive [14:05:01]shift 245 fd 49084 [14:05:01]save to /storage/0245/doc_00049084 [14:05:01]save last doc name /storage/0245/doc_00049084 to /storage/kkm_last_doc_name [14:05:01]save OK [14:05:01]Clear old archive folders... [14:05:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:01]tlvbuf is 011EA350 [14:05:01]SAM_PROTO_ClearQueue [14:05:01]wFMCommunicate request_size=4 [14:05:01]MH_SAM_APDU [14:05:01]CAPDU: 80 09 00 00 [14:05:01]Write to MH i2c: E2 08 00 BD 50 80 09 00 00 00 00 00 00 7F [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:01]Read from MH i2c: E2 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 03 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 03 00 BD 50 00 90 00 81 [14:05:01]RAPDU: 90 00 [14:05:01]wFMCommunicate OK [14:05:01]SAM_PROTO_ClearQueue done [14:05:01]KKMCreateOFDPacket [14:05:01]OFDProtocolAddRootSTLVToBuf [14:05:01]FM_MakeSignedData [14:05:01]FM_MakeSignedData [14:05:01]SAM_PROTO_SignData [14:05:01]wFMCommunicate request_size=4 [14:05:01]MH_SAM_APDU [14:05:01]CAPDU: 80 0D 01 02 [14:05:01]Write to MH i2c: E2 08 00 BE 50 80 0D 01 02 00 00 00 00 87 [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:01]Read from MH i2c: E2 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 03 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 03 00 BE 50 00 90 00 82 [14:05:01]RAPDU: 90 00 [14:05:01]wFMCommunicate OK [14:05:01]wFMCommunicate request_size=255 [14:05:01]MH_SAM_APDU [14:05:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 43 00 00 00 F4 03 04 00 9A B0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 4D [14:05:01]Write to MH i2c: E2 02 01 BF 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 43 00 00 00 F4 03 04 00 9A B0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 4D 00 00 1D [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:01]Read from MH i2c: E2 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 03 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 03 00 BF 50 00 90 00 83 [14:05:01]RAPDU: 90 00 [14:05:01]wFMCommunicate OK [14:05:01]wFMCommunicate request_size=10 [14:05:01]MH_SAM_APDU [14:05:01]CAPDU: 80 0D 02 02 05 0B 83 EF 58 9F [14:05:01]Write to MH i2c: E2 0D 00 C0 50 80 0D 02 02 05 00 0B 83 EF 58 9F 00 00 08 [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:01]Read from MH i2c: E2 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 03 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 03 00 C0 50 00 90 00 84 [14:05:01]RAPDU: 90 00 [14:05:01]wFMCommunicate OK [14:05:01]wFMCommunicate request_size=4 [14:05:01]MH_SAM_APDU [14:05:01]CAPDU: 80 0D 03 02 [14:05:01]Write to MH i2c: E2 08 00 C1 50 80 0D 03 02 00 00 00 00 8C [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:01]Read from MH i2c: E2 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 0B 00 [14:05:01]MH_I2C_Read... [14:05:01]Read from MH i2c: E2 0B 00 C1 50 00 22 E8 A6 8D 5B 4F 4A 18 90 00 D6 [14:05:01]RAPDU: 22 E8 A6 8D 5B 4F 4A 18 90 00 [14:05:01]wFMCommunicate OK [14:05:01]SAM_PROTO_SignData done [14:05:01]FM_MakeSignedData done [14:05:01]CreateOFDProtocolMessage [14:05:01]wFMCommunicate request_size=4 [14:05:01]MH_SAM_APDU [14:05:01]CAPDU: 80 11 00 00 [14:05:01]Write to MH i2c: E2 08 00 C2 50 80 11 00 00 00 00 00 00 8C [14:05:01]Write i2c OK [14:05:01]MH_I2C_Read... [14:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:02]Read from MH i2c: E2 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 17 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: E2 17 00 C2 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D9 [14:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:05:02]wFMCommunicate OK [14:05:02]CreateOFDProtocolMessage done [14:05:02]OFDSenderStorePacket 49084 [14:05:02]StoreOFDPacket docnum=49084 [14:05:02]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 3A 71 07 01 B0 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 43 00 00 00 F4 03 04 00 9A B0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 4D 0B 83 EF 58 9F 22 E8 A6 8D 5B 4F 4A 18 [14:05:02]CheckFolder [14:05:02]dirname=/storage/ofd_packets [14:05:02]CheckFolder done [14:05:02]ProducePacketName [14:05:02]name=ofd_packets/00049084 [14:05:02]NVStorageSaveData ofd_packets/00049084 [14:05:02]File name is /storage/ofd_packets/00049084 [14:05:02]Write 301 bytes [14:05:02]NVStorageSaveData done [14:05:02]OFDSenderStorePacket done [14:05:02]KKMCreateOFDPacket done [14:05:02]NVStorageSaveData kkm_last_timestamp [14:05:02]File name is /storage/kkm_last_timestamp [14:05:02]Write 4 bytes [14:05:02]NVStorageSaveData done [14:05:02]ExternCall_PrintAddStr [14:05:02]wPrintStart [14:05:02]Write to MH i2c: 01 00 00 C3 50 13 [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: 01 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: 01 07 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: 01 07 00 C3 50 00 00 00 00 00 FF 0F 28 [14:05:02]RasterBufferAndPrint [14:05:02]line Счет N : (1)216184 [14:05:02]line ИÐÐ: 02508201610067 [14:05:02]line Контрольно-КаÑÑовый Чек [14:05:02]line ПРОДÐЖР[14:05:02]line ТРК (МРК, ГÐК) : 12 [14:05:02]line Товар: 2710124130 [14:05:02]line Ðи-92-К-5 [14:05:02]line 8.300 * 60.30 [14:05:02]line = 500.49 [14:05:02]line ÐДС 12% ÐСП 1% [14:05:02]line > о реализуемом товаре [14:05:02]line ОКРУГЛЕÐИЕ: -0.49 [14:05:02]line ИТОГО: 500.00 [14:05:02]line ВнеÑено: 500.00 [14:05:02]line СДÐЧÐ: 0.00 [14:05:02]line ÐСП 1% : 4.43 [14:05:02]line ÐДС 12% : 53.15 [14:05:02]line Ðаличными: 500.00 [14:05:02]line Безнал.: 0.00 [14:05:02]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [14:05:02]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:05:02]line СÐО: Общий режим [14:05:02]line Чек 67 29.01.2024 14:05 [14:05:02]line Смена: 245 ФФД: 1.0 [14:05:02]line ЗÐМ: 0300000040 [14:05:02]line РÐМ: 0000000000092723 [14:05:02]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [14:05:02]line ФМ: 0000000000875060 [14:05:02]line ФД: 49084 [14:05:02]line ФПД: 84711853480095 [14:05:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T140514&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49084&fm=84711853480095&tin=02508201610067®Number=0000000000092723&sum=50000 [14:05:02]OFD Sender: Processing packet 49084 [packets to send 12, broken 11] [14:05:02]ProducePacketName [14:05:02]name=ofd_packets/00049084 [14:05:02]OFD Sender: To server: ‡•öpG, [14:05:02]CommunicateWithHost lk.salyk.kg:30040 [14:05:02]ConnectInit lk.salyk.kg [14:05:02]written 0, free lines is 4095 [14:05:02]Connected sock=10 [14:05:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 3A 71 07 01 B0 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 43 00 00 00 F4 03 04 00 9A B0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 4D 0B 83 EF 58 9F 22 E8 A6 8D 5B 4F 4A 18 [14:05: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 7E 55 47 00 B9 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BC BF 00 00 F4 03 04 00 92 5C B7 65 B6 04 01 00 00 7F A9 F2 CA 7A 21 4B A7 [14:05:02]CommunicateWithHost err = 0 [14:05:02]CheckOFDResponse [14:05:02]1017 (14) - 77093643461234 [14:05:02]1041 (16) - 0000000000875060 [14:05:02]1040 (4) - 49084 [14:05:02]1012 (4) - 29.01.2024 08:06 [14:05:02]1206 (1) - 0 [14:05:02]OFD Sender: Remove packet 49084 [14:05:02]ProducePacketName [14:05:02]name=ofd_packets/00049084 [14:05:02]NVStorageDeleteData [14:05:02]Write to MH i2c: 01 00 00 EE 50 3E [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: 01 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: 01 07 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: 01 07 00 EE 50 00 00 00 00 00 FF 0C 50 [14:05:02]RasterBufferAndPrint [14:05:02]line [14:05:02]line [14:05:02]line [14:05:02]line [14:05:02]line [14:05:02]written 0, free lines is 3333 [14:05:02]MH_Cut [14:05:02]Write to MH i2c: D1 01 00 F5 50 01 17 [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: D1 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: D1 01 00 [14:05:02]MH_I2C_Read... [14:05:02]Read from MH i2c: D1 01 00 F5 50 00 16 [14:05:02]Write to MH i2c: 01 00 00 F6 50 46 [14:05:02]Write i2c OK [14:05:02]MH_I2C_Read... [14:05:03]OFD Sender: No OFD packet to send [14:05:03]*** Cut start [14:05:03]*** Partial cut [14:05:03]*** CUTSNS_PIN = 1 [14:05:03]*** CUTSNS_PIN = 0 [14:05:03]*** Brake cut motor [14:05:04]Read from MH i2c: 01 [14:05:04]MH_I2C_Read... [14:05:04]*** Stop cut motor [14:05:04]*** Cut end [14:05:04]Read from MH i2c: 01 07 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: 01 07 00 F6 50 00 00 00 00 00 FF 0F 5B [14:05:04]process_action close_receipt done [14:05:04]requested_data is exist [14:05:04]produce_requested_data [14:05:04]requested_item fm.sn is exist - process it [14:05:04]wFMCommunicate request_size=4 [14:05:04]MH_SAM_APDU [14:05:04]CAPDU: 80 11 00 00 [14:05:04]Write to MH i2c: E2 08 00 F7 50 80 11 00 00 00 00 00 00 C1 [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 17 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 17 00 F7 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0E [14:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:05:04]wFMCommunicate OK [14:05:04]requested_item fd.num is exist - process it [14:05:04]SAM_PROTO_GetFieldsCounters [14:05:04]wFMCommunicate request_size=4 [14:05:04]MH_SAM_APDU [14:05:04]CAPDU: 80 13 00 00 [14:05:04]Write to MH i2c: E2 08 00 F8 50 80 13 00 00 00 00 00 00 C4 [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 62 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 62 00 F8 50 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 BF 00 00 0E 04 04 00 F5 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 16 [14:05: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 BC BF 00 00 0E 04 04 00 F5 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:05:04]wFMCommunicate OK [14:05:04]SAM_PROTO_GetFieldsCounters done [14:05:04]requested_item shift.num is exist - process it [14:05:04]requested_item shift.opened is exist - process it [14:05:04]req_shift_opened [14:05:04]FM_GetShiftState [14:05:04]SAM_PROTO_GetShiftState [14:05:04]wFMCommunicate request_size=4 [14:05:04]MH_SAM_APDU [14:05:04]CAPDU: 80 13 01 00 [14:05:04]Write to MH i2c: E2 08 00 F9 50 80 13 01 00 00 00 00 00 C6 [14:05:04]Write i2c OK [14:05:04]MH_I2C_Read... [14:05:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:04]Read from MH i2c: E2 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 0E 00 [14:05:04]MH_I2C_Read... [14:05:04]Read from MH i2c: E2 0E 00 F9 50 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 38 [14:05:04]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:05:04]wFMCommunicate OK [14:05:04]SAM_PROTO_GetShiftState done [14:05:04]FM_GetShiftState done [14:05:04]req_shift_opened done [14:05:04]requested_item shift.open_date is exist - process it [14:05:04]req_shift_open_date [14:05:04]req_shift_open_date done [14:05:04]produce_requested_data done [14:05:04]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49084,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [14:05:04]process_action_free close_receipt [14:05:04]json_value_free [14:05:04]json_value_free done [14:05:04]process_json_proto returns [14:05:04]Send response to host [14:05:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49084,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [14:05:04]free response buf [14:05:04]execute_script done [14:05:04]execute_script returns [14:05:04]free content buf [14:05:04]Sock 7.Close socket [14:05:04]Sock 7.Thread stoped [14:05:06]accept exits with 9 [14:05:06]New connection [14:05:06]New thread 3066813796 created [14:05:06]Thread 3066670436 joined [14:05:06]Waiting for new connection... [14:05:06] Sock 9.Parse request [14:05:06]Sock 9.Check first char [14:05:06]Sock 9.First char is OK [14:05:06]request: POST /json_proto HTTP/1.0 [14:05:06]Method: POST [14:05:06]URL: /json_proto [14:05:06]Method is POST - this is cgi request [14:05:06]url: /json_proto [14:05:06]query_string will be loaded in cgi processing [14:05:06]execute_cgi json_proto POST (null) [14:05:06]execute_cgi path=json_proto method=POST [14:05:06]POST find Content-Length [14:05:06]Host: 172.17.56.67:8080 [14:05:06]Content-Length: 677 [14:05:06]Content-Type: application/json [14:05:06] [14:05:06]POST finish read [14:05:06]Found Content-Length = 677 [14:05:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216186", "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" : 2.490, "sum" : 150.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:06]execute_script... [14:05:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216186", "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" : 2.490, "sum" : 150.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:06]POST & json_proto [14:05:06]process_json_proto [14:05:06]json parsed OK: [14:05:06]protocol is kg_v1.0 [14:05:06]action value=close_receipt [14:05:06]process_action close_receipt [14:05:06]cmd_close_receipt [14:05:06]MH_GetDate [14:05:06]Write to MH i2c: F0 00 00 FA 50 39 [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: F0 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: F0 09 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: F0 09 00 FA 50 00 A0 B0 B7 65 26 5D 9E 65 34 [14:05:06]GetLastDocTimeStamp 1706537114 [14:05:06]current date 1706537120 [14:05:06]FM_GetShiftState [14:05:06]SAM_PROTO_GetShiftState [14:05:06]wFMCommunicate request_size=4 [14:05:06]MH_SAM_APDU [14:05:06]CAPDU: 80 13 01 00 [14:05:06]Write to MH i2c: E2 08 00 FB 50 80 13 01 00 00 00 00 00 C8 [14:05:06]Write i2c OK [14:05:06]MH_I2C_Read... [14:05:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:06]Read from MH i2c: E2 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 0E 00 [14:05:06]MH_I2C_Read... [14:05:06]Read from MH i2c: E2 0E 00 FB 50 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 3A [14:05:06]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:05:06]wFMCommunicate OK [14:05:06]SAM_PROTO_GetShiftState done [14:05:06]FM_GetShiftState done [14:05:06]opened in 1706486624 [14:05:06]opened+sec_in_day 1706573024 [14:05:06]quantity*price = 15014 [14:05:06]sum+1 = 15016 [14:05:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.15 ИТОГО: 150.00 ВнеÑено: 150.00 СДÐЧÐ: 0.00 ÐСП 1% : 1.33 ÐДС 12% : 15.94 Ðаличными: 150.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 68 29.01.2024 14:05 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49085 ФПД: 255940810103395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T140520&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49085&fm=255940810103395&tin=02508201610067®Number=0000000000092723&sum=15000 [14:05:07]StoreToDocumentArchive [14:05:07]shift 245 fd 49085 [14:05:07]save to /storage/0245/doc_00049085 [14:05:07]save last doc name /storage/0245/doc_00049085 to /storage/kkm_last_doc_name [14:05:07]save OK [14:05:07]Clear old archive folders... [14:05:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:05:07]tlvbuf is 0134D260 [14:05:07]SAM_PROTO_ClearQueue [14:05:07]wFMCommunicate request_size=4 [14:05:07]MH_SAM_APDU [14:05:07]CAPDU: 80 09 00 00 [14:05:07]Write to MH i2c: E2 08 00 08 51 80 09 00 00 00 00 00 00 CB [14:05:07]Write i2c OK [14:05:07]MH_I2C_Read... [14:05:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:07]Read from MH i2c: E2 [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: E2 03 00 [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: E2 03 00 08 51 00 90 00 CD [14:05:07]RAPDU: 90 00 [14:05:07]wFMCommunicate OK [14:05:07]SAM_PROTO_ClearQueue done [14:05:07]KKMCreateOFDPacket [14:05:07]OFDProtocolAddRootSTLVToBuf [14:05:07]FM_MakeSignedData [14:05:07]FM_MakeSignedData [14:05:07]SAM_PROTO_SignData [14:05:07]wFMCommunicate request_size=4 [14:05:07]MH_SAM_APDU [14:05:07]CAPDU: 80 0D 01 02 [14:05:07]Write to MH i2c: E2 08 00 09 51 80 0D 01 02 00 00 00 00 D3 [14:05:07]Write i2c OK [14:05:07]MH_I2C_Read... [14:05:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:07]Read from MH i2c: E2 [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: E2 03 00 [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: E2 03 00 09 51 00 90 00 CE [14:05:07]RAPDU: 90 00 [14:05:07]wFMCommunicate OK [14:05:07]wFMCommunicate request_size=255 [14:05:07]MH_SAM_APDU [14:05:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A0 B0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E8 [14:05:07]Write to MH i2c: E2 02 01 0A 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 09 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A0 B0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E8 00 00 90 [14:05:07]Write i2c OK [14:05:07]MH_I2C_Read... [14:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:07]Read from MH i2c: E2 [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: E2 03 00 [14:05:07]MH_I2C_Read... [14:05:07]Read from MH i2c: E2 03 00 0A 51 00 90 00 CF [14:05:07]RAPDU: 90 00 [14:05:07]wFMCommunicate OK [14:05:07]wFMCommunicate request_size=10 [14:05:08]MH_SAM_APDU [14:05:08]CAPDU: 80 0D 02 02 05 C6 DD 11 DA 63 [14:05:08]Write to MH i2c: E2 0D 00 0B 51 80 0D 02 02 05 00 C6 DD 11 DA 63 00 00 D1 [14:05:08]Write i2c OK [14:05:08]MH_I2C_Read... [14:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:08]Read from MH i2c: E2 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: E2 03 00 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: E2 03 00 0B 51 00 90 00 D0 [14:05:08]RAPDU: 90 00 [14:05:08]wFMCommunicate OK [14:05:08]wFMCommunicate request_size=4 [14:05:08]MH_SAM_APDU [14:05:08]CAPDU: 80 0D 03 02 [14:05:08]Write to MH i2c: E2 08 00 0C 51 80 0D 03 02 00 00 00 00 D8 [14:05:08]Write i2c OK [14:05:08]MH_I2C_Read... [14:05:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:08]Read from MH i2c: E2 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: E2 0B 00 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: E2 0B 00 0C 51 00 A5 91 15 EC 45 3F 22 57 90 00 0D [14:05:08]RAPDU: A5 91 15 EC 45 3F 22 57 90 00 [14:05:08]wFMCommunicate OK [14:05:08]SAM_PROTO_SignData done [14:05:08]FM_MakeSignedData done [14:05:08]CreateOFDProtocolMessage [14:05:08]wFMCommunicate request_size=4 [14:05:08]MH_SAM_APDU [14:05:08]CAPDU: 80 11 00 00 [14:05:08]Write to MH i2c: E2 08 00 0D 51 80 11 00 00 00 00 00 00 D8 [14:05:08]Write i2c OK [14:05:08]MH_I2C_Read... [14:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:08]Read from MH i2c: E2 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: E2 17 00 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: E2 17 00 0D 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 25 [14:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:05:08]wFMCommunicate OK [14:05:08]CreateOFDProtocolMessage done [14:05:08]OFDSenderStorePacket 49085 [14:05:08]StoreOFDPacket docnum=49085 [14:05: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 E6 2F 07 01 D9 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 BA 09 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A0 B0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E8 C6 DD 11 DA 63 A5 91 15 EC 45 3F 22 57 [14:05:08]CheckFolder [14:05:08]dirname=/storage/ofd_packets [14:05:08]CheckFolder done [14:05:08]ProducePacketName [14:05:08]name=ofd_packets/00049085 [14:05:08]NVStorageSaveData ofd_packets/00049085 [14:05:08]File name is /storage/ofd_packets/00049085 [14:05:08]Write 301 bytes [14:05:08]NVStorageSaveData done [14:05:08]OFDSenderStorePacket done [14:05:08]KKMCreateOFDPacket done [14:05:08]NVStorageSaveData kkm_last_timestamp [14:05:08]File name is /storage/kkm_last_timestamp [14:05:08]Write 4 bytes [14:05:08]NVStorageSaveData done [14:05:08]ExternCall_PrintAddStr [14:05:08]wPrintStart [14:05:08]Write to MH i2c: 01 00 00 0E 51 5F [14:05:08]Write i2c OK [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: 01 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: 01 07 00 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: 01 07 00 0E 51 00 00 00 00 00 FF 0F 74 [14:05:08]RasterBufferAndPrint [14:05:08]line Счет N : (1)216186 [14:05:08]line ИÐÐ: 02508201610067 [14:05:08]line Контрольно-КаÑÑовый Чек [14:05:08]line ПРОДÐЖР[14:05:08]line ТРК (МРК, ГÐК) : 22 [14:05:08]line Товар: 2710124130 [14:05:08]line Ðи-92-К-5 [14:05:08]line 2.490 * 60.30 [14:05:08]line = 150.15 [14:05:08]line ÐДС 12% ÐСП 1% [14:05:08]line > о реализуемом товаре [14:05:08]line ОКРУГЛЕÐИЕ: -0.15 [14:05:08]line ИТОГО: 150.00 [14:05:08]line ВнеÑено: 150.00 [14:05:08]line СДÐЧÐ: 0.00 [14:05:08]line ÐСП 1% : 1.33 [14:05:08]line ÐДС 12% : 15.94 [14:05:08]line Ðаличными: 150.00 [14:05:08]line Безнал.: 0.00 [14:05:08]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [14:05:08]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:05:08]line СÐО: Общий режим [14:05:08]line Чек 68 29.01.2024 14:05 [14:05:08]line Смена: 245 ФФД: 1.0 [14:05:08]line ЗÐМ: 0300000040 [14:05:08]line РÐМ: 0000000000092723 [14:05:08]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [14:05:08]line ФМ: 0000000000875060 [14:05:08]line ФД: 49085 [14:05:08]line ФПД: 255940810103395 [14:05:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T140520&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49085&fm=255940810103395&tin=02508201610067®Number=0000000000092723&sum=15000 [14:05:08]OFD Sender: Processing packet 49085 [packets to send 12, broken 11] [14:05:08]ProducePacketName [14:05:08]name=ofd_packets/00049085 [14:05:08]OFD Sender: To server: ‡•öpG, [14:05:08]CommunicateWithHost lk.salyk.kg:30040 [14:05:08]ConnectInit lk.salyk.kg [14:05:08]written 0, free lines is 4095 [14:05:08]Connected sock=10 [14:05:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 E6 2F 07 01 D9 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 BA 09 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 A7 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 A0 B0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E8 C6 DD 11 DA 63 A5 91 15 EC 45 3F 22 57 [14:05: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 11 C0 47 00 6F D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BD BF 00 00 F4 03 04 00 98 5C B7 65 B6 04 01 00 00 57 F6 1F A1 41 58 D8 F7 [14:05:08]CommunicateWithHost err = 0 [14:05:08]CheckOFDResponse [14:05:08]1017 (14) - 77093643461234 [14:05:08]1041 (16) - 0000000000875060 [14:05:08]1040 (4) - 49085 [14:05:08]1012 (4) - 29.01.2024 08:06 [14:05:08]1206 (1) - 0 [14:05:08]OFD Sender: Remove packet 49085 [14:05:08]ProducePacketName [14:05:08]name=ofd_packets/00049085 [14:05:08]NVStorageDeleteData [14:05:08]Write to MH i2c: 01 00 00 39 51 8A [14:05:08]Write i2c OK [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: 01 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: 01 07 00 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: 01 07 00 39 51 00 00 00 00 00 01 0D 9F [14:05:08]RasterBufferAndPrint [14:05:08]line [14:05:08]line [14:05:08]line [14:05:08]line [14:05:08]line [14:05:08]written 0, free lines is 3344 [14:05:08]MH_Cut [14:05:08]Write to MH i2c: D1 01 00 40 51 01 63 [14:05:08]Write i2c OK [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: D1 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: D1 01 00 [14:05:08]MH_I2C_Read... [14:05:08]Read from MH i2c: D1 01 00 40 51 00 62 [14:05:08]Write to MH i2c: 01 00 00 41 51 92 [14:05:08]Write i2c OK [14:05:08]MH_I2C_Read... [14:05:09]OFD Sender: No OFD packet to send [14:05:09]*** Cut start [14:05:09]*** Partial cut [14:05:09]*** CUTSNS_PIN = 1 [14:05:09]*** CUTSNS_PIN = 0 [14:05:09]*** Brake cut motor [14:05:09]Read from MH i2c: 01 [14:05:09]MH_I2C_Read... [14:05:09]*** Stop cut motor [14:05:09]*** Cut end [14:05:09]Read from MH i2c: 01 07 00 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: 01 07 00 41 51 00 00 00 00 00 FF 0F A7 [14:05:09]process_action close_receipt done [14:05:09]requested_data is exist [14:05:09]produce_requested_data [14:05:09]requested_item fm.sn is exist - process it [14:05:09]wFMCommunicate request_size=4 [14:05:09]MH_SAM_APDU [14:05:09]CAPDU: 80 11 00 00 [14:05:09]Write to MH i2c: E2 08 00 42 51 80 11 00 00 00 00 00 00 0D [14:05:09]Write i2c OK [14:05:09]MH_I2C_Read... [14:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:09]Read from MH i2c: E2 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 17 00 [14:05:09]MH_I2C_Read... [14:05:09]Read from MH i2c: E2 17 00 42 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5A [14:05: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:05:09]wFMCommunicate OK [14:05:09]requested_item fd.num is exist - process it [14:05:09]SAM_PROTO_GetFieldsCounters [14:05:09]wFMCommunicate request_size=4 [14:05:09]MH_SAM_APDU [14:05:09]CAPDU: 80 13 00 00 [14:05:09]Write to MH i2c: E2 08 00 43 51 80 13 00 00 00 00 00 00 10 [14:05:09]Write i2c OK [14:05:09]MH_I2C_Read... [14:05:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:10]Read from MH i2c: E2 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 62 00 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 62 00 43 51 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 BF 00 00 0E 04 04 00 F5 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 66 [14:05:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:05:10]wFMCommunicate OK [14:05:10]SAM_PROTO_GetFieldsCounters done [14:05:10]requested_item shift.num is exist - process it [14:05:10]requested_item shift.opened is exist - process it [14:05:10]req_shift_opened [14:05:10]FM_GetShiftState [14:05:10]SAM_PROTO_GetShiftState [14:05:10]wFMCommunicate request_size=4 [14:05:10]MH_SAM_APDU [14:05:10]CAPDU: 80 13 01 00 [14:05:10]Write to MH i2c: E2 08 00 44 51 80 13 01 00 00 00 00 00 12 [14:05:10]Write i2c OK [14:05:10]MH_I2C_Read... [14:05:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:10]Read from MH i2c: E2 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 0E 00 [14:05:10]MH_I2C_Read... [14:05:10]Read from MH i2c: E2 0E 00 44 51 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 84 [14:05:10]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:05:10]wFMCommunicate OK [14:05:10]SAM_PROTO_GetShiftState done [14:05:10]FM_GetShiftState done [14:05:10]req_shift_opened done [14:05:10]requested_item shift.open_date is exist - process it [14:05:10]req_shift_open_date [14:05:10]req_shift_open_date done [14:05:10]produce_requested_data done [14:05:10]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49085,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [14:05:10]process_action_free close_receipt [14:05:10]json_value_free [14:05:10]json_value_free done [14:05:10]process_json_proto returns [14:05:10]Send response to host [14:05:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49085,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [14:05:10]free response buf [14:05:10]execute_script done [14:05:10]execute_script returns [14:05:10]free content buf [14:05:10]Sock 9.Close socket [14:05:10]Sock 9.Thread stoped [14:05:14]OFD Sender: No OFD packet to send [14:05:19]OFD Sender: No OFD packet to send [14:05:24]OFD Sender: No OFD packet to send [14:05:29]OFD Sender: No OFD packet to send [14:05:34]OFD Sender: No OFD packet to send [14:05:39]OFD Sender: No OFD packet to send [14:05:44]OFD Sender: No OFD packet to send [14:05:49]OFD Sender: No OFD packet to send [14:05:54]OFD Sender: No OFD packet to send [14:05:59]OFD Sender: No OFD packet to send [14:06:04]OFD Sender: No OFD packet to send [14:06:09]OFD Sender: No OFD packet to send [14:06:14]OFD Sender: No OFD packet to send [14:06:19]OFD Sender: No OFD packet to send [14:06:24]OFD Sender: No OFD packet to send [14:06:29]OFD Sender: No OFD packet to send [14:06:34]OFD Sender: No OFD packet to send [14:06:39]OFD Sender: No OFD packet to send [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:39]OFD Sender: No OFD packet to send [14:08:44]OFD Sender: No OFD packet to send [14:08:49]OFD Sender: No OFD packet to send [14:08:53]accept exits with 7 [14:08:53]New connection [14:08:53]New thread 3066670436 created [14:08:53]Thread 3066813796 joined [14:08:53]Waiting for new connection... [14:08:53] Sock 7.Parse request [14:08:53]Sock 7.Check first char [14:08:53]Sock 7.First char is OK [14:08:53]request: POST /json_proto HTTP/1.0 [14:08:53]Method: POST [14:08:53]URL: /json_proto [14:08:53]Method is POST - this is cgi request [14:08:53]url: /json_proto [14:08:53]query_string will be loaded in cgi processing [14:08:53]execute_cgi json_proto POST (null) [14:08:53]execute_cgi path=json_proto method=POST [14:08:53]POST find Content-Length [14:08:53]Host: 172.17.56.67:8080 [14:08:53]Content-Length: 671 [14:08:53]Content-Type: application/json [14:08:53] [14:08:53]POST finish read [14:08:53]Found Content-Length = 671 [14:08:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216187", "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" : 0.020, "sum" : 1.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:53]execute_script... [14:08: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)216187", "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" : 0.020, "sum" : 1.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 1.00, "payments": [ { "type": 0, "sum" : 1.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:53]POST & json_proto [14:08:53]process_json_proto [14:08:53]json parsed OK: [14:08:53]protocol is kg_v1.0 [14:08:53]action value=close_receipt [14:08:53]process_action close_receipt [14:08:53]cmd_close_receipt [14:08:53]MH_GetDate [14:08:53]Write to MH i2c: F0 00 00 45 51 85 [14:08:53]Write i2c OK [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: F0 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: F0 09 00 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: F0 09 00 45 51 00 83 B1 B7 65 26 5D 9E 65 64 [14:08:53]GetLastDocTimeStamp 1706537120 [14:08:53]current date 1706537347 [14:08:53]FM_GetShiftState [14:08:53]SAM_PROTO_GetShiftState [14:08:53]wFMCommunicate request_size=4 [14:08:53]MH_SAM_APDU [14:08:53]CAPDU: 80 13 01 00 [14:08:53]Write to MH i2c: E2 08 00 46 51 80 13 01 00 00 00 00 00 14 [14:08:53]Write i2c OK [14:08:53]MH_I2C_Read... [14:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:53]Read from MH i2c: E2 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: E2 0E 00 [14:08:53]MH_I2C_Read... [14:08:53]Read from MH i2c: E2 0E 00 46 51 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 86 [14:08:53]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:08:53]wFMCommunicate OK [14:08:53]SAM_PROTO_GetShiftState done [14:08:53]FM_GetShiftState done [14:08:53]opened in 1706486624 [14:08:53]opened+sec_in_day 1706573024 [14:08:53]quantity*price = 120 [14:08:53]sum+1 = 122 [14:08:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.21 ИТОГО: 1.00 ВнеÑено: 400.00 СДÐЧÐ: 399.00 ÐСП 1% : 0.01 ÐДС 12% : 0.13 Ðаличными: 1.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 69 29.01.2024 14:09 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49086 ФПД: 252460635040056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T140907&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49086&fm=252460635040056&tin=02508201610067®Number=0000000000092723&sum=100 [14:08:54]StoreToDocumentArchive [14:08:54]shift 245 fd 49086 [14:08:54]save to /storage/0245/doc_00049086 [14:08:54]save last doc name /storage/0245/doc_00049086 to /storage/kkm_last_doc_name [14:08:54]save OK [14:08:54]Clear old archive folders... [14:08:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:54]tlvbuf is 01284320 [14:08:54]SAM_PROTO_ClearQueue [14:08:54]wFMCommunicate request_size=4 [14:08:54]MH_SAM_APDU [14:08:54]CAPDU: 80 09 00 00 [14:08:54]Write to MH i2c: E2 08 00 53 51 80 09 00 00 00 00 00 00 16 [14:08:54]Write i2c OK [14:08:54]MH_I2C_Read... [14:08:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:54]Read from MH i2c: E2 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 03 00 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 03 00 53 51 00 90 00 18 [14:08:54]RAPDU: 90 00 [14:08:54]wFMCommunicate OK [14:08:54]SAM_PROTO_ClearQueue done [14:08:54]KKMCreateOFDPacket [14:08:54]OFDProtocolAddRootSTLVToBuf [14:08:54]FM_MakeSignedData [14:08:54]FM_MakeSignedData [14:08:54]SAM_PROTO_SignData [14:08:54]wFMCommunicate request_size=4 [14:08:54]MH_SAM_APDU [14:08:54]CAPDU: 80 0D 01 02 [14:08:54]Write to MH i2c: E2 08 00 54 51 80 0D 01 02 00 00 00 00 1E [14:08:54]Write i2c OK [14:08:54]MH_I2C_Read... [14:08:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:54]Read from MH i2c: E2 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 03 00 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 03 00 54 51 00 90 00 19 [14:08:54]RAPDU: 90 00 [14:08:54]wFMCommunicate OK [14:08:54]wFMCommunicate request_size=255 [14:08:54]MH_SAM_APDU [14:08: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 14 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 79 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 83 B1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E5 [14:08:54]Write to MH i2c: E2 02 01 55 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 79 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 83 B1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E5 00 00 14 [14:08:54]Write i2c OK [14:08:54]MH_I2C_Read... [14:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:54]Read from MH i2c: E2 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 03 00 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 03 00 55 51 00 90 00 1A [14:08:54]RAPDU: 90 00 [14:08:54]wFMCommunicate OK [14:08:54]wFMCommunicate request_size=10 [14:08:54]MH_SAM_APDU [14:08:54]CAPDU: 80 0D 02 02 05 9C 92 78 A9 38 [14:08:54]Write to MH i2c: E2 0D 00 56 51 80 0D 02 02 05 00 9C 92 78 A9 38 00 00 B2 [14:08:54]Write i2c OK [14:08:54]MH_I2C_Read... [14:08:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:54]Read from MH i2c: E2 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 03 00 [14:08:54]MH_I2C_Read... [14:08:54]Read from MH i2c: E2 03 00 56 51 00 90 00 1B [14:08:54]RAPDU: 90 00 [14:08:54]wFMCommunicate OK [14:08:54]wFMCommunicate request_size=4 [14:08:54]MH_SAM_APDU [14:08:54]CAPDU: 80 0D 03 02 [14:08:54]Write to MH i2c: E2 08 00 57 51 80 0D 03 02 00 00 00 00 23 [14:08:54]Write i2c OK [14:08:54]MH_I2C_Read... [14:08:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:55]Read from MH i2c: E2 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: E2 0B 00 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: E2 0B 00 57 51 00 66 0D 34 82 45 EA 3E C9 90 00 83 [14:08:55]RAPDU: 66 0D 34 82 45 EA 3E C9 90 00 [14:08:55]wFMCommunicate OK [14:08:55]SAM_PROTO_SignData done [14:08:55]FM_MakeSignedData done [14:08:55]CreateOFDProtocolMessage [14:08:55]wFMCommunicate request_size=4 [14:08:55]MH_SAM_APDU [14:08:55]CAPDU: 80 11 00 00 [14:08:55]Write to MH i2c: E2 08 00 58 51 80 11 00 00 00 00 00 00 23 [14:08:55]Write i2c OK [14:08:55]MH_I2C_Read... [14:08:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:55]Read from MH i2c: E2 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: E2 17 00 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: E2 17 00 58 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 70 [14:08:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:08:55]wFMCommunicate OK [14:08:55]CreateOFDProtocolMessage done [14:08:55]OFDSenderStorePacket 49086 [14:08:55]StoreOFDPacket docnum=49086 [14:08: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 C5 81 07 01 E1 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 79 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 83 B1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E5 9C 92 78 A9 38 66 0D 34 82 45 EA 3E C9 [14:08:55]CheckFolder [14:08:55]dirname=/storage/ofd_packets [14:08:55]CheckFolder done [14:08:55]ProducePacketName [14:08:55]name=ofd_packets/00049086 [14:08:55]NVStorageSaveData ofd_packets/00049086 [14:08:55]File name is /storage/ofd_packets/00049086 [14:08:55]Write 301 bytes [14:08:55]NVStorageSaveData done [14:08:55]OFDSenderStorePacket done [14:08:55]KKMCreateOFDPacket done [14:08:55]NVStorageSaveData kkm_last_timestamp [14:08:55]File name is /storage/kkm_last_timestamp [14:08:55]Write 4 bytes [14:08:55]NVStorageSaveData done [14:08:55]ExternCall_PrintAddStr [14:08:55]wPrintStart [14:08:55]Write to MH i2c: 01 00 00 59 51 AA [14:08:55]Write i2c OK [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: 01 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: 01 07 00 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: 01 07 00 59 51 00 00 00 00 00 FF 0F BF [14:08:55]RasterBufferAndPrint [14:08:55]line Счет N : (1)216187 [14:08:55]line ИÐÐ: 02508201610067 [14:08:55]line Контрольно-КаÑÑовый Чек [14:08:55]line ПРОДÐЖР[14:08:55]line ТРК (МРК, ГÐК) : 22 [14:08:55]line Товар: 2710124130 [14:08:55]line Ðи-92-К-5 [14:08:55]line 0.020 * 60.30 [14:08:55]line = 1.21 [14:08:55]line ÐДС 12% ÐСП 1% [14:08:55]line > о реализуемом товаре [14:08:55]line ОКРУГЛЕÐИЕ: -0.21 [14:08:55]line ИТОГО: 1.00 [14:08:55]line ВнеÑено: 400.00 [14:08:55]line СДÐЧÐ: 399.00 [14:08:55]line ÐСП 1% : 0.01 [14:08:55]line ÐДС 12% : 0.13 [14:08:55]line Ðаличными: 1.00 [14:08:55]line Безнал.: 0.00 [14:08:55]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [14:08:55]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:08:55]line СÐО: Общий режим [14:08:55]line Чек 69 29.01.2024 14:09 [14:08:55]line Смена: 245 ФФД: 1.0 [14:08:55]line ЗÐМ: 0300000040 [14:08:55]line РÐМ: 0000000000092723 [14:08:55]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [14:08:55]line ФМ: 0000000000875060 [14:08:55]line ФД: 49086 [14:08:55]line ФПД: 252460635040056 [14:08:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T140907&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49086&fm=252460635040056&tin=02508201610067®Number=0000000000092723&sum=100 [14:08:55]OFD Sender: Processing packet 49086 [packets to send 12, broken 11] [14:08:55]ProducePacketName [14:08:55]name=ofd_packets/00049086 [14:08:55]OFD Sender: To server: ‡•öpG, [14:08:55]CommunicateWithHost lk.salyk.kg:30040 [14:08:55]ConnectInit lk.salyk.kg [14:08:55]written 0, free lines is 4095 [14:08:55]Connected sock=10 [14:08: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 C5 81 07 01 E1 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 00 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 79 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 00 00 00 00 00 07 04 06 00 64 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 83 B1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E5 9C 92 78 A9 38 66 0D 34 82 45 EA 3E C9 [14:08: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 9E 94 47 00 ED E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 BE BF 00 00 F4 03 04 00 7B 5D B7 65 B6 04 01 00 00 D7 F0 4D B1 D9 DB 34 2B [14:08:55]CommunicateWithHost err = 0 [14:08:55]CheckOFDResponse [14:08:55]1017 (14) - 77093643461234 [14:08:55]1041 (16) - 0000000000875060 [14:08:55]1040 (4) - 49086 [14:08:55]1012 (4) - 29.01.2024 08:10 [14:08:55]1206 (1) - 0 [14:08:55]OFD Sender: Remove packet 49086 [14:08:55]ProducePacketName [14:08:55]name=ofd_packets/00049086 [14:08:55]NVStorageDeleteData [14:08:55]Write to MH i2c: 01 00 00 84 51 D5 [14:08:55]Write i2c OK [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: 01 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: 01 07 00 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: 01 07 00 84 51 00 00 00 00 00 F9 0C E1 [14:08:55]RasterBufferAndPrint [14:08:55]line [14:08:55]line [14:08:55]line [14:08:55]line [14:08:55]line [14:08:55]written 0, free lines is 3327 [14:08:55]MH_Cut [14:08:55]Write to MH i2c: D1 01 00 8B 51 01 AE [14:08:55]Write i2c OK [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: D1 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: D1 01 00 [14:08:55]MH_I2C_Read... [14:08:55]Read from MH i2c: D1 01 00 8B 51 00 AD [14:08:55]Write to MH i2c: 01 00 00 8C 51 DD [14:08:55]Write i2c OK [14:08:55]MH_I2C_Read... [14:08:56]OFD Sender: No OFD packet to send [14:08:56]*** Cut start [14:08:56]*** Partial cut [14:08:56]*** CUTSNS_PIN = 1 [14:08:56]*** CUTSNS_PIN = 0 [14:08:56]*** Brake cut motor [14:08:57]Read from MH i2c: 01 [14:08:57]MH_I2C_Read... [14:08:57]*** Stop cut motor [14:08:57]*** Cut end [14:08:57]Read from MH i2c: 01 07 00 [14:08:57]MH_I2C_Read... [14:08:57]Read from MH i2c: 01 07 00 8C 51 00 00 00 00 00 FF 0F F2 [14:08:57]process_action close_receipt done [14:08:57]requested_data is exist [14:08:57]produce_requested_data [14:08:57]requested_item fm.sn is exist - process it [14:08:57]wFMCommunicate request_size=4 [14:08:57]MH_SAM_APDU [14:08:57]CAPDU: 80 11 00 00 [14:08:57]Write to MH i2c: E2 08 00 8D 51 80 11 00 00 00 00 00 00 58 [14:08:57]Write i2c OK [14:08:57]MH_I2C_Read... [14:08:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:57]Read from MH i2c: E2 [14:08:57]MH_I2C_Read... [14:08:57]Read from MH i2c: E2 17 00 [14:08:57]MH_I2C_Read... [14:08:57]Read from MH i2c: E2 17 00 8D 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A5 [14:08: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:08:57]wFMCommunicate OK [14:08:57]requested_item fd.num is exist - process it [14:08:57]SAM_PROTO_GetFieldsCounters [14:08:57]wFMCommunicate request_size=4 [14:08:57]MH_SAM_APDU [14:08:57]CAPDU: 80 13 00 00 [14:08:57]Write to MH i2c: E2 08 00 8E 51 80 13 00 00 00 00 00 00 5B [14:08:57]Write i2c OK [14:08:57]MH_I2C_Read... [14:08:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:57]Read from MH i2c: E2 [14:08:57]MH_I2C_Read... [14:08:57]Read from MH i2c: E2 62 00 [14:08:57]MH_I2C_Read... [14:08:57]Read from MH i2c: E2 62 00 8E 51 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 BF 00 00 0E 04 04 00 F5 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 B5 [14:08: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 BE BF 00 00 0E 04 04 00 F5 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:08:57]wFMCommunicate OK [14:08:57]SAM_PROTO_GetFieldsCounters done [14:08:57]requested_item shift.num is exist - process it [14:08:57]requested_item shift.opened is exist - process it [14:08:57]req_shift_opened [14:08:57]FM_GetShiftState [14:08:57]SAM_PROTO_GetShiftState [14:08:57]wFMCommunicate request_size=4 [14:08:57]MH_SAM_APDU [14:08:57]CAPDU: 80 13 01 00 [14:08:57]Write to MH i2c: E2 08 00 8F 51 80 13 01 00 00 00 00 00 5D [14:08:57]Write i2c OK [14:08:57]MH_I2C_Read... [14:08:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:57]Read from MH i2c: E2 [14:08:57]MH_I2C_Read... [14:08:57]Read from MH i2c: E2 0E 00 [14:08:57]MH_I2C_Read... [14:08:57]Read from MH i2c: E2 0E 00 8F 51 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 CF [14:08:57]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:08:57]wFMCommunicate OK [14:08:57]SAM_PROTO_GetShiftState done [14:08:57]FM_GetShiftState done [14:08:57]req_shift_opened done [14:08:57]requested_item shift.open_date is exist - process it [14:08:57]req_shift_open_date [14:08:57]req_shift_open_date done [14:08:57]produce_requested_data done [14:08:57]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49086,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [14:08:57]process_action_free close_receipt [14:08:57]json_value_free [14:08:57]json_value_free done [14:08:57]process_json_proto returns [14:08:57]Send response to host [14:08:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49086,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [14:08:57]free response buf [14:08:57]execute_script done [14:08:57]execute_script returns [14:08:57]free content buf [14:08:57]Sock 7.Close socket [14:08:57]Sock 7.Thread stoped [14:09:01]OFD Sender: No OFD packet to send [14:09:06]OFD Sender: No OFD packet to send [14:09:11]OFD Sender: No OFD packet to send [14:09:16]OFD Sender: No OFD packet to send [14:09:21]OFD Sender: No OFD packet to send [14:09:26]OFD Sender: No OFD packet to send [14:09:31]OFD Sender: No OFD packet to send [14:09:36]OFD Sender: No OFD packet to send [14:09:41]OFD Sender: No OFD packet to send [14:09:46]OFD Sender: No OFD packet to send [14:09:51]OFD Sender: No OFD packet to send [14:09:56]OFD Sender: No OFD packet to send [14:10:01]OFD Sender: No OFD packet to send [14:10:06]OFD Sender: No OFD packet to send [14:10:11]OFD Sender: No OFD packet to send [14:10:16]OFD Sender: No OFD packet to send [14:10:21]OFD Sender: No OFD packet to send [14:10:26]OFD Sender: No OFD packet to send [14:10:31]OFD Sender: No OFD packet to send [14:10:36]OFD Sender: No OFD packet to send [14:10:41]OFD Sender: No OFD packet to send [14:10:46]OFD Sender: No OFD packet to send [14:10:51]OFD Sender: No OFD packet to send [14:10:56]OFD Sender: No OFD packet to send [14:11:01]OFD Sender: No OFD packet to send [14:11:06]OFD Sender: No OFD packet to send [14:11:11]OFD Sender: No OFD packet to send [14:11:16]OFD Sender: No OFD packet to send [14:11:21]OFD Sender: No OFD packet to send [14:11:26]OFD Sender: No OFD packet to send [14:11:31]OFD Sender: No OFD packet to send [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]accept exits with 9 [14:12:56]New connection [14:12:56]New thread 3066813796 created [14:12:56]Thread 3066670436 joined [14:12:56]Waiting for new connection... [14:12:56] Sock 9.Parse request [14:12:56]Sock 9.Check first char [14:12:56]Sock 9.First char is OK [14:12:56]request: POST /json_proto HTTP/1.0 [14:12:56]Method: POST [14:12:56]URL: /json_proto [14:12:56]Method is POST - this is cgi request [14:12:56]url: /json_proto [14:12:56]query_string will be loaded in cgi processing [14:12:56]execute_cgi json_proto POST (null) [14:12:56]execute_cgi path=json_proto method=POST [14:12:56]POST find Content-Length [14:12:56]Host: 172.17.56.67:8080 [14:12:56]Content-Length: 677 [14:12:56]Content-Type: application/json [14:12:56] [14:12:56]POST finish read [14:12:56]Found Content-Length = 677 [14:12:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216188", "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:12:56]execute_script... [14:12:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216188", "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:12:56]POST & json_proto [14:12:56]process_json_proto [14:12:56]json parsed OK: [14:12:56]protocol is kg_v1.0 [14:12:56]action value=close_receipt [14:12:56]process_action close_receipt [14:12:56]cmd_close_receipt [14:12:56]MH_GetDate [14:12:56]Write to MH i2c: F0 00 00 90 51 D0 [14:12:56]Write i2c OK [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: F0 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: F0 09 00 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: F0 09 00 90 51 00 76 B2 B7 65 26 5D 9E 65 A3 [14:12:56]GetLastDocTimeStamp 1706537347 [14:12:56]current date 1706537590 [14:12:56]FM_GetShiftState [14:12:56]SAM_PROTO_GetShiftState [14:12:56]wFMCommunicate request_size=4 [14:12:56]MH_SAM_APDU [14:12:56]CAPDU: 80 13 01 00 [14:12:56]Write to MH i2c: E2 08 00 91 51 80 13 01 00 00 00 00 00 5F [14:12:56]Write i2c OK [14:12:56]MH_I2C_Read... [14:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:56]Read from MH i2c: E2 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: E2 0E 00 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: E2 0E 00 91 51 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 D1 [14:12:56]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:12:56]wFMCommunicate OK [14:12:56]SAM_PROTO_GetShiftState done [14:12:56]FM_GetShiftState done [14:12:56]opened in 1706486624 [14:12:56]opened+sec_in_day 1706573024 [14:12:56]quantity*price = 30029 [14:12:56]sum+1 = 30030 [14:12: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 СÐО: Общий режим Чек 70 29.01.2024 14:13 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49087 ФПД: 14105169504052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T141310&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49087&fm=14105169504052&tin=02508201610067®Number=0000000000092723&sum=30000 [14:12:57]StoreToDocumentArchive [14:12:57]shift 245 fd 49087 [14:12:57]save to /storage/0245/doc_00049087 [14:12:57]save last doc name /storage/0245/doc_00049087 to /storage/kkm_last_doc_name [14:12:57]save OK [14:12:57]Clear old archive folders... [14:12:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:57]tlvbuf is 01283EF0 [14:12:57]SAM_PROTO_ClearQueue [14:12:57]wFMCommunicate request_size=4 [14:12:57]MH_SAM_APDU [14:12:57]CAPDU: 80 09 00 00 [14:12:57]Write to MH i2c: E2 08 00 9E 51 80 09 00 00 00 00 00 00 61 [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:57]Read from MH i2c: E2 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 03 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 03 00 9E 51 00 90 00 63 [14:12:57]RAPDU: 90 00 [14:12:57]wFMCommunicate OK [14:12:57]SAM_PROTO_ClearQueue done [14:12:57]KKMCreateOFDPacket [14:12:57]OFDProtocolAddRootSTLVToBuf [14:12:57]FM_MakeSignedData [14:12:57]FM_MakeSignedData [14:12:57]SAM_PROTO_SignData [14:12:57]wFMCommunicate request_size=4 [14:12:57]MH_SAM_APDU [14:12:57]CAPDU: 80 0D 01 02 [14:12:57]Write to MH i2c: E2 08 00 9F 51 80 0D 01 02 00 00 00 00 69 [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:57]Read from MH i2c: E2 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 03 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 03 00 9F 51 00 90 00 64 [14:12:57]RAPDU: 90 00 [14:12:57]wFMCommunicate OK [14:12:57]wFMCommunicate request_size=255 [14:12:57]MH_SAM_APDU [14:12:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 46 00 00 00 F4 03 04 00 76 B2 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 0C [14:12:57]Write to MH i2c: E2 02 01 A0 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 46 00 00 00 F4 03 04 00 76 B2 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 0C 00 00 38 [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:57]Read from MH i2c: E2 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 03 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 03 00 A0 51 00 90 00 65 [14:12:57]RAPDU: 90 00 [14:12:57]wFMCommunicate OK [14:12:57]wFMCommunicate request_size=10 [14:12:57]MH_SAM_APDU [14:12:57]CAPDU: 80 0D 02 02 05 D4 1D 9E 27 34 [14:12:57]Write to MH i2c: E2 0D 00 A1 51 80 0D 02 02 05 00 D4 1D 9E 27 34 00 00 60 [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:57]Read from MH i2c: E2 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 03 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 03 00 A1 51 00 90 00 66 [14:12:57]RAPDU: 90 00 [14:12:57]wFMCommunicate OK [14:12:57]wFMCommunicate request_size=4 [14:12:57]MH_SAM_APDU [14:12:57]CAPDU: 80 0D 03 02 [14:12:57]Write to MH i2c: E2 08 00 A2 51 80 0D 03 02 00 00 00 00 6E [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:57]Read from MH i2c: E2 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 0B 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 0B 00 A2 51 00 53 50 02 B8 15 97 5F 97 90 00 6E [14:12:57]RAPDU: 53 50 02 B8 15 97 5F 97 90 00 [14:12:57]wFMCommunicate OK [14:12:57]SAM_PROTO_SignData done [14:12:57]FM_MakeSignedData done [14:12:57]CreateOFDProtocolMessage [14:12:57]wFMCommunicate request_size=4 [14:12:57]MH_SAM_APDU [14:12:57]CAPDU: 80 11 00 00 [14:12:57]Write to MH i2c: E2 08 00 A3 51 80 11 00 00 00 00 00 00 6E [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:57]Read from MH i2c: E2 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 17 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 17 00 A3 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BB [14:12: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:12:57]wFMCommunicate OK [14:12:57]CreateOFDProtocolMessage done [14:12:57]OFDSenderStorePacket 49087 [14:12:57]StoreOFDPacket docnum=49087 [14:12: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 86 6D 07 01 8A DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 46 00 00 00 F4 03 04 00 76 B2 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 0C D4 1D 9E 27 34 53 50 02 B8 15 97 5F 97 [14:12:57]CheckFolder [14:12:57]dirname=/storage/ofd_packets [14:12:57]CheckFolder done [14:12:57]ProducePacketName [14:12:57]name=ofd_packets/00049087 [14:12:57]NVStorageSaveData ofd_packets/00049087 [14:12:57]File name is /storage/ofd_packets/00049087 [14:12:57]Write 301 bytes [14:12:57]NVStorageSaveData done [14:12:57]OFDSenderStorePacket done [14:12:57]KKMCreateOFDPacket done [14:12:57]NVStorageSaveData kkm_last_timestamp [14:12:57]File name is /storage/kkm_last_timestamp [14:12:57]Write 4 bytes [14:12:57]NVStorageSaveData done [14:12:57]ExternCall_PrintAddStr [14:12:57]wPrintStart [14:12:57]Write to MH i2c: 01 00 00 A4 51 F5 [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: 01 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: 01 07 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: 01 07 00 A4 51 00 00 00 00 00 FF 0F 0A [14:12:57]RasterBufferAndPrint [14:12:57]line Счет N : (1)216188 [14:12:57]line ИÐÐ: 02508201610067 [14:12:57]line Контрольно-КаÑÑовый Чек [14:12:57]line ПРОДÐЖР[14:12:57]line ТРК (МРК, ГÐК) : 22 [14:12:57]line Товар: 2710124130 [14:12:57]line Ðи-92-К-5 [14:12:57]line 4.980 * 60.30 [14:12:57]line = 300.29 [14:12:57]line ÐДС 12% ÐСП 1% [14:12:57]line > о реализуемом товаре [14:12:57]line ОКРУГЛЕÐИЕ: -0.29 [14:12:57]line ИТОГО: 300.00 [14:12:57]line ВнеÑено: 300.00 [14:12:57]line СДÐЧÐ: 0.00 [14:12:57]line ÐСП 1% : 2.66 [14:12:57]line ÐДС 12% : 31.89 [14:12:57]line Ðаличными: 300.00 [14:12:57]line Безнал.: 0.00 [14:12:57]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [14:12:57]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:12:57]line СÐО: Общий режим [14:12:57]line Чек 70 29.01.2024 14:13 [14:12:57]line Смена: 245 ФФД: 1.0 [14:12:57]line ЗÐМ: 0300000040 [14:12:57]line РÐМ: 0000000000092723 [14:12:57]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [14:12:57]line ФМ: 0000000000875060 [14:12:57]line ФД: 49087 [14:12:57]line ФПД: 14105169504052 [14:12:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T141310&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49087&fm=14105169504052&tin=02508201610067®Number=0000000000092723&sum=30000 [14:12:58]OFD Sender: Processing packet 49087 [packets to send 12, broken 11] [14:12:58]ProducePacketName [14:12:58]name=ofd_packets/00049087 [14:12:58]OFD Sender: To server: ‡•öpG, [14:12:58]CommunicateWithHost lk.salyk.kg:30040 [14:12:58]ConnectInit lk.salyk.kg [14:12:58]written 0, free lines is 4095 [14:12:58]Connected sock=10 [14:12:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 86 6D 07 01 8A DD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 46 00 00 00 F4 03 04 00 76 B2 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 0C D4 1D 9E 27 34 53 50 02 B8 15 97 5F 97 [14:12: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 C9 65 47 00 AA 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 BF BF 00 00 F4 03 04 00 6E 5E B7 65 B6 04 01 00 00 E1 1F 5D 2A D2 5F 08 E3 [14:12:58]CommunicateWithHost err = 0 [14:12:58]CheckOFDResponse [14:12:58]1017 (14) - 77093643461234 [14:12:58]1041 (16) - 0000000000875060 [14:12:58]1040 (4) - 49087 [14:12:58]1012 (4) - 29.01.2024 08:14 [14:12:58]1206 (1) - 0 [14:12:58]OFD Sender: Remove packet 49087 [14:12:58]ProducePacketName [14:12:58]name=ofd_packets/00049087 [14:12:58]NVStorageDeleteData [14:12:58]Write to MH i2c: 01 00 00 CF 51 20 [14:12:58]Write i2c OK [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: 01 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: 01 07 00 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: 01 07 00 CF 51 00 00 00 00 00 03 0D 37 [14:12:58]RasterBufferAndPrint [14:12:58]line [14:12:58]line [14:12:58]line [14:12:58]line [14:12:58]line [14:12:58]written 0, free lines is 3337 [14:12:58]MH_Cut [14:12:58]Write to MH i2c: D1 01 00 D6 51 01 F9 [14:12:58]Write i2c OK [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: D1 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: D1 01 00 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: D1 01 00 D6 51 00 F8 [14:12:58]Write to MH i2c: 01 00 00 D7 51 28 [14:12:58]Write i2c OK [14:12:58]MH_I2C_Read... [14:12:58]OFD Sender: No OFD packet to send [14:12:59]*** Cut start [14:12:59]*** Partial cut [14:12:59]*** CUTSNS_PIN = 1 [14:12:59]*** CUTSNS_PIN = 0 [14:12:59]*** Brake cut motor [14:12:59]Read from MH i2c: 01 [14:12:59]MH_I2C_Read... [14:12:59]*** Stop cut motor [14:12:59]*** Cut end [14:12:59]Read from MH i2c: 01 07 00 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: 01 07 00 D7 51 00 00 00 00 00 FF 0F 3D [14:12:59]process_action close_receipt done [14:12:59]requested_data is exist [14:12:59]produce_requested_data [14:12:59]requested_item fm.sn is exist - process it [14:12:59]wFMCommunicate request_size=4 [14:12:59]MH_SAM_APDU [14:12:59]CAPDU: 80 11 00 00 [14:12:59]Write to MH i2c: E2 08 00 D8 51 80 11 00 00 00 00 00 00 A3 [14:12:59]Write i2c OK [14:12:59]MH_I2C_Read... [14:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:59]Read from MH i2c: E2 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 17 00 [14:12:59]MH_I2C_Read... [14:12:59]Read from MH i2c: E2 17 00 D8 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F0 [14:12: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:12:59]wFMCommunicate OK [14:12:59]requested_item fd.num is exist - process it [14:12:59]SAM_PROTO_GetFieldsCounters [14:12:59]wFMCommunicate request_size=4 [14:12:59]MH_SAM_APDU [14:12:59]CAPDU: 80 13 00 00 [14:12:59]Write to MH i2c: E2 08 00 D9 51 80 13 00 00 00 00 00 00 A6 [14:12:59]Write i2c OK [14:12:59]MH_I2C_Read... [14:13:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:00]Read from MH i2c: E2 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 62 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 62 00 D9 51 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 BF 00 00 0E 04 04 00 F5 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 04 [14:13:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:13:00]wFMCommunicate OK [14:13:00]SAM_PROTO_GetFieldsCounters done [14:13:00]requested_item shift.num is exist - process it [14:13:00]requested_item shift.opened is exist - process it [14:13:00]req_shift_opened [14:13:00]FM_GetShiftState [14:13:00]SAM_PROTO_GetShiftState [14:13:00]wFMCommunicate request_size=4 [14:13:00]MH_SAM_APDU [14:13:00]CAPDU: 80 13 01 00 [14:13:00]Write to MH i2c: E2 08 00 DA 51 80 13 01 00 00 00 00 00 A8 [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:00]Read from MH i2c: E2 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 0E 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 0E 00 DA 51 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 1A [14:13:00]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:13:00]wFMCommunicate OK [14:13:00]SAM_PROTO_GetShiftState done [14:13:00]FM_GetShiftState done [14:13:00]req_shift_opened done [14:13:00]requested_item shift.open_date is exist - process it [14:13:00]req_shift_open_date [14:13:00]req_shift_open_date done [14:13:00]produce_requested_data done [14:13:00]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49087,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [14:13:00]process_action_free close_receipt [14:13:00]json_value_free [14:13:00]json_value_free done [14:13:00]process_json_proto returns [14:13:00]Send response to host [14:13:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49087,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [14:13:00]free response buf [14:13:00]execute_script done [14:13:00]execute_script returns [14:13:00]free content buf [14:13:00]Sock 9.Close socket [14:13:00]Sock 9.Thread stoped [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:23]accept exits with 7 [14:31:23]New connection [14:31:23]New thread 3066670436 created [14:31:23]Thread 3066813796 joined [14:31:23]Waiting for new connection... [14:31:23] Sock 7.Parse request [14:31:23]Sock 7.Check first char [14:31:23]Sock 7.First char is OK [14:31:23]request: POST /json_proto HTTP/1.0 [14:31:23]Method: POST [14:31:23]URL: /json_proto [14:31:23]Method is POST - this is cgi request [14:31:23]url: /json_proto [14:31:23]query_string will be loaded in cgi processing [14:31:23]execute_cgi json_proto POST (null) [14:31:23]execute_cgi path=json_proto method=POST [14:31:23]POST find Content-Length [14:31:23]Host: 172.17.56.67:8080 [14:31:23]Content-Length: 682 [14:31:23]Content-Type: application/json [14:31:23] [14:31:23]POST finish read [14:31:23]Found Content-Length = 682 [14:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216189", "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" ] } } [14:31:23]execute_script... [14:31:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216189", "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" ] } } [14:31:23]POST & json_proto [14:31:23]process_json_proto [14:31:23]json parsed OK: [14:31:23]protocol is kg_v1.0 [14:31:23]action value=close_receipt [14:31:23]process_action close_receipt [14:31:23]cmd_close_receipt [14:31:23]MH_GetDate [14:31:23]Write to MH i2c: F0 00 00 DB 51 1B [14:31:23]Write i2c OK [14:31:23]MH_I2C_Read... [14:31:23]Read from MH i2c: F0 [14:31:23]MH_I2C_Read... [14:31:23]Read from MH i2c: F0 09 00 [14:31:23]MH_I2C_Read... [14:31:23]Read from MH i2c: F0 09 00 DB 51 00 C9 B6 B7 65 26 5D 9E 65 45 [14:31:23]GetLastDocTimeStamp 1706537590 [14:31:23]current date 1706538697 [14:31:23]FM_GetShiftState [14:31:23]SAM_PROTO_GetShiftState [14:31:23]wFMCommunicate request_size=4 [14:31:23]MH_SAM_APDU [14:31:23]CAPDU: 80 13 01 00 [14:31:23]Write to MH i2c: E2 08 00 DC 51 80 13 01 00 00 00 00 00 AA [14:31:23]Write i2c OK [14:31:23]MH_I2C_Read... [14:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:23]Read from MH i2c: E2 [14:31:23]MH_I2C_Read... [14:31:23]Read from MH i2c: E2 0E 00 [14:31:23]MH_I2C_Read... [14:31:23]Read from MH i2c: E2 0E 00 DC 51 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 1C [14:31:23]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:31:23]wFMCommunicate OK [14:31:23]SAM_PROTO_GetShiftState done [14:31:23]FM_GetShiftState done [14:31:23]opened in 1706486624 [14:31:23]opened+sec_in_day 1706573024 [14:31:23]quantity*price = 100037 [14:31:23]sum+1 = 100039 [14:31:23]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 СÐО: Общий режим Чек 71 29.01.2024 14:31 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49088 ФПД: 119470257559278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T143138&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49088&fm=119470257559278&tin=02508201610067®Number=0000000000092723&sum=100000 [14:31:25]StoreToDocumentArchive [14:31:25]shift 245 fd 49088 [14:31:25]save to /storage/0245/doc_00049088 [14:31:25]save last doc name /storage/0245/doc_00049088 to /storage/kkm_last_doc_name [14:31:25]save OK [14:31:25]Clear old archive folders... [14:31:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:25]tlvbuf is 011F8090 [14:31:25]SAM_PROTO_ClearQueue [14:31:25]wFMCommunicate request_size=4 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 09 00 00 [14:31:25]Write to MH i2c: E2 08 00 E9 51 80 09 00 00 00 00 00 00 AC [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:25]Read from MH i2c: E2 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 E9 51 00 90 00 AE [14:31:25]RAPDU: 90 00 [14:31:25]wFMCommunicate OK [14:31:25]SAM_PROTO_ClearQueue done [14:31:25]KKMCreateOFDPacket [14:31:25]OFDProtocolAddRootSTLVToBuf [14:31:25]FM_MakeSignedData [14:31:25]FM_MakeSignedData [14:31:25]SAM_PROTO_SignData [14:31:25]wFMCommunicate request_size=4 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 0D 01 02 [14:31:25]Write to MH i2c: E2 08 00 EA 51 80 0D 01 02 00 00 00 00 B4 [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:25]Read from MH i2c: E2 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 EA 51 00 90 00 AF [14:31:25]RAPDU: 90 00 [14:31:25]wFMCommunicate OK [14:31:25]wFMCommunicate request_size=255 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 47 00 00 00 F4 03 04 00 CA B6 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 6C [14:31:25]Write to MH i2c: E2 02 01 EB 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 47 00 00 00 F4 03 04 00 CA B6 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 6C 00 00 E7 [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:25]Read from MH i2c: E2 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 EB 51 00 90 00 B0 [14:31:25]RAPDU: 90 00 [14:31:25]wFMCommunicate OK [14:31:25]wFMCommunicate request_size=10 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 0D 02 02 05 A8 56 43 56 EE [14:31:25]Write to MH i2c: E2 0D 00 EC 51 80 0D 02 02 05 00 A8 56 43 56 EE 00 00 46 [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:25]Read from MH i2c: E2 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 03 00 EC 51 00 90 00 B1 [14:31:25]RAPDU: 90 00 [14:31:25]wFMCommunicate OK [14:31:25]wFMCommunicate request_size=4 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 0D 03 02 [14:31:25]Write to MH i2c: E2 08 00 ED 51 80 0D 03 02 00 00 00 00 B9 [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:25]Read from MH i2c: E2 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 0B 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 0B 00 ED 51 00 AC C6 09 28 8D ED 54 A8 90 00 D3 [14:31:25]RAPDU: AC C6 09 28 8D ED 54 A8 90 00 [14:31:25]wFMCommunicate OK [14:31:25]SAM_PROTO_SignData done [14:31:25]FM_MakeSignedData done [14:31:25]CreateOFDProtocolMessage [14:31:25]wFMCommunicate request_size=4 [14:31:25]MH_SAM_APDU [14:31:25]CAPDU: 80 11 00 00 [14:31:25]Write to MH i2c: E2 08 00 EE 51 80 11 00 00 00 00 00 00 B9 [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:25]Read from MH i2c: E2 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 17 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: E2 17 00 EE 51 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:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:31:25]wFMCommunicate OK [14:31:25]CreateOFDProtocolMessage done [14:31:25]OFDSenderStorePacket 49088 [14:31:25]StoreOFDPacket docnum=49088 [14:31:25]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 70 D5 07 01 34 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 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 47 00 00 00 F4 03 04 00 CA B6 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 6C A8 56 43 56 EE AC C6 09 28 8D ED 54 A8 [14:31:25]CheckFolder [14:31:25]dirname=/storage/ofd_packets [14:31:25]CheckFolder done [14:31:25]ProducePacketName [14:31:25]name=ofd_packets/00049088 [14:31:25]NVStorageSaveData ofd_packets/00049088 [14:31:25]File name is /storage/ofd_packets/00049088 [14:31:25]Write 301 bytes [14:31:25]NVStorageSaveData done [14:31:25]OFDSenderStorePacket done [14:31:25]KKMCreateOFDPacket done [14:31:25]NVStorageSaveData kkm_last_timestamp [14:31:25]File name is /storage/kkm_last_timestamp [14:31:25]Write 4 bytes [14:31:25]NVStorageSaveData done [14:31:25]ExternCall_PrintAddStr [14:31:25]wPrintStart [14:31:25]Write to MH i2c: 01 00 00 EF 51 40 [14:31:25]Write i2c OK [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: 01 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: 01 07 00 [14:31:25]MH_I2C_Read... [14:31:25]Read from MH i2c: 01 07 00 EF 51 00 00 00 00 00 FF 0F 55 [14:31:25]RasterBufferAndPrint [14:31:25]line Счет N : (1)216189 [14:31:25]line ИÐÐ: 02508201610067 [14:31:25]line Контрольно-КаÑÑовый Чек [14:31:25]line ПРОДÐЖР[14:31:25]line ТРК (МРК, ГÐК) : 12 [14:31:25]line Товар: 2710124130 [14:31:25]line Ðи-92-К-5 [14:31:25]line 16.590 * 60.30 [14:31:25]line = 1000.38 [14:31:25]line ÐДС 12% ÐСП 1% [14:31:25]line > о реализуемом товаре [14:31:25]line ОКРУГЛЕÐИЕ: -0.38 [14:31:25]line ИТОГО: 1000.00 [14:31:25]line ВнеÑено: 1000.00 [14:31:25]line СДÐЧÐ: 0.00 [14:31:25]line ÐСП 1% : 8.85 [14:31:25]line ÐДС 12% : 106.23 [14:31:25]line Ðаличными: 1000.00 [14:31:25]line Безнал.: 0.00 [14:31:25]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [14:31:25]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:31:25]line СÐО: Общий режим [14:31:25]line Чек 71 29.01.2024 14:31 [14:31:25]line Смена: 245 ФФД: 1.0 [14:31:25]line ЗÐМ: 0300000040 [14:31:25]line РÐМ: 0000000000092723 [14:31:25]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [14:31:25]line ФМ: 0000000000875060 [14:31:25]line ФД: 49088 [14:31:25]line ФПД: 119470257559278 [14:31:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T143138&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49088&fm=119470257559278&tin=02508201610067®Number=0000000000092723&sum=100000 [14:31:25]OFD Sender: Processing packet 49088 [packets to send 12, broken 11] [14:31:25]ProducePacketName [14:31:25]name=ofd_packets/00049088 [14:31:25]OFD Sender: To server: ‡•öpG, [14:31:25]CommunicateWithHost lk.salyk.kg:30040 [14:31:25]ConnectInit lk.salyk.kg [14:31:25]written 0, free lines is 4095 [14:31:26]Connected sock=10 [14:31: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 0F 01 00 00 70 D5 07 01 34 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 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 47 00 00 00 F4 03 04 00 CA B6 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 6C A8 56 43 56 EE AC C6 09 28 8D ED 54 A8 [14:31:26]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 9B F1 47 00 83 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 C0 BF 00 00 F4 03 04 00 C2 62 B7 65 B6 04 01 00 00 4B 79 DF 87 CE 2C C7 B4 [14:31:26]CommunicateWithHost err = 0 [14:31:26]CheckOFDResponse [14:31:26]1017 (14) - 77093643461234 [14:31:26]1041 (16) - 0000000000875060 [14:31:26]1040 (4) - 49088 [14:31:26]1012 (4) - 29.01.2024 08:33 [14:31:26]1206 (1) - 0 [14:31:26]OFD Sender: Remove packet 49088 [14:31:26]ProducePacketName [14:31:26]name=ofd_packets/00049088 [14:31:26]NVStorageDeleteData [14:31:26]Write to MH i2c: 01 00 00 1A 52 6C [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: 01 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: 01 07 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: 01 07 00 1A 52 00 00 00 00 00 07 0D 87 [14:31:26]RasterBufferAndPrint [14:31:26]line [14:31:26]line [14:31:26]line [14:31:26]line [14:31:26]line [14:31:26]written 0, free lines is 3341 [14:31:26]MH_Cut [14:31:26]Write to MH i2c: D1 01 00 21 52 01 45 [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: D1 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: D1 01 00 [14:31:26]MH_I2C_Read... [14:31:26]Read from MH i2c: D1 01 00 21 52 00 44 [14:31:26]Write to MH i2c: 01 00 00 22 52 74 [14:31:26]Write i2c OK [14:31:26]MH_I2C_Read... [14:31:26]OFD Sender: No OFD packet to send [14:31:27]*** Cut start [14:31:27]*** Partial cut [14:31:27]*** CUTSNS_PIN = 1 [14:31:27]*** CUTSNS_PIN = 0 [14:31:27]*** Brake cut motor [14:31:27]Read from MH i2c: 01 [14:31:27]MH_I2C_Read... [14:31:27]*** Stop cut motor [14:31:27]*** Cut end [14:31:27]Read from MH i2c: 01 07 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: 01 07 00 22 52 00 00 00 00 00 FF 0F 89 [14:31:27]process_action close_receipt done [14:31:27]requested_data is exist [14:31:27]produce_requested_data [14:31:27]requested_item fm.sn is exist - process it [14:31:27]wFMCommunicate request_size=4 [14:31:27]MH_SAM_APDU [14:31:27]CAPDU: 80 11 00 00 [14:31:27]Write to MH i2c: E2 08 00 23 52 80 11 00 00 00 00 00 00 EF [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:27]Read from MH i2c: E2 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 17 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 17 00 23 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3C [14:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:31:27]wFMCommunicate OK [14:31:27]requested_item fd.num is exist - process it [14:31:27]SAM_PROTO_GetFieldsCounters [14:31:27]wFMCommunicate request_size=4 [14:31:27]MH_SAM_APDU [14:31:27]CAPDU: 80 13 00 00 [14:31:27]Write to MH i2c: E2 08 00 24 52 80 13 00 00 00 00 00 00 F2 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:27]Read from MH i2c: E2 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 62 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 62 00 24 52 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 BF 00 00 0E 04 04 00 F5 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 54 [14:31:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:31:27]wFMCommunicate OK [14:31:27]SAM_PROTO_GetFieldsCounters done [14:31:27]requested_item shift.num is exist - process it [14:31:27]requested_item shift.opened is exist - process it [14:31:27]req_shift_opened [14:31:27]FM_GetShiftState [14:31:27]SAM_PROTO_GetShiftState [14:31:27]wFMCommunicate request_size=4 [14:31:27]MH_SAM_APDU [14:31:27]CAPDU: 80 13 01 00 [14:31:27]Write to MH i2c: E2 08 00 25 52 80 13 01 00 00 00 00 00 F4 [14:31:27]Write i2c OK [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 [14:31:27]MH_I2C_Read... [14:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:27]Read from MH i2c: E2 0E 00 [14:31:27]MH_I2C_Read... [14:31:27]Read from MH i2c: E2 0E 00 25 52 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 66 [14:31:27]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:31:27]wFMCommunicate OK [14:31:27]SAM_PROTO_GetShiftState done [14:31:27]FM_GetShiftState done [14:31:27]req_shift_opened done [14:31:27]requested_item shift.open_date is exist - process it [14:31:27]req_shift_open_date [14:31:27]req_shift_open_date done [14:31:27]produce_requested_data done [14:31:27]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49088,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [14:31:27]process_action_free close_receipt [14:31:27]json_value_free [14:31:27]json_value_free done [14:31:27]process_json_proto returns [14:31:27]Send response to host [14:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49088,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [14:31:27]free response buf [14:31:27]execute_script done [14:31:27]execute_script returns [14:31:27]free content buf [14:31:27]Sock 7.Close socket [14:31:27]Sock 7.Thread stoped [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:12]OFD Sender: No OFD packet to send [14:40:17]OFD Sender: No OFD packet to send [14:40:22]OFD Sender: No OFD packet to send [14:40:27]OFD Sender: No OFD packet to send [14:40:32]OFD Sender: No OFD packet to send [14:40:37]OFD Sender: No OFD packet to send [14:40:42]OFD Sender: No OFD packet to send [14:40:47]OFD Sender: No OFD packet to send [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:22]OFD Sender: No OFD packet to send [14:41:27]OFD Sender: No OFD packet to send [14:41:32]OFD Sender: No OFD packet to send [14:41:37]OFD Sender: No OFD packet to send [14:41:42]OFD Sender: No OFD packet to send [14:41:47]OFD Sender: No OFD packet to send [14:41:52]OFD Sender: No OFD packet to send [14:41:57]OFD Sender: No OFD packet to send [14:42:02]OFD Sender: No OFD packet to send [14:42:07]OFD Sender: No OFD packet to send [14:42:12]OFD Sender: No OFD packet to send [14:42:17]OFD Sender: No OFD packet to send [14:42:22]OFD Sender: No OFD packet to send [14:42:27]OFD Sender: No OFD packet to send [14:42:32]OFD Sender: No OFD packet to send [14:42:33]accept exits with 9 [14:42:33]New connection [14:42:33]New thread 3066813796 created [14:42:33]Thread 3066670436 joined [14:42:33]Waiting for new connection... [14:42:33] Sock 9.Parse request [14:42:33]Sock 9.Check first char [14:42:33]Sock 9.First char is OK [14:42:33]request: POST /json_proto HTTP/1.0 [14:42:33]Method: POST [14:42:33]URL: /json_proto [14:42:33]Method is POST - this is cgi request [14:42:33]url: /json_proto [14:42:33]query_string will be loaded in cgi processing [14:42:33]execute_cgi json_proto POST (null) [14:42:33]execute_cgi path=json_proto method=POST [14:42:33]POST find Content-Length [14:42:33]Host: 172.17.56.67:8080 [14:42:33]Content-Length: 678 [14:42:33]Content-Type: application/json [14:42:33] [14:42:33]POST finish read [14:42:33]Found Content-Length = 678 [14:42:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216190", "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" : 13.270, "sum" : 800.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:33]execute_script... [14:42:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216190", "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" : 13.270, "sum" : 800.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:42:33]POST & json_proto [14:42:33]process_json_proto [14:42:33]json parsed OK: [14:42:33]protocol is kg_v1.0 [14:42:33]action value=close_receipt [14:42:33]process_action close_receipt [14:42:33]cmd_close_receipt [14:42:33]MH_GetDate [14:42:33]Write to MH i2c: F0 00 00 26 52 67 [14:42:33]Write i2c OK [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: F0 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: F0 09 00 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: F0 09 00 26 52 00 67 B9 B7 65 26 5D 9E 65 32 [14:42:33]GetLastDocTimeStamp 1706538698 [14:42:33]current date 1706539367 [14:42:33]FM_GetShiftState [14:42:33]SAM_PROTO_GetShiftState [14:42:33]wFMCommunicate request_size=4 [14:42:33]MH_SAM_APDU [14:42:33]CAPDU: 80 13 01 00 [14:42:33]Write to MH i2c: E2 08 00 27 52 80 13 01 00 00 00 00 00 F6 [14:42:33]Write i2c OK [14:42:33]MH_I2C_Read... [14:42:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:33]Read from MH i2c: E2 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 0E 00 [14:42:33]MH_I2C_Read... [14:42:33]Read from MH i2c: E2 0E 00 27 52 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 68 [14:42:33]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:42:33]wFMCommunicate OK [14:42:33]SAM_PROTO_GetShiftState done [14:42:33]FM_GetShiftState done [14:42:33]opened in 1706486624 [14:42:33]opened+sec_in_day 1706573024 [14:42:33]quantity*price = 80018 [14:42:33]sum+1 = 80019 [14:42:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.18 ИТОГО: 800.00 ВнеÑено: 800.00 СДÐЧÐ: 0.00 ÐСП 1% : 7.08 ÐДС 12% : 84.97 Ðаличными: 800.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 72 29.01.2024 14:42 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49089 ФПД: 179998316489810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T144247&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49089&fm=179998316489810&tin=02508201610067®Number=0000000000092723&sum=80000 [14:42:34]StoreToDocumentArchive [14:42:34]shift 245 fd 49089 [14:42:34]save to /storage/0245/doc_00049089 [14:42:34]save last doc name /storage/0245/doc_00049089 to /storage/kkm_last_doc_name [14:42:34]save OK [14:42:34]Clear old archive folders... [14:42:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:34]tlvbuf is 011E6460 [14:42:34]SAM_PROTO_ClearQueue [14:42:34]wFMCommunicate request_size=4 [14:42:34]MH_SAM_APDU [14:42:34]CAPDU: 80 09 00 00 [14:42:34]Write to MH i2c: E2 08 00 34 52 80 09 00 00 00 00 00 00 F8 [14:42:34]Write i2c OK [14:42:34]MH_I2C_Read... [14:42:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:34]Read from MH i2c: E2 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: E2 03 00 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: E2 03 00 34 52 00 90 00 FA [14:42:34]RAPDU: 90 00 [14:42:34]wFMCommunicate OK [14:42:34]SAM_PROTO_ClearQueue done [14:42:34]KKMCreateOFDPacket [14:42:34]OFDProtocolAddRootSTLVToBuf [14:42:34]FM_MakeSignedData [14:42:34]FM_MakeSignedData [14:42:34]SAM_PROTO_SignData [14:42:34]wFMCommunicate request_size=4 [14:42:34]MH_SAM_APDU [14:42:34]CAPDU: 80 0D 01 02 [14:42:34]Write to MH i2c: E2 08 00 35 52 80 0D 01 02 00 00 00 00 00 [14:42:34]Write i2c OK [14:42:34]MH_I2C_Read... [14:42:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:34]Read from MH i2c: E2 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: E2 03 00 [14:42:34]MH_I2C_Read... [14:42:34]Read from MH i2c: E2 03 00 35 52 00 90 00 FB [14:42:34]RAPDU: 90 00 [14:42:34]wFMCommunicate OK [14:42:34]wFMCommunicate request_size=255 [14:42:34]MH_SAM_APDU [14:42:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 92 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 67 B9 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 A3 [14:42:34]Write to MH i2c: E2 02 01 36 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 92 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 67 B9 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 A3 00 00 A1 [14:42:34]Write i2c OK [14:42:34]MH_I2C_Read... [14:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:35]Read from MH i2c: E2 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: E2 03 00 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: E2 03 00 36 52 00 90 00 FC [14:42:35]RAPDU: 90 00 [14:42:35]wFMCommunicate OK [14:42:35]wFMCommunicate request_size=10 [14:42:35]MH_SAM_APDU [14:42:35]CAPDU: 80 0D 02 02 05 B5 1F B6 EC 52 [14:42:35]Write to MH i2c: E2 0D 00 37 52 80 0D 02 02 05 00 B5 1F B6 EC 52 00 00 D5 [14:42:35]Write i2c OK [14:42:35]MH_I2C_Read... [14:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:35]Read from MH i2c: E2 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: E2 03 00 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: E2 03 00 37 52 00 90 00 FD [14:42:35]RAPDU: 90 00 [14:42:35]wFMCommunicate OK [14:42:35]wFMCommunicate request_size=4 [14:42:35]MH_SAM_APDU [14:42:35]CAPDU: 80 0D 03 02 [14:42:35]Write to MH i2c: E2 08 00 38 52 80 0D 03 02 00 00 00 00 05 [14:42:35]Write i2c OK [14:42:35]MH_I2C_Read... [14:42:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:35]Read from MH i2c: E2 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: E2 0B 00 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: E2 0B 00 38 52 00 DB E2 8E F3 5C C6 20 BE 90 00 44 [14:42:35]RAPDU: DB E2 8E F3 5C C6 20 BE 90 00 [14:42:35]wFMCommunicate OK [14:42:35]SAM_PROTO_SignData done [14:42:35]FM_MakeSignedData done [14:42:35]CreateOFDProtocolMessage [14:42:35]wFMCommunicate request_size=4 [14:42:35]MH_SAM_APDU [14:42:35]CAPDU: 80 11 00 00 [14:42:35]Write to MH i2c: E2 08 00 39 52 80 11 00 00 00 00 00 00 05 [14:42:35]Write i2c OK [14:42:35]MH_I2C_Read... [14:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:35]Read from MH i2c: E2 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: E2 17 00 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: E2 17 00 39 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 52 [14:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:42:35]wFMCommunicate OK [14:42:35]CreateOFDProtocolMessage done [14:42:35]OFDSenderStorePacket 49089 [14:42:35]StoreOFDPacket docnum=49089 [14:42:35]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 AD 5B 07 01 8C EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 92 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 67 B9 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 A3 B5 1F B6 EC 52 DB E2 8E F3 5C C6 20 BE [14:42:35]CheckFolder [14:42:35]dirname=/storage/ofd_packets [14:42:35]CheckFolder done [14:42:35]ProducePacketName [14:42:35]name=ofd_packets/00049089 [14:42:35]NVStorageSaveData ofd_packets/00049089 [14:42:35]File name is /storage/ofd_packets/00049089 [14:42:35]Write 301 bytes [14:42:35]NVStorageSaveData done [14:42:35]OFDSenderStorePacket done [14:42:35]KKMCreateOFDPacket done [14:42:35]NVStorageSaveData kkm_last_timestamp [14:42:35]File name is /storage/kkm_last_timestamp [14:42:35]Write 4 bytes [14:42:35]NVStorageSaveData done [14:42:35]ExternCall_PrintAddStr [14:42:35]wPrintStart [14:42:35]Write to MH i2c: 01 00 00 3A 52 8C [14:42:35]Write i2c OK [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: 01 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: 01 07 00 [14:42:35]MH_I2C_Read... [14:42:35]Read from MH i2c: 01 07 00 3A 52 00 00 00 00 00 FF 0F A1 [14:42:35]RasterBufferAndPrint [14:42:35]line Счет N : (1)216190 [14:42:35]line ИÐÐ: 02508201610067 [14:42:35]line Контрольно-КаÑÑовый Чек [14:42:35]line ПРОДÐЖР[14:42:35]line ТРК (МРК, ГÐК) : 22 [14:42:35]line Товар: 2710124130 [14:42:35]line Ðи-92-К-5 [14:42:35]line 13.270 * 60.30 [14:42:35]line = 800.18 [14:42:35]line ÐДС 12% ÐСП 1% [14:42:35]line > о реализуемом товаре [14:42:35]line ОКРУГЛЕÐИЕ: -0.18 [14:42:35]line ИТОГО: 800.00 [14:42:35]line ВнеÑено: 800.00 [14:42:35]line СДÐЧÐ: 0.00 [14:42:35]line ÐСП 1% : 7.08 [14:42:35]line ÐДС 12% : 84.97 [14:42:35]line Ðаличными: 800.00 [14:42:35]line Безнал.: 0.00 [14:42:35]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [14:42:35]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:42:35]line СÐО: Общий режим [14:42:35]line Чек 72 29.01.2024 14:42 [14:42:35]line Смена: 245 ФФД: 1.0 [14:42:35]line ЗÐМ: 0300000040 [14:42:35]line РÐМ: 0000000000092723 [14:42:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [14:42:35]line ФМ: 0000000000875060 [14:42:35]line ФД: 49089 [14:42:35]line ФПД: 179998316489810 [14:42:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T144247&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49089&fm=179998316489810&tin=02508201610067®Number=0000000000092723&sum=80000 [14:42:35]OFD Sender: Processing packet 49089 [packets to send 12, broken 11] [14:42:35]ProducePacketName [14:42:35]name=ofd_packets/00049089 [14:42:35]OFD Sender: To server: ‡•öpG, [14:42:35]CommunicateWithHost lk.salyk.kg:30040 [14:42:35]ConnectInit lk.salyk.kg [14:42:35]written 0, free lines is 4095 [14:42:35]Connected sock=10 [14:42:35]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 AD 5B 07 01 8C EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 92 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 67 B9 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 A3 B5 1F B6 EC 52 DB E2 8E F3 5C C6 20 BE [14:42:35]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 5A A3 47 00 AB 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 C1 BF 00 00 F4 03 04 00 5F 65 B7 65 B6 04 01 00 00 A3 51 8D B1 0C DF 37 CB [14:42:35]CommunicateWithHost err = 0 [14:42:35]CheckOFDResponse [14:42:35]1017 (14) - 77093643461234 [14:42:35]1041 (16) - 0000000000875060 [14:42:35]1040 (4) - 49089 [14:42:35]1012 (4) - 29.01.2024 08:44 [14:42:35]1206 (1) - 0 [14:42:35]OFD Sender: Remove packet 49089 [14:42:35]ProducePacketName [14:42:35]name=ofd_packets/00049089 [14:42:35]NVStorageDeleteData [14:42:36]Write to MH i2c: 01 00 00 65 52 B7 [14:42:36]Write i2c OK [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: 01 [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: 01 07 00 [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: 01 07 00 65 52 00 00 00 00 00 F3 0C BD [14:42:36]RasterBufferAndPrint [14:42:36]line [14:42:36]line [14:42:36]line [14:42:36]line [14:42:36]line [14:42:36]written 0, free lines is 3321 [14:42:36]MH_Cut [14:42:36]Write to MH i2c: D1 01 00 6C 52 01 90 [14:42:36]Write i2c OK [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: D1 [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: D1 01 00 [14:42:36]MH_I2C_Read... [14:42:36]Read from MH i2c: D1 01 00 6C 52 00 8F [14:42:36]Write to MH i2c: 01 00 00 6D 52 BF [14:42:36]Write i2c OK [14:42:36]MH_I2C_Read... [14:42:36]OFD Sender: No OFD packet to send [14:42:36]*** Cut start [14:42:36]*** Partial cut [14:42:36]*** CUTSNS_PIN = 1 [14:42:36]*** CUTSNS_PIN = 0 [14:42:36]*** Brake cut motor [14:42:37]Read from MH i2c: 01 [14:42:37]MH_I2C_Read... [14:42:37]*** Stop cut motor [14:42:37]*** Cut end [14:42:37]Read from MH i2c: 01 07 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: 01 07 00 6D 52 00 00 00 00 00 FF 0F D4 [14:42:37]process_action close_receipt done [14:42:37]requested_data is exist [14:42:37]produce_requested_data [14:42:37]requested_item fm.sn is exist - process it [14:42:37]wFMCommunicate request_size=4 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 11 00 00 [14:42:37]Write to MH i2c: E2 08 00 6E 52 80 11 00 00 00 00 00 00 3A [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 17 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 17 00 6E 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 87 [14:42: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:42:37]wFMCommunicate OK [14:42:37]requested_item fd.num is exist - process it [14:42:37]SAM_PROTO_GetFieldsCounters [14:42:37]wFMCommunicate request_size=4 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 13 00 00 [14:42:37]Write to MH i2c: E2 08 00 6F 52 80 13 00 00 00 00 00 00 3D [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 62 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 62 00 6F 52 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 BF 00 00 0E 04 04 00 F5 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 A3 [14:42:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:42:37]wFMCommunicate OK [14:42:37]SAM_PROTO_GetFieldsCounters done [14:42:37]requested_item shift.num is exist - process it [14:42:37]requested_item shift.opened is exist - process it [14:42:37]req_shift_opened [14:42:37]FM_GetShiftState [14:42:37]SAM_PROTO_GetShiftState [14:42:37]wFMCommunicate request_size=4 [14:42:37]MH_SAM_APDU [14:42:37]CAPDU: 80 13 01 00 [14:42:37]Write to MH i2c: E2 08 00 70 52 80 13 01 00 00 00 00 00 3F [14:42:37]Write i2c OK [14:42:37]MH_I2C_Read... [14:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:37]Read from MH i2c: E2 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 0E 00 [14:42:37]MH_I2C_Read... [14:42:37]Read from MH i2c: E2 0E 00 70 52 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 B1 [14:42:37]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:42:37]wFMCommunicate OK [14:42:37]SAM_PROTO_GetShiftState done [14:42:37]FM_GetShiftState done [14:42:37]req_shift_opened done [14:42:37]requested_item shift.open_date is exist - process it [14:42:37]req_shift_open_date [14:42:37]req_shift_open_date done [14:42:37]produce_requested_data done [14:42:37]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49089,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [14:42:37]process_action_free close_receipt [14:42:37]json_value_free [14:42:37]json_value_free done [14:42:37]process_json_proto returns [14:42:37]Send response to host [14:42:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49089,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [14:42:37]free response buf [14:42:37]execute_script done [14:42:37]execute_script returns [14:42:37]free content buf [14:42:37]Sock 9.Close socket [14:42:37]Sock 9.Thread stoped [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:49:01]OFD Sender: No OFD packet to send [14:49:06]OFD Sender: No OFD packet to send [14:49:11]OFD Sender: No OFD packet to send [14:49:16]OFD Sender: No OFD packet to send [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:41]OFD Sender: No OFD packet to send [14:53:46]OFD Sender: No OFD packet to send [14:53:49]accept exits with 7 [14:53:49]New connection [14:53:49]New thread 3066670436 created [14:53:49]Thread 3066813796 joined [14:53:49]Waiting for new connection... [14:53:49] Sock 7.Parse request [14:53:49]Sock 7.Check first char [14:53:49]Sock 7.First char is OK [14:53:49]request: POST /json_proto HTTP/1.0 [14:53:49]Method: POST [14:53:49]URL: /json_proto [14:53:49]Method is POST - this is cgi request [14:53:49]url: /json_proto [14:53:49]query_string will be loaded in cgi processing [14:53:49]execute_cgi json_proto POST (null) [14:53:49]execute_cgi path=json_proto method=POST [14:53:49]POST find Content-Length [14:53:49]Host: 172.17.56.67:8080 [14:53:49]Content-Length: 682 [14:53:49]Content-Type: application/json [14:53:49] [14:53:49]POST finish read [14:53:49]Found Content-Length = 682 [14:53:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216191", "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" ] } } [14:53:49]execute_script... [14:53: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)216191", "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" ] } } [14:53:49]POST & json_proto [14:53:49]process_json_proto [14:53:49]json parsed OK: [14:53:49]protocol is kg_v1.0 [14:53:49]action value=close_receipt [14:53:49]process_action close_receipt [14:53:49]cmd_close_receipt [14:53:49]MH_GetDate [14:53:49]Write to MH i2c: F0 00 00 71 52 B2 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: F0 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: F0 09 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: F0 09 00 71 52 00 0B BC B7 65 26 5D 9E 65 24 [14:53:49]GetLastDocTimeStamp 1706539367 [14:53:49]current date 1706540043 [14:53:49]FM_GetShiftState [14:53:49]SAM_PROTO_GetShiftState [14:53:49]wFMCommunicate request_size=4 [14:53:49]MH_SAM_APDU [14:53:49]CAPDU: 80 13 01 00 [14:53:49]Write to MH i2c: E2 08 00 72 52 80 13 01 00 00 00 00 00 41 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:49]Read from MH i2c: E2 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 0E 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: E2 0E 00 72 52 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 B3 [14:53:49]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:53:49]wFMCommunicate OK [14:53:49]SAM_PROTO_GetShiftState done [14:53:49]FM_GetShiftState done [14:53:49]opened in 1706486624 [14:53:49]opened+sec_in_day 1706573024 [14:53:49]quantity*price = 100037 [14:53:49]sum+1 = 100039 [14:53:49]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 СÐО: Общий режим Чек 73 29.01.2024 14:54 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49090 ФПД: 181454265187113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T145403&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49090&fm=181454265187113&tin=02508201610067®Number=0000000000092723&sum=100000 [14:53:50]StoreToDocumentArchive [14:53:50]shift 245 fd 49090 [14:53:50]save to /storage/0245/doc_00049090 [14:53:50]save last doc name /storage/0245/doc_00049090 to /storage/kkm_last_doc_name [14:53:50]save OK [14:53:50]Clear old archive folders... [14:53:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:53:50]tlvbuf is 012108C0 [14:53:50]SAM_PROTO_ClearQueue [14:53:50]wFMCommunicate request_size=4 [14:53:50]MH_SAM_APDU [14:53:50]CAPDU: 80 09 00 00 [14:53:50]Write to MH i2c: E2 08 00 7F 52 80 09 00 00 00 00 00 00 43 [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:50]Read from MH i2c: E2 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 03 00 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 03 00 7F 52 00 90 00 45 [14:53:50]RAPDU: 90 00 [14:53:50]wFMCommunicate OK [14:53:50]SAM_PROTO_ClearQueue done [14:53:50]KKMCreateOFDPacket [14:53:50]OFDProtocolAddRootSTLVToBuf [14:53:50]FM_MakeSignedData [14:53:50]FM_MakeSignedData [14:53:50]SAM_PROTO_SignData [14:53:50]wFMCommunicate request_size=4 [14:53:50]MH_SAM_APDU [14:53:50]CAPDU: 80 0D 01 02 [14:53:50]Write to MH i2c: E2 08 00 80 52 80 0D 01 02 00 00 00 00 4B [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:50]Read from MH i2c: E2 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 03 00 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 03 00 80 52 00 90 00 46 [14:53:50]RAPDU: 90 00 [14:53:50]wFMCommunicate OK [14:53:50]wFMCommunicate request_size=255 [14:53:50]MH_SAM_APDU [14:53: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 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 49 00 00 00 F4 03 04 00 0B BC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 A5 [14:53:50]Write to MH i2c: E2 02 01 81 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 49 00 00 00 F4 03 04 00 0B BC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 A5 00 00 02 [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:50]Read from MH i2c: E2 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 03 00 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 03 00 81 52 00 90 00 47 [14:53:50]RAPDU: 90 00 [14:53:50]wFMCommunicate OK [14:53:50]wFMCommunicate request_size=10 [14:53:50]MH_SAM_APDU [14:53:50]CAPDU: 80 0D 02 02 05 08 1D 04 FB 29 [14:53:50]Write to MH i2c: E2 0D 00 82 52 80 0D 02 02 05 00 08 1D 04 FB 29 00 00 A5 [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:50]Read from MH i2c: E2 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 03 00 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 03 00 82 52 00 90 00 48 [14:53:50]RAPDU: 90 00 [14:53:50]wFMCommunicate OK [14:53:50]wFMCommunicate request_size=4 [14:53:50]MH_SAM_APDU [14:53:50]CAPDU: 80 0D 03 02 [14:53:50]Write to MH i2c: E2 08 00 83 52 80 0D 03 02 00 00 00 00 50 [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:50]Read from MH i2c: E2 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 0B 00 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 0B 00 83 52 00 29 26 1E 96 70 7C 16 A4 90 00 FA [14:53:50]RAPDU: 29 26 1E 96 70 7C 16 A4 90 00 [14:53:50]wFMCommunicate OK [14:53:50]SAM_PROTO_SignData done [14:53:50]FM_MakeSignedData done [14:53:50]CreateOFDProtocolMessage [14:53:50]wFMCommunicate request_size=4 [14:53:50]MH_SAM_APDU [14:53:50]CAPDU: 80 11 00 00 [14:53:50]Write to MH i2c: E2 08 00 84 52 80 11 00 00 00 00 00 00 50 [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:50]Read from MH i2c: E2 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 17 00 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 17 00 84 52 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:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:53:50]wFMCommunicate OK [14:53:50]CreateOFDProtocolMessage done [14:53:50]OFDSenderStorePacket 49090 [14:53:50]StoreOFDPacket docnum=49090 [14:53: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 2D 14 07 01 AD 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 49 00 00 00 F4 03 04 00 0B BC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 A5 08 1D 04 FB 29 29 26 1E 96 70 7C 16 A4 [14:53:50]CheckFolder [14:53:50]dirname=/storage/ofd_packets [14:53:50]CheckFolder done [14:53:50]ProducePacketName [14:53:50]name=ofd_packets/00049090 [14:53:50]NVStorageSaveData ofd_packets/00049090 [14:53:50]File name is /storage/ofd_packets/00049090 [14:53:50]Write 301 bytes [14:53:50]NVStorageSaveData done [14:53:50]OFDSenderStorePacket done [14:53:50]KKMCreateOFDPacket done [14:53:50]NVStorageSaveData kkm_last_timestamp [14:53:50]File name is /storage/kkm_last_timestamp [14:53:50]Write 4 bytes [14:53:50]NVStorageSaveData done [14:53:50]ExternCall_PrintAddStr [14:53:50]wPrintStart [14:53:50]Write to MH i2c: 01 00 00 85 52 D7 [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: 01 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: 01 07 00 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: 01 07 00 85 52 00 00 00 00 00 FF 0F EC [14:53:50]RasterBufferAndPrint [14:53:50]line Счет N : (1)216191 [14:53:50]line ИÐÐ: 02508201610067 [14:53:50]line Контрольно-КаÑÑовый Чек [14:53:50]line ПРОДÐЖР[14:53:50]line ТРК (МРК, ГÐК) : 12 [14:53:50]line Товар: 2710124130 [14:53:50]line Ðи-92-К-5 [14:53:50]line 16.590 * 60.30 [14:53:50]line = 1000.38 [14:53:50]line ÐДС 12% ÐСП 1% [14:53:50]line > о реализуемом товаре [14:53:50]line ОКРУГЛЕÐИЕ: -0.38 [14:53:50]line ИТОГО: 1000.00 [14:53:50]line ВнеÑено: 1000.00 [14:53:50]line СДÐЧÐ: 0.00 [14:53:50]line ÐСП 1% : 8.85 [14:53:50]line ÐДС 12% : 106.23 [14:53:50]line Ðаличными: 1000.00 [14:53:50]line Безнал.: 0.00 [14:53:50]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [14:53:50]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:53:50]line СÐО: Общий режим [14:53:50]line Чек 73 29.01.2024 14:54 [14:53:50]line Смена: 245 ФФД: 1.0 [14:53:50]line ЗÐМ: 0300000040 [14:53:50]line РÐМ: 0000000000092723 [14:53:50]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [14:53:50]line ФМ: 0000000000875060 [14:53:50]line ФД: 49090 [14:53:50]line ФПД: 181454265187113 [14:53:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T145403&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49090&fm=181454265187113&tin=02508201610067®Number=0000000000092723&sum=100000 [14:53:50]written 0, free lines is 4095 [14:53:50]OFD Sender: Processing packet 49090 [packets to send 12, broken 11] [14:53:50]ProducePacketName [14:53:50]name=ofd_packets/00049090 [14:53:50]OFD Sender: To server: ‡•öpG, [14:53:50]CommunicateWithHost lk.salyk.kg:30040 [14:53:50]ConnectInit lk.salyk.kg [14:53:51]Connected sock=10 [14:53: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 2D 14 07 01 AD 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 49 00 00 00 F4 03 04 00 0B BC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 A5 08 1D 04 FB 29 29 26 1E 96 70 7C 16 A4 [14:53:51]Write to MH i2c: 01 00 00 B0 52 02 [14:53:51]Write i2c OK [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: 01 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: 01 07 00 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: 01 07 00 B0 52 00 00 00 00 00 F9 0C 0E [14:53:51]RasterBufferAndPrint [14:53:51]line [14:53:51]line [14:53:51]line [14:53:51]line [14:53:51]line [14:53:51]written 0, free lines is 3331 [14:53:51]MH_Cut [14:53:51]Write to MH i2c: D1 01 00 B7 52 01 DB [14:53:51]Write i2c OK [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: D1 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: D1 01 00 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: D1 01 00 B7 52 00 DA [14:53:51]Write to MH i2c: 01 00 00 B8 52 0A [14:53:51]Write i2c OK [14:53:51]MH_I2C_Read... [14:53: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 A3 60 47 00 D2 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C2 BF 00 00 F4 03 04 00 03 68 B7 65 B6 04 01 00 00 30 7D D2 40 95 23 3C 00 [14:53:51]CommunicateWithHost err = 0 [14:53:51]CheckOFDResponse [14:53:51]1017 (14) - 77093643461234 [14:53:51]1041 (16) - 0000000000875060 [14:53:51]1040 (4) - 49090 [14:53:51]1012 (4) - 29.01.2024 08:55 [14:53:51]1206 (1) - 0 [14:53:51]OFD Sender: Remove packet 49090 [14:53:51]ProducePacketName [14:53:51]name=ofd_packets/00049090 [14:53:51]NVStorageDeleteData [14:53:52]OFD Sender: No OFD packet to send [14:53:52]*** Cut start [14:53:52]*** Partial cut [14:53:52]*** CUTSNS_PIN = 1 [14:53:52]*** CUTSNS_PIN = 0 [14:53:52]*** Brake cut motor [14:53:52]Read from MH i2c: 01 [14:53:52]MH_I2C_Read... [14:53:52]*** Stop cut motor [14:53:52]*** Cut end [14:53:52]Read from MH i2c: 01 07 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: 01 07 00 B8 52 00 00 00 00 00 FF 0F 1F [14:53:52]process_action close_receipt done [14:53:52]requested_data is exist [14:53:52]produce_requested_data [14:53:52]requested_item fm.sn is exist - process it [14:53:52]wFMCommunicate request_size=4 [14:53:52]MH_SAM_APDU [14:53:52]CAPDU: 80 11 00 00 [14:53:52]Write to MH i2c: E2 08 00 B9 52 80 11 00 00 00 00 00 00 85 [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:52]Read from MH i2c: E2 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 17 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 17 00 B9 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D2 [14:53: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:53:52]wFMCommunicate OK [14:53:52]requested_item fd.num is exist - process it [14:53:52]SAM_PROTO_GetFieldsCounters [14:53:52]wFMCommunicate request_size=4 [14:53:52]MH_SAM_APDU [14:53:52]CAPDU: 80 13 00 00 [14:53:52]Write to MH i2c: E2 08 00 BA 52 80 13 00 00 00 00 00 00 88 [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:52]Read from MH i2c: E2 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 62 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 62 00 BA 52 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 BF 00 00 0E 04 04 00 F5 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 F2 [14:53:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:53:52]wFMCommunicate OK [14:53:52]SAM_PROTO_GetFieldsCounters done [14:53:52]requested_item shift.num is exist - process it [14:53:52]requested_item shift.opened is exist - process it [14:53:52]req_shift_opened [14:53:52]FM_GetShiftState [14:53:52]SAM_PROTO_GetShiftState [14:53:52]wFMCommunicate request_size=4 [14:53:52]MH_SAM_APDU [14:53:52]CAPDU: 80 13 01 00 [14:53:52]Write to MH i2c: E2 08 00 BB 52 80 13 01 00 00 00 00 00 8A [14:53:52]Write i2c OK [14:53:52]MH_I2C_Read... [14:53:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:52]Read from MH i2c: E2 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 0E 00 [14:53:52]MH_I2C_Read... [14:53:52]Read from MH i2c: E2 0E 00 BB 52 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 FC [14:53:52]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:53:52]wFMCommunicate OK [14:53:52]SAM_PROTO_GetShiftState done [14:53:52]FM_GetShiftState done [14:53:52]req_shift_opened done [14:53:52]requested_item shift.open_date is exist - process it [14:53:52]req_shift_open_date [14:53:52]req_shift_open_date done [14:53:52]produce_requested_data done [14:53:52]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49090,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [14:53:52]process_action_free close_receipt [14:53:52]json_value_free [14:53:52]json_value_free done [14:53:52]process_json_proto returns [14:53:52]Send response to host [14:53:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49090,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [14:53:52]free response buf [14:53:52]execute_script done [14:53:52]execute_script returns [14:53:52]free content buf [14:53:52]Sock 7.Close socket [14:53:52]Sock 7.Thread stoped [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:05]int [14:55:05]Write to MH i2c: 01 00 00 BC 52 0E [14:55:05]*** FLAG_PRN_KEY set [14:55:05]Write i2c OK [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: 01 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: 01 07 00 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: 01 07 00 BC 52 00 08 00 00 00 FF 0F 2B [14:55:05]state=0 [14:55:05]Key pressed [14:55:05]Feed [14:55:05]Write to MH i2c: D8 00 00 BD 52 E6 [14:55:05]Write i2c OK [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: D8 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: D8 01 00 [14:55:05]MH_I2C_Read... [14:55:05]Read from MH i2c: D8 01 00 BD 52 00 E7 [14:55:05]int [14:55:05]Write to MH i2c: 01 00 00 BE 52 10 [14:55:05]Write i2c OK [14:55:05]MH_I2C_Read... [14:55:06]Read from MH i2c: 01 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: 01 07 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: 01 07 00 BE 52 00 48 00 00 00 3C 00 9B [14:55:06]state=2 [14:55:06]Key pressed [14:55:06]int [14:55:06]Write to MH i2c: 01 00 00 BF 52 11 [14:55:06]*** FLAG_PRN_KEY reset [14:55:06]Write i2c OK [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: 01 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: 01 07 00 [14:55:06]MH_I2C_Read... [14:55:06]Read from MH i2c: 01 07 00 BF 52 00 00 00 00 00 F6 0F 1D [14:55:06]state=2 [14:55:06]Stop feed [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:39]accept exits with 9 [14:55:39]New connection [14:55:39]New thread 3066813796 created [14:55:39]Thread 3066670436 joined [14:55:39]Waiting for new connection... [14:55:39] Sock 9.Parse request [14:55:39]Sock 9.Check first char [14:55:39]Sock 9.First char is OK [14:55:39]request: POST /json_proto HTTP/1.0 [14:55:39]Method: POST [14:55:39]URL: /json_proto [14:55:39]Method is POST - this is cgi request [14:55:39]url: /json_proto [14:55:39]query_string will be loaded in cgi processing [14:55:39]execute_cgi json_proto POST (null) [14:55:39]execute_cgi path=json_proto method=POST [14:55:39]POST find Content-Length [14:55:39]Host: 172.17.56.67:8080 [14:55:39]Content-Length: 677 [14:55:39]Content-Type: application/json [14:55:39] [14:55:39]POST finish read [14:55:39]Found Content-Length = 677 [14:55:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216192", "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" ] } } [14:55:39]execute_script... [14:55: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)216192", "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" ] } } [14:55:39]POST & json_proto [14:55:39]process_json_proto [14:55:39]json parsed OK: [14:55:39]protocol is kg_v1.0 [14:55:39]action value=close_receipt [14:55:39]process_action close_receipt [14:55:39]cmd_close_receipt [14:55:39]MH_GetDate [14:55:39]Write to MH i2c: F0 00 00 C0 52 01 [14:55:39]Write i2c OK [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: F0 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: F0 09 00 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: F0 09 00 C0 52 00 79 BC B7 65 26 5D 9E 65 E1 [14:55:39]GetLastDocTimeStamp 1706540043 [14:55:39]current date 1706540153 [14:55:39]FM_GetShiftState [14:55:39]SAM_PROTO_GetShiftState [14:55:39]wFMCommunicate request_size=4 [14:55:39]MH_SAM_APDU [14:55:39]CAPDU: 80 13 01 00 [14:55:39]Write to MH i2c: E2 08 00 C1 52 80 13 01 00 00 00 00 00 90 [14:55:39]Write i2c OK [14:55:39]MH_I2C_Read... [14:55:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:39]Read from MH i2c: E2 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: E2 0E 00 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: E2 0E 00 C1 52 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 02 [14:55:39]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:55:39]wFMCommunicate OK [14:55:39]SAM_PROTO_GetShiftState done [14:55:39]FM_GetShiftState done [14:55:39]opened in 1706486624 [14:55:39]opened+sec_in_day 1706573024 [14:55:39]quantity*price = 60058 [14:55:39]sum+1 = 60060 [14:55:39]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 СÐО: Общий режим Чек 74 29.01.2024 14:55 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49091 ФПД: 162536723442087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T145553&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49091&fm=162536723442087&tin=02508201610067®Number=0000000000092723&sum=60000 [14:55:40]StoreToDocumentArchive [14:55:40]shift 245 fd 49091 [14:55:40]save to /storage/0245/doc_00049091 [14:55:40]save last doc name /storage/0245/doc_00049091 to /storage/kkm_last_doc_name [14:55:40]save OK [14:55:40]Clear old archive folders... [14:55:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:40]tlvbuf is 0119C480 [14:55:40]SAM_PROTO_ClearQueue [14:55:40]wFMCommunicate request_size=4 [14:55:40]MH_SAM_APDU [14:55:40]CAPDU: 80 09 00 00 [14:55:40]Write to MH i2c: E2 08 00 CE 52 80 09 00 00 00 00 00 00 92 [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:40]Read from MH i2c: E2 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 03 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 03 00 CE 52 00 90 00 94 [14:55:40]RAPDU: 90 00 [14:55:40]wFMCommunicate OK [14:55:40]SAM_PROTO_ClearQueue done [14:55:40]KKMCreateOFDPacket [14:55:40]OFDProtocolAddRootSTLVToBuf [14:55:40]FM_MakeSignedData [14:55:40]FM_MakeSignedData [14:55:40]SAM_PROTO_SignData [14:55:40]wFMCommunicate request_size=4 [14:55:40]MH_SAM_APDU [14:55:40]CAPDU: 80 0D 01 02 [14:55:40]Write to MH i2c: E2 08 00 CF 52 80 0D 01 02 00 00 00 00 9A [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:40]Read from MH i2c: E2 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 03 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 03 00 CF 52 00 90 00 95 [14:55:40]RAPDU: 90 00 [14:55:40]wFMCommunicate OK [14:55:40]wFMCommunicate request_size=255 [14:55:40]MH_SAM_APDU [14:55: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 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 4A 00 00 00 F4 03 04 00 79 BC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 93 [14:55:40]Write to MH i2c: E2 02 01 D0 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4A 00 00 00 F4 03 04 00 79 BC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 93 00 00 24 [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:40]Read from MH i2c: E2 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 03 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 03 00 D0 52 00 90 00 96 [14:55:40]RAPDU: 90 00 [14:55:40]wFMCommunicate OK [14:55:40]wFMCommunicate request_size=10 [14:55:40]MH_SAM_APDU [14:55:40]CAPDU: 80 0D 02 02 05 D3 87 A9 E9 A7 [14:55:40]Write to MH i2c: E2 0D 00 D1 52 80 0D 02 02 05 00 D3 87 A9 E9 A7 00 00 3A [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:40]Read from MH i2c: E2 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 03 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 03 00 D1 52 00 90 00 97 [14:55:40]RAPDU: 90 00 [14:55:40]wFMCommunicate OK [14:55:40]wFMCommunicate request_size=4 [14:55:40]MH_SAM_APDU [14:55:40]CAPDU: 80 0D 03 02 [14:55:40]Write to MH i2c: E2 08 00 D2 52 80 0D 03 02 00 00 00 00 9F [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:40]Read from MH i2c: E2 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 0B 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 0B 00 D2 52 00 60 BA 61 A9 D1 17 66 33 90 00 45 [14:55:40]RAPDU: 60 BA 61 A9 D1 17 66 33 90 00 [14:55:40]wFMCommunicate OK [14:55:40]SAM_PROTO_SignData done [14:55:40]FM_MakeSignedData done [14:55:40]CreateOFDProtocolMessage [14:55:40]wFMCommunicate request_size=4 [14:55:40]MH_SAM_APDU [14:55:40]CAPDU: 80 11 00 00 [14:55:40]Write to MH i2c: E2 08 00 D3 52 80 11 00 00 00 00 00 00 9F [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:40]Read from MH i2c: E2 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 17 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 17 00 D3 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EC [14:55: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:55:40]wFMCommunicate OK [14:55:40]CreateOFDProtocolMessage done [14:55:40]OFDSenderStorePacket 49091 [14:55:40]StoreOFDPacket docnum=49091 [14:55: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 6A 8D 07 01 CB A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4A 00 00 00 F4 03 04 00 79 BC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 93 D3 87 A9 E9 A7 60 BA 61 A9 D1 17 66 33 [14:55:40]CheckFolder [14:55:40]dirname=/storage/ofd_packets [14:55:40]CheckFolder done [14:55:40]ProducePacketName [14:55:40]name=ofd_packets/00049091 [14:55:40]NVStorageSaveData ofd_packets/00049091 [14:55:40]File name is /storage/ofd_packets/00049091 [14:55:40]Write 301 bytes [14:55:40]NVStorageSaveData done [14:55:40]OFDSenderStorePacket done [14:55:40]KKMCreateOFDPacket done [14:55:40]NVStorageSaveData kkm_last_timestamp [14:55:40]File name is /storage/kkm_last_timestamp [14:55:40]Write 4 bytes [14:55:40]NVStorageSaveData done [14:55:40]ExternCall_PrintAddStr [14:55:40]wPrintStart [14:55:40]Write to MH i2c: 01 00 00 D4 52 26 [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: 01 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: 01 07 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: 01 07 00 D4 52 00 00 00 00 00 FF 0F 3B [14:55:40]RasterBufferAndPrint [14:55:40]line Счет N : (1)216192 [14:55:40]line ИÐÐ: 02508201610067 [14:55:40]line Контрольно-КаÑÑовый Чек [14:55:40]line ПРОДÐЖР[14:55:40]line ТРК (МРК, ГÐК) : 12 [14:55:40]line Товар: 2710124130 [14:55:40]line Ðи-92-К-5 [14:55:40]line 9.960 * 60.30 [14:55:40]line = 600.59 [14:55:40]line ÐДС 12% ÐСП 1% [14:55:40]line > о реализуемом товаре [14:55:40]line ОКРУГЛЕÐИЕ: -0.59 [14:55:40]line ИТОГО: 600.00 [14:55:40]line ВнеÑено: 600.00 [14:55:40]line СДÐЧÐ: 0.00 [14:55:40]line ÐСП 1% : 5.31 [14:55:40]line ÐДС 12% : 63.78 [14:55:40]line Ðаличными: 600.00 [14:55:40]line Безнал.: 0.00 [14:55:40]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [14:55:40]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:55:40]line СÐО: Общий режим [14:55:40]line Чек 74 29.01.2024 14:55 [14:55:40]line Смена: 245 ФФД: 1.0 [14:55:40]line ЗÐМ: 0300000040 [14:55:40]line РÐМ: 0000000000092723 [14:55:40]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [14:55:40]line ФМ: 0000000000875060 [14:55:40]line ФД: 49091 [14:55:40]line ФПД: 162536723442087 [14:55:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T145553&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49091&fm=162536723442087&tin=02508201610067®Number=0000000000092723&sum=60000 [14:55:41]OFD Sender: Processing packet 49091 [packets to send 12, broken 11] [14:55:41]ProducePacketName [14:55:41]name=ofd_packets/00049091 [14:55:41]OFD Sender: To server: ‡•öpG, [14:55:41]CommunicateWithHost lk.salyk.kg:30040 [14:55:41]ConnectInit lk.salyk.kg [14:55:41]written 0, free lines is 4095 [14:55:41]Connected sock=10 [14:55: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 6A 8D 07 01 CB A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4A 00 00 00 F4 03 04 00 79 BC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 93 D3 87 A9 E9 A7 60 BA 61 A9 D1 17 66 33 [14:55: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 86 CB 47 00 7C 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C3 BF 00 00 F4 03 04 00 71 68 B7 65 B6 04 01 00 00 01 B8 FD 89 D1 08 A8 1F [14:55:41]CommunicateWithHost err = 0 [14:55:41]CheckOFDResponse [14:55:41]1017 (14) - 77093643461234 [14:55:41]1041 (16) - 0000000000875060 [14:55:41]1040 (4) - 49091 [14:55:41]1012 (4) - 29.01.2024 08:57 [14:55:41]1206 (1) - 0 [14:55:41]OFD Sender: Remove packet 49091 [14:55:41]ProducePacketName [14:55:41]name=ofd_packets/00049091 [14:55:41]NVStorageDeleteData [14:55:41]Write to MH i2c: 01 00 00 FF 52 51 [14:55:41]Write i2c OK [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: 01 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: 01 07 00 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: 01 07 00 FF 52 00 00 00 00 00 EC 0C 50 [14:55:41]RasterBufferAndPrint [14:55:41]line [14:55:41]line [14:55:41]line [14:55:41]line [14:55:41]line [14:55:41]written 0, free lines is 3315 [14:55:41]MH_Cut [14:55:41]Write to MH i2c: D1 01 00 06 53 01 2B [14:55:41]Write i2c OK [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: D1 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: D1 01 00 [14:55:41]MH_I2C_Read... [14:55:41]Read from MH i2c: D1 01 00 06 53 00 2A [14:55:41]Write to MH i2c: 01 00 00 07 53 5A [14:55:41]Write i2c OK [14:55:41]MH_I2C_Read... [14:55:41]OFD Sender: No OFD packet to send [14:55:42]*** Cut start [14:55:42]*** Partial cut [14:55:42]*** CUTSNS_PIN = 1 [14:55:42]*** CUTSNS_PIN = 0 [14:55:42]*** Brake cut motor [14:55:42]Read from MH i2c: 01 [14:55:42]MH_I2C_Read... [14:55:42]*** Stop cut motor [14:55:42]*** Cut end [14:55:42]Read from MH i2c: 01 07 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: 01 07 00 07 53 00 00 00 00 00 FF 0F 6F [14:55:42]process_action close_receipt done [14:55:42]requested_data is exist [14:55:42]produce_requested_data [14:55:42]requested_item fm.sn is exist - process it [14:55:42]wFMCommunicate request_size=4 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 11 00 00 [14:55:42]Write to MH i2c: E2 08 00 08 53 80 11 00 00 00 00 00 00 D5 [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:42]*** FLAG_PRN_KEY set [14:55:42]int [14:55:42]Read from MH i2c: E2 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 17 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 17 00 08 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 22 [14:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:55:42]wFMCommunicate OK [14:55:42]requested_item fd.num is exist - process it [14:55:42]SAM_PROTO_GetFieldsCounters [14:55:42]wFMCommunicate request_size=4 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 13 00 00 [14:55:42]Write to MH i2c: E2 08 00 09 53 80 13 00 00 00 00 00 00 D8 [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:42]Read from MH i2c: E2 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 62 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 62 00 09 53 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 BF 00 00 0E 04 04 00 F5 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 46 [14:55:42]RAPDU: Write to MH i2c: 5D 01 00 00 B9 00 04 0A 01 53 00 5D 01 [14:55:42]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 BF 00 00 0E 04 04 00 F5 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 [14:55:42]wFMCommunicate OK [14:55:42]SAM_PROTO_GetFieldsCounters done [14:55:42]requested_item shift.num is exist - process it [14:55:42]requested_item shift.opened is exist - process it [14:55:42]req_shift_opened [14:55:42]FM_GetShiftState [14:55:42]SAM_PROTO_GetShiftState [14:55:42]wFMCommunicate request_size=4 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 13 01 00 [14:55:43]Write i2c OK [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: 01 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: 01 07 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: 01 07 00 0A 53 00 08 00 00 00 FF 0F 7A [14:55:43]state=0 [14:55:43]Key pressed [14:55:43]Feed [14:55:43]Write to MH i2c: D8 00 00 0B 53 35 [14:55:43]Write i2c OK [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: D8 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: D8 01 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: D8 01 00 0B 53 00 36 [14:55:43]Write to MH i2c: E2 08 00 0C 53 80 13 01 00 00 00 00 00 DC [14:55:43]Write i2c OK [14:55:43]MH_I2C_Read... [14:55:43]int [14:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:43]Read from MH i2c: E2 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 0E 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: E2 0E 00 0C 53 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 4E [14:55:43]RAPDU: Write to MH i2c: 09 01 00 00 01 00 60 0D EB 53 B6 65 60 00 [14:55:43]00 00 00 90 00 [14:55:43]wFMCommunicate OK [14:55:43]SAM_PROTO_GetShiftState done [14:55:43]FM_GetShiftState done [14:55:43]req_shift_opened done [14:55:43]requested_item shift.open_date is exist - process it [14:55:43]req_shift_open_date [14:55:43]Write i2c OK [14:55:43]req_shift_open_date done [14:55:43]MH_I2C_Read... [14:55:43]produce_requested_data done [14:55:43]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49091,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [14:55:43]Read from MH i2c: process_action_free close_receipt [14:55:43]01 json_value_free [14:55:43] [14:55:43]MH_I2C_Read... [14:55:43]json_value_free done [14:55:43]process_json_proto returns [14:55:43]Read from MH i2c: Send response to host [14:55:43]01 07 00 [14:55:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49091,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [14:55:43]MH_I2C_Read... [14:55:43]free response buf [14:55:43]execute_script done [14:55:43]execute_script returns [14:55:43]free content buf [14:55:43]Sock 9.Close socket [14:55:43]Read from MH i2c: Sock 9.Thread stoped [14:55:43]01 07 00 0D 53 00 48 00 00 00 3C 00 EB [14:55:43]state=2 [14:55:43]Key pressed [14:55:43]int [14:55:43]Write to MH i2c: 01 00 00 0E 53 61 [14:55:43]*** FLAG_PRN_KEY reset [14:55:43]Write i2c OK [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: 01 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: 01 07 00 [14:55:43]MH_I2C_Read... [14:55:43]Read from MH i2c: 01 07 00 0E 53 00 00 00 00 00 FD 0F 74 [14:55:43]state=2 [14:55:43]Stop feed [14:55:46]OFD Sender: No OFD packet to send [14:55:51]OFD Sender: No OFD packet to send [14:55:56]OFD Sender: No OFD packet to send [14:56:01]OFD Sender: No OFD packet to send [14:56:06]OFD Sender: No OFD packet to send [14:56:11]OFD Sender: No OFD packet to send [14:56:16]OFD Sender: No OFD packet to send [14:56:21]OFD Sender: No OFD packet to send [14:56:26]OFD Sender: No OFD packet to send [14:56:31]OFD Sender: No OFD packet to send [14:56:36]OFD Sender: No OFD packet to send [14:56:41]OFD Sender: No OFD packet to send [14:56:46]OFD Sender: No OFD packet to send [14:56:51]OFD Sender: No OFD packet to send [14:56:56]OFD Sender: No OFD packet to send [14:57:01]OFD Sender: No OFD packet to send [14:57:06]OFD Sender: No OFD packet to send [14:57:11]OFD Sender: No OFD packet to send [14:57:16]OFD Sender: No OFD packet to send [14:57:21]OFD Sender: No OFD packet to send [14:57:26]OFD Sender: No OFD packet to send [14:57:31]OFD Sender: No OFD packet to send [14:57:36]OFD Sender: No OFD packet to send [14:57:41]OFD Sender: No OFD packet to send [14:57:46]OFD Sender: No OFD packet to send [14:57:51]OFD Sender: No OFD packet to send [14:57:56]OFD Sender: No OFD packet to send [14:58:01]OFD Sender: No OFD packet to send [14:58:06]OFD Sender: No OFD packet to send [14:58:11]OFD Sender: No OFD packet to send [14:58:16]OFD Sender: No OFD packet to send [14:58:21]OFD Sender: No OFD packet to send [14:58:26]OFD Sender: No OFD packet to send [14:58:31]OFD Sender: No OFD packet to send [14:58:36]OFD Sender: No OFD packet to send [14:58:41]OFD Sender: No OFD packet to send [14:58:46]OFD Sender: No OFD packet to send [14:58:51]OFD Sender: No OFD packet to send [14:58:56]OFD Sender: No OFD packet to send [14:59:01]OFD Sender: No OFD packet to send [14:59:06]accept exits with 7 [14:59:06]New connection [14:59:06]New thread 3066670436 created [14:59:06]Thread 3066813796 joined [14:59:06]Waiting for new connection... [14:59:06] Sock 7.Parse request [14:59:06]Sock 7.Check first char [14:59:06]Sock 7.First char is OK [14:59:06]request: POST /json_proto HTTP/1.0 [14:59:06]Method: POST [14:59:06]URL: /json_proto [14:59:06]Method is POST - this is cgi request [14:59:06]url: /json_proto [14:59:06]query_string will be loaded in cgi processing [14:59:06]execute_cgi json_proto POST (null) [14:59:06]execute_cgi path=json_proto method=POST [14:59:06]POST find Content-Length [14:59:06]Host: 172.17.56.67:8080 [14:59:06]Content-Length: 677 [14:59:06]Content-Type: application/json [14:59:06] [14:59:06]POST finish read [14:59:06]Found Content-Length = 677 [14:59:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216193", "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" ] } } [14:59:06]execute_script... [14:59: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)216193", "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" ] } } [14:59:06]POST & json_proto [14:59:06]process_json_proto [14:59:06]json parsed OK: [14:59:06]protocol is kg_v1.0 [14:59:06]action value=close_receipt [14:59:06]process_action close_receipt [14:59:06]cmd_close_receipt [14:59:06]MH_GetDate [14:59:06]Write to MH i2c: F0 00 00 0F 53 51 [14:59:06]Write i2c OK [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: F0 [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: F0 09 00 [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: F0 09 00 0F 53 00 48 BD B7 65 26 5D 9E 65 01 [14:59:06]GetLastDocTimeStamp 1706540153 [14:59:06]current date 1706540360 [14:59:06]FM_GetShiftState [14:59:06]SAM_PROTO_GetShiftState [14:59:06]wFMCommunicate request_size=4 [14:59:06]MH_SAM_APDU [14:59:06]CAPDU: 80 13 01 00 [14:59:06]Write to MH i2c: E2 08 00 10 53 80 13 01 00 00 00 00 00 E0 [14:59:06]Write i2c OK [14:59:06]MH_I2C_Read... [14:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:06]Read from MH i2c: E2 [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: E2 0E 00 [14:59:06]MH_I2C_Read... [14:59:06]Read from MH i2c: E2 0E 00 10 53 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 52 [14:59:06]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:59:06]wFMCommunicate OK [14:59:06]SAM_PROTO_GetShiftState done [14:59:06]FM_GetShiftState done [14:59:06]opened in 1706486624 [14:59:06]opened+sec_in_day 1706573024 [14:59:06]quantity*price = 40039 [14:59:06]sum+1 = 40040 [14:59:06]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 СÐО: Общий режим Чек 75 29.01.2024 14:59 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49092 ФПД: 129498870934516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T145920&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49092&fm=129498870934516&tin=02508201610067®Number=0000000000092723&sum=40000 [14:59:07]StoreToDocumentArchive [14:59:07]shift 245 fd 49092 [14:59:07]save to /storage/0245/doc_00049092 [14:59:07]save last doc name /storage/0245/doc_00049092 to /storage/kkm_last_doc_name [14:59:07]save OK [14:59:07]Clear old archive folders... [14:59:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:07]tlvbuf is 01283AC0 [14:59:07]SAM_PROTO_ClearQueue [14:59:07]wFMCommunicate request_size=4 [14:59:07]MH_SAM_APDU [14:59:07]CAPDU: 80 09 00 00 [14:59:07]Write to MH i2c: E2 08 00 1D 53 80 09 00 00 00 00 00 00 E2 [14:59:07]Write i2c OK [14:59:07]MH_I2C_Read... [14:59:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:07]Read from MH i2c: E2 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: E2 03 00 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: E2 03 00 1D 53 00 90 00 E4 [14:59:07]RAPDU: 90 00 [14:59:07]wFMCommunicate OK [14:59:07]SAM_PROTO_ClearQueue done [14:59:07]KKMCreateOFDPacket [14:59:07]OFDProtocolAddRootSTLVToBuf [14:59:07]FM_MakeSignedData [14:59:07]FM_MakeSignedData [14:59:07]SAM_PROTO_SignData [14:59:07]wFMCommunicate request_size=4 [14:59:07]MH_SAM_APDU [14:59:07]CAPDU: 80 0D 01 02 [14:59:07]Write to MH i2c: E2 08 00 1E 53 80 0D 01 02 00 00 00 00 EA [14:59:07]Write i2c OK [14:59:07]MH_I2C_Read... [14:59:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:07]Read from MH i2c: E2 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: E2 03 00 [14:59:07]MH_I2C_Read... [14:59:07]Read from MH i2c: E2 03 00 1E 53 00 90 00 E5 [14:59:07]RAPDU: 90 00 [14:59:07]wFMCommunicate OK [14:59:07]wFMCommunicate request_size=255 [14:59:07]MH_SAM_APDU [14:59: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 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 4B 00 00 00 F4 03 04 00 48 BD B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 75 [14:59:07]Write to MH i2c: E2 02 01 1F 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4B 00 00 00 F4 03 04 00 48 BD B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 75 00 00 BD [14:59:07]Write i2c OK [14:59:07]MH_I2C_Read... [14:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:08]Read from MH i2c: E2 [14:59:08]MH_I2C_Read... [14:59:08]Read from MH i2c: E2 03 00 [14:59:08]MH_I2C_Read... [14:59:08]Read from MH i2c: E2 03 00 1F 53 00 90 00 E6 [14:59:08]RAPDU: 90 00 [14:59:08]wFMCommunicate OK [14:59:08]wFMCommunicate request_size=10 [14:59:08]MH_SAM_APDU [14:59:08]CAPDU: 80 0D 02 02 05 C7 4E 33 6B F4 [14:59:08]Write to MH i2c: E2 0D 00 20 53 80 0D 02 02 05 00 C7 4E 33 6B F4 00 00 9E [14:59:08]Write i2c OK [14:59:08]MH_I2C_Read... [14:59:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:08]Read from MH i2c: E2 [14:59:08]MH_I2C_Read... [14:59:08]Read from MH i2c: E2 03 00 [14:59:08]MH_I2C_Read... [14:59:08]Read from MH i2c: E2 03 00 20 53 00 90 00 E7 [14:59:08]RAPDU: 90 00 [14:59:08]wFMCommunicate OK [14:59:08]wFMCommunicate request_size=4 [14:59:08]MH_SAM_APDU [14:59:08]CAPDU: 80 0D 03 02 [14:59:08]Write to MH i2c: E2 08 00 21 53 80 0D 03 02 00 00 00 00 EF [14:59:08]Write i2c OK [14:59:08]MH_I2C_Read... [14:59:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:08]Read from MH i2c: E2 [14:59:08]MH_I2C_Read... [14:59:08]Read from MH i2c: E2 0B 00 [14:59:08]MH_I2C_Read... [14:59:08]Read from MH i2c: E2 0B 00 21 53 00 5B 0B A4 A5 EB B8 A8 A0 90 00 8A [14:59:08]RAPDU: 5B 0B A4 A5 EB B8 A8 A0 90 00 [14:59:08]wFMCommunicate OK [14:59:08]SAM_PROTO_SignData done [14:59:08]FM_MakeSignedData done [14:59:08]CreateOFDProtocolMessage [14:59:08]wFMCommunicate request_size=4 [14:59:08]MH_SAM_APDU [14:59:08]CAPDU: 80 11 00 00 [14:59:08]Write to MH i2c: E2 08 00 22 53 80 11 00 00 00 00 00 00 EF [14:59:08]Write i2c OK [14:59:08]MH_I2C_Read... [14:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:08]Read from MH i2c: E2 [14:59:08]MH_I2C_Read... [14:59:08]Read from MH i2c: E2 17 00 [14:59:08]MH_I2C_Read... [14:59:08]Read from MH i2c: E2 17 00 22 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3C [14:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:59:08]wFMCommunicate OK [14:59:08]CreateOFDProtocolMessage done [14:59:08]OFDSenderStorePacket 49092 [14:59:08]StoreOFDPacket docnum=49092 [14:59: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 2A 9B 07 01 74 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4B 00 00 00 F4 03 04 00 48 BD B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 75 C7 4E 33 6B F4 5B 0B A4 A5 EB B8 A8 A0 [14:59:08]CheckFolder [14:59:08]dirname=/storage/ofd_packets [14:59:08]CheckFolder done [14:59:08]ProducePacketName [14:59:08]name=ofd_packets/00049092 [14:59:08]NVStorageSaveData ofd_packets/00049092 [14:59:08]File name is /storage/ofd_packets/00049092 [14:59:08]Write 301 bytes [14:59:08]NVStorageSaveData done [14:59:08]OFDSenderStorePacket done [14:59:08]KKMCreateOFDPacket done [14:59:08]NVStorageSaveData kkm_last_timestamp [14:59:08]File name is /storage/kkm_last_timestamp [14:59:08]Write 4 bytes [14:59:08]NVStorageSaveData done [14:59:08]ExternCall_PrintAddStr [14:59:08]wPrintStart [14:59:08]Write to MH i2c: 01 00 00 23 53 76 [14:59:08]Write i2c OK [14:59:08]MH_I2C_Read... [14:59:08]Read from MH i2c: 01 [14:59:08]MH_I2C_Read... [14:59:08]Read from MH i2c: 01 07 00 [14:59:08]MH_I2C_Read... [14:59:08]Read from MH i2c: 01 07 00 23 53 00 00 00 00 00 FF 0F 8B [14:59:08]RasterBufferAndPrint [14:59:08]line Счет N : (1)216193 [14:59:08]line ИÐÐ: 02508201610067 [14:59:08]line Контрольно-КаÑÑовый Чек [14:59:08]line ПРОДÐЖР[14:59:08]line ТРК (МРК, ГÐК) : 22 [14:59:08]line Товар: 2710124130 [14:59:08]line Ðи-92-К-5 [14:59:08]line 6.640 * 60.30 [14:59:08]line = 400.39 [14:59:08]line ÐДС 12% ÐСП 1% [14:59:08]line > о реализуемом товаре [14:59:08]line ОКРУГЛЕÐИЕ: -0.39 [14:59:08]line ИТОГО: 400.00 [14:59:08]line ВнеÑено: 400.00 [14:59:08]line СДÐЧÐ: 0.00 [14:59:08]line ÐСП 1% : 3.54 [14:59:08]line ÐДС 12% : 42.52 [14:59:08]line Ðаличными: 400.00 [14:59:08]line Безнал.: 0.00 [14:59:08]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [14:59:08]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [14:59:08]line СÐО: Общий режим [14:59:08]line Чек 75 29.01.2024 14:59 [14:59:08]line Смена: 245 ФФД: 1.0 [14:59:08]line ЗÐМ: 0300000040 [14:59:08]line РÐМ: 0000000000092723 [14:59:08]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [14:59:08]line ФМ: 0000000000875060 [14:59:08]line ФД: 49092 [14:59:08]line ФПД: 129498870934516 [14:59:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T145920&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49092&fm=129498870934516&tin=02508201610067®Number=0000000000092723&sum=40000 [14:59:08]OFD Sender: Processing packet 49092 [packets to send 12, broken 11] [14:59:08]ProducePacketName [14:59:08]name=ofd_packets/00049092 [14:59:08]OFD Sender: To server: ‡•öpG, [14:59:08]CommunicateWithHost lk.salyk.kg:30040 [14:59:08]ConnectInit lk.salyk.kg [14:59:08]written 0, free lines is 4095 [14:59:08]Connected sock=10 [14:59: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 2A 9B 07 01 74 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4B 00 00 00 F4 03 04 00 48 BD B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 75 C7 4E 33 6B F4 5B 0B A4 A5 EB B8 A8 A0 [14:59:09]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 C9 69 47 00 92 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C4 BF 00 00 F4 03 04 00 41 69 B7 65 B6 04 01 00 00 DD BC B3 D0 FE 70 13 0D [14:59:09]CommunicateWithHost err = 0 [14:59:09]CheckOFDResponse [14:59:09]1017 (14) - 77093643461234 [14:59:09]1041 (16) - 0000000000875060 [14:59:09]1040 (4) - 49092 [14:59:09]1012 (4) - 29.01.2024 09:00 [14:59:09]1206 (1) - 0 [14:59:09]OFD Sender: Remove packet 49092 [14:59:09]ProducePacketName [14:59:09]name=ofd_packets/00049092 [14:59:09]NVStorageDeleteData [14:59:09]Write to MH i2c: 01 00 00 4E 53 A1 [14:59:09]Write i2c OK [14:59:09]MH_I2C_Read... [14:59:09]Read from MH i2c: 01 [14:59:09]MH_I2C_Read... [14:59:09]Read from MH i2c: 01 07 00 [14:59:09]MH_I2C_Read... [14:59:09]Read from MH i2c: 01 07 00 4E 53 00 00 00 00 00 0E 0D C3 [14:59:09]RasterBufferAndPrint [14:59:09]line [14:59:09]line [14:59:09]line [14:59:09]line [14:59:09]line [14:59:09]written 0, free lines is 3348 [14:59:09]MH_Cut [14:59:09]Write to MH i2c: D1 01 00 55 53 01 7A [14:59:09]Write i2c OK [14:59:09]MH_I2C_Read... [14:59:09]Read from MH i2c: D1 [14:59:09]MH_I2C_Read... [14:59:09]Read from MH i2c: D1 01 00 [14:59:09]MH_I2C_Read... [14:59:09]Read from MH i2c: D1 01 00 55 53 00 79 [14:59:09]Write to MH i2c: 01 00 00 56 53 A9 [14:59:09]Write i2c OK [14:59:09]MH_I2C_Read... [14:59:09]OFD Sender: No OFD packet to send [14:59:09]*** Cut start [14:59:09]*** Partial cut [14:59:09]*** CUTSNS_PIN = 1 [14:59:09]*** CUTSNS_PIN = 0 [14:59:10]*** Brake cut motor [14:59:10]Read from MH i2c: 01 [14:59:10]MH_I2C_Read... [14:59:10]*** Stop cut motor [14:59:10]*** Cut end [14:59:10]Read from MH i2c: 01 07 00 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: 01 07 00 56 53 00 00 00 00 00 FF 0F BE [14:59:10]process_action close_receipt done [14:59:10]requested_data is exist [14:59:10]produce_requested_data [14:59:10]requested_item fm.sn is exist - process it [14:59:10]wFMCommunicate request_size=4 [14:59:10]MH_SAM_APDU [14:59:10]CAPDU: 80 11 00 00 [14:59:10]Write to MH i2c: E2 08 00 57 53 80 11 00 00 00 00 00 00 24 [14:59:10]Write i2c OK [14:59:10]MH_I2C_Read... [14:59:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:10]Read from MH i2c: E2 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: E2 17 00 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: E2 17 00 57 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 71 [14:59:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [14:59:10]wFMCommunicate OK [14:59:10]requested_item fd.num is exist - process it [14:59:10]SAM_PROTO_GetFieldsCounters [14:59:10]wFMCommunicate request_size=4 [14:59:10]MH_SAM_APDU [14:59:10]CAPDU: 80 13 00 00 [14:59:10]Write to MH i2c: E2 08 00 58 53 80 13 00 00 00 00 00 00 27 [14:59:10]Write i2c OK [14:59:10]MH_I2C_Read... [14:59:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:10]Read from MH i2c: E2 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: E2 62 00 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: E2 62 00 58 53 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 BF 00 00 0E 04 04 00 F5 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 99 [14:59: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 C4 BF 00 00 0E 04 04 00 F5 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 [14:59:10]wFMCommunicate OK [14:59:10]SAM_PROTO_GetFieldsCounters done [14:59:10]requested_item shift.num is exist - process it [14:59:10]requested_item shift.opened is exist - process it [14:59:10]req_shift_opened [14:59:10]FM_GetShiftState [14:59:10]SAM_PROTO_GetShiftState [14:59:10]wFMCommunicate request_size=4 [14:59:10]MH_SAM_APDU [14:59:10]CAPDU: 80 13 01 00 [14:59:10]Write to MH i2c: E2 08 00 59 53 80 13 01 00 00 00 00 00 29 [14:59:10]Write i2c OK [14:59:10]MH_I2C_Read... [14:59:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:10]Read from MH i2c: E2 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: E2 0E 00 [14:59:10]MH_I2C_Read... [14:59:10]Read from MH i2c: E2 0E 00 59 53 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 9B [14:59:10]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [14:59:10]wFMCommunicate OK [14:59:10]SAM_PROTO_GetShiftState done [14:59:10]FM_GetShiftState done [14:59:10]req_shift_opened done [14:59:10]requested_item shift.open_date is exist - process it [14:59:10]req_shift_open_date [14:59:10]req_shift_open_date done [14:59:10]produce_requested_data done [14:59:10]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49092,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [14:59:10]process_action_free close_receipt [14:59:10]json_value_free [14:59:10]json_value_free done [14:59:10]process_json_proto returns [14:59:10]Send response to host [14:59:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49092,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [14:59:10]free response buf [14:59:10]execute_script done [14:59:10]execute_script returns [14:59:10]free content buf [14:59:10]Sock 7.Close socket [14:59:10]Sock 7.Thread stoped [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:14]OFD Sender: No OFD packet to send [15:05:19]OFD Sender: No OFD packet to send [15:05:24]OFD Sender: No OFD packet to send [15:05:29]OFD Sender: No OFD packet to send [15:05:34]OFD Sender: No OFD packet to send [15:05:39]OFD Sender: No OFD packet to send [15:05:44]OFD Sender: No OFD packet to send [15:05:49]OFD Sender: No OFD packet to send [15:05:54]OFD Sender: No OFD packet to send [15:05:59]OFD Sender: No OFD packet to send [15:06:04]OFD Sender: No OFD packet to send [15:06:09]OFD Sender: No OFD packet to send [15:06:14]OFD Sender: No OFD packet to send [15:06:19]OFD Sender: No OFD packet to send [15:06:24]OFD Sender: No OFD packet to send [15:06:29]OFD Sender: No OFD packet to send [15:06:34]OFD Sender: No OFD packet to send [15:06:39]OFD Sender: No OFD packet to send [15:06:44]OFD Sender: No OFD packet to send [15:06:49]OFD Sender: No OFD packet to send [15:06:54]OFD Sender: No OFD packet to send [15:06:59]OFD Sender: No OFD packet to send [15:07:04]OFD Sender: No OFD packet to send [15:07:09]OFD Sender: No OFD packet to send [15:07:14]OFD Sender: No OFD packet to send [15:07:19]OFD Sender: No OFD packet to send [15:07:24]OFD Sender: No OFD packet to send [15:07:29]OFD Sender: No OFD packet to send [15:07:34]OFD Sender: No OFD packet to send [15:07:39]OFD Sender: No OFD packet to send [15:07:44]OFD Sender: No OFD packet to send [15:07:49]OFD Sender: No OFD packet to send [15:07:54]OFD Sender: No OFD packet to send [15:07:59]OFD Sender: No OFD packet to send [15:08:04]OFD Sender: No OFD packet to send [15:08:09]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:18:56]accept exits with 9 [15:18:56]New connection [15:18:56]New thread 3066813796 created [15:18:56]Thread 3066670436 joined [15:18:56]Waiting for new connection... [15:18:56] Sock 9.Parse request [15:18:56]Sock 9.Check first char [15:18:56]Sock 9.First char is OK [15:18:56]request: POST /json_proto HTTP/1.0 [15:18:56]Method: POST [15:18:56]URL: /json_proto [15:18:56]Method is POST - this is cgi request [15:18:56]url: /json_proto [15:18:56]query_string will be loaded in cgi processing [15:18:56]execute_cgi json_proto POST (null) [15:18:56]execute_cgi path=json_proto method=POST [15:18:56]POST find Content-Length [15:18:56]Host: 172.17.56.67:8080 [15:18:56]Content-Length: 677 [15:18:56]Content-Type: application/json [15:18:56] [15:18:56]POST finish read [15:18:56]Found Content-Length = 677 [15:18:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216194", "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:18:56]execute_script... [15:18: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)216194", "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:18:56]POST & json_proto [15:18:56]process_json_proto [15:18:56]json parsed OK: [15:18:56]protocol is kg_v1.0 [15:18:56]action value=close_receipt [15:18:56]process_action close_receipt [15:18:56]cmd_close_receipt [15:18:56]MH_GetDate [15:18:56]Write to MH i2c: F0 00 00 5A 53 9C [15:18:56]Write i2c OK [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: F0 [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: F0 09 00 [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: F0 09 00 5A 53 00 EF C1 B7 65 26 5D 9E 65 F7 [15:18:56]GetLastDocTimeStamp 1706540360 [15:18:56]current date 1706541551 [15:18:56]FM_GetShiftState [15:18:56]SAM_PROTO_GetShiftState [15:18:56]wFMCommunicate request_size=4 [15:18:56]MH_SAM_APDU [15:18:56]CAPDU: 80 13 01 00 [15:18:56]Write to MH i2c: E2 08 00 5B 53 80 13 01 00 00 00 00 00 2B [15:18:56]Write i2c OK [15:18:56]MH_I2C_Read... [15:18:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:18:56]Read from MH i2c: E2 [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: E2 0E 00 [15:18:56]MH_I2C_Read... [15:18:56]Read from MH i2c: E2 0E 00 5B 53 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 9D [15:18:56]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [15:18:56]wFMCommunicate OK [15:18:56]SAM_PROTO_GetShiftState done [15:18:56]FM_GetShiftState done [15:18:56]opened in 1706486624 [15:18:56]opened+sec_in_day 1706573024 [15:18:56]quantity*price = 20019 [15:18:56]sum+1 = 20021 [15:18:56]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 29.01.2024 15:19 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49093 ФПД: 103749261623277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T151911&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49093&fm=103749261623277&tin=02508201610067®Number=0000000000092723&sum=20000 [15:18:58]StoreToDocumentArchive [15:18:58]shift 245 fd 49093 [15:18:58]save to /storage/0245/doc_00049093 [15:18:58]save last doc name /storage/0245/doc_00049093 to /storage/kkm_last_doc_name [15:18:58]save OK [15:18:58]Clear old archive folders... [15:18:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:18:58]tlvbuf is 011F8280 [15:18:58]SAM_PROTO_ClearQueue [15:18:58]wFMCommunicate request_size=4 [15:18:58]MH_SAM_APDU [15:18:58]CAPDU: 80 09 00 00 [15:18:58]Write to MH i2c: E2 08 00 68 53 80 09 00 00 00 00 00 00 2D [15:18:58]Write i2c OK [15:18:58]MH_I2C_Read... [15:18:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:18:58]Read from MH i2c: E2 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 03 00 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 03 00 68 53 00 90 00 2F [15:18:58]RAPDU: 90 00 [15:18:58]wFMCommunicate OK [15:18:58]SAM_PROTO_ClearQueue done [15:18:58]KKMCreateOFDPacket [15:18:58]OFDProtocolAddRootSTLVToBuf [15:18:58]FM_MakeSignedData [15:18:58]FM_MakeSignedData [15:18:58]SAM_PROTO_SignData [15:18:58]wFMCommunicate request_size=4 [15:18:58]MH_SAM_APDU [15:18:58]CAPDU: 80 0D 01 02 [15:18:58]Write to MH i2c: E2 08 00 69 53 80 0D 01 02 00 00 00 00 35 [15:18:58]Write i2c OK [15:18:58]MH_I2C_Read... [15:18:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:18:58]Read from MH i2c: E2 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 03 00 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 03 00 69 53 00 90 00 30 [15:18:58]RAPDU: 90 00 [15:18:58]wFMCommunicate OK [15:18:58]wFMCommunicate request_size=255 [15:18:58]MH_SAM_APDU [15:18: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 EF C1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5E [15:18:58]Write to MH i2c: E2 02 01 6A 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 EF C1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5E 00 00 34 [15:18:58]Write i2c OK [15:18:58]MH_I2C_Read... [15:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:58]Read from MH i2c: E2 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 03 00 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 03 00 6A 53 00 90 00 31 [15:18:58]RAPDU: 90 00 [15:18:58]wFMCommunicate OK [15:18:58]wFMCommunicate request_size=10 [15:18:58]MH_SAM_APDU [15:18:58]CAPDU: 80 0D 02 02 05 5C 01 E2 7F ED [15:18:58]Write to MH i2c: E2 0D 00 6B 53 80 0D 02 02 05 00 5C 01 E2 7F ED 00 00 ED [15:18:58]Write i2c OK [15:18:58]MH_I2C_Read... [15:18:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:18:58]Read from MH i2c: E2 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 03 00 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 03 00 6B 53 00 90 00 32 [15:18:58]RAPDU: 90 00 [15:18:58]wFMCommunicate OK [15:18:58]wFMCommunicate request_size=4 [15:18:58]MH_SAM_APDU [15:18:58]CAPDU: 80 0D 03 02 [15:18:58]Write to MH i2c: E2 08 00 6C 53 80 0D 03 02 00 00 00 00 3A [15:18:58]Write i2c OK [15:18:58]MH_I2C_Read... [15:18:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:18:58]Read from MH i2c: E2 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 0B 00 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 0B 00 6C 53 00 FF 90 41 3F A1 C6 EF 52 90 00 F2 [15:18:58]RAPDU: FF 90 41 3F A1 C6 EF 52 90 00 [15:18:58]wFMCommunicate OK [15:18:58]SAM_PROTO_SignData done [15:18:58]FM_MakeSignedData done [15:18:58]CreateOFDProtocolMessage [15:18:58]wFMCommunicate request_size=4 [15:18:58]MH_SAM_APDU [15:18:58]CAPDU: 80 11 00 00 [15:18:58]Write to MH i2c: E2 08 00 6D 53 80 11 00 00 00 00 00 00 3A [15:18:58]Write i2c OK [15:18:58]MH_I2C_Read... [15:18:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:18:58]Read from MH i2c: E2 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 17 00 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: E2 17 00 6D 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 87 [15:18:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:18:58]wFMCommunicate OK [15:18:58]CreateOFDProtocolMessage done [15:18:58]OFDSenderStorePacket 49093 [15:18:58]StoreOFDPacket docnum=49093 [15:18: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 D1 6A 07 01 1C 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EF C1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5E 5C 01 E2 7F ED FF 90 41 3F A1 C6 EF 52 [15:18:58]CheckFolder [15:18:58]dirname=/storage/ofd_packets [15:18:58]CheckFolder done [15:18:58]ProducePacketName [15:18:58]name=ofd_packets/00049093 [15:18:58]NVStorageSaveData ofd_packets/00049093 [15:18:58]File name is /storage/ofd_packets/00049093 [15:18:58]Write 301 bytes [15:18:58]NVStorageSaveData done [15:18:58]OFDSenderStorePacket done [15:18:58]KKMCreateOFDPacket done [15:18:58]NVStorageSaveData kkm_last_timestamp [15:18:58]File name is /storage/kkm_last_timestamp [15:18:58]Write 4 bytes [15:18:58]NVStorageSaveData done [15:18:58]ExternCall_PrintAddStr [15:18:58]wPrintStart [15:18:58]Write to MH i2c: 01 00 00 6E 53 C1 [15:18:58]Write i2c OK [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: 01 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: 01 07 00 [15:18:58]MH_I2C_Read... [15:18:58]Read from MH i2c: 01 07 00 6E 53 00 00 00 00 00 FF 0F D6 [15:18:58]RasterBufferAndPrint [15:18:58]line Счет N : (1)216194 [15:18:58]line ИÐÐ: 02508201610067 [15:18:58]line Контрольно-КаÑÑовый Чек [15:18:58]line ПРОДÐЖР[15:18:58]line ТРК (МРК, ГÐК) : 22 [15:18:58]line Товар: 2710124130 [15:18:58]line Ðи-92-К-5 [15:18:58]line 3.320 * 60.30 [15:18:58]line = 200.20 [15:18:58]line ÐДС 12% ÐСП 1% [15:18:58]line > о реализуемом товаре [15:18:58]line ОКРУГЛЕÐИЕ: -0.20 [15:18:58]line ИТОГО: 200.00 [15:18:58]line ВнеÑено: 200.00 [15:18:58]line СДÐЧÐ: 0.00 [15:18:58]line ÐСП 1% : 1.77 [15:18:58]line ÐДС 12% : 21.26 [15:18:58]line Ðаличными: 200.00 [15:18:58]line Безнал.: 0.00 [15:18:58]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [15:18:58]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:18:58]line СÐО: Общий режим [15:18:58]line Чек 76 29.01.2024 15:19 [15:18:58]line Смена: 245 ФФД: 1.0 [15:18:58]line ЗÐМ: 0300000040 [15:18:58]line РÐМ: 0000000000092723 [15:18:58]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [15:18:58]line ФМ: 0000000000875060 [15:18:58]line ФД: 49093 [15:18:58]line ФПД: 103749261623277 [15:18:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T151911&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49093&fm=103749261623277&tin=02508201610067®Number=0000000000092723&sum=20000 [15:18:58]written 0, free lines is 4095 [15:18:58]OFD Sender: Processing packet 49093 [packets to send 12, broken 11] [15:18:58]ProducePacketName [15:18:58]name=ofd_packets/00049093 [15:18:58]OFD Sender: To server: ‡•öpG, [15:18:58]CommunicateWithHost lk.salyk.kg:30040 [15:18:58]ConnectInit lk.salyk.kg [15:18:58]Connected sock=11 [15:18: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 D1 6A 07 01 1C 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 EF C1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5E 5C 01 E2 7F ED FF 90 41 3F A1 C6 EF 52 [15:18: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 3F 3A 47 00 BF D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C5 BF 00 00 F4 03 04 00 E7 6D B7 65 B6 04 01 00 00 A3 A0 9A 12 DB 83 4E 53 [15:18:59]CommunicateWithHost err = 0 [15:18:59]CheckOFDResponse [15:18:59]1017 (14) - 77093643461234 [15:18:59]1041 (16) - 0000000000875060 [15:18:59]1040 (4) - 49093 [15:18:59]1012 (4) - 29.01.2024 09:20 [15:18:59]1206 (1) - 0 [15:18:59]OFD Sender: Remove packet 49093 [15:18:59]ProducePacketName [15:18:59]name=ofd_packets/00049093 [15:18:59]NVStorageDeleteData [15:18:59]Write to MH i2c: 01 00 00 99 53 EC [15:18:59]Write i2c OK [15:18:59]MH_I2C_Read... [15:18:59]Read from MH i2c: 01 [15:18:59]MH_I2C_Read... [15:18:59]Read from MH i2c: 01 07 00 [15:18:59]MH_I2C_Read... [15:18:59]Read from MH i2c: 01 07 00 99 53 00 00 00 00 00 EF 0C EE [15:18:59]RasterBufferAndPrint [15:18:59]line [15:18:59]line [15:18:59]line [15:18:59]line [15:18:59]line [15:18:59]written 0, free lines is 3317 [15:18:59]MH_Cut [15:18:59]Write to MH i2c: D1 01 00 A0 53 01 C5 [15:18:59]Write i2c OK [15:18:59]MH_I2C_Read... [15:18:59]Read from MH i2c: D1 [15:18:59]MH_I2C_Read... [15:18:59]Read from MH i2c: D1 01 00 [15:18:59]MH_I2C_Read... [15:18:59]Read from MH i2c: D1 01 00 A0 53 00 C4 [15:18:59]Write to MH i2c: 01 00 00 A1 53 F4 [15:18:59]Write i2c OK [15:18:59]MH_I2C_Read... [15:18:59]OFD Sender: No OFD packet to send [15:19:00]*** Cut start [15:19:00]*** Partial cut [15:19:00]*** CUTSNS_PIN = 1 [15:19:00]*** CUTSNS_PIN = 0 [15:19:00]*** Brake cut motor [15:19:00]Read from MH i2c: 01 [15:19:00]MH_I2C_Read... [15:19:00]*** Stop cut motor [15:19:00]*** Cut end [15:19:00]Read from MH i2c: 01 07 00 [15:19:00]MH_I2C_Read... [15:19:00]Read from MH i2c: 01 07 00 A1 53 00 00 00 00 00 FF 0F 09 [15:19:00]process_action close_receipt done [15:19:00]requested_data is exist [15:19:00]produce_requested_data [15:19:00]requested_item fm.sn is exist - process it [15:19:00]wFMCommunicate request_size=4 [15:19:00]MH_SAM_APDU [15:19:00]CAPDU: 80 11 00 00 [15:19:00]Write to MH i2c: E2 08 00 A2 53 80 11 00 00 00 00 00 00 6F [15:19:00]Write i2c OK [15:19:00]MH_I2C_Read... [15:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:19:00]Read from MH i2c: E2 [15:19:00]MH_I2C_Read... [15:19:00]Read from MH i2c: E2 17 00 [15:19:00]MH_I2C_Read... [15:19:00]Read from MH i2c: E2 17 00 A2 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BC [15:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:19:00]wFMCommunicate OK [15:19:00]requested_item fd.num is exist - process it [15:19:00]SAM_PROTO_GetFieldsCounters [15:19:00]wFMCommunicate request_size=4 [15:19:00]MH_SAM_APDU [15:19:00]CAPDU: 80 13 00 00 [15:19:00]Write to MH i2c: E2 08 00 A3 53 80 13 00 00 00 00 00 00 72 [15:19:00]Write i2c OK [15:19:00]MH_I2C_Read... [15:19:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:19:00]Read from MH i2c: E2 [15:19:00]MH_I2C_Read... [15:19:00]Read from MH i2c: E2 62 00 [15:19:00]MH_I2C_Read... [15:19:00]Read from MH i2c: E2 62 00 A3 53 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 BF 00 00 0E 04 04 00 F5 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 E8 [15:19: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 C5 BF 00 00 0E 04 04 00 F5 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:19:00]wFMCommunicate OK [15:19:00]SAM_PROTO_GetFieldsCounters done [15:19:00]requested_item shift.num is exist - process it [15:19:00]requested_item shift.opened is exist - process it [15:19:00]req_shift_opened [15:19:00]FM_GetShiftState [15:19:00]SAM_PROTO_GetShiftState [15:19:00]wFMCommunicate request_size=4 [15:19:00]MH_SAM_APDU [15:19:00]CAPDU: 80 13 01 00 [15:19:00]Write to MH i2c: E2 08 00 A4 53 80 13 01 00 00 00 00 00 74 [15:19:00]Write i2c OK [15:19:00]MH_I2C_Read... [15:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:00]Read from MH i2c: E2 [15:19:00]MH_I2C_Read... [15:19:00]Read from MH i2c: E2 0E 00 [15:19:00]MH_I2C_Read... [15:19:00]Read from MH i2c: E2 0E 00 A4 53 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 E6 [15:19:00]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [15:19:00]wFMCommunicate OK [15:19:00]SAM_PROTO_GetShiftState done [15:19:00]FM_GetShiftState done [15:19:00]req_shift_opened done [15:19:00]requested_item shift.open_date is exist - process it [15:19:00]req_shift_open_date [15:19:00]req_shift_open_date done [15:19:00]produce_requested_data done [15:19:00]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49093,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [15:19:00]process_action_free close_receipt [15:19:00]json_value_free [15:19:00]json_value_free done [15:19:00]process_json_proto returns [15:19:00]Send response to host [15:19:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49093,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [15:19:00]free response buf [15:19:00]execute_script done [15:19:00]execute_script returns [15:19:00]free content buf [15:19:00]Sock 9.Close socket [15:19:00]Sock 9.Thread stoped [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:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]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:36:00]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [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:19]accept exits with 7 [15:45:19]New connection [15:45:19]New thread 3066670436 created [15:45:19]Thread 3066813796 joined [15:45:19]Waiting for new connection... [15:45:19] Sock 7.Parse request [15:45:19]Sock 7.Check first char [15:45:19]Sock 7.First char is OK [15:45:19]request: POST /json_proto HTTP/1.0 [15:45:19]Method: POST [15:45:19]URL: /json_proto [15:45:19]Method is POST - this is cgi request [15:45:19]url: /json_proto [15:45:19]query_string will be loaded in cgi processing [15:45:19]execute_cgi json_proto POST (null) [15:45:19]execute_cgi path=json_proto method=POST [15:45:19]POST find Content-Length [15:45:19]Host: 172.17.56.67:8080 [15:45:19]Content-Length: 682 [15:45:19]Content-Type: application/json [15:45:19] [15:45:19]POST finish read [15:45:19]Found Content-Length = 682 [15:45:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216195", "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:45:19]execute_script... [15:45:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216195", "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:45:19]POST & json_proto [15:45:19]process_json_proto [15:45:19]json parsed OK: [15:45:19]protocol is kg_v1.0 [15:45:19]action value=close_receipt [15:45:19]process_action close_receipt [15:45:19]cmd_close_receipt [15:45:19]MH_GetDate [15:45:19]Write to MH i2c: F0 00 00 A5 53 E7 [15:45:19]Write i2c OK [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: F0 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: F0 09 00 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: F0 09 00 A5 53 00 1D C8 B7 65 26 5D 9E 65 77 [15:45:19]GetLastDocTimeStamp 1706541551 [15:45:19]current date 1706543133 [15:45:19]FM_GetShiftState [15:45:19]SAM_PROTO_GetShiftState [15:45:19]wFMCommunicate request_size=4 [15:45:19]MH_SAM_APDU [15:45:19]CAPDU: 80 13 01 00 [15:45:19]Write to MH i2c: E2 08 00 A6 53 80 13 01 00 00 00 00 00 76 [15:45:19]Write i2c OK [15:45:19]MH_I2C_Read... [15:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:19]Read from MH i2c: E2 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: E2 0E 00 [15:45:19]MH_I2C_Read... [15:45:19]Read from MH i2c: E2 0E 00 A6 53 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 E8 [15:45:19]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [15:45:19]wFMCommunicate OK [15:45:19]SAM_PROTO_GetShiftState done [15:45:19]FM_GetShiftState done [15:45:19]opened in 1706486624 [15:45:19]opened+sec_in_day 1706573024 [15:45:19]quantity*price = 100037 [15:45:19]sum+1 = 100039 [15:45:19]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 СÐО: Общий режим Чек 77 29.01.2024 15:45 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49094 ФПД: 58851334853865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T154533&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49094&fm=58851334853865&tin=02508201610067®Number=0000000000092723&sum=100000 [15:45:20]StoreToDocumentArchive [15:45:20]shift 245 fd 49094 [15:45:20]save to /storage/0245/doc_00049094 [15:45:20]save last doc name /storage/0245/doc_00049094 to /storage/kkm_last_doc_name [15:45:20]save OK [15:45:20]Clear old archive folders... [15:45:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:45:20]tlvbuf is 012367B0 [15:45:20]SAM_PROTO_ClearQueue [15:45:20]wFMCommunicate request_size=4 [15:45:20]MH_SAM_APDU [15:45:20]CAPDU: 80 09 00 00 [15:45:20]Write to MH i2c: E2 08 00 B3 53 80 09 00 00 00 00 00 00 78 [15:45:20]Write i2c OK [15:45:20]MH_I2C_Read... [15:45:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:20]Read from MH i2c: E2 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 03 00 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 03 00 B3 53 00 90 00 7A [15:45:20]RAPDU: 90 00 [15:45:20]wFMCommunicate OK [15:45:20]SAM_PROTO_ClearQueue done [15:45:20]KKMCreateOFDPacket [15:45:20]OFDProtocolAddRootSTLVToBuf [15:45:20]FM_MakeSignedData [15:45:20]FM_MakeSignedData [15:45:20]SAM_PROTO_SignData [15:45:20]wFMCommunicate request_size=4 [15:45:20]MH_SAM_APDU [15:45:20]CAPDU: 80 0D 01 02 [15:45:20]Write to MH i2c: E2 08 00 B4 53 80 0D 01 02 00 00 00 00 80 [15:45:20]Write i2c OK [15:45:20]MH_I2C_Read... [15:45:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:20]Read from MH i2c: E2 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 03 00 [15:45:20]MH_I2C_Read... [15:45:20]Read from MH i2c: E2 03 00 B4 53 00 90 00 7B [15:45:20]RAPDU: 90 00 [15:45:20]wFMCommunicate OK [15:45:20]wFMCommunicate request_size=255 [15:45:20]MH_SAM_APDU [15:45: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 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 4D 00 00 00 F4 03 04 00 1D C8 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 35 [15:45:20]Write to MH i2c: E2 02 01 B5 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4D 00 00 00 F4 03 04 00 1D C8 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 35 00 00 ED [15:45:20]Write i2c OK [15:45:20]MH_I2C_Read... [15:45:20]OFD Sender: No OFD packet to send [15:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:21]Read from MH i2c: E2 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: E2 03 00 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: E2 03 00 B5 53 00 90 00 7C [15:45:21]RAPDU: 90 00 [15:45:21]wFMCommunicate OK [15:45:21]wFMCommunicate request_size=10 [15:45:21]MH_SAM_APDU [15:45:21]CAPDU: 80 0D 02 02 05 86 64 E8 94 E9 [15:45:21]Write to MH i2c: E2 0D 00 B6 53 80 0D 02 02 05 00 86 64 E8 94 E9 00 00 DC [15:45:21]Write i2c OK [15:45:21]MH_I2C_Read... [15:45:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:21]Read from MH i2c: E2 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: E2 03 00 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: E2 03 00 B6 53 00 90 00 7D [15:45:21]RAPDU: 90 00 [15:45:21]wFMCommunicate OK [15:45:21]wFMCommunicate request_size=4 [15:45:21]MH_SAM_APDU [15:45:21]CAPDU: 80 0D 03 02 [15:45:21]Write to MH i2c: E2 08 00 B7 53 80 0D 03 02 00 00 00 00 85 [15:45:21]Write i2c OK [15:45:21]MH_I2C_Read... [15:45:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:21]Read from MH i2c: E2 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: E2 0B 00 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: E2 0B 00 B7 53 00 11 87 D0 49 43 DD 2F 91 90 00 17 [15:45:21]RAPDU: 11 87 D0 49 43 DD 2F 91 90 00 [15:45:21]wFMCommunicate OK [15:45:21]SAM_PROTO_SignData done [15:45:21]FM_MakeSignedData done [15:45:21]CreateOFDProtocolMessage [15:45:21]wFMCommunicate request_size=4 [15:45:21]MH_SAM_APDU [15:45:21]CAPDU: 80 11 00 00 [15:45:21]Write to MH i2c: E2 08 00 B8 53 80 11 00 00 00 00 00 00 85 [15:45:21]Write i2c OK [15:45:21]MH_I2C_Read... [15:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:21]Read from MH i2c: E2 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: E2 17 00 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: E2 17 00 B8 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D2 [15:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:45:21]wFMCommunicate OK [15:45:21]CreateOFDProtocolMessage done [15:45:21]OFDSenderStorePacket 49094 [15:45:21]StoreOFDPacket docnum=49094 [15:45: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 1D BB 07 01 DC 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4D 00 00 00 F4 03 04 00 1D C8 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 35 86 64 E8 94 E9 11 87 D0 49 43 DD 2F 91 [15:45:21]CheckFolder [15:45:21]dirname=/storage/ofd_packets [15:45:21]CheckFolder done [15:45:21]ProducePacketName [15:45:21]name=ofd_packets/00049094 [15:45:21]NVStorageSaveData ofd_packets/00049094 [15:45:21]File name is /storage/ofd_packets/00049094 [15:45:21]Write 301 bytes [15:45:21]NVStorageSaveData done [15:45:21]OFDSenderStorePacket done [15:45:21]KKMCreateOFDPacket done [15:45:21]NVStorageSaveData kkm_last_timestamp [15:45:21]File name is /storage/kkm_last_timestamp [15:45:21]Write 4 bytes [15:45:21]NVStorageSaveData done [15:45:21]ExternCall_PrintAddStr [15:45:21]wPrintStart [15:45:21]Write to MH i2c: 01 00 00 B9 53 0C [15:45:21]Write i2c OK [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: 01 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: 01 07 00 [15:45:21]MH_I2C_Read... [15:45:21]Read from MH i2c: 01 07 00 B9 53 00 00 00 00 00 FF 0F 21 [15:45:21]RasterBufferAndPrint [15:45:21]line Счет N : (1)216195 [15:45:21]line ИÐÐ: 02508201610067 [15:45:21]line Контрольно-КаÑÑовый Чек [15:45:21]line ПРОДÐЖР[15:45:21]line ТРК (МРК, ГÐК) : 12 [15:45:21]line Товар: 2710124130 [15:45:21]line Ðи-92-К-5 [15:45:21]line 16.590 * 60.30 [15:45:21]line = 1000.38 [15:45:21]line ÐДС 12% ÐСП 1% [15:45:21]line > о реализуемом товаре [15:45:21]line ОКРУГЛЕÐИЕ: -0.38 [15:45:21]line ИТОГО: 1000.00 [15:45:21]line ВнеÑено: 1000.00 [15:45:21]line СДÐЧÐ: 0.00 [15:45:21]line ÐСП 1% : 8.85 [15:45:21]line ÐДС 12% : 106.23 [15:45:21]line Ðаличными: 1000.00 [15:45:21]line Безнал.: 0.00 [15:45:21]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [15:45:21]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:45:21]line СÐО: Общий режим [15:45:21]line Чек 77 29.01.2024 15:45 [15:45:21]line Смена: 245 ФФД: 1.0 [15:45:21]line ЗÐМ: 0300000040 [15:45:21]line РÐМ: 0000000000092723 [15:45:21]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [15:45:21]line ФМ: 0000000000875060 [15:45:21]line ФД: 49094 [15:45:21]line ФПД: 58851334853865 [15:45:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T154533&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49094&fm=58851334853865&tin=02508201610067®Number=0000000000092723&sum=100000 [15:45:21]OFD Sender: Processing packet 49094 [packets to send 12, broken 11] [15:45:21]ProducePacketName [15:45:21]name=ofd_packets/00049094 [15:45:21]OFD Sender: To server: ‡•öpG, [15:45:21]CommunicateWithHost lk.salyk.kg:30040 [15:45:21]ConnectInit lk.salyk.kg [15:45:21]written 0, free lines is 4095 [15:45:21]Connected sock=10 [15:45: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 1D BB 07 01 DC 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4D 00 00 00 F4 03 04 00 1D C8 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 35 86 64 E8 94 E9 11 87 D0 49 43 DD 2F 91 [15:45: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 D0 89 47 00 C3 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 C6 BF 00 00 F4 03 04 00 16 74 B7 65 B6 04 01 00 00 58 D9 B2 B0 6D B6 21 38 [15:45:21]CommunicateWithHost err = 0 [15:45:21]CheckOFDResponse [15:45:21]1017 (14) - 77093643461234 [15:45:21]1041 (16) - 0000000000875060 [15:45:21]1040 (4) - 49094 [15:45:21]1012 (4) - 29.01.2024 09:47 [15:45:21]1206 (1) - 0 [15:45:21]OFD Sender: Remove packet 49094 [15:45:21]ProducePacketName [15:45:21]name=ofd_packets/00049094 [15:45:21]NVStorageDeleteData [15:45:22]Write to MH i2c: 01 00 00 E4 53 37 [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: 01 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: 01 07 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: 01 07 00 E4 53 00 00 00 00 00 F8 0C 42 [15:45:22]RasterBufferAndPrint [15:45:22]line [15:45:22]line [15:45:22]line [15:45:22]line [15:45:22]line [15:45:22]written 0, free lines is 3327 [15:45:22]MH_Cut [15:45:22]Write to MH i2c: D1 01 00 EB 53 01 10 [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: D1 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: D1 01 00 [15:45:22]MH_I2C_Read... [15:45:22]Read from MH i2c: D1 01 00 EB 53 00 0F [15:45:22]Write to MH i2c: 01 00 00 EC 53 3F [15:45:22]Write i2c OK [15:45:22]MH_I2C_Read... [15:45:22]OFD Sender: No OFD packet to send [15:45:22]*** Cut start [15:45:22]*** Partial cut [15:45:22]*** CUTSNS_PIN = 1 [15:45:22]*** CUTSNS_PIN = 0 [15:45:23]*** Brake cut motor [15:45:23]Read from MH i2c: 01 [15:45:23]MH_I2C_Read... [15:45:23]*** Stop cut motor [15:45:23]*** Cut end [15:45:23]Read from MH i2c: 01 07 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: 01 07 00 EC 53 00 00 00 00 00 FF 0F 54 [15:45:23]process_action close_receipt done [15:45:23]requested_data is exist [15:45:23]produce_requested_data [15:45:23]requested_item fm.sn is exist - process it [15:45:23]wFMCommunicate request_size=4 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 11 00 00 [15:45:23]Write to MH i2c: E2 08 00 ED 53 80 11 00 00 00 00 00 00 BA [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 17 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 17 00 ED 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 07 [15:45:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:45:23]wFMCommunicate OK [15:45:23]requested_item fd.num is exist - process it [15:45:23]SAM_PROTO_GetFieldsCounters [15:45:23]wFMCommunicate request_size=4 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 13 00 00 [15:45:23]Write to MH i2c: E2 08 00 EE 53 80 13 00 00 00 00 00 00 BD [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 62 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 62 00 EE 53 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 BF 00 00 0E 04 04 00 F5 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 37 [15:45: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 C6 BF 00 00 0E 04 04 00 F5 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:45:23]wFMCommunicate OK [15:45:23]SAM_PROTO_GetFieldsCounters done [15:45:23]requested_item shift.num is exist - process it [15:45:23]requested_item shift.opened is exist - process it [15:45:23]req_shift_opened [15:45:23]FM_GetShiftState [15:45:23]SAM_PROTO_GetShiftState [15:45:23]wFMCommunicate request_size=4 [15:45:23]MH_SAM_APDU [15:45:23]CAPDU: 80 13 01 00 [15:45:23]Write to MH i2c: E2 08 00 EF 53 80 13 01 00 00 00 00 00 BF [15:45:23]Write i2c OK [15:45:23]MH_I2C_Read... [15:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:23]Read from MH i2c: E2 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 0E 00 [15:45:23]MH_I2C_Read... [15:45:23]Read from MH i2c: E2 0E 00 EF 53 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 31 [15:45:23]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [15:45:23]wFMCommunicate OK [15:45:23]SAM_PROTO_GetShiftState done [15:45:23]FM_GetShiftState done [15:45:23]req_shift_opened done [15:45:23]requested_item shift.open_date is exist - process it [15:45:23]req_shift_open_date [15:45:23]req_shift_open_date done [15:45:23]produce_requested_data done [15:45:23]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49094,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [15:45:23]process_action_free close_receipt [15:45:23]json_value_free [15:45:23]json_value_free done [15:45:23]process_json_proto returns [15:45:23]Send response to host [15:45:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49094,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [15:45:23]free response buf [15:45:23]execute_script done [15:45:23]execute_script returns [15:45:23]free content buf [15:45:23]Sock 7.Close socket [15:45:23]Sock 7.Thread stoped [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:23]accept exits with 9 [15:47:23]New connection [15:47:23]New thread 3066813796 created [15:47:23]Thread 3066670436 joined [15:47:23]Waiting for new connection... [15:47:23] Sock 9.Parse request [15:47:23]Sock 9.Check first char [15:47:23]Sock 9.First char is OK [15:47:23]request: POST /json_proto HTTP/1.0 [15:47:23]Method: POST [15:47:23]URL: /json_proto [15:47:23]Method is POST - this is cgi request [15:47:23]url: /json_proto [15:47:23]query_string will be loaded in cgi processing [15:47:23]execute_cgi json_proto POST (null) [15:47:23]execute_cgi path=json_proto method=POST [15:47:23]POST find Content-Length [15:47:23]Host: 172.17.56.67:8080 [15:47:23]Content-Length: 677 [15:47:23]Content-Type: application/json [15:47:23] [15:47:23]POST finish read [15:47:23]Found Content-Length = 677 [15:47:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216196", "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" ] } } [15:47:23]execute_script... [15:47:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216196", "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" ] } } [15:47:23]POST & json_proto [15:47:23]process_json_proto [15:47:23]json parsed OK: [15:47:23]protocol is kg_v1.0 [15:47:23]action value=close_receipt [15:47:23]process_action close_receipt [15:47:23]cmd_close_receipt [15:47:23]MH_GetDate [15:47:23]Write to MH i2c: F0 00 00 F0 53 32 [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: F0 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: F0 09 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: F0 09 00 F0 53 00 9A C8 B7 65 26 5D 9E 65 3F [15:47:23]GetLastDocTimeStamp 1706543133 [15:47:23]current date 1706543258 [15:47:23]FM_GetShiftState [15:47:23]SAM_PROTO_GetShiftState [15:47:23]wFMCommunicate request_size=4 [15:47:23]MH_SAM_APDU [15:47:23]CAPDU: 80 13 01 00 [15:47:23]Write to MH i2c: E2 08 00 F1 53 80 13 01 00 00 00 00 00 C1 [15:47:23]Write i2c OK [15:47:23]MH_I2C_Read... [15:47:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:23]Read from MH i2c: E2 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 0E 00 [15:47:23]MH_I2C_Read... [15:47:23]Read from MH i2c: E2 0E 00 F1 53 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 33 [15:47:23]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [15:47:23]wFMCommunicate OK [15:47:23]SAM_PROTO_GetShiftState done [15:47:23]FM_GetShiftState done [15:47:23]opened in 1706486624 [15:47:23]opened+sec_in_day 1706573024 [15:47:23]quantity*price = 60058 [15:47:23]sum+1 = 60060 [15:47:23]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 СÐО: Общий режим Чек 78 29.01.2024 15:47 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49095 ФПД: 22421159832250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T154738&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49095&fm=22421159832250&tin=02508201610067®Number=0000000000092723&sum=60000 [15:47:24]StoreToDocumentArchive [15:47:24]shift 245 fd 49095 [15:47:24]save to /storage/0245/doc_00049095 [15:47:24]save last doc name /storage/0245/doc_00049095 to /storage/kkm_last_doc_name [15:47:24]save OK [15:47:24]Clear old archive folders... [15:47:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:47:24]tlvbuf is 01236BA0 [15:47:24]SAM_PROTO_ClearQueue [15:47:24]wFMCommunicate request_size=4 [15:47:24]MH_SAM_APDU [15:47:24]CAPDU: 80 09 00 00 [15:47:24]Write to MH i2c: E2 08 00 FE 53 80 09 00 00 00 00 00 00 C3 [15:47:24]Write i2c OK [15:47:24]MH_I2C_Read... [15:47:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:24]Read from MH i2c: E2 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: E2 03 00 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: E2 03 00 FE 53 00 90 00 C5 [15:47:24]RAPDU: 90 00 [15:47:24]wFMCommunicate OK [15:47:24]SAM_PROTO_ClearQueue done [15:47:24]KKMCreateOFDPacket [15:47:24]OFDProtocolAddRootSTLVToBuf [15:47:24]FM_MakeSignedData [15:47:24]FM_MakeSignedData [15:47:24]SAM_PROTO_SignData [15:47:24]wFMCommunicate request_size=4 [15:47:24]MH_SAM_APDU [15:47:24]CAPDU: 80 0D 01 02 [15:47:24]Write to MH i2c: E2 08 00 FF 53 80 0D 01 02 00 00 00 00 CB [15:47:24]Write i2c OK [15:47:24]MH_I2C_Read... [15:47:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:24]Read from MH i2c: E2 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: E2 03 00 [15:47:24]MH_I2C_Read... [15:47:24]Read from MH i2c: E2 03 00 FF 53 00 90 00 C6 [15:47:24]RAPDU: 90 00 [15:47:24]wFMCommunicate OK [15:47:24]wFMCommunicate request_size=255 [15:47:24]MH_SAM_APDU [15:47:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4E 00 00 00 F4 03 04 00 9A C8 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 14 [15:47:24]Write to MH i2c: E2 02 01 00 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4E 00 00 00 F4 03 04 00 9A C8 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 14 00 00 0C [15:47:25]Write i2c OK [15:47:25]MH_I2C_Read... [15:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:25]Read from MH i2c: E2 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 03 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 03 00 00 54 00 90 00 C8 [15:47:25]RAPDU: 90 00 [15:47:25]wFMCommunicate OK [15:47:25]wFMCommunicate request_size=10 [15:47:25]MH_SAM_APDU [15:47:25]CAPDU: 80 0D 02 02 05 64 55 44 6A BA [15:47:25]Write to MH i2c: E2 0D 00 01 54 80 0D 02 02 05 00 64 55 44 6A BA 00 00 FA [15:47:25]Write i2c OK [15:47:25]MH_I2C_Read... [15:47:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:25]Read from MH i2c: E2 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 03 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 03 00 01 54 00 90 00 C9 [15:47:25]RAPDU: 90 00 [15:47:25]wFMCommunicate OK [15:47:25]wFMCommunicate request_size=4 [15:47:25]MH_SAM_APDU [15:47:25]CAPDU: 80 0D 03 02 [15:47:25]Write to MH i2c: E2 08 00 02 54 80 0D 03 02 00 00 00 00 D1 [15:47:25]Write i2c OK [15:47:25]MH_I2C_Read... [15:47:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:25]Read from MH i2c: E2 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 0B 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 0B 00 02 54 00 74 08 0D E8 6A 97 62 D2 90 00 78 [15:47:25]RAPDU: 74 08 0D E8 6A 97 62 D2 90 00 [15:47:25]wFMCommunicate OK [15:47:25]SAM_PROTO_SignData done [15:47:25]FM_MakeSignedData done [15:47:25]CreateOFDProtocolMessage [15:47:25]wFMCommunicate request_size=4 [15:47:25]MH_SAM_APDU [15:47:25]CAPDU: 80 11 00 00 [15:47:25]Write to MH i2c: E2 08 00 03 54 80 11 00 00 00 00 00 00 D1 [15:47:25]Write i2c OK [15:47:25]MH_I2C_Read... [15:47:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:25]Read from MH i2c: E2 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 17 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: E2 17 00 03 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1E [15:47:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [15:47:25]wFMCommunicate OK [15:47:25]CreateOFDProtocolMessage done [15:47:25]OFDSenderStorePacket 49095 [15:47:25]StoreOFDPacket docnum=49095 [15:47:25]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 57 BC 07 01 BB 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4E 00 00 00 F4 03 04 00 9A C8 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 14 64 55 44 6A BA 74 08 0D E8 6A 97 62 D2 [15:47:25]CheckFolder [15:47:25]dirname=/storage/ofd_packets [15:47:25]CheckFolder done [15:47:25]ProducePacketName [15:47:25]name=ofd_packets/00049095 [15:47:25]NVStorageSaveData ofd_packets/00049095 [15:47:25]File name is /storage/ofd_packets/00049095 [15:47:25]Write 301 bytes [15:47:25]NVStorageSaveData done [15:47:25]OFDSenderStorePacket done [15:47:25]KKMCreateOFDPacket done [15:47:25]NVStorageSaveData kkm_last_timestamp [15:47:25]File name is /storage/kkm_last_timestamp [15:47:25]Write 4 bytes [15:47:25]NVStorageSaveData done [15:47:25]ExternCall_PrintAddStr [15:47:25]wPrintStart [15:47:25]Write to MH i2c: 01 00 00 04 54 58 [15:47:25]Write i2c OK [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: 01 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: 01 07 00 [15:47:25]MH_I2C_Read... [15:47:25]Read from MH i2c: 01 07 00 04 54 00 00 00 00 00 FF 0F 6D [15:47:25]RasterBufferAndPrint [15:47:25]line Счет N : (1)216196 [15:47:25]line ИÐÐ: 02508201610067 [15:47:25]line Контрольно-КаÑÑовый Чек [15:47:25]line ПРОДÐЖР[15:47:25]line ТРК (МРК, ГÐК) : 12 [15:47:25]line Товар: 2710124130 [15:47:25]line Ðи-92-К-5 [15:47:25]line 9.960 * 60.30 [15:47:25]line = 600.59 [15:47:25]line ÐДС 12% ÐСП 1% [15:47:25]line > о реализуемом товаре [15:47:25]line ОКРУГЛЕÐИЕ: -0.59 [15:47:25]line ИТОГО: 600.00 [15:47:25]line ВнеÑено: 600.00 [15:47:25]line СДÐЧÐ: 0.00 [15:47:25]line ÐСП 1% : 5.31 [15:47:25]line ÐДС 12% : 63.78 [15:47:25]line Ðаличными: 600.00 [15:47:25]line Безнал.: 0.00 [15:47:25]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [15:47:25]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [15:47:25]line СÐО: Общий режим [15:47:25]line Чек 78 29.01.2024 15:47 [15:47:25]line Смена: 245 ФФД: 1.0 [15:47:25]line ЗÐМ: 0300000040 [15:47:25]line РÐМ: 0000000000092723 [15:47:25]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [15:47:25]line ФМ: 0000000000875060 [15:47:25]line ФД: 49095 [15:47:25]line ФПД: 22421159832250 [15:47:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T154738&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49095&fm=22421159832250&tin=02508201610067®Number=0000000000092723&sum=60000 [15:47:25]OFD Sender: Processing packet 49095 [packets to send 12, broken 11] [15:47:25]ProducePacketName [15:47:25]name=ofd_packets/00049095 [15:47:25]OFD Sender: To server: ‡•öpG, [15:47:25]CommunicateWithHost lk.salyk.kg:30040 [15:47:25]ConnectInit lk.salyk.kg [15:47:25]written 0, free lines is 4095 [15:47:25]Connected sock=10 [15:47:25]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 57 BC 07 01 BB 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 4E 00 00 00 F4 03 04 00 9A C8 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 14 64 55 44 6A BA 74 08 0D E8 6A 97 62 D2 [15:47:26]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 8D ED 47 00 20 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 C7 BF 00 00 F4 03 04 00 92 74 B7 65 B6 04 01 00 00 AF 2D 99 B6 AB 7C F1 C8 [15:47:26]CommunicateWithHost err = 0 [15:47:26]CheckOFDResponse [15:47:26]1017 (14) - 77093643461234 [15:47:26]1041 (16) - 0000000000875060 [15:47:26]1040 (4) - 49095 [15:47:26]1012 (4) - 29.01.2024 09:49 [15:47:26]1206 (1) - 0 [15:47:26]OFD Sender: Remove packet 49095 [15:47:26]ProducePacketName [15:47:26]name=ofd_packets/00049095 [15:47:26]NVStorageDeleteData [15:47:26]Write to MH i2c: 01 00 00 2F 54 83 [15:47:26]Write i2c OK [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: 01 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: 01 07 00 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: 01 07 00 2F 54 00 00 00 00 00 F9 0C 8F [15:47:26]RasterBufferAndPrint [15:47:26]line [15:47:26]line [15:47:26]line [15:47:26]line [15:47:26]line [15:47:26]written 0, free lines is 3327 [15:47:26]MH_Cut [15:47:26]Write to MH i2c: D1 01 00 36 54 01 5C [15:47:26]Write i2c OK [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: D1 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: D1 01 00 [15:47:26]MH_I2C_Read... [15:47:26]Read from MH i2c: D1 01 00 36 54 00 5B [15:47:26]Write to MH i2c: 01 00 00 37 54 8B [15:47:26]Write i2c OK [15:47:26]MH_I2C_Read... [15:47:26]OFD Sender: No OFD packet to send [15:47:26]*** Cut start [15:47:26]*** Partial cut [15:47:26]*** CUTSNS_PIN = 1 [15:47:26]*** CUTSNS_PIN = 0 [15:47:27]*** Brake cut motor [15:47:27]Read from MH i2c: 01 [15:47:27]MH_I2C_Read... [15:47:27]*** Stop cut motor [15:47:27]*** Cut end [15:47:27]Read from MH i2c: 01 07 00 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: 01 07 00 37 54 00 00 00 00 00 FF 0F A0 [15:47:27]process_action close_receipt done [15:47:27]requested_data is exist [15:47:27]produce_requested_data [15:47:27]requested_item fm.sn is exist - process it [15:47:27]wFMCommunicate request_size=4 [15:47:27]MH_SAM_APDU [15:47:27]CAPDU: 80 11 00 00 [15:47:27]Write to MH i2c: E2 08 00 38 54 80 11 00 00 00 00 00 00 06 [15:47:27]Write i2c OK [15:47:27]MH_I2C_Read... [15:47:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:27]Read from MH i2c: E2 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 17 00 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 17 00 38 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 53 [15:47: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:47:27]wFMCommunicate OK [15:47:27]requested_item fd.num is exist - process it [15:47:27]SAM_PROTO_GetFieldsCounters [15:47:27]wFMCommunicate request_size=4 [15:47:27]MH_SAM_APDU [15:47:27]CAPDU: 80 13 00 00 [15:47:27]Write to MH i2c: E2 08 00 39 54 80 13 00 00 00 00 00 00 09 [15:47:27]Write i2c OK [15:47:27]MH_I2C_Read... [15:47:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:27]Read from MH i2c: E2 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 62 00 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 62 00 39 54 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 BF 00 00 0E 04 04 00 F5 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 87 [15:47:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:47:27]wFMCommunicate OK [15:47:27]SAM_PROTO_GetFieldsCounters done [15:47:27]requested_item shift.num is exist - process it [15:47:27]requested_item shift.opened is exist - process it [15:47:27]req_shift_opened [15:47:27]FM_GetShiftState [15:47:27]SAM_PROTO_GetShiftState [15:47:27]wFMCommunicate request_size=4 [15:47:27]MH_SAM_APDU [15:47:27]CAPDU: 80 13 01 00 [15:47:27]Write to MH i2c: E2 08 00 3A 54 80 13 01 00 00 00 00 00 0B [15:47:27]Write i2c OK [15:47:27]MH_I2C_Read... [15:47:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:27]Read from MH i2c: E2 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 0E 00 [15:47:27]MH_I2C_Read... [15:47:27]Read from MH i2c: E2 0E 00 3A 54 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 7D [15:47:27]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [15:47:27]wFMCommunicate OK [15:47:27]SAM_PROTO_GetShiftState done [15:47:27]FM_GetShiftState done [15:47:27]req_shift_opened done [15:47:27]requested_item shift.open_date is exist - process it [15:47:27]req_shift_open_date [15:47:27]req_shift_open_date done [15:47:27]produce_requested_data done [15:47:27]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49095,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [15:47:27]process_action_free close_receipt [15:47:27]json_value_free [15:47:27]json_value_free done [15:47:27]process_json_proto returns [15:47:27]Send response to host [15:47:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49095,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [15:47:27]free response buf [15:47:27]execute_script done [15:47:27]execute_script returns [15:47:27]free content buf [15:47:27]Sock 9.Close socket [15:47:27]Sock 9.Thread stoped [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:16]OFD Sender: No OFD packet to send [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]OFD Sender: No OFD packet to send [15:53:26]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:41]OFD Sender: No OFD packet to send [15:53:46]OFD Sender: No OFD packet to send [15:53:51]OFD Sender: No OFD packet to send [15:53:56]OFD Sender: No OFD packet to send [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56: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:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:27]OFD Sender: No OFD packet to send [16:07:32]OFD Sender: No OFD packet to send [16:07:37]OFD Sender: No OFD packet to send [16:07:42]OFD Sender: No OFD packet to send [16:07:47]OFD Sender: No OFD packet to send [16:07:52]OFD Sender: No OFD packet to send [16:07:57]OFD Sender: No OFD packet to send [16:08:02]OFD Sender: No OFD packet to send [16:08:07]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]accept exits with 7 [16:11:32]New connection [16:11:32]New thread 3066670436 created [16:11:32]Thread 3066813796 joined [16:11:32]Waiting for new connection... [16:11:32] Sock 7.Parse request [16:11:32]Sock 7.Check first char [16:11:32]Sock 7.First char is OK [16:11:32]request: POST /json_proto HTTP/1.0 [16:11:32]Method: POST [16:11:32]URL: /json_proto [16:11:32]Method is POST - this is cgi request [16:11:32]url: /json_proto [16:11:32]query_string will be loaded in cgi processing [16:11:32]execute_cgi json_proto POST (null) [16:11:32]execute_cgi path=json_proto method=POST [16:11:32]POST find Content-Length [16:11:32]Host: 172.17.56.67:8080 [16:11:32]Content-Length: 677 [16:11:32]Content-Type: application/json [16:11:32] [16:11:32]POST finish read [16:11:32]Found Content-Length = 677 [16:11:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216197", "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:11:32]execute_script... [16:11: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)216197", "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:11:32]POST & json_proto [16:11:32]process_json_proto [16:11:32]json parsed OK: [16:11:32]protocol is kg_v1.0 [16:11:32]action value=close_receipt [16:11:32]process_action close_receipt [16:11:32]cmd_close_receipt [16:11:32]MH_GetDate [16:11:32]Write to MH i2c: F0 00 00 3B 54 7E [16:11:32]Write i2c OK [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: F0 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: F0 09 00 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: F0 09 00 3B 54 00 42 CE B7 65 26 5D 9E 65 39 [16:11:32]GetLastDocTimeStamp 1706543258 [16:11:32]current date 1706544706 [16:11:32]FM_GetShiftState [16:11:32]SAM_PROTO_GetShiftState [16:11:32]wFMCommunicate request_size=4 [16:11:32]MH_SAM_APDU [16:11:32]CAPDU: 80 13 01 00 [16:11:32]Write to MH i2c: E2 08 00 3C 54 80 13 01 00 00 00 00 00 0D [16:11:32]Write i2c OK [16:11:32]MH_I2C_Read... [16:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:32]Read from MH i2c: E2 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: E2 0E 00 [16:11:32]MH_I2C_Read... [16:11:32]Read from MH i2c: E2 0E 00 3C 54 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 7F [16:11:32]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [16:11:32]wFMCommunicate OK [16:11:32]SAM_PROTO_GetShiftState done [16:11:32]FM_GetShiftState done [16:11:32]opened in 1706486624 [16:11:32]opened+sec_in_day 1706573024 [16:11:32]quantity*price = 30029 [16:11:32]sum+1 = 30030 [16:11: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 СÐО: Общий режим Чек 79 29.01.2024 16:11 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49096 ФПД: 50765104210904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T161146&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49096&fm=50765104210904&tin=02508201610067®Number=0000000000092723&sum=30000 [16:11:33]StoreToDocumentArchive [16:11:33]shift 245 fd 49096 [16:11:33]save to /storage/0245/doc_00049096 [16:11:33]save last doc name /storage/0245/doc_00049096 to /storage/kkm_last_doc_name [16:11:33]save OK [16:11:33]Clear old archive folders... [16:11:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:33]tlvbuf is 012147C0 [16:11:33]SAM_PROTO_ClearQueue [16:11:33]wFMCommunicate request_size=4 [16:11:33]MH_SAM_APDU [16:11:33]CAPDU: 80 09 00 00 [16:11:33]Write to MH i2c: E2 08 00 49 54 80 09 00 00 00 00 00 00 0F [16:11:33]Write i2c OK [16:11:33]MH_I2C_Read... [16:11:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:33]Read from MH i2c: E2 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 03 00 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 03 00 49 54 00 90 00 11 [16:11:33]RAPDU: 90 00 [16:11:33]wFMCommunicate OK [16:11:33]SAM_PROTO_ClearQueue done [16:11:33]KKMCreateOFDPacket [16:11:33]OFDProtocolAddRootSTLVToBuf [16:11:33]FM_MakeSignedData [16:11:33]FM_MakeSignedData [16:11:33]SAM_PROTO_SignData [16:11:33]wFMCommunicate request_size=4 [16:11:33]MH_SAM_APDU [16:11:33]CAPDU: 80 0D 01 02 [16:11:33]Write to MH i2c: E2 08 00 4A 54 80 0D 01 02 00 00 00 00 17 [16:11:33]Write i2c OK [16:11:33]MH_I2C_Read... [16:11:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:33]Read from MH i2c: E2 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 03 00 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 03 00 4A 54 00 90 00 12 [16:11:33]RAPDU: 90 00 [16:11:33]wFMCommunicate OK [16:11:33]wFMCommunicate request_size=255 [16:11:33]MH_SAM_APDU [16:11: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 4F 00 00 00 F4 03 04 00 42 CE B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 2E [16:11:33]Write to MH i2c: E2 02 01 4B 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4F 00 00 00 F4 03 04 00 42 CE B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 2E 00 00 02 [16:11:33]Write i2c OK [16:11:33]MH_I2C_Read... [16:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:33]Read from MH i2c: E2 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 03 00 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 03 00 4B 54 00 90 00 13 [16:11:33]RAPDU: 90 00 [16:11:33]wFMCommunicate OK [16:11:33]wFMCommunicate request_size=10 [16:11:33]MH_SAM_APDU [16:11:33]CAPDU: 80 0D 02 02 05 2B AC 00 E3 D8 [16:11:33]Write to MH i2c: E2 0D 00 4C 54 80 0D 02 02 05 00 2B AC 00 E3 D8 00 00 B6 [16:11:33]Write i2c OK [16:11:33]MH_I2C_Read... [16:11:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:33]Read from MH i2c: E2 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 03 00 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 03 00 4C 54 00 90 00 14 [16:11:33]RAPDU: 90 00 [16:11:33]wFMCommunicate OK [16:11:33]wFMCommunicate request_size=4 [16:11:33]MH_SAM_APDU [16:11:33]CAPDU: 80 0D 03 02 [16:11:33]Write to MH i2c: E2 08 00 4D 54 80 0D 03 02 00 00 00 00 1C [16:11:33]Write i2c OK [16:11:33]MH_I2C_Read... [16:11:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:33]Read from MH i2c: E2 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 0B 00 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 0B 00 4D 54 00 31 D7 D6 37 EF CC 2E 9F 90 00 BA [16:11:33]RAPDU: 31 D7 D6 37 EF CC 2E 9F 90 00 [16:11:33]wFMCommunicate OK [16:11:33]SAM_PROTO_SignData done [16:11:33]FM_MakeSignedData done [16:11:33]CreateOFDProtocolMessage [16:11:33]wFMCommunicate request_size=4 [16:11:33]MH_SAM_APDU [16:11:33]CAPDU: 80 11 00 00 [16:11:33]Write to MH i2c: E2 08 00 4E 54 80 11 00 00 00 00 00 00 1C [16:11:33]Write i2c OK [16:11:33]MH_I2C_Read... [16:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:33]Read from MH i2c: E2 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 17 00 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: E2 17 00 4E 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 69 [16:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:11:33]wFMCommunicate OK [16:11:33]CreateOFDProtocolMessage done [16:11:33]OFDSenderStorePacket 49096 [16:11:33]StoreOFDPacket docnum=49096 [16:11: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 73 F7 07 01 FA 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 4F 00 00 00 F4 03 04 00 42 CE B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 2E 2B AC 00 E3 D8 31 D7 D6 37 EF CC 2E 9F [16:11:33]CheckFolder [16:11:33]dirname=/storage/ofd_packets [16:11:33]CheckFolder done [16:11:33]ProducePacketName [16:11:33]name=ofd_packets/00049096 [16:11:33]NVStorageSaveData ofd_packets/00049096 [16:11:33]File name is /storage/ofd_packets/00049096 [16:11:33]Write 301 bytes [16:11:33]NVStorageSaveData done [16:11:33]OFDSenderStorePacket done [16:11:33]KKMCreateOFDPacket done [16:11:33]NVStorageSaveData kkm_last_timestamp [16:11:33]File name is /storage/kkm_last_timestamp [16:11:33]Write 4 bytes [16:11:33]NVStorageSaveData done [16:11:33]ExternCall_PrintAddStr [16:11:33]wPrintStart [16:11:33]Write to MH i2c: 01 00 00 4F 54 A3 [16:11:33]Write i2c OK [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: 01 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: 01 07 00 [16:11:33]MH_I2C_Read... [16:11:33]Read from MH i2c: 01 07 00 4F 54 00 00 00 00 00 FF 0F B8 [16:11:33]RasterBufferAndPrint [16:11:33]line Счет N : (1)216197 [16:11:33]line ИÐÐ: 02508201610067 [16:11:33]line Контрольно-КаÑÑовый Чек [16:11:33]line ПРОДÐЖР[16:11:33]line ТРК (МРК, ГÐК) : 22 [16:11:33]line Товар: 2710124130 [16:11:33]line Ðи-92-К-5 [16:11:33]line 4.980 * 60.30 [16:11:33]line = 300.29 [16:11:33]line ÐДС 12% ÐСП 1% [16:11:33]line > о реализуемом товаре [16:11:33]line ОКРУГЛЕÐИЕ: -0.29 [16:11:33]line ИТОГО: 300.00 [16:11:33]line ВнеÑено: 300.00 [16:11:33]line СДÐЧÐ: 0.00 [16:11:33]line ÐСП 1% : 2.66 [16:11:33]line ÐДС 12% : 31.89 [16:11:33]line Ðаличными: 300.00 [16:11:33]line Безнал.: 0.00 [16:11:33]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [16:11:33]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:11:33]line СÐО: Общий режим [16:11:33]line Чек 79 29.01.2024 16:11 [16:11:33]line Смена: 245 ФФД: 1.0 [16:11:33]line ЗÐМ: 0300000040 [16:11:33]line РÐМ: 0000000000092723 [16:11:33]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [16:11:33]line ФМ: 0000000000875060 [16:11:33]line ФД: 49096 [16:11:33]line ФПД: 50765104210904 [16:11:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T161146&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49096&fm=50765104210904&tin=02508201610067®Number=0000000000092723&sum=30000 [16:11:34]OFD Sender: Processing packet 49096 [packets to send 12, broken 11] [16:11:34]ProducePacketName [16:11:34]name=ofd_packets/00049096 [16:11:34]OFD Sender: To server: ‡•öpG, [16:11:34]CommunicateWithHost lk.salyk.kg:30040 [16:11:34]ConnectInit lk.salyk.kg [16:11:34]written 0, free lines is 4095 [16:11:34]Connected sock=9 [16:11: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 73 F7 07 01 FA 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 4F 00 00 00 F4 03 04 00 42 CE B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 2E 2B AC 00 E3 D8 31 D7 D6 37 EF CC 2E 9F [16:11: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 DF AB 47 00 7C 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 C8 BF 00 00 F4 03 04 00 3A 7A B7 65 B6 04 01 00 00 C1 D1 55 79 FB DA D6 E3 [16:11:34]CommunicateWithHost err = 0 [16:11:34]CheckOFDResponse [16:11:34]1017 (14) - 77093643461234 [16:11:34]1041 (16) - 0000000000875060 [16:11:34]1040 (4) - 49096 [16:11:34]1012 (4) - 29.01.2024 10:13 [16:11:34]1206 (1) - 0 [16:11:34]OFD Sender: Remove packet 49096 [16:11:34]ProducePacketName [16:11:34]name=ofd_packets/00049096 [16:11:34]NVStorageDeleteData [16:11:34]Write to MH i2c: 01 00 00 7A 54 CE [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: 01 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: 01 07 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: 01 07 00 7A 54 00 00 00 00 00 FF 0C E0 [16:11:34]RasterBufferAndPrint [16:11:34]line [16:11:34]line [16:11:34]line [16:11:34]line [16:11:34]line [16:11:34]written 0, free lines is 3333 [16:11:34]MH_Cut [16:11:34]Write to MH i2c: D1 01 00 81 54 01 A7 [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: D1 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: D1 01 00 [16:11:34]MH_I2C_Read... [16:11:34]Read from MH i2c: D1 01 00 81 54 00 A6 [16:11:34]Write to MH i2c: 01 00 00 82 54 D6 [16:11:34]Write i2c OK [16:11:34]MH_I2C_Read... [16:11:34]OFD Sender: No OFD packet to send [16:11:35]*** Cut start [16:11:35]*** Partial cut [16:11:35]*** CUTSNS_PIN = 1 [16:11:35]*** CUTSNS_PIN = 0 [16:11:35]*** Brake cut motor [16:11:35]Read from MH i2c: 01 [16:11:35]MH_I2C_Read... [16:11:35]*** Stop cut motor [16:11:35]*** Cut end [16:11:35]Read from MH i2c: 01 07 00 [16:11:35]MH_I2C_Read... [16:11:35]Read from MH i2c: 01 07 00 82 54 00 00 00 00 00 FF 0F EB [16:11:35]process_action close_receipt done [16:11:35]requested_data is exist [16:11:35]produce_requested_data [16:11:35]requested_item fm.sn is exist - process it [16:11:35]wFMCommunicate request_size=4 [16:11:35]MH_SAM_APDU [16:11:35]CAPDU: 80 11 00 00 [16:11:35]Write to MH i2c: E2 08 00 83 54 80 11 00 00 00 00 00 00 51 [16:11:35]Write i2c OK [16:11:35]MH_I2C_Read... [16:11:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:35]Read from MH i2c: E2 [16:11:35]MH_I2C_Read... [16:11:35]Read from MH i2c: E2 17 00 [16:11:35]MH_I2C_Read... [16:11:35]Read from MH i2c: E2 17 00 83 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9E [16:11:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:11:35]wFMCommunicate OK [16:11:35]requested_item fd.num is exist - process it [16:11:35]SAM_PROTO_GetFieldsCounters [16:11:35]wFMCommunicate request_size=4 [16:11:35]MH_SAM_APDU [16:11:35]CAPDU: 80 13 00 00 [16:11:35]Write to MH i2c: E2 08 00 84 54 80 13 00 00 00 00 00 00 54 [16:11:35]Write i2c OK [16:11:35]MH_I2C_Read... [16:11:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:36]Read from MH i2c: E2 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 62 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 62 00 84 54 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 BF 00 00 0E 04 04 00 F5 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 D6 [16:11: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 C8 BF 00 00 0E 04 04 00 F5 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 [16:11:36]wFMCommunicate OK [16:11:36]SAM_PROTO_GetFieldsCounters done [16:11:36]requested_item shift.num is exist - process it [16:11:36]requested_item shift.opened is exist - process it [16:11:36]req_shift_opened [16:11:36]FM_GetShiftState [16:11:36]SAM_PROTO_GetShiftState [16:11:36]wFMCommunicate request_size=4 [16:11:36]MH_SAM_APDU [16:11:36]CAPDU: 80 13 01 00 [16:11:36]Write to MH i2c: E2 08 00 85 54 80 13 01 00 00 00 00 00 56 [16:11:36]Write i2c OK [16:11:36]MH_I2C_Read... [16:11:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:36]Read from MH i2c: E2 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 0E 00 [16:11:36]MH_I2C_Read... [16:11:36]Read from MH i2c: E2 0E 00 85 54 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 C8 [16:11:36]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [16:11:36]wFMCommunicate OK [16:11:36]SAM_PROTO_GetShiftState done [16:11:36]FM_GetShiftState done [16:11:36]req_shift_opened done [16:11:36]requested_item shift.open_date is exist - process it [16:11:36]req_shift_open_date [16:11:36]req_shift_open_date done [16:11:36]produce_requested_data done [16:11:36]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49096,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [16:11:36]process_action_free close_receipt [16:11:36]json_value_free [16:11:36]json_value_free done [16:11:36]process_json_proto returns [16:11:36]Send response to host [16:11:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49096,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [16:11:36]free response buf [16:11:36]execute_script done [16:11:36]execute_script returns [16:11:36]free content buf [16:11:36]Sock 7.Close socket [16:11:36]Sock 7.Thread stoped [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:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:15]accept exits with 10 [16:13:15]New connection [16:13:15]New thread 3066813796 created [16:13:15]Thread 3066670436 joined [16:13:15]Waiting for new connection... [16:13:15] Sock 10.Parse request [16:13:15]Sock 10.Check first char [16:13:15]Sock 10.First char is OK [16:13:15]request: POST /json_proto HTTP/1.0 [16:13:15]Method: POST [16:13:15]URL: /json_proto [16:13:15]Method is POST - this is cgi request [16:13:15]url: /json_proto [16:13:15]query_string will be loaded in cgi processing [16:13:15]execute_cgi json_proto POST (null) [16:13:15]execute_cgi path=json_proto method=POST [16:13:15]POST find Content-Length [16:13:15]Host: 172.17.56.67:8080 [16:13:15]Content-Length: 677 [16:13:15]Content-Type: application/json [16:13:15] [16:13:15]POST finish read [16:13:15]Found Content-Length = 677 [16:13:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216198", "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" ] } } [16:13:15]execute_script... [16:13:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216198", "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" ] } } [16:13:15]POST & json_proto [16:13:15]process_json_proto [16:13:15]json parsed OK: [16:13:15]protocol is kg_v1.0 [16:13:15]action value=close_receipt [16:13:15]process_action close_receipt [16:13:15]cmd_close_receipt [16:13:15]MH_GetDate [16:13:15]Write to MH i2c: F0 00 00 86 54 C9 [16:13:15]Write i2c OK [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: F0 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: F0 09 00 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: F0 09 00 86 54 00 A9 CE B7 65 26 5D 9E 65 EB [16:13:15]GetLastDocTimeStamp 1706544706 [16:13:15]current date 1706544809 [16:13:15]FM_GetShiftState [16:13:15]SAM_PROTO_GetShiftState [16:13:15]wFMCommunicate request_size=4 [16:13:15]MH_SAM_APDU [16:13:15]CAPDU: 80 13 01 00 [16:13:15]Write to MH i2c: E2 08 00 87 54 80 13 01 00 00 00 00 00 58 [16:13:15]Write i2c OK [16:13:15]MH_I2C_Read... [16:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:15]Read from MH i2c: E2 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 0E 00 [16:13:15]MH_I2C_Read... [16:13:15]Read from MH i2c: E2 0E 00 87 54 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 CA [16:13:15]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [16:13:15]wFMCommunicate OK [16:13:15]SAM_PROTO_GetShiftState done [16:13:15]FM_GetShiftState done [16:13:15]opened in 1706486624 [16:13:15]opened+sec_in_day 1706573024 [16:13:15]quantity*price = 50049 [16:13:15]sum+1 = 50050 [16:13:15]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 СÐО: Общий режим Чек 80 29.01.2024 16:13 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49097 ФПД: 70300461505021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T161329&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49097&fm=70300461505021&tin=02508201610067®Number=0000000000092723&sum=50000 [16:13:16]StoreToDocumentArchive [16:13:16]shift 245 fd 49097 [16:13:16]save to /storage/0245/doc_00049097 [16:13:16]save last doc name /storage/0245/doc_00049097 to /storage/kkm_last_doc_name [16:13:16]save OK [16:13:16]Clear old archive folders... [16:13:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:16]tlvbuf is 01214550 [16:13:16]SAM_PROTO_ClearQueue [16:13:16]wFMCommunicate request_size=4 [16:13:16]MH_SAM_APDU [16:13:16]CAPDU: 80 09 00 00 [16:13:16]Write to MH i2c: E2 08 00 94 54 80 09 00 00 00 00 00 00 5A [16:13:16]Write i2c OK [16:13:16]MH_I2C_Read... [16:13:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:16]Read from MH i2c: E2 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: E2 03 00 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: E2 03 00 94 54 00 90 00 5C [16:13:16]RAPDU: 90 00 [16:13:16]wFMCommunicate OK [16:13:16]SAM_PROTO_ClearQueue done [16:13:16]KKMCreateOFDPacket [16:13:16]OFDProtocolAddRootSTLVToBuf [16:13:16]FM_MakeSignedData [16:13:16]FM_MakeSignedData [16:13:16]SAM_PROTO_SignData [16:13:16]wFMCommunicate request_size=4 [16:13:16]MH_SAM_APDU [16:13:16]CAPDU: 80 0D 01 02 [16:13:16]Write to MH i2c: E2 08 00 95 54 80 0D 01 02 00 00 00 00 62 [16:13:16]Write i2c OK [16:13:16]MH_I2C_Read... [16:13:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:16]Read from MH i2c: E2 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: E2 03 00 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: E2 03 00 95 54 00 90 00 5D [16:13:16]RAPDU: 90 00 [16:13:16]wFMCommunicate OK [16:13:16]wFMCommunicate request_size=255 [16:13:16]MH_SAM_APDU [16:13: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 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 50 00 00 00 F4 03 04 00 A9 CE B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 3F [16:13:16]Write to MH i2c: E2 02 01 96 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 50 00 00 00 F4 03 04 00 A9 CE B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 3F 00 00 31 [16:13:16]Write i2c OK [16:13:16]MH_I2C_Read... [16:13:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:16]Read from MH i2c: E2 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: E2 03 00 [16:13:16]MH_I2C_Read... [16:13:16]Read from MH i2c: E2 03 00 96 54 00 90 00 5E [16:13:16]RAPDU: 90 00 [16:13:16]wFMCommunicate OK [16:13:16]wFMCommunicate request_size=10 [16:13:16]MH_SAM_APDU [16:13:16]CAPDU: 80 0D 02 02 05 F0 1A 09 19 FD [16:13:16]Write to MH i2c: E2 0D 00 97 54 80 0D 02 02 05 00 F0 1A 09 19 FD 00 00 98 [16:13:16]Write i2c OK [16:13:16]MH_I2C_Read... [16:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:17]Read from MH i2c: E2 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: E2 03 00 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: E2 03 00 97 54 00 90 00 5F [16:13:17]RAPDU: 90 00 [16:13:17]wFMCommunicate OK [16:13:17]wFMCommunicate request_size=4 [16:13:17]MH_SAM_APDU [16:13:17]CAPDU: 80 0D 03 02 [16:13:17]Write to MH i2c: E2 08 00 98 54 80 0D 03 02 00 00 00 00 67 [16:13:17]Write i2c OK [16:13:17]MH_I2C_Read... [16:13:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:17]Read from MH i2c: E2 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: E2 0B 00 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: E2 0B 00 98 54 00 36 BA DB A7 02 9D D5 3C 90 00 8A [16:13:17]RAPDU: 36 BA DB A7 02 9D D5 3C 90 00 [16:13:17]wFMCommunicate OK [16:13:17]SAM_PROTO_SignData done [16:13:17]FM_MakeSignedData done [16:13:17]CreateOFDProtocolMessage [16:13:17]wFMCommunicate request_size=4 [16:13:17]MH_SAM_APDU [16:13:17]CAPDU: 80 11 00 00 [16:13:17]Write to MH i2c: E2 08 00 99 54 80 11 00 00 00 00 00 00 67 [16:13:17]Write i2c OK [16:13:17]MH_I2C_Read... [16:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:17]Read from MH i2c: E2 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: E2 17 00 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: E2 17 00 99 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B4 [16:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:13:17]wFMCommunicate OK [16:13:17]CreateOFDProtocolMessage done [16:13:17]OFDSenderStorePacket 49097 [16:13:17]StoreOFDPacket docnum=49097 [16:13: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 0F 01 00 00 1F FB 07 01 79 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 50 00 00 00 F4 03 04 00 A9 CE B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 3F F0 1A 09 19 FD 36 BA DB A7 02 9D D5 3C [16:13:17]CheckFolder [16:13:17]dirname=/storage/ofd_packets [16:13:17]CheckFolder done [16:13:17]ProducePacketName [16:13:17]name=ofd_packets/00049097 [16:13:17]NVStorageSaveData ofd_packets/00049097 [16:13:17]File name is /storage/ofd_packets/00049097 [16:13:17]Write 301 bytes [16:13:17]NVStorageSaveData done [16:13:17]OFDSenderStorePacket done [16:13:17]KKMCreateOFDPacket done [16:13:17]NVStorageSaveData kkm_last_timestamp [16:13:17]File name is /storage/kkm_last_timestamp [16:13:17]Write 4 bytes [16:13:17]NVStorageSaveData done [16:13:17]ExternCall_PrintAddStr [16:13:17]wPrintStart [16:13:17]Write to MH i2c: 01 00 00 9A 54 EE [16:13:17]Write i2c OK [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: 01 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: 01 07 00 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: 01 07 00 9A 54 00 00 00 00 00 FF 0F 03 [16:13:17]RasterBufferAndPrint [16:13:17]line Счет N : (1)216198 [16:13:17]line ИÐÐ: 02508201610067 [16:13:17]line Контрольно-КаÑÑовый Чек [16:13:17]line ПРОДÐЖР[16:13:17]line ТРК (МРК, ГÐК) : 22 [16:13:17]line Товар: 2710124130 [16:13:17]line Ðи-92-К-5 [16:13:17]line 8.300 * 60.30 [16:13:17]line = 500.49 [16:13:17]line ÐДС 12% ÐСП 1% [16:13:17]line > о реализуемом товаре [16:13:17]line ОКРУГЛЕÐИЕ: -0.49 [16:13:17]line ИТОГО: 500.00 [16:13:17]line ВнеÑено: 500.00 [16:13:17]line СДÐЧÐ: 0.00 [16:13:17]line ÐСП 1% : 4.43 [16:13:17]line ÐДС 12% : 53.15 [16:13:17]line Ðаличными: 500.00 [16:13:17]line Безнал.: 0.00 [16:13:17]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [16:13:17]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:13:17]line СÐО: Общий режим [16:13:17]line Чек 80 29.01.2024 16:13 [16:13:17]line Смена: 245 ФФД: 1.0 [16:13:17]line ЗÐМ: 0300000040 [16:13:17]line РÐМ: 0000000000092723 [16:13:17]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [16:13:17]line ФМ: 0000000000875060 [16:13:17]line ФД: 49097 [16:13:17]line ФПД: 70300461505021 [16:13:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T161329&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49097&fm=70300461505021&tin=02508201610067®Number=0000000000092723&sum=50000 [16:13:17]written 0, free lines is 4095 [16:13:17]OFD Sender: Processing packet 49097 [packets to send 12, broken 11] [16:13:17]ProducePacketName [16:13:17]name=ofd_packets/00049097 [16:13:17]OFD Sender: To server: ‡•öpG, [16:13:17]CommunicateWithHost lk.salyk.kg:30040 [16:13:17]ConnectInit lk.salyk.kg [16:13:17]Connected sock=11 [16:13:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 1F FB 07 01 79 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 50 00 00 00 F4 03 04 00 A9 CE B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 3F F0 1A 09 19 FD 36 BA DB A7 02 9D D5 3C [16:13: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 20 DC 47 00 6D F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 C9 BF 00 00 F4 03 04 00 A1 7A B7 65 B6 04 01 00 00 22 28 14 25 57 0D 4C CA [16:13:17]CommunicateWithHost err = 0 [16:13:17]CheckOFDResponse [16:13:17]1017 (14) - 77093643461234 [16:13:17]1041 (16) - 0000000000875060 [16:13:17]1040 (4) - 49097 [16:13:17]1012 (4) - 29.01.2024 10:14 [16:13:17]1206 (1) - 0 [16:13:17]OFD Sender: Remove packet 49097 [16:13:17]ProducePacketName [16:13:17]name=ofd_packets/00049097 [16:13:17]NVStorageDeleteData [16:13:17]Write to MH i2c: 01 00 00 C5 54 19 [16:13:17]Write i2c OK [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: 01 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: 01 07 00 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: 01 07 00 C5 54 00 00 00 00 00 FC 0C 28 [16:13:17]RasterBufferAndPrint [16:13:17]line [16:13:17]line [16:13:17]line [16:13:17]line [16:13:17]line [16:13:17]written 0, free lines is 3331 [16:13:17]MH_Cut [16:13:17]Write to MH i2c: D1 01 00 CC 54 01 F2 [16:13:17]Write i2c OK [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: D1 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: D1 01 00 [16:13:17]MH_I2C_Read... [16:13:17]Read from MH i2c: D1 01 00 CC 54 00 F1 [16:13:17]Write to MH i2c: 01 00 00 CD 54 21 [16:13:17]Write i2c OK [16:13:17]MH_I2C_Read... [16:13:17]OFD Sender: No OFD packet to send [16:13:18]*** Cut start [16:13:18]*** Partial cut [16:13:18]*** CUTSNS_PIN = 1 [16:13:18]*** CUTSNS_PIN = 0 [16:13:18]*** Brake cut motor [16:13:18]Read from MH i2c: 01 [16:13:18]MH_I2C_Read... [16:13:18]*** Stop cut motor [16:13:18]*** Cut end [16:13:18]Read from MH i2c: 01 07 00 [16:13:18]MH_I2C_Read... [16:13:18]Read from MH i2c: 01 07 00 CD 54 00 00 00 00 00 FF 0F 36 [16:13:18]process_action close_receipt done [16:13:18]requested_data is exist [16:13:18]produce_requested_data [16:13:18]requested_item fm.sn is exist - process it [16:13:18]wFMCommunicate request_size=4 [16:13:18]MH_SAM_APDU [16:13:18]CAPDU: 80 11 00 00 [16:13:18]Write to MH i2c: E2 08 00 CE 54 80 11 00 00 00 00 00 00 9C [16:13:18]Write i2c OK [16:13:18]MH_I2C_Read... [16:13:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:18]Read from MH i2c: E2 [16:13:18]MH_I2C_Read... [16:13:18]Read from MH i2c: E2 17 00 [16:13:18]MH_I2C_Read... [16:13:18]Read from MH i2c: E2 17 00 CE 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E9 [16:13:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:13:18]wFMCommunicate OK [16:13:18]requested_item fd.num is exist - process it [16:13:18]SAM_PROTO_GetFieldsCounters [16:13:18]wFMCommunicate request_size=4 [16:13:18]MH_SAM_APDU [16:13:18]CAPDU: 80 13 00 00 [16:13:18]Write to MH i2c: E2 08 00 CF 54 80 13 00 00 00 00 00 00 9F [16:13:18]Write i2c OK [16:13:18]MH_I2C_Read... [16:13:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:19]Read from MH i2c: E2 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 62 00 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 62 00 CF 54 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 BF 00 00 0E 04 04 00 F5 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 25 [16:13:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:13:19]wFMCommunicate OK [16:13:19]SAM_PROTO_GetFieldsCounters done [16:13:19]requested_item shift.num is exist - process it [16:13:19]requested_item shift.opened is exist - process it [16:13:19]req_shift_opened [16:13:19]FM_GetShiftState [16:13:19]SAM_PROTO_GetShiftState [16:13:19]wFMCommunicate request_size=4 [16:13:19]MH_SAM_APDU [16:13:19]CAPDU: 80 13 01 00 [16:13:19]Write to MH i2c: E2 08 00 D0 54 80 13 01 00 00 00 00 00 A1 [16:13:19]Write i2c OK [16:13:19]MH_I2C_Read... [16:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:19]Read from MH i2c: E2 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 0E 00 [16:13:19]MH_I2C_Read... [16:13:19]Read from MH i2c: E2 0E 00 D0 54 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 13 [16:13:19]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [16:13:19]wFMCommunicate OK [16:13:19]SAM_PROTO_GetShiftState done [16:13:19]FM_GetShiftState done [16:13:19]req_shift_opened done [16:13:19]requested_item shift.open_date is exist - process it [16:13:19]req_shift_open_date [16:13:19]req_shift_open_date done [16:13:19]produce_requested_data done [16:13:19]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49097,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [16:13:19]process_action_free close_receipt [16:13:19]json_value_free [16:13:19]json_value_free done [16:13:19]process_json_proto returns [16:13:19]Send response to host [16:13:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49097,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [16:13:19]free response buf [16:13:19]execute_script done [16:13:19]execute_script returns [16:13:19]free content buf [16:13:19]Sock 10.Close socket [16:13:19]Sock 10.Thread stoped [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:33]OFD Sender: No OFD packet to send [16:16:38]OFD Sender: No OFD packet to send [16:16:43]OFD Sender: No OFD packet to send [16:16:48]OFD Sender: No OFD packet to send [16:16:53]OFD Sender: No OFD packet to send [16:16:58]OFD Sender: No OFD packet to send [16:17:03]OFD Sender: No OFD packet to send [16:17:08]OFD Sender: No OFD packet to send [16:17:13]OFD Sender: No OFD packet to send [16:17:18]OFD Sender: No OFD packet to send [16:17:23]OFD Sender: No OFD packet to send [16:17:28]OFD Sender: No OFD packet to send [16:17:33]OFD Sender: No OFD packet to send [16:17:38]OFD Sender: No OFD packet to send [16:17:43]OFD Sender: No OFD packet to send [16:17:48]OFD Sender: No OFD packet to send [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:31]accept exits with 7 [16:22:31]New connection [16:22:31]New thread 3066670436 created [16:22:31]Thread 3066813796 joined [16:22:31]Waiting for new connection... [16:22:31] Sock 7.Parse request [16:22:31]Sock 7.Check first char [16:22:31]Sock 7.First char is OK [16:22:31]request: POST /json_proto HTTP/1.0 [16:22:31]Method: POST [16:22:31]URL: /json_proto [16:22:31]Method is POST - this is cgi request [16:22:31]url: /json_proto [16:22:31]query_string will be loaded in cgi processing [16:22:31]execute_cgi json_proto POST (null) [16:22:31]execute_cgi path=json_proto method=POST [16:22:31]POST find Content-Length [16:22:31]Host: 172.17.56.67:8080 [16:22:31]Content-Length: 674 [16:22:31]Content-Type: application/json [16:22:31] [16:22:31]POST finish read [16:22:31]Found Content-Length = 674 [16:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216199", "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" ] } } [16:22:31]execute_script... [16:22: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)216199", "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" ] } } [16:22:31]POST & json_proto [16:22:31]process_json_proto [16:22:31]json parsed OK: [16:22:31]protocol is kg_v1.0 [16:22:31]action value=close_receipt [16:22:31]process_action close_receipt [16:22:31]cmd_close_receipt [16:22:31]MH_GetDate [16:22:31]Write to MH i2c: F0 00 00 D1 54 14 [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: F0 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: F0 09 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: F0 09 00 D1 54 00 D5 D0 B7 65 26 5D 9E 65 64 [16:22:31]GetLastDocTimeStamp 1706544809 [16:22:31]current date 1706545365 [16:22:31]FM_GetShiftState [16:22:31]SAM_PROTO_GetShiftState [16:22:31]wFMCommunicate request_size=4 [16:22:31]MH_SAM_APDU [16:22:31]CAPDU: 80 13 01 00 [16:22:31]Write to MH i2c: E2 08 00 D2 54 80 13 01 00 00 00 00 00 A3 [16:22:31]Write i2c OK [16:22:31]MH_I2C_Read... [16:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:31]Read from MH i2c: E2 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 0E 00 [16:22:31]MH_I2C_Read... [16:22:31]Read from MH i2c: E2 0E 00 D2 54 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 15 [16:22:31]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [16:22:31]wFMCommunicate OK [16:22:31]SAM_PROTO_GetShiftState done [16:22:31]FM_GetShiftState done [16:22:31]opened in 1706486624 [16:22:31]opened+sec_in_day 1706573024 [16:22:31]quantity*price = 50048 [16:22:31]sum+1 = 50049 [16:22:31]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 СÐО: Общий режим Чек 81 29.01.2024 16:22 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49098 ФПД: 242392556358765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T162245&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49098&fm=242392556358765&tin=02508201610067®Number=0000000000092723&sum=50000 [16:22:32]StoreToDocumentArchive [16:22:32]shift 245 fd 49098 [16:22:32]save to /storage/0245/doc_00049098 [16:22:32]save last doc name /storage/0245/doc_00049098 to /storage/kkm_last_doc_name [16:22:32]save OK [16:22:32]Clear old archive folders... [16:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:22:32]tlvbuf is 011DD4F0 [16:22:32]SAM_PROTO_ClearQueue [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 09 00 00 [16:22:32]Write to MH i2c: E2 08 00 DF 54 80 09 00 00 00 00 00 00 A5 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 DF 54 00 90 00 A7 [16:22:32]RAPDU: 90 00 [16:22:32]wFMCommunicate OK [16:22:32]SAM_PROTO_ClearQueue done [16:22:32]KKMCreateOFDPacket [16:22:32]OFDProtocolAddRootSTLVToBuf [16:22:32]FM_MakeSignedData [16:22:32]FM_MakeSignedData [16:22:32]SAM_PROTO_SignData [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 0D 01 02 [16:22:32]Write to MH i2c: E2 08 00 E0 54 80 0D 01 02 00 00 00 00 AD [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 E0 54 00 90 00 A8 [16:22:32]RAPDU: 90 00 [16:22:32]wFMCommunicate OK [16:22:32]wFMCommunicate request_size=255 [16:22:32]MH_SAM_APDU [16:22:32]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 51 00 00 00 F4 03 04 00 D5 D0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 DC 74 6A 37 [16:22:32]Write to MH i2c: E2 02 01 E1 54 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 51 00 00 00 F4 03 04 00 D5 D0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 DC 74 6A 37 00 00 FB [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 E1 54 00 90 00 A9 [16:22:32]RAPDU: 90 00 [16:22:32]wFMCommunicate OK [16:22:32]wFMCommunicate request_size=7 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 0D 02 02 02 CC 6D [16:22:32]Write to MH i2c: E2 0A 00 E2 54 80 0D 02 02 02 00 CC 6D 00 00 ED [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 03 00 E2 54 00 90 00 AA [16:22:32]RAPDU: 90 00 [16:22:32]wFMCommunicate OK [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 0D 03 02 [16:22:32]Write to MH i2c: E2 08 00 E3 54 80 0D 03 02 00 00 00 00 B2 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 0B 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 0B 00 E3 54 00 7D 83 E6 DD 17 99 3B 07 90 00 68 [16:22:32]RAPDU: 7D 83 E6 DD 17 99 3B 07 90 00 [16:22:32]wFMCommunicate OK [16:22:32]SAM_PROTO_SignData done [16:22:32]FM_MakeSignedData done [16:22:32]CreateOFDProtocolMessage [16:22:32]wFMCommunicate request_size=4 [16:22:32]MH_SAM_APDU [16:22:32]CAPDU: 80 11 00 00 [16:22:32]Write to MH i2c: E2 08 00 E4 54 80 11 00 00 00 00 00 00 B2 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:32]Read from MH i2c: E2 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 17 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: E2 17 00 E4 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 FF [16:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:22:32]wFMCommunicate OK [16:22:32]CreateOFDProtocolMessage done [16:22:32]OFDSenderStorePacket 49098 [16:22:32]StoreOFDPacket docnum=49098 [16:22:32]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 6C 8D 04 01 A3 F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 51 00 00 00 F4 03 04 00 D5 D0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 DC 74 6A 37 CC 6D 7D 83 E6 DD 17 99 3B 07 [16:22:32]CheckFolder [16:22:32]dirname=/storage/ofd_packets [16:22:32]CheckFolder done [16:22:32]ProducePacketName [16:22:32]name=ofd_packets/00049098 [16:22:32]NVStorageSaveData ofd_packets/00049098 [16:22:32]File name is /storage/ofd_packets/00049098 [16:22:32]Write 298 bytes [16:22:32]NVStorageSaveData done [16:22:32]OFDSenderStorePacket done [16:22:32]KKMCreateOFDPacket done [16:22:32]NVStorageSaveData kkm_last_timestamp [16:22:32]File name is /storage/kkm_last_timestamp [16:22:32]Write 4 bytes [16:22:32]NVStorageSaveData done [16:22:32]ExternCall_PrintAddStr [16:22:32]wPrintStart [16:22:32]Write to MH i2c: 01 00 00 E5 54 39 [16:22:32]Write i2c OK [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: 01 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: 01 07 00 [16:22:32]MH_I2C_Read... [16:22:32]Read from MH i2c: 01 07 00 E5 54 00 00 00 00 00 FF 0F 4E [16:22:32]RasterBufferAndPrint [16:22:32]line Счет N : (1)216199 [16:22:32]line ИÐÐ: 02508201610067 [16:22:32]line Контрольно-КаÑÑовый Чек [16:22:32]line ПРОДÐЖР[16:22:32]line ТРК (МРК, ГÐК) : 11 [16:22:32]line Товар: 2710194210 [16:22:32]line ДТ-К-5 [16:22:32]line 7.160 * 69.90 [16:22:32]line = 500.48 [16:22:32]line ÐДС 12% ÐСП 1% [16:22:32]line > о реализуемом товаре [16:22:32]line ОКРУГЛЕÐИЕ: -0.48 [16:22:32]line ИТОГО: 500.00 [16:22:32]line ВнеÑено: 500.00 [16:22:32]line СДÐЧÐ: 0.00 [16:22:32]line ÐСП 1% : 4.43 [16:22:32]line ÐДС 12% : 53.15 [16:22:32]line Ðаличными: 500.00 [16:22:32]line Безнал.: 0.00 [16:22:32]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [16:22:32]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:22:32]line СÐО: Общий режим [16:22:32]line Чек 81 29.01.2024 16:22 [16:22:32]line Смена: 245 ФФД: 1.0 [16:22:32]line ЗÐМ: 0300000040 [16:22:32]line РÐМ: 0000000000092723 [16:22:32]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [16:22:32]line ФМ: 0000000000875060 [16:22:32]line ФД: 49098 [16:22:32]line ФПД: 242392556358765 [16:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T162245&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49098&fm=242392556358765&tin=02508201610067®Number=0000000000092723&sum=50000 [16:22:33]OFD Sender: Processing packet 49098 [packets to send 12, broken 11] [16:22:33]ProducePacketName [16:22:33]name=ofd_packets/00049098 [16:22:33]OFD Sender: To server: ‡•öpG, [16:22:33]CommunicateWithHost lk.salyk.kg:30040 [16:22:33]ConnectInit lk.salyk.kg [16:22:33]written 0, free lines is 4095 [16:22:33]Connected sock=10 [16:22: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 0C 01 00 00 6C 8D 04 01 A3 F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 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 51 00 00 00 F4 03 04 00 D5 D0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 DC 74 6A 37 CC 6D 7D 83 E6 DD 17 99 3B 07 [16:22: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 96 C9 47 00 2C 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 CA BF 00 00 F4 03 04 00 CD 7C B7 65 B6 04 01 00 00 A3 7A 0A FF 59 6B CC B1 [16:22:33]CommunicateWithHost err = 0 [16:22:33]CheckOFDResponse [16:22:33]1017 (14) - 77093643461234 [16:22:33]1041 (16) - 0000000000875060 [16:22:33]1040 (4) - 49098 [16:22:33]1012 (4) - 29.01.2024 10:24 [16:22:33]1206 (1) - 0 [16:22:33]OFD Sender: Remove packet 49098 [16:22:33]ProducePacketName [16:22:33]name=ofd_packets/00049098 [16:22:33]NVStorageDeleteData [16:22:33]Write to MH i2c: 01 00 00 10 55 65 [16:22:33]Write i2c OK [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: 01 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: 01 07 00 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: 01 07 00 10 55 00 00 00 00 00 FD 0C 75 [16:22:33]RasterBufferAndPrint [16:22:33]line [16:22:33]line [16:22:33]line [16:22:33]line [16:22:33]line [16:22:33]written 0, free lines is 3331 [16:22:33]MH_Cut [16:22:33]Write to MH i2c: D1 01 00 17 55 01 3E [16:22:33]Write i2c OK [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: D1 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: D1 01 00 [16:22:33]MH_I2C_Read... [16:22:33]Read from MH i2c: D1 01 00 17 55 00 3D [16:22:33]Write to MH i2c: 01 00 00 18 55 6D [16:22:33]Write i2c OK [16:22:33]MH_I2C_Read... [16:22:33]OFD Sender: No OFD packet to send [16:22:34]*** Cut start [16:22:34]*** Partial cut [16:22:34]*** CUTSNS_PIN = 1 [16:22:34]*** CUTSNS_PIN = 0 [16:22:34]*** Brake cut motor [16:22:34]Read from MH i2c: 01 [16:22:34]MH_I2C_Read... [16:22:34]*** Stop cut motor [16:22:34]*** Cut end [16:22:34]Read from MH i2c: 01 07 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: 01 07 00 18 55 00 00 00 00 00 FF 0F 82 [16:22:34]process_action close_receipt done [16:22:34]requested_data is exist [16:22:34]produce_requested_data [16:22:34]requested_item fm.sn is exist - process it [16:22:34]wFMCommunicate request_size=4 [16:22:34]MH_SAM_APDU [16:22:34]CAPDU: 80 11 00 00 [16:22:34]Write to MH i2c: E2 08 00 19 55 80 11 00 00 00 00 00 00 E8 [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:22:34]Read from MH i2c: E2 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 17 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 17 00 19 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 35 [16:22:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:22:34]wFMCommunicate OK [16:22:34]requested_item fd.num is exist - process it [16:22:34]SAM_PROTO_GetFieldsCounters [16:22:34]wFMCommunicate request_size=4 [16:22:34]MH_SAM_APDU [16:22:34]CAPDU: 80 13 00 00 [16:22:34]Write to MH i2c: E2 08 00 1A 55 80 13 00 00 00 00 00 00 EB [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:22:34]Read from MH i2c: E2 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 62 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 62 00 1A 55 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 BF 00 00 0E 04 04 00 F5 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 75 [16:22:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:22:34]wFMCommunicate OK [16:22:34]SAM_PROTO_GetFieldsCounters done [16:22:34]requested_item shift.num is exist - process it [16:22:34]requested_item shift.opened is exist - process it [16:22:34]req_shift_opened [16:22:34]FM_GetShiftState [16:22:34]SAM_PROTO_GetShiftState [16:22:34]wFMCommunicate request_size=4 [16:22:34]MH_SAM_APDU [16:22:34]CAPDU: 80 13 01 00 [16:22:34]Write to MH i2c: E2 08 00 1B 55 80 13 01 00 00 00 00 00 ED [16:22:34]Write i2c OK [16:22:34]MH_I2C_Read... [16:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:22:34]Read from MH i2c: E2 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 0E 00 [16:22:34]MH_I2C_Read... [16:22:34]Read from MH i2c: E2 0E 00 1B 55 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 5F [16:22:35]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [16:22:35]wFMCommunicate OK [16:22:35]SAM_PROTO_GetShiftState done [16:22:35]FM_GetShiftState done [16:22:35]req_shift_opened done [16:22:35]requested_item shift.open_date is exist - process it [16:22:35]req_shift_open_date [16:22:35]req_shift_open_date done [16:22:35]produce_requested_data done [16:22:35]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49098,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [16:22:35]process_action_free close_receipt [16:22:35]json_value_free [16:22:35]json_value_free done [16:22:35]process_json_proto returns [16:22:35]Send response to host [16:22:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49098,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [16:22:35]free response buf [16:22:35]execute_script done [16:22:35]execute_script returns [16:22:35]free content buf [16:22:35]Sock 7.Close socket [16:22:35]Sock 7.Thread stoped [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:42]accept exits with 9 [16:23:42]New connection [16:23:42]New thread 3066813796 created [16:23:42]Thread 3066670436 joined [16:23:42]Waiting for new connection... [16:23:42] Sock 9.Parse request [16:23:42]Sock 9.Check first char [16:23:42]Sock 9.First char is OK [16:23:42]request: POST /json_proto HTTP/1.0 [16:23:42]Method: POST [16:23:42]URL: /json_proto [16:23:42]Method is POST - this is cgi request [16:23:42]url: /json_proto [16:23:42]query_string will be loaded in cgi processing [16:23:42]execute_cgi json_proto POST (null) [16:23:42]execute_cgi path=json_proto method=POST [16:23:42]POST find Content-Length [16:23:42]Host: 172.17.56.67:8080 [16:23:42]Content-Length: 677 [16:23:42]Content-Type: application/json [16:23:42] [16:23:42]POST finish read [16:23:42]Found Content-Length = 677 [16:23:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216200", "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" ] } } [16:23:42]execute_script... [16:23:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216200", "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" ] } } [16:23:42]POST & json_proto [16:23:42]process_json_proto [16:23:42]json parsed OK: [16:23:42]protocol is kg_v1.0 [16:23:42]action value=close_receipt [16:23:42]process_action close_receipt [16:23:42]cmd_close_receipt [16:23:42]MH_GetDate [16:23:42]Write to MH i2c: F0 00 00 1C 55 60 [16:23:42]Write i2c OK [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: F0 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: F0 09 00 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: F0 09 00 1C 55 00 1D D1 B7 65 26 5D 9E 65 F9 [16:23:42]GetLastDocTimeStamp 1706545365 [16:23:42]current date 1706545437 [16:23:42]FM_GetShiftState [16:23:42]SAM_PROTO_GetShiftState [16:23:42]wFMCommunicate request_size=4 [16:23:42]MH_SAM_APDU [16:23:42]CAPDU: 80 13 01 00 [16:23:42]Write to MH i2c: E2 08 00 1D 55 80 13 01 00 00 00 00 00 EF [16:23:42]Write i2c OK [16:23:42]MH_I2C_Read... [16:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:42]Read from MH i2c: E2 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: E2 0E 00 [16:23:42]MH_I2C_Read... [16:23:42]Read from MH i2c: E2 0E 00 1D 55 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 61 [16:23:42]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [16:23:42]wFMCommunicate OK [16:23:42]SAM_PROTO_GetShiftState done [16:23:42]FM_GetShiftState done [16:23:42]opened in 1706486624 [16:23:42]opened+sec_in_day 1706573024 [16:23:42]quantity*price = 50049 [16:23:42]sum+1 = 50050 [16:23:42]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 СÐО: Общий режим Чек 82 29.01.2024 16:23 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49099 ФПД: 131261806764352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T162357&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49099&fm=131261806764352&tin=02508201610067®Number=0000000000092723&sum=50000 [16:23:43]StoreToDocumentArchive [16:23:43]shift 245 fd 49099 [16:23:43]save to /storage/0245/doc_00049099 [16:23:43]save last doc name /storage/0245/doc_00049099 to /storage/kkm_last_doc_name [16:23:43]save OK [16:23:43]Clear old archive folders... [16:23:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:43]tlvbuf is B6EB8C30 [16:23:43]SAM_PROTO_ClearQueue [16:23:43]wFMCommunicate request_size=4 [16:23:43]MH_SAM_APDU [16:23:43]CAPDU: 80 09 00 00 [16:23:43]Write to MH i2c: E2 08 00 2A 55 80 09 00 00 00 00 00 00 F1 [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:43]Read from MH i2c: E2 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 03 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 03 00 2A 55 00 90 00 F3 [16:23:43]RAPDU: 90 00 [16:23:43]wFMCommunicate OK [16:23:43]SAM_PROTO_ClearQueue done [16:23:43]KKMCreateOFDPacket [16:23:43]OFDProtocolAddRootSTLVToBuf [16:23:43]FM_MakeSignedData [16:23:43]FM_MakeSignedData [16:23:43]SAM_PROTO_SignData [16:23:43]wFMCommunicate request_size=4 [16:23:43]MH_SAM_APDU [16:23:43]CAPDU: 80 0D 01 02 [16:23:43]Write to MH i2c: E2 08 00 2B 55 80 0D 01 02 00 00 00 00 F9 [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:43]Read from MH i2c: E2 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 03 00 [16:23:43]MH_I2C_Read... [16:23:43]Read from MH i2c: E2 03 00 2B 55 00 90 00 F4 [16:23:43]RAPDU: 90 00 [16:23:43]wFMCommunicate OK [16:23:43]wFMCommunicate request_size=255 [16:23:43]MH_SAM_APDU [16:23: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 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 52 00 00 00 F4 03 04 00 1D D1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 77 [16:23:43]Write to MH i2c: E2 02 01 2C 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 52 00 00 00 F4 03 04 00 1D D1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 77 00 00 7B [16:23:43]Write i2c OK [16:23:43]MH_I2C_Read... [16:23:43]OFD Sender: No OFD packet to send [16:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:44]Read from MH i2c: E2 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 03 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 03 00 2C 55 00 90 00 F5 [16:23:44]RAPDU: 90 00 [16:23:44]wFMCommunicate OK [16:23:44]wFMCommunicate request_size=10 [16:23:44]MH_SAM_APDU [16:23:44]CAPDU: 80 0D 02 02 05 61 C5 5D 61 40 [16:23:44]Write to MH i2c: E2 0D 00 2D 55 80 0D 02 02 05 00 61 C5 5D 61 40 00 00 2A [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:44]Read from MH i2c: E2 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 03 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 03 00 2D 55 00 90 00 F6 [16:23:44]RAPDU: 90 00 [16:23:44]wFMCommunicate OK [16:23:44]wFMCommunicate request_size=4 [16:23:44]MH_SAM_APDU [16:23:44]CAPDU: 80 0D 03 02 [16:23:44]Write to MH i2c: E2 08 00 2E 55 80 0D 03 02 00 00 00 00 FE [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:44]Read from MH i2c: E2 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 0B 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 0B 00 2E 55 00 07 2E 69 97 5D F3 92 EB 90 00 01 [16:23:44]RAPDU: 07 2E 69 97 5D F3 92 EB 90 00 [16:23:44]wFMCommunicate OK [16:23:44]SAM_PROTO_SignData done [16:23:44]FM_MakeSignedData done [16:23:44]CreateOFDProtocolMessage [16:23:44]wFMCommunicate request_size=4 [16:23:44]MH_SAM_APDU [16:23:44]CAPDU: 80 11 00 00 [16:23:44]Write to MH i2c: E2 08 00 2F 55 80 11 00 00 00 00 00 00 FE [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:44]Read from MH i2c: E2 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 17 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: E2 17 00 2F 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4B [16:23:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:23:44]wFMCommunicate OK [16:23:44]CreateOFDProtocolMessage done [16:23:44]OFDSenderStorePacket 49099 [16:23:44]StoreOFDPacket docnum=49099 [16:23: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 0F 01 00 00 99 BB 07 01 6D 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 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 52 00 00 00 F4 03 04 00 1D D1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 77 61 C5 5D 61 40 07 2E 69 97 5D F3 92 EB [16:23:44]CheckFolder [16:23:44]dirname=/storage/ofd_packets [16:23:44]CheckFolder done [16:23:44]ProducePacketName [16:23:44]name=ofd_packets/00049099 [16:23:44]NVStorageSaveData ofd_packets/00049099 [16:23:44]File name is /storage/ofd_packets/00049099 [16:23:44]Write 301 bytes [16:23:44]NVStorageSaveData done [16:23:44]OFDSenderStorePacket done [16:23:44]KKMCreateOFDPacket done [16:23:44]NVStorageSaveData kkm_last_timestamp [16:23:44]File name is /storage/kkm_last_timestamp [16:23:44]Write 4 bytes [16:23:44]NVStorageSaveData done [16:23:44]ExternCall_PrintAddStr [16:23:44]wPrintStart [16:23:44]Write to MH i2c: 01 00 00 30 55 85 [16:23:44]Write i2c OK [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: 01 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: 01 07 00 [16:23:44]MH_I2C_Read... [16:23:44]Read from MH i2c: 01 07 00 30 55 00 00 00 00 00 FF 0F 9A [16:23:44]RasterBufferAndPrint [16:23:44]line Счет N : (1)216200 [16:23:44]line ИÐÐ: 02508201610067 [16:23:44]line Контрольно-КаÑÑовый Чек [16:23:44]line ПРОДÐЖР[16:23:44]line ТРК (МРК, ГÐК) : 22 [16:23:44]line Товар: 2710124130 [16:23:44]line Ðи-92-К-5 [16:23:44]line 8.300 * 60.30 [16:23:44]line = 500.49 [16:23:44]line ÐДС 12% ÐСП 1% [16:23:44]line > о реализуемом товаре [16:23:44]line ОКРУГЛЕÐИЕ: -0.49 [16:23:44]line ИТОГО: 500.00 [16:23:44]line ВнеÑено: 500.00 [16:23:44]line СДÐЧÐ: 0.00 [16:23:44]line ÐСП 1% : 4.43 [16:23:44]line ÐДС 12% : 53.15 [16:23:44]line Ðаличными: 500.00 [16:23:44]line Безнал.: 0.00 [16:23:44]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [16:23:44]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:23:44]line СÐО: Общий режим [16:23:44]line Чек 82 29.01.2024 16:23 [16:23:44]line Смена: 245 ФФД: 1.0 [16:23:44]line ЗÐМ: 0300000040 [16:23:44]line РÐМ: 0000000000092723 [16:23:44]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [16:23:44]line ФМ: 0000000000875060 [16:23:44]line ФД: 49099 [16:23:44]line ФПД: 131261806764352 [16:23:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T162357&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49099&fm=131261806764352&tin=02508201610067®Number=0000000000092723&sum=50000 [16:23:44]OFD Sender: Processing packet 49099 [packets to send 12, broken 11] [16:23:44]ProducePacketName [16:23:44]name=ofd_packets/00049099 [16:23:44]OFD Sender: To server: ‡•öpG, [16:23:44]CommunicateWithHost lk.salyk.kg:30040 [16:23:44]ConnectInit lk.salyk.kg [16:23:44]written 0, free lines is 4095 [16:23:44]Connected sock=10 [16:23:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 99 BB 07 01 6D 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 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 52 00 00 00 F4 03 04 00 1D D1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 77 61 C5 5D 61 40 07 2E 69 97 5D F3 92 EB [16:23: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 B2 33 47 00 63 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 CB BF 00 00 F4 03 04 00 15 7D B7 65 B6 04 01 00 00 BB 36 3E B7 31 E3 36 7E [16:23:44]CommunicateWithHost err = 0 [16:23:44]CheckOFDResponse [16:23:44]1017 (14) - 77093643461234 [16:23:44]1041 (16) - 0000000000875060 [16:23:44]1040 (4) - 49099 [16:23:44]1012 (4) - 29.01.2024 10:25 [16:23:44]1206 (1) - 0 [16:23:44]OFD Sender: Remove packet 49099 [16:23:44]ProducePacketName [16:23:44]name=ofd_packets/00049099 [16:23:44]NVStorageDeleteData [16:23:45]Write to MH i2c: 01 00 00 5B 55 B0 [16:23:45]Write i2c OK [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: 01 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: 01 07 00 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: 01 07 00 5B 55 00 00 00 00 00 FD 0C C0 [16:23:45]RasterBufferAndPrint [16:23:45]line [16:23:45]line [16:23:45]line [16:23:45]line [16:23:45]line [16:23:45]written 0, free lines is 3331 [16:23:45]MH_Cut [16:23:45]Write to MH i2c: D1 01 00 62 55 01 89 [16:23:45]Write i2c OK [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: D1 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: D1 01 00 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: D1 01 00 62 55 00 88 [16:23:45]Write to MH i2c: 01 00 00 63 55 B8 [16:23:45]Write i2c OK [16:23:45]MH_I2C_Read... [16:23:45]OFD Sender: No OFD packet to send [16:23:45]*** Cut start [16:23:45]*** Partial cut [16:23:45]*** CUTSNS_PIN = 1 [16:23:45]*** CUTSNS_PIN = 0 [16:23:46]*** Brake cut motor [16:23:46]Read from MH i2c: 01 [16:23:46]MH_I2C_Read... [16:23:46]*** Stop cut motor [16:23:46]*** Cut end [16:23:46]Read from MH i2c: 01 07 00 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: 01 07 00 63 55 00 00 00 00 00 FF 0F CD [16:23:46]process_action close_receipt done [16:23:46]requested_data is exist [16:23:46]produce_requested_data [16:23:46]requested_item fm.sn is exist - process it [16:23:46]wFMCommunicate request_size=4 [16:23:46]MH_SAM_APDU [16:23:46]CAPDU: 80 11 00 00 [16:23:46]Write to MH i2c: E2 08 00 64 55 80 11 00 00 00 00 00 00 33 [16:23:46]Write i2c OK [16:23:46]MH_I2C_Read... [16:23:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:46]Read from MH i2c: E2 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: E2 17 00 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: E2 17 00 64 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 80 [16:23:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:23:46]wFMCommunicate OK [16:23:46]requested_item fd.num is exist - process it [16:23:46]SAM_PROTO_GetFieldsCounters [16:23:46]wFMCommunicate request_size=4 [16:23:46]MH_SAM_APDU [16:23:46]CAPDU: 80 13 00 00 [16:23:46]Write to MH i2c: E2 08 00 65 55 80 13 00 00 00 00 00 00 36 [16:23:46]Write i2c OK [16:23:46]MH_I2C_Read... [16:23:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:46]Read from MH i2c: E2 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: E2 62 00 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: E2 62 00 65 55 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 BF 00 00 0E 04 04 00 F5 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 C4 [16:23:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:23:46]wFMCommunicate OK [16:23:46]SAM_PROTO_GetFieldsCounters done [16:23:46]requested_item shift.num is exist - process it [16:23:46]requested_item shift.opened is exist - process it [16:23:46]req_shift_opened [16:23:46]FM_GetShiftState [16:23:46]SAM_PROTO_GetShiftState [16:23:46]wFMCommunicate request_size=4 [16:23:46]MH_SAM_APDU [16:23:46]CAPDU: 80 13 01 00 [16:23:46]Write to MH i2c: E2 08 00 66 55 80 13 01 00 00 00 00 00 38 [16:23:46]Write i2c OK [16:23:46]MH_I2C_Read... [16:23:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:46]Read from MH i2c: E2 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: E2 0E 00 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: E2 0E 00 66 55 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 AA [16:23:46]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [16:23:46]wFMCommunicate OK [16:23:46]SAM_PROTO_GetShiftState done [16:23:46]FM_GetShiftState done [16:23:46]req_shift_opened done [16:23:46]requested_item shift.open_date is exist - process it [16:23:46]req_shift_open_date [16:23:46]req_shift_open_date done [16:23:46]produce_requested_data done [16:23:46]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49099,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [16:23:46]process_action_free close_receipt [16:23:46]json_value_free [16:23:46]json_value_free done [16:23:46]process_json_proto returns [16:23:46]Send response to host [16:23:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49099,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [16:23:46]free response buf [16:23:46]execute_script done [16:23:46]execute_script returns [16:23:46]free content buf [16:23:46]Sock 9.Close socket [16:23:46]Sock 9.Thread stoped [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:52]accept exits with 7 [16:24:52]New connection [16:24:52]New thread 3066670436 created [16:24:52]Thread 3066813796 joined [16:24:52]Waiting for new connection... [16:24:52] Sock 7.Parse request [16:24:52]Sock 7.Check first char [16:24:52]Sock 7.First char is OK [16:24:52]request: POST /json_proto HTTP/1.0 [16:24:52]Method: POST [16:24:52]URL: /json_proto [16:24:52]Method is POST - this is cgi request [16:24:52]url: /json_proto [16:24:52]query_string will be loaded in cgi processing [16:24:52]execute_cgi json_proto POST (null) [16:24:52]execute_cgi path=json_proto method=POST [16:24:52]POST find Content-Length [16:24:52]Host: 172.17.56.67:8080 [16:24:52]Content-Length: 677 [16:24:52]Content-Type: application/json [16:24:52] [16:24:52]POST finish read [16:24:52]Found Content-Length = 677 [16:24:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216201", "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" ] } } [16:24:52]execute_script... [16:24: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)216201", "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" ] } } [16:24:52]POST & json_proto [16:24:52]process_json_proto [16:24:52]json parsed OK: [16:24:52]protocol is kg_v1.0 [16:24:52]action value=close_receipt [16:24:52]process_action close_receipt [16:24:52]cmd_close_receipt [16:24:52]MH_GetDate [16:24:52]Write to MH i2c: F0 00 00 67 55 AB [16:24:52]Write i2c OK [16:24:52]MH_I2C_Read... [16:24:52]Read from MH i2c: F0 [16:24:52]MH_I2C_Read... [16:24:52]Read from MH i2c: F0 09 00 [16:24:52]MH_I2C_Read... [16:24:52]Read from MH i2c: F0 09 00 67 55 00 62 D1 B7 65 26 5D 9E 65 89 [16:24:52]GetLastDocTimeStamp 1706545437 [16:24:52]current date 1706545506 [16:24:52]FM_GetShiftState [16:24:52]SAM_PROTO_GetShiftState [16:24:52]wFMCommunicate request_size=4 [16:24:52]MH_SAM_APDU [16:24:52]CAPDU: 80 13 01 00 [16:24:52]Write to MH i2c: E2 08 00 68 55 80 13 01 00 00 00 00 00 3A [16:24:52]Write i2c OK [16:24:52]MH_I2C_Read... [16:24:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:52]Read from MH i2c: E2 [16:24:52]MH_I2C_Read... [16:24:52]Read from MH i2c: E2 0E 00 [16:24:52]MH_I2C_Read... [16:24:52]Read from MH i2c: E2 0E 00 68 55 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 AC [16:24:52]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [16:24:52]wFMCommunicate OK [16:24:52]SAM_PROTO_GetShiftState done [16:24:52]FM_GetShiftState done [16:24:52]opened in 1706486624 [16:24:52]opened+sec_in_day 1706573024 [16:24:52]quantity*price = 25024 [16:24:52]sum+1 = 25026 [16:24:52]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 СÐО: Общий режим Чек 83 29.01.2024 16:25 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49100 ФПД: 103499631931600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T162506&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49100&fm=103499631931600&tin=02508201610067®Number=0000000000092723&sum=25000 [16:24:53]StoreToDocumentArchive [16:24:53]shift 245 fd 49100 [16:24:53]save to /storage/0245/doc_00049100 [16:24:53]save last doc name /storage/0245/doc_00049100 to /storage/kkm_last_doc_name [16:24:53]save OK [16:24:53]Clear old archive folders... [16:24:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:53]tlvbuf is 012327B0 [16:24:53]SAM_PROTO_ClearQueue [16:24:53]wFMCommunicate request_size=4 [16:24:53]MH_SAM_APDU [16:24:53]CAPDU: 80 09 00 00 [16:24:53]Write to MH i2c: E2 08 00 75 55 80 09 00 00 00 00 00 00 3C [16:24:53]Write i2c OK [16:24:53]MH_I2C_Read... [16:24:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:53]Read from MH i2c: E2 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 03 00 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 03 00 75 55 00 90 00 3E [16:24:53]RAPDU: 90 00 [16:24:53]wFMCommunicate OK [16:24:53]SAM_PROTO_ClearQueue done [16:24:53]KKMCreateOFDPacket [16:24:53]OFDProtocolAddRootSTLVToBuf [16:24:53]FM_MakeSignedData [16:24:53]FM_MakeSignedData [16:24:53]SAM_PROTO_SignData [16:24:53]wFMCommunicate request_size=4 [16:24:53]MH_SAM_APDU [16:24:53]CAPDU: 80 0D 01 02 [16:24:53]Write to MH i2c: E2 08 00 76 55 80 0D 01 02 00 00 00 00 44 [16:24:53]Write i2c OK [16:24:53]MH_I2C_Read... [16:24:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:53]Read from MH i2c: E2 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 03 00 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 03 00 76 55 00 90 00 3F [16:24:53]RAPDU: 90 00 [16:24:53]wFMCommunicate OK [16:24:53]wFMCommunicate request_size=255 [16:24:53]MH_SAM_APDU [16:24: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 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 53 00 00 00 F4 03 04 00 62 D1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5E [16:24:53]Write to MH i2c: E2 02 01 77 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 53 00 00 00 F4 03 04 00 62 D1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5E 00 00 2D [16:24:53]Write i2c OK [16:24:53]MH_I2C_Read... [16:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:53]Read from MH i2c: E2 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 03 00 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 03 00 77 55 00 90 00 40 [16:24:53]RAPDU: 90 00 [16:24:53]wFMCommunicate OK [16:24:53]wFMCommunicate request_size=10 [16:24:53]MH_SAM_APDU [16:24:53]CAPDU: 80 0D 02 02 05 21 E2 CB B0 D0 [16:24:53]Write to MH i2c: E2 0D 00 78 55 80 0D 02 02 05 00 21 E2 CB B0 D0 00 00 9F [16:24:53]Write i2c OK [16:24:53]MH_I2C_Read... [16:24:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:53]Read from MH i2c: E2 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 03 00 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 03 00 78 55 00 90 00 41 [16:24:53]RAPDU: 90 00 [16:24:53]wFMCommunicate OK [16:24:53]wFMCommunicate request_size=4 [16:24:53]MH_SAM_APDU [16:24:53]CAPDU: 80 0D 03 02 [16:24:53]Write to MH i2c: E2 08 00 79 55 80 0D 03 02 00 00 00 00 49 [16:24:53]Write i2c OK [16:24:53]MH_I2C_Read... [16:24:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:53]Read from MH i2c: E2 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 0B 00 [16:24:53]MH_I2C_Read... [16:24:53]Read from MH i2c: E2 0B 00 79 55 00 AB 86 09 2C B5 04 7A 73 90 00 56 [16:24:53]RAPDU: AB 86 09 2C B5 04 7A 73 90 00 [16:24:53]wFMCommunicate OK [16:24:53]SAM_PROTO_SignData done [16:24:53]FM_MakeSignedData done [16:24:53]CreateOFDProtocolMessage [16:24:53]wFMCommunicate request_size=4 [16:24:53]MH_SAM_APDU [16:24:53]CAPDU: 80 11 00 00 [16:24:53]Write to MH i2c: E2 08 00 7A 55 80 11 00 00 00 00 00 00 49 [16:24:53]Write i2c OK [16:24:53]MH_I2C_Read... [16:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:54]Read from MH i2c: E2 [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: E2 17 00 [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: E2 17 00 7A 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 96 [16:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:24:54]wFMCommunicate OK [16:24:54]CreateOFDProtocolMessage done [16:24:54]OFDSenderStorePacket 49100 [16:24:54]StoreOFDPacket docnum=49100 [16:24: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 05 DE 07 01 C4 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 53 00 00 00 F4 03 04 00 62 D1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5E 21 E2 CB B0 D0 AB 86 09 2C B5 04 7A 73 [16:24:54]CheckFolder [16:24:54]dirname=/storage/ofd_packets [16:24:54]CheckFolder done [16:24:54]ProducePacketName [16:24:54]name=ofd_packets/00049100 [16:24:54]NVStorageSaveData ofd_packets/00049100 [16:24:54]File name is /storage/ofd_packets/00049100 [16:24:54]Write 301 bytes [16:24:54]NVStorageSaveData done [16:24:54]OFDSenderStorePacket done [16:24:54]KKMCreateOFDPacket done [16:24:54]NVStorageSaveData kkm_last_timestamp [16:24:54]File name is /storage/kkm_last_timestamp [16:24:54]Write 4 bytes [16:24:54]NVStorageSaveData done [16:24:54]ExternCall_PrintAddStr [16:24:54]wPrintStart [16:24:54]Write to MH i2c: 01 00 00 7B 55 D0 [16:24:54]Write i2c OK [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: 01 [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: 01 07 00 [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: 01 07 00 7B 55 00 00 00 00 00 FF 0F E5 [16:24:54]RasterBufferAndPrint [16:24:54]line Счет N : (1)216201 [16:24:54]line ИÐÐ: 02508201610067 [16:24:54]line Контрольно-КаÑÑовый Чек [16:24:54]line ПРОДÐЖР[16:24:54]line ТРК (МРК, ГÐК) : 12 [16:24:54]line Товар: 2710124130 [16:24:54]line Ðи-92-К-5 [16:24:54]line 4.150 * 60.30 [16:24:54]line = 250.25 [16:24:54]line ÐДС 12% ÐСП 1% [16:24:54]line > о реализуемом товаре [16:24:54]line ОКРУГЛЕÐИЕ: -0.25 [16:24:54]line ИТОГО: 250.00 [16:24:54]line ВнеÑено: 250.00 [16:24:54]line СДÐЧÐ: 0.00 [16:24:54]line ÐСП 1% : 2.21 [16:24:54]line ÐДС 12% : 26.57 [16:24:54]line Ðаличными: 250.00 [16:24:54]line Безнал.: 0.00 [16:24:54]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [16:24:54]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:24:54]line СÐО: Общий режим [16:24:54]line Чек 83 29.01.2024 16:25 [16:24:54]line Смена: 245 ФФД: 1.0 [16:24:54]line ЗÐМ: 0300000040 [16:24:54]line РÐМ: 0000000000092723 [16:24:54]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [16:24:54]line ФМ: 0000000000875060 [16:24:54]line ФД: 49100 [16:24:54]line ФПД: 103499631931600 [16:24:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T162506&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49100&fm=103499631931600&tin=02508201610067®Number=0000000000092723&sum=25000 [16:24:54]OFD Sender: Processing packet 49100 [packets to send 12, broken 11] [16:24:54]ProducePacketName [16:24:54]name=ofd_packets/00049100 [16:24:54]OFD Sender: To server: ‡•öpG, [16:24:54]CommunicateWithHost lk.salyk.kg:30040 [16:24:54]ConnectInit lk.salyk.kg [16:24:54]written 0, free lines is 4095 [16:24:54]Connected sock=10 [16:24: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 05 DE 07 01 C4 EA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 53 00 00 00 F4 03 04 00 62 D1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5E 21 E2 CB B0 D0 AB 86 09 2C B5 04 7A 73 [16:24: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 7C 2F 47 00 14 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CC BF 00 00 F4 03 04 00 5A 7D B7 65 B6 04 01 00 00 D9 AE 68 68 84 2E 01 17 [16:24:54]CommunicateWithHost err = 0 [16:24:54]CheckOFDResponse [16:24:54]1017 (14) - 77093643461234 [16:24:54]1041 (16) - 0000000000875060 [16:24:54]1040 (4) - 49100 [16:24:54]1012 (4) - 29.01.2024 10:26 [16:24:54]1206 (1) - 0 [16:24:54]OFD Sender: Remove packet 49100 [16:24:54]ProducePacketName [16:24:54]name=ofd_packets/00049100 [16:24:54]NVStorageDeleteData [16:24:54]Write to MH i2c: 01 00 00 A6 55 FB [16:24:54]Write i2c OK [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: 01 [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: 01 07 00 [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: 01 07 00 A6 55 00 00 00 00 00 F9 0C 07 [16:24:54]RasterBufferAndPrint [16:24:54]line [16:24:54]line [16:24:54]line [16:24:54]line [16:24:54]line [16:24:54]written 0, free lines is 3327 [16:24:54]MH_Cut [16:24:54]Write to MH i2c: D1 01 00 AD 55 01 D4 [16:24:54]Write i2c OK [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: D1 [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: D1 01 00 [16:24:54]MH_I2C_Read... [16:24:54]Read from MH i2c: D1 01 00 AD 55 00 D3 [16:24:54]Write to MH i2c: 01 00 00 AE 55 03 [16:24:54]Write i2c OK [16:24:54]MH_I2C_Read... [16:24:55]OFD Sender: No OFD packet to send [16:24:55]*** Cut start [16:24:55]*** Partial cut [16:24:55]*** CUTSNS_PIN = 1 [16:24:55]*** CUTSNS_PIN = 0 [16:24:55]*** Brake cut motor [16:24:56]Read from MH i2c: 01 [16:24:56]MH_I2C_Read... [16:24:56]*** Stop cut motor [16:24:56]*** Cut end [16:24:56]Read from MH i2c: 01 07 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: 01 07 00 AE 55 00 00 00 00 00 FF 0F 18 [16:24:56]process_action close_receipt done [16:24:56]requested_data is exist [16:24:56]produce_requested_data [16:24:56]requested_item fm.sn is exist - process it [16:24:56]wFMCommunicate request_size=4 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 11 00 00 [16:24:56]Write to MH i2c: E2 08 00 AF 55 80 11 00 00 00 00 00 00 7E [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 17 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 17 00 AF 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CB [16:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:24:56]wFMCommunicate OK [16:24:56]requested_item fd.num is exist - process it [16:24:56]SAM_PROTO_GetFieldsCounters [16:24:56]wFMCommunicate request_size=4 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 13 00 00 [16:24:56]Write to MH i2c: E2 08 00 B0 55 80 13 00 00 00 00 00 00 81 [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 62 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 62 00 B0 55 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 BF 00 00 0E 04 04 00 F5 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 13 [16:24: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 CC BF 00 00 0E 04 04 00 F5 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:24:56]wFMCommunicate OK [16:24:56]SAM_PROTO_GetFieldsCounters done [16:24:56]requested_item shift.num is exist - process it [16:24:56]requested_item shift.opened is exist - process it [16:24:56]req_shift_opened [16:24:56]FM_GetShiftState [16:24:56]SAM_PROTO_GetShiftState [16:24:56]wFMCommunicate request_size=4 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 13 01 00 [16:24:56]Write to MH i2c: E2 08 00 B1 55 80 13 01 00 00 00 00 00 83 [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 0E 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 0E 00 B1 55 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 F5 [16:24:56]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [16:24:56]wFMCommunicate OK [16:24:56]SAM_PROTO_GetShiftState done [16:24:56]FM_GetShiftState done [16:24:56]req_shift_opened done [16:24:56]requested_item shift.open_date is exist - process it [16:24:56]req_shift_open_date [16:24:56]req_shift_open_date done [16:24:56]produce_requested_data done [16:24:56]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49100,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [16:24:56]process_action_free close_receipt [16:24:56]json_value_free [16:24:56]json_value_free done [16:24:56]process_json_proto returns [16:24:56]Send response to host [16:24:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49100,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [16:24:56]free response buf [16:24:56]execute_script done [16:24:56]execute_script returns [16:24:56]free content buf [16:24:56]Sock 7.Close socket [16:24:56]Sock 7.Thread stoped [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:10]OFD Sender: No OFD packet to send [16:29:15]OFD Sender: No OFD packet to send [16:29:20]OFD Sender: No OFD packet to send [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:30:00]OFD Sender: No OFD packet to send [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:15]OFD Sender: No OFD packet to send [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:40]OFD Sender: No OFD packet to send [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:50]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:31]OFD Sender: No OFD packet to send [16:42:36]OFD Sender: No OFD packet to send [16:42:41]OFD Sender: No OFD packet to send [16:42:46]OFD Sender: No OFD packet to send [16:42:51]OFD Sender: No OFD packet to send [16:42:56]OFD Sender: No OFD packet to send [16:43:01]OFD Sender: No OFD packet to send [16:43:06]OFD Sender: No OFD packet to send [16:43:11]OFD Sender: No OFD packet to send [16:43:16]OFD Sender: No OFD packet to send [16:43:21]OFD Sender: No OFD packet to send [16:43:26]OFD Sender: No OFD packet to send [16:43:31]OFD Sender: No OFD packet to send [16:43:36]OFD Sender: No OFD packet to send [16:43:41]OFD Sender: No OFD packet to send [16:43:46]OFD Sender: No OFD packet to send [16:43:51]OFD Sender: No OFD packet to send [16:43:56]OFD Sender: No OFD packet to send [16:44:01]OFD Sender: No OFD packet to send [16:44:06]OFD Sender: No OFD packet to send [16:44:11]OFD Sender: No OFD packet to send [16:44:16]OFD Sender: No OFD packet to send [16:44:21]OFD Sender: No OFD packet to send [16:44:26]OFD Sender: No OFD packet to send [16:44:31]OFD Sender: No OFD packet to send [16:44:36]OFD Sender: No OFD packet to send [16:44:41]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]OFD Sender: No OFD packet to send [16:48:11]OFD Sender: No OFD packet to send [16:48:16]OFD Sender: No OFD packet to send [16:48:21]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:31]OFD Sender: No OFD packet to send [16:48:36]OFD Sender: No OFD packet to send [16:48:41]OFD Sender: No OFD packet to send [16:48:46]OFD Sender: No OFD packet to send [16:48:51]OFD Sender: No OFD packet to send [16:48:56]OFD Sender: No OFD packet to send [16:49:01]OFD Sender: No OFD packet to send [16:49:06]OFD Sender: No OFD packet to send [16:49:11]OFD Sender: No OFD packet to send [16:49:16]OFD Sender: No OFD packet to send [16:49:21]OFD Sender: No OFD packet to send [16:49:26]OFD Sender: No OFD packet to send [16:49:31]OFD Sender: No OFD packet to send [16:49:36]OFD Sender: No OFD packet to send [16:49:41]OFD Sender: No OFD packet to send [16:49:46]OFD Sender: No OFD packet to send [16:49:51]OFD Sender: No OFD packet to send [16:49:56]OFD Sender: No OFD packet to send [16:50:01]OFD Sender: No OFD packet to send [16:50:06]OFD Sender: No OFD packet to send [16:50:11]OFD Sender: No OFD packet to send [16:50:14]accept exits with 9 [16:50:14]New connection [16:50:14]New thread 3066813796 created [16:50:14]Thread 3066670436 joined [16:50:14]Waiting for new connection... [16:50:14] Sock 9.Parse request [16:50:14]Sock 9.Check first char [16:50:14]Sock 9.First char is OK [16:50:14]request: POST /json_proto HTTP/1.0 [16:50:14]Method: POST [16:50:14]URL: /json_proto [16:50:14]Method is POST - this is cgi request [16:50:14]url: /json_proto [16:50:14]query_string will be loaded in cgi processing [16:50:14]execute_cgi json_proto POST (null) [16:50:14]execute_cgi path=json_proto method=POST [16:50:14]POST find Content-Length [16:50:14]Host: 172.17.56.67:8080 [16:50:14]Content-Length: 677 [16:50:14]Content-Type: application/json [16:50:14] [16:50:14]POST finish read [16:50:14]Found Content-Length = 677 [16:50:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216202", "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:50:14]execute_script... [16:50:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216202", "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:50:14]POST & json_proto [16:50:14]process_json_proto [16:50:14]json parsed OK: [16:50:14]protocol is kg_v1.0 [16:50:14]action value=close_receipt [16:50:14]process_action close_receipt [16:50:14]cmd_close_receipt [16:50:14]MH_GetDate [16:50:14]Write to MH i2c: F0 00 00 B2 55 F6 [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: F0 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: F0 09 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: F0 09 00 B2 55 00 54 D7 B7 65 26 5D 9E 65 CC [16:50:14]GetLastDocTimeStamp 1706545506 [16:50:14]current date 1706547028 [16:50:14]FM_GetShiftState [16:50:14]SAM_PROTO_GetShiftState [16:50:14]wFMCommunicate request_size=4 [16:50:14]MH_SAM_APDU [16:50:14]CAPDU: 80 13 01 00 [16:50:14]Write to MH i2c: E2 08 00 B3 55 80 13 01 00 00 00 00 00 85 [16:50:14]Write i2c OK [16:50:14]MH_I2C_Read... [16:50:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:14]Read from MH i2c: E2 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 0E 00 [16:50:14]MH_I2C_Read... [16:50:14]Read from MH i2c: E2 0E 00 B3 55 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 F7 [16:50:14]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [16:50:14]wFMCommunicate OK [16:50:14]SAM_PROTO_GetShiftState done [16:50:14]FM_GetShiftState done [16:50:14]opened in 1706486624 [16:50:14]opened+sec_in_day 1706573024 [16:50:14]quantity*price = 30029 [16:50:14]sum+1 = 30030 [16:50:14]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 СÐО: Общий режим Чек 84 29.01.2024 16:50 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49101 ФПД: 43427399916811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T165028&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49101&fm=43427399916811&tin=02508201610067®Number=0000000000092723&sum=30000 [16:50:15]StoreToDocumentArchive [16:50:15]shift 245 fd 49101 [16:50:15]save to /storage/0245/doc_00049101 [16:50:15]save last doc name /storage/0245/doc_00049101 to /storage/kkm_last_doc_name [16:50:15]save OK [16:50:15]Clear old archive folders... [16:50:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:50:15]tlvbuf is 013CC640 [16:50:15]SAM_PROTO_ClearQueue [16:50:15]wFMCommunicate request_size=4 [16:50:15]MH_SAM_APDU [16:50:15]CAPDU: 80 09 00 00 [16:50:15]Write to MH i2c: E2 08 00 C0 55 80 09 00 00 00 00 00 00 87 [16:50:15]Write i2c OK [16:50:15]MH_I2C_Read... [16:50:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:15]Read from MH i2c: E2 [16:50:15]MH_I2C_Read... [16:50:15]Read from MH i2c: E2 03 00 [16:50:15]MH_I2C_Read... [16:50:15]Read from MH i2c: E2 03 00 C0 55 00 90 00 89 [16:50:15]RAPDU: 90 00 [16:50:15]wFMCommunicate OK [16:50:15]SAM_PROTO_ClearQueue done [16:50:15]KKMCreateOFDPacket [16:50:15]OFDProtocolAddRootSTLVToBuf [16:50:15]FM_MakeSignedData [16:50:15]FM_MakeSignedData [16:50:15]SAM_PROTO_SignData [16:50:15]wFMCommunicate request_size=4 [16:50:15]MH_SAM_APDU [16:50:15]CAPDU: 80 0D 01 02 [16:50:15]Write to MH i2c: E2 08 00 C1 55 80 0D 01 02 00 00 00 00 8F [16:50:15]Write i2c OK [16:50:15]MH_I2C_Read... [16:50:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:15]Read from MH i2c: E2 [16:50:15]MH_I2C_Read... [16:50:15]Read from MH i2c: E2 03 00 [16:50:15]MH_I2C_Read... [16:50:15]Read from MH i2c: E2 03 00 C1 55 00 90 00 8A [16:50:15]RAPDU: 90 00 [16:50:15]wFMCommunicate OK [16:50:15]wFMCommunicate request_size=255 [16:50:15]MH_SAM_APDU [16:50:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 54 00 00 00 F4 03 04 00 54 D7 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 27 [16:50:15]Write to MH i2c: E2 02 01 C2 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 54 00 00 00 F4 03 04 00 54 D7 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 27 00 00 98 [16:50:15]Write i2c OK [16:50:15]MH_I2C_Read... [16:50:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:15]Read from MH i2c: E2 [16:50:15]MH_I2C_Read... [16:50:15]Read from MH i2c: E2 03 00 [16:50:15]MH_I2C_Read... [16:50:15]Read from MH i2c: E2 03 00 C2 55 00 90 00 8B [16:50:15]RAPDU: 90 00 [16:50:15]wFMCommunicate OK [16:50:15]wFMCommunicate request_size=10 [16:50:15]MH_SAM_APDU [16:50:15]CAPDU: 80 0D 02 02 05 7F 3A BE DD 0B [16:50:15]Write to MH i2c: E2 0D 00 C3 55 80 0D 02 02 05 00 7F 3A BE DD 0B 00 00 FB [16:50:15]Write i2c OK [16:50:15]MH_I2C_Read... [16:50:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:16]Read from MH i2c: E2 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 03 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 03 00 C3 55 00 90 00 8C [16:50:16]RAPDU: 90 00 [16:50:16]wFMCommunicate OK [16:50:16]wFMCommunicate request_size=4 [16:50:16]MH_SAM_APDU [16:50:16]CAPDU: 80 0D 03 02 [16:50:16]Write to MH i2c: E2 08 00 C4 55 80 0D 03 02 00 00 00 00 94 [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:16]Read from MH i2c: E2 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 0B 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 0B 00 C4 55 00 B0 51 7D BE A5 6A BE 05 90 00 A3 [16:50:16]RAPDU: B0 51 7D BE A5 6A BE 05 90 00 [16:50:16]wFMCommunicate OK [16:50:16]SAM_PROTO_SignData done [16:50:16]FM_MakeSignedData done [16:50:16]CreateOFDProtocolMessage [16:50:16]wFMCommunicate request_size=4 [16:50:16]MH_SAM_APDU [16:50:16]CAPDU: 80 11 00 00 [16:50:16]Write to MH i2c: E2 08 00 C5 55 80 11 00 00 00 00 00 00 94 [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:16]Read from MH i2c: E2 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 17 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: E2 17 00 C5 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E1 [16:50:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:50:16]wFMCommunicate OK [16:50:16]CreateOFDProtocolMessage done [16:50:16]OFDSenderStorePacket 49101 [16:50:16]StoreOFDPacket docnum=49101 [16:50: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 9D F1 07 01 58 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 54 00 00 00 F4 03 04 00 54 D7 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 27 7F 3A BE DD 0B B0 51 7D BE A5 6A BE 05 [16:50:16]CheckFolder [16:50:16]dirname=/storage/ofd_packets [16:50:16]CheckFolder done [16:50:16]ProducePacketName [16:50:16]name=ofd_packets/00049101 [16:50:16]NVStorageSaveData ofd_packets/00049101 [16:50:16]File name is /storage/ofd_packets/00049101 [16:50:16]Write 301 bytes [16:50:16]NVStorageSaveData done [16:50:16]OFDSenderStorePacket done [16:50:16]KKMCreateOFDPacket done [16:50:16]NVStorageSaveData kkm_last_timestamp [16:50:16]File name is /storage/kkm_last_timestamp [16:50:16]Write 4 bytes [16:50:16]NVStorageSaveData done [16:50:16]ExternCall_PrintAddStr [16:50:16]wPrintStart [16:50:16]Write to MH i2c: 01 00 00 C6 55 1B [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: 01 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: 01 07 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: 01 07 00 C6 55 00 00 00 00 00 FF 0F 30 [16:50:16]RasterBufferAndPrint [16:50:16]line Счет N : (1)216202 [16:50:16]line ИÐÐ: 02508201610067 [16:50:16]line Контрольно-КаÑÑовый Чек [16:50:16]line ПРОДÐЖР[16:50:16]line ТРК (МРК, ГÐК) : 12 [16:50:16]line Товар: 2710124130 [16:50:16]line Ðи-92-К-5 [16:50:16]line 4.980 * 60.30 [16:50:16]line = 300.29 [16:50:16]line ÐДС 12% ÐСП 1% [16:50:16]line > о реализуемом товаре [16:50:16]line ОКРУГЛЕÐИЕ: -0.29 [16:50:16]line ИТОГО: 300.00 [16:50:16]line ВнеÑено: 300.00 [16:50:16]line СДÐЧÐ: 0.00 [16:50:16]line ÐСП 1% : 2.66 [16:50:16]line ÐДС 12% : 31.89 [16:50:16]line Ðаличными: 300.00 [16:50:16]line Безнал.: 0.00 [16:50:16]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [16:50:16]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:50:16]line СÐО: Общий режим [16:50:16]line Чек 84 29.01.2024 16:50 [16:50:16]line Смена: 245 ФФД: 1.0 [16:50:16]line ЗÐМ: 0300000040 [16:50:16]line РÐМ: 0000000000092723 [16:50:16]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [16:50:16]line ФМ: 0000000000875060 [16:50:16]line ФД: 49101 [16:50:16]line ФПД: 43427399916811 [16:50:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T165028&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49101&fm=43427399916811&tin=02508201610067®Number=0000000000092723&sum=30000 [16:50:16]OFD Sender: Processing packet 49101 [packets to send 12, broken 11] [16:50:16]ProducePacketName [16:50:16]name=ofd_packets/00049101 [16:50:16]OFD Sender: To server: ‡•öpG, [16:50:16]CommunicateWithHost lk.salyk.kg:30040 [16:50:16]ConnectInit lk.salyk.kg [16:50:16]written 0, free lines is 4095 [16:50:16]Connected sock=10 [16:50:16]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 9D F1 07 01 58 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 54 00 00 00 F4 03 04 00 54 D7 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 27 7F 3A BE DD 0B B0 51 7D BE A5 6A BE 05 [16:50:16]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 BC DA 47 00 E9 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CD BF 00 00 F4 03 04 00 4C 83 B7 65 B6 04 01 00 00 72 FE D5 4D 9C 19 55 D1 [16:50:16]CommunicateWithHost err = 0 [16:50:16]CheckOFDResponse [16:50:16]1017 (14) - 77093643461234 [16:50:16]1041 (16) - 0000000000875060 [16:50:16]1040 (4) - 49101 [16:50:16]1012 (4) - 29.01.2024 10:51 [16:50:16]1206 (1) - 0 [16:50:16]OFD Sender: Remove packet 49101 [16:50:16]ProducePacketName [16:50:16]name=ofd_packets/00049101 [16:50:16]NVStorageDeleteData [16:50:16]Write to MH i2c: 01 00 00 F1 55 46 [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: 01 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: 01 07 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: 01 07 00 F1 55 00 00 00 00 00 F1 0C 4A [16:50:16]RasterBufferAndPrint [16:50:16]line [16:50:16]line [16:50:16]line [16:50:16]line [16:50:16]line [16:50:16]written 0, free lines is 3319 [16:50:16]MH_Cut [16:50:16]Write to MH i2c: D1 01 00 F8 55 01 1F [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: D1 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: D1 01 00 [16:50:16]MH_I2C_Read... [16:50:16]Read from MH i2c: D1 01 00 F8 55 00 1E [16:50:16]Write to MH i2c: 01 00 00 F9 55 4E [16:50:16]Write i2c OK [16:50:16]MH_I2C_Read... [16:50:17]OFD Sender: No OFD packet to send [16:50:17]*** Cut start [16:50:17]*** Partial cut [16:50:17]*** CUTSNS_PIN = 1 [16:50:17]*** CUTSNS_PIN = 0 [16:50:17]*** Brake cut motor [16:50:18]Read from MH i2c: 01 [16:50:18]MH_I2C_Read... [16:50:18]*** Stop cut motor [16:50:18]*** Cut end [16:50:18]Read from MH i2c: 01 07 00 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: 01 07 00 F9 55 00 00 00 00 00 FF 0F 63 [16:50:18]process_action close_receipt done [16:50:18]requested_data is exist [16:50:18]produce_requested_data [16:50:18]requested_item fm.sn is exist - process it [16:50:18]wFMCommunicate request_size=4 [16:50:18]MH_SAM_APDU [16:50:18]CAPDU: 80 11 00 00 [16:50:18]Write to MH i2c: E2 08 00 FA 55 80 11 00 00 00 00 00 00 C9 [16:50:18]Write i2c OK [16:50:18]MH_I2C_Read... [16:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:18]Read from MH i2c: E2 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: E2 17 00 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: E2 17 00 FA 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 16 [16:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:50:18]wFMCommunicate OK [16:50:18]requested_item fd.num is exist - process it [16:50:18]SAM_PROTO_GetFieldsCounters [16:50:18]wFMCommunicate request_size=4 [16:50:18]MH_SAM_APDU [16:50:18]CAPDU: 80 13 00 00 [16:50:18]Write to MH i2c: E2 08 00 FB 55 80 13 00 00 00 00 00 00 CC [16:50:18]Write i2c OK [16:50:18]MH_I2C_Read... [16:50:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:18]Read from MH i2c: E2 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: E2 62 00 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: E2 62 00 FB 55 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 BF 00 00 0E 04 04 00 F5 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 62 [16:50:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 [16:50:18]wFMCommunicate OK [16:50:18]SAM_PROTO_GetFieldsCounters done [16:50:18]requested_item shift.num is exist - process it [16:50:18]requested_item shift.opened is exist - process it [16:50:18]req_shift_opened [16:50:18]FM_GetShiftState [16:50:18]SAM_PROTO_GetShiftState [16:50:18]wFMCommunicate request_size=4 [16:50:18]MH_SAM_APDU [16:50:18]CAPDU: 80 13 01 00 [16:50:18]Write to MH i2c: E2 08 00 FC 55 80 13 01 00 00 00 00 00 CE [16:50:18]Write i2c OK [16:50:18]MH_I2C_Read... [16:50:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:18]Read from MH i2c: E2 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: E2 0E 00 [16:50:18]MH_I2C_Read... [16:50:18]Read from MH i2c: E2 0E 00 FC 55 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 40 [16:50:18]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [16:50:18]wFMCommunicate OK [16:50:18]SAM_PROTO_GetShiftState done [16:50:18]FM_GetShiftState done [16:50:18]req_shift_opened done [16:50:18]requested_item shift.open_date is exist - process it [16:50:18]req_shift_open_date [16:50:18]req_shift_open_date done [16:50:18]produce_requested_data done [16:50:18]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49101,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [16:50:18]process_action_free close_receipt [16:50:18]json_value_free [16:50:18]json_value_free done [16:50:18]process_json_proto returns [16:50:18]Send response to host [16:50:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49101,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [16:50:18]free response buf [16:50:18]execute_script done [16:50:18]execute_script returns [16:50:18]free content buf [16:50:18]Sock 9.Close socket [16:50:18]Sock 9.Thread stoped [16:50:22]OFD Sender: No OFD packet to send [16:50:27]OFD Sender: No OFD packet to send [16:50:32]OFD Sender: No OFD packet to send [16:50:37]OFD Sender: No OFD packet to send [16:50:42]OFD Sender: No OFD packet to send [16:50:47]OFD Sender: No OFD packet to send [16:50:52]OFD Sender: No OFD packet to send [16:50:57]OFD Sender: No OFD packet to send [16:51:02]OFD Sender: No OFD packet to send [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:02]OFD Sender: No OFD packet to send [16:52:07]OFD Sender: No OFD packet to send [16:52:12]OFD Sender: No OFD packet to send [16:52:17]OFD Sender: No OFD packet to send [16:52:22]OFD Sender: No OFD packet to send [16:52:27]OFD Sender: No OFD packet to send [16:52:32]OFD Sender: No OFD packet to send [16:52:33]accept exits with 7 [16:52:33]New connection [16:52:33]New thread 3066670436 created [16:52:33]Thread 3066813796 joined [16:52:33]Waiting for new connection... [16:52:33] Sock 7.Parse request [16:52:33]Sock 7.Check first char [16:52:33]Sock 7.First char is OK [16:52:33]request: POST /json_proto HTTP/1.0 [16:52:33]Method: POST [16:52:33]URL: /json_proto [16:52:33]Method is POST - this is cgi request [16:52:33]url: /json_proto [16:52:33]query_string will be loaded in cgi processing [16:52:33]execute_cgi json_proto POST (null) [16:52:33]execute_cgi path=json_proto method=POST [16:52:33]POST find Content-Length [16:52:33]Host: 172.17.56.67:8080 [16:52:33]Content-Length: 677 [16:52:33]Content-Type: application/json [16:52:33] [16:52:33]POST finish read [16:52:33]Found Content-Length = 677 [16:52:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216203", "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" ] } } [16:52:33]execute_script... [16:52:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216203", "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" ] } } [16:52:33]POST & json_proto [16:52:33]process_json_proto [16:52:33]json parsed OK: [16:52:33]protocol is kg_v1.0 [16:52:33]action value=close_receipt [16:52:33]process_action close_receipt [16:52:33]cmd_close_receipt [16:52:33]MH_GetDate [16:52:33]Write to MH i2c: F0 00 00 FD 55 41 [16:52:33]Write i2c OK [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: F0 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: F0 09 00 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: F0 09 00 FD 55 00 DF D7 B7 65 26 5D 9E 65 A2 [16:52:33]GetLastDocTimeStamp 1706547028 [16:52:33]current date 1706547167 [16:52:33]FM_GetShiftState [16:52:33]SAM_PROTO_GetShiftState [16:52:33]wFMCommunicate request_size=4 [16:52:33]MH_SAM_APDU [16:52:33]CAPDU: 80 13 01 00 [16:52:33]Write to MH i2c: E2 08 00 FE 55 80 13 01 00 00 00 00 00 D0 [16:52:33]Write i2c OK [16:52:33]MH_I2C_Read... [16:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:33]Read from MH i2c: E2 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 0E 00 [16:52:33]MH_I2C_Read... [16:52:33]Read from MH i2c: E2 0E 00 FE 55 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 42 [16:52:33]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [16:52:33]wFMCommunicate OK [16:52:33]SAM_PROTO_GetShiftState done [16:52:33]FM_GetShiftState done [16:52:33]opened in 1706486624 [16:52:33]opened+sec_in_day 1706573024 [16:52:33]quantity*price = 50049 [16:52:33]sum+1 = 50050 [16:52:33]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 29.01.2024 16:52 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49102 ФПД: 171143077479174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T165247&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49102&fm=171143077479174&tin=02508201610067®Number=0000000000092723&sum=50000 [16:52:34]StoreToDocumentArchive [16:52:34]shift 245 fd 49102 [16:52:34]save to /storage/0245/doc_00049102 [16:52:34]save last doc name /storage/0245/doc_00049102 to /storage/kkm_last_doc_name [16:52:34]save OK [16:52:34]Clear old archive folders... [16:52:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:34]tlvbuf is 0128CC80 [16:52:34]SAM_PROTO_ClearQueue [16:52:34]wFMCommunicate request_size=4 [16:52:34]MH_SAM_APDU [16:52:34]CAPDU: 80 09 00 00 [16:52:34]Write to MH i2c: E2 08 00 0B 56 80 09 00 00 00 00 00 00 D3 [16:52:34]Write i2c OK [16:52:34]MH_I2C_Read... [16:52:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:34]Read from MH i2c: E2 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 03 00 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 03 00 0B 56 00 90 00 D5 [16:52:34]RAPDU: 90 00 [16:52:34]wFMCommunicate OK [16:52:34]SAM_PROTO_ClearQueue done [16:52:34]KKMCreateOFDPacket [16:52:34]OFDProtocolAddRootSTLVToBuf [16:52:34]FM_MakeSignedData [16:52:34]FM_MakeSignedData [16:52:34]SAM_PROTO_SignData [16:52:34]wFMCommunicate request_size=4 [16:52:34]MH_SAM_APDU [16:52:34]CAPDU: 80 0D 01 02 [16:52:34]Write to MH i2c: E2 08 00 0C 56 80 0D 01 02 00 00 00 00 DB [16:52:34]Write i2c OK [16:52:34]MH_I2C_Read... [16:52:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:34]Read from MH i2c: E2 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 03 00 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 03 00 0C 56 00 90 00 D6 [16:52:34]RAPDU: 90 00 [16:52:34]wFMCommunicate OK [16:52:34]wFMCommunicate request_size=255 [16:52:34]MH_SAM_APDU [16:52:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 DF D7 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 9B [16:52:34]Write to MH i2c: E2 02 01 0D 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 DF D7 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 9B 00 00 4F [16:52:34]Write i2c OK [16:52:34]MH_I2C_Read... [16:52:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:34]Read from MH i2c: E2 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 03 00 [16:52:34]MH_I2C_Read... [16:52:34]Read from MH i2c: E2 03 00 0D 56 00 90 00 D7 [16:52:34]RAPDU: 90 00 [16:52:34]wFMCommunicate OK [16:52:34]wFMCommunicate request_size=10 [16:52:34]MH_SAM_APDU [16:52:34]CAPDU: 80 0D 02 02 05 A7 5A 56 C3 06 [16:52:34]Write to MH i2c: E2 0D 00 0E 56 80 0D 02 02 05 00 A7 5A 56 C3 06 00 00 08 [16:52:34]Write i2c OK [16:52:34]MH_I2C_Read... [16:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:35]Read from MH i2c: E2 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 03 00 0E 56 00 90 00 D8 [16:52:35]RAPDU: 90 00 [16:52:35]wFMCommunicate OK [16:52:35]wFMCommunicate request_size=4 [16:52:35]MH_SAM_APDU [16:52:35]CAPDU: 80 0D 03 02 [16:52:35]Write to MH i2c: E2 08 00 0F 56 80 0D 03 02 00 00 00 00 E0 [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:35]Read from MH i2c: E2 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 0B 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 0B 00 0F 56 00 0C 9F BD 88 5D 8B 5B 23 90 00 37 [16:52:35]RAPDU: 0C 9F BD 88 5D 8B 5B 23 90 00 [16:52:35]wFMCommunicate OK [16:52:35]SAM_PROTO_SignData done [16:52:35]FM_MakeSignedData done [16:52:35]CreateOFDProtocolMessage [16:52:35]wFMCommunicate request_size=4 [16:52:35]MH_SAM_APDU [16:52:35]CAPDU: 80 11 00 00 [16:52:35]Write to MH i2c: E2 08 00 10 56 80 11 00 00 00 00 00 00 E0 [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:35]Read from MH i2c: E2 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 17 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: E2 17 00 10 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2D [16:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [16:52:35]wFMCommunicate OK [16:52:35]CreateOFDProtocolMessage done [16:52:35]OFDSenderStorePacket 49102 [16:52:35]StoreOFDPacket docnum=49102 [16:52:35]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 9C 07 01 6C 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 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 DF D7 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 9B A7 5A 56 C3 06 0C 9F BD 88 5D 8B 5B 23 [16:52:35]CheckFolder [16:52:35]dirname=/storage/ofd_packets [16:52:35]CheckFolder done [16:52:35]ProducePacketName [16:52:35]name=ofd_packets/00049102 [16:52:35]NVStorageSaveData ofd_packets/00049102 [16:52:35]File name is /storage/ofd_packets/00049102 [16:52:35]Write 301 bytes [16:52:35]NVStorageSaveData done [16:52:35]OFDSenderStorePacket done [16:52:35]KKMCreateOFDPacket done [16:52:35]NVStorageSaveData kkm_last_timestamp [16:52:35]File name is /storage/kkm_last_timestamp [16:52:35]Write 4 bytes [16:52:35]NVStorageSaveData done [16:52:35]ExternCall_PrintAddStr [16:52:35]wPrintStart [16:52:35]Write to MH i2c: 01 00 00 11 56 67 [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: 01 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: 01 07 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: 01 07 00 11 56 00 00 00 00 00 FF 0F 7C [16:52:35]RasterBufferAndPrint [16:52:35]line Счет N : (1)216203 [16:52:35]line ИÐÐ: 02508201610067 [16:52:35]line Контрольно-КаÑÑовый Чек [16:52:35]line ПРОДÐЖР[16:52:35]line ТРК (МРК, ГÐК) : 12 [16:52:35]line Товар: 2710124130 [16:52:35]line Ðи-92-К-5 [16:52:35]line 8.300 * 60.30 [16:52:35]line = 500.49 [16:52:35]line ÐДС 12% ÐСП 1% [16:52:35]line > о реализуемом товаре [16:52:35]line ОКРУГЛЕÐИЕ: -0.49 [16:52:35]line ИТОГО: 500.00 [16:52:35]line ВнеÑено: 500.00 [16:52:35]line СДÐЧÐ: 0.00 [16:52:35]line ÐСП 1% : 4.43 [16:52:35]line ÐДС 12% : 53.15 [16:52:35]line Ðаличными: 500.00 [16:52:35]line Безнал.: 0.00 [16:52:35]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [16:52:35]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [16:52:35]line СÐО: Общий режим [16:52:35]line Чек 85 29.01.2024 16:52 [16:52:35]line Смена: 245 ФФД: 1.0 [16:52:35]line ЗÐМ: 0300000040 [16:52:35]line РÐМ: 0000000000092723 [16:52:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [16:52:35]line ФМ: 0000000000875060 [16:52:35]line ФД: 49102 [16:52:35]line ФПД: 171143077479174 [16:52:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T165247&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49102&fm=171143077479174&tin=02508201610067®Number=0000000000092723&sum=50000 [16:52:35]OFD Sender: Processing packet 49102 [packets to send 12, broken 11] [16:52:35]ProducePacketName [16:52:35]name=ofd_packets/00049102 [16:52:35]OFD Sender: To server: ‡•öpG, [16:52:35]CommunicateWithHost lk.salyk.kg:30040 [16:52:35]ConnectInit lk.salyk.kg [16:52:35]written 0, free lines is 4095 [16:52:35]Connected sock=10 [16:52:35]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 9C 07 01 6C 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 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 DF D7 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 9B A7 5A 56 C3 06 0C 9F BD 88 5D 8B 5B 23 [16:52:35]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 9A 55 47 00 C7 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CE BF 00 00 F4 03 04 00 D7 83 B7 65 B6 04 01 00 00 4E 51 BA 68 E5 D6 D4 A3 [16:52:35]CommunicateWithHost err = 0 [16:52:35]CheckOFDResponse [16:52:35]1017 (14) - 77093643461234 [16:52:35]1041 (16) - 0000000000875060 [16:52:35]1040 (4) - 49102 [16:52:35]1012 (4) - 29.01.2024 10:54 [16:52:35]1206 (1) - 0 [16:52:35]OFD Sender: Remove packet 49102 [16:52:35]ProducePacketName [16:52:35]name=ofd_packets/00049102 [16:52:35]NVStorageDeleteData [16:52:35]Write to MH i2c: 01 00 00 3C 56 92 [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: 01 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: 01 07 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: 01 07 00 3C 56 00 00 00 00 00 E6 0C 8B [16:52:35]RasterBufferAndPrint [16:52:35]line [16:52:35]line [16:52:35]line [16:52:35]line [16:52:35]line [16:52:35]written 0, free lines is 3309 [16:52:35]MH_Cut [16:52:35]Write to MH i2c: D1 01 00 43 56 01 6B [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: D1 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: D1 01 00 [16:52:35]MH_I2C_Read... [16:52:35]Read from MH i2c: D1 01 00 43 56 00 6A [16:52:35]Write to MH i2c: 01 00 00 44 56 9A [16:52:35]Write i2c OK [16:52:35]MH_I2C_Read... [16:52:36]OFD Sender: No OFD packet to send [16:52:36]*** Cut start [16:52:36]*** Partial cut [16:52:36]*** CUTSNS_PIN = 1 [16:52:36]*** CUTSNS_PIN = 0 [16:52:36]*** Brake cut motor [16:52:37]Read from MH i2c: 01 [16:52:37]MH_I2C_Read... [16:52:37]*** Stop cut motor [16:52:37]*** Cut end [16:52:37]Read from MH i2c: 01 07 00 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: 01 07 00 44 56 00 00 00 00 00 FF 0F AF [16:52:37]process_action close_receipt done [16:52:37]requested_data is exist [16:52:37]produce_requested_data [16:52:37]requested_item fm.sn is exist - process it [16:52:37]wFMCommunicate request_size=4 [16:52:37]MH_SAM_APDU [16:52:37]CAPDU: 80 11 00 00 [16:52:37]Write to MH i2c: E2 08 00 45 56 80 11 00 00 00 00 00 00 15 [16:52:37]Write i2c OK [16:52:37]MH_I2C_Read... [16:52:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:37]Read from MH i2c: E2 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 17 00 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 17 00 45 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 62 [16:52: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:52:37]wFMCommunicate OK [16:52:37]requested_item fd.num is exist - process it [16:52:37]SAM_PROTO_GetFieldsCounters [16:52:37]wFMCommunicate request_size=4 [16:52:37]MH_SAM_APDU [16:52:37]CAPDU: 80 13 00 00 [16:52:37]Write to MH i2c: E2 08 00 46 56 80 13 00 00 00 00 00 00 18 [16:52:37]Write i2c OK [16:52:37]MH_I2C_Read... [16:52:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:37]Read from MH i2c: E2 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 62 00 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 62 00 46 56 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 BF 00 00 0E 04 04 00 F5 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 B2 [16:52:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 [16:52:37]wFMCommunicate OK [16:52:37]SAM_PROTO_GetFieldsCounters done [16:52:37]requested_item shift.num is exist - process it [16:52:37]requested_item shift.opened is exist - process it [16:52:37]req_shift_opened [16:52:37]FM_GetShiftState [16:52:37]SAM_PROTO_GetShiftState [16:52:37]wFMCommunicate request_size=4 [16:52:37]MH_SAM_APDU [16:52:37]CAPDU: 80 13 01 00 [16:52:37]Write to MH i2c: E2 08 00 47 56 80 13 01 00 00 00 00 00 1A [16:52:37]Write i2c OK [16:52:37]MH_I2C_Read... [16:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:37]Read from MH i2c: E2 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 0E 00 [16:52:37]MH_I2C_Read... [16:52:37]Read from MH i2c: E2 0E 00 47 56 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 8C [16:52:37]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [16:52:37]wFMCommunicate OK [16:52:37]SAM_PROTO_GetShiftState done [16:52:37]FM_GetShiftState done [16:52:37]req_shift_opened done [16:52:37]requested_item shift.open_date is exist - process it [16:52:37]req_shift_open_date [16:52:37]req_shift_open_date done [16:52:37]produce_requested_data done [16:52:37]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49102,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [16:52:37]process_action_free close_receipt [16:52:37]json_value_free [16:52:37]json_value_free done [16:52:37]process_json_proto returns [16:52:37]Send response to host [16:52:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49102,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [16:52:37]free response buf [16:52:37]execute_script done [16:52:37]execute_script returns [16:52:37]free content buf [16:52:37]Sock 7.Close socket [16:52:37]Sock 7.Thread stoped [16:52:41]OFD Sender: No OFD packet to send [16:52:46]OFD Sender: No OFD packet to send [16:52:51]OFD Sender: No OFD packet to send [16:52:56]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:31]OFD Sender: No OFD packet to send [16:53:36]OFD Sender: No OFD packet to send [16:53:41]OFD Sender: No OFD packet to send [16:53:46]OFD Sender: No OFD packet to send [16:53:51]OFD Sender: No OFD packet to send [16:53:56]OFD Sender: No OFD packet to send [16:54:01]OFD Sender: No OFD packet to send [16:54:06]OFD Sender: No OFD packet to send [16:54:11]OFD Sender: No OFD packet to send [16:54:16]OFD Sender: No OFD packet to send [16:54:21]OFD Sender: No OFD packet to send [16:54:26]OFD Sender: No OFD packet to send [16:54:31]OFD Sender: No OFD packet to send [16:54:36]OFD Sender: No OFD packet to send [16:54:41]OFD Sender: No OFD packet to send [16:54:46]OFD Sender: No OFD packet to send [16:54:51]OFD Sender: No OFD packet to send [16:54:56]OFD Sender: No OFD packet to send [16:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:11]OFD Sender: No OFD packet to send [16:55:16]OFD Sender: No OFD packet to send [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]OFD Sender: No OFD packet to send [17:02:31]OFD Sender: No OFD packet to send [17:02:36]OFD Sender: No OFD packet to send [17:02:41]OFD Sender: No OFD packet to send [17:02:46]OFD Sender: No OFD packet to send [17:02:51]OFD Sender: No OFD packet to send [17:02:56]OFD Sender: No OFD packet to send [17:03:01]OFD Sender: No OFD packet to send [17:03:06]OFD Sender: No OFD packet to send [17:03:11]OFD Sender: No OFD packet to send [17:03:16]OFD Sender: No OFD packet to send [17:03:21]OFD Sender: No OFD packet to send [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:46]OFD Sender: No OFD packet to send [17:04:51]OFD Sender: No OFD packet to send [17:04:56]OFD Sender: No OFD packet to send [17:05:01]OFD Sender: No OFD packet to send [17:05:06]OFD Sender: No OFD packet to send [17:05:11]OFD Sender: No OFD packet to send [17:05:16]OFD Sender: No OFD packet to send [17:05:21]OFD Sender: No OFD packet to send [17:05:26]OFD Sender: No OFD packet to send [17:05:31]OFD Sender: No OFD packet to send [17:05:36]OFD Sender: No OFD packet to send [17:05:41]OFD Sender: No OFD packet to send [17:05:46]OFD Sender: No OFD packet to send [17:05:51]OFD Sender: No OFD packet to send [17:05:56]OFD Sender: No OFD packet to send [17:06:01]OFD Sender: No OFD packet to send [17:06:06]OFD Sender: No OFD packet to send [17:06:11]OFD Sender: No OFD packet to send [17:06:16]OFD Sender: No OFD packet to send [17:06:21]OFD Sender: No OFD packet to send [17:06:26]OFD Sender: No OFD packet to send [17:06:31]OFD Sender: No OFD packet to send [17:06:36]OFD Sender: No OFD packet to send [17:06:41]OFD Sender: No OFD packet to send [17:06:46]OFD Sender: No OFD packet to send [17:06:51]OFD Sender: No OFD packet to send [17:06:56]OFD Sender: No OFD packet to send [17:07:01]OFD Sender: No OFD packet to send [17:07:06]OFD Sender: No OFD packet to send [17:07:11]OFD Sender: No OFD packet to send [17:07:16]OFD Sender: No OFD packet to send [17:07:21]OFD Sender: No OFD packet to send [17:07:26]OFD Sender: No OFD packet to send [17:07:31]OFD Sender: No OFD packet to send [17:07:36]OFD Sender: No OFD packet to send [17:07:41]OFD Sender: No OFD packet to send [17:07:46]OFD Sender: No OFD packet to send [17:07:51]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:12]OFD Sender: No OFD packet to send [17:09:17]OFD Sender: No OFD packet to send [17:09:22]OFD Sender: No OFD packet to send [17:09:27]OFD Sender: No OFD packet to send [17:09:32]OFD Sender: No OFD packet to send [17:09:37]OFD Sender: No OFD packet to send [17:09:42]OFD Sender: No OFD packet to send [17:09:47]OFD Sender: No OFD packet to send [17:09:52]OFD Sender: No OFD packet to send [17:09:57]OFD Sender: No OFD packet to send [17:10:02]OFD Sender: No OFD packet to send [17:10:07]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:13]accept exits with 9 [17:10:13]New connection [17:10:13]New thread 3066813796 created [17:10:13]Thread 3066670436 joined [17:10:13]Waiting for new connection... [17:10:13] Sock 9.Parse request [17:10:13]Sock 9.Check first char [17:10:13]Sock 9.First char is OK [17:10:13]request: POST /json_proto HTTP/1.0 [17:10:13]Method: POST [17:10:13]URL: /json_proto [17:10:13]Method is POST - this is cgi request [17:10:13]url: /json_proto [17:10:13]query_string will be loaded in cgi processing [17:10:13]execute_cgi json_proto POST (null) [17:10:13]execute_cgi path=json_proto method=POST [17:10:13]POST find Content-Length [17:10:13]Host: 172.17.56.67:8080 [17:10:13]Content-Length: 677 [17:10:13]Content-Type: application/json [17:10:13] [17:10:13]POST finish read [17:10:13]Found Content-Length = 677 [17:10:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216204", "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" ] } } [17:10:13]execute_script... [17:10:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216204", "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" ] } } [17:10:13]POST & json_proto [17:10:13]process_json_proto [17:10:13]json parsed OK: [17:10:13]protocol is kg_v1.0 [17:10:13]action value=close_receipt [17:10:13]process_action close_receipt [17:10:13]cmd_close_receipt [17:10:13]MH_GetDate [17:10:13]Write to MH i2c: F0 00 00 48 56 8D [17:10:13]Write i2c OK [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: F0 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: F0 09 00 [17:10:13]MH_I2C_Read... [17:10:13]Read from MH i2c: F0 09 00 48 56 00 04 DC B7 65 26 5D 9E 65 18 [17:10:13]GetLastDocTimeStamp 1706547167 [17:10:13]current date 1706548228 [17:10:13]FM_GetShiftState [17:10:13]SAM_PROTO_GetShiftState [17:10:13]wFMCommunicate request_size=4 [17:10:13]MH_SAM_APDU [17:10:13]CAPDU: 80 13 01 00 [17:10:13]Write to MH i2c: E2 08 00 49 56 80 13 01 00 00 00 00 00 1C [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 49 56 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 8E [17:10:14]RAPDU: 09 00 01 60 EB B6 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]opened in 1706486624 [17:10:14]opened+sec_in_day 1706573024 [17:10:14]quantity*price = 50049 [17:10:14]sum+1 = 50050 [17:10:14]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 СÐО: Общий режим Чек 86 29.01.2024 17:10 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49103 ФПД: 218444836751017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T171028&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49103&fm=218444836751017&tin=02508201610067®Number=0000000000092723&sum=50000 [17:10:15]StoreToDocumentArchive [17:10:15]shift 245 fd 49103 [17:10:15]save to /storage/0245/doc_00049103 [17:10:15]save last doc name /storage/0245/doc_00049103 to /storage/kkm_last_doc_name [17:10:15]save OK [17:10:15]Clear old archive folders... [17:10:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:15]tlvbuf is 0128D430 [17:10:15]SAM_PROTO_ClearQueue [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 09 00 00 [17:10:15]Write to MH i2c: E2 08 00 56 56 80 09 00 00 00 00 00 00 1E [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 03 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 03 00 56 56 00 90 00 20 [17:10:15]RAPDU: 90 00 [17:10:15]wFMCommunicate OK [17:10:15]SAM_PROTO_ClearQueue done [17:10:15]KKMCreateOFDPacket [17:10:15]OFDProtocolAddRootSTLVToBuf [17:10:15]FM_MakeSignedData [17:10:15]FM_MakeSignedData [17:10:15]SAM_PROTO_SignData [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 0D 01 02 [17:10:15]Write to MH i2c: E2 08 00 57 56 80 0D 01 02 00 00 00 00 26 [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 03 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 03 00 57 56 00 90 00 21 [17:10:15]RAPDU: 90 00 [17:10:15]wFMCommunicate OK [17:10:15]wFMCommunicate request_size=255 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 56 00 00 00 F4 03 04 00 04 DC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C6 [17:10:15]Write to MH i2c: E2 02 01 58 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 56 00 00 00 F4 03 04 00 04 DC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C6 00 00 F1 [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 03 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 03 00 58 56 00 90 00 22 [17:10:15]RAPDU: 90 00 [17:10:15]wFMCommunicate OK [17:10:15]wFMCommunicate request_size=10 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 0D 02 02 05 AC A6 E5 C6 A9 [17:10:15]Write to MH i2c: E2 0D 00 59 56 80 0D 02 02 05 00 AC A6 E5 C6 A9 00 00 D9 [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 03 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 03 00 59 56 00 90 00 23 [17:10:15]RAPDU: 90 00 [17:10:15]wFMCommunicate OK [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 0D 03 02 [17:10:15]Write to MH i2c: E2 08 00 5A 56 80 0D 03 02 00 00 00 00 2B [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 0B 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 0B 00 5A 56 00 2D C2 61 E3 B9 36 1C FE 90 00 68 [17:10:15]RAPDU: 2D C2 61 E3 B9 36 1C FE 90 00 [17:10:15]wFMCommunicate OK [17:10:15]SAM_PROTO_SignData done [17:10:15]FM_MakeSignedData done [17:10:15]CreateOFDProtocolMessage [17:10:15]wFMCommunicate request_size=4 [17:10:15]MH_SAM_APDU [17:10:15]CAPDU: 80 11 00 00 [17:10:15]Write to MH i2c: E2 08 00 5B 56 80 11 00 00 00 00 00 00 2B [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:15]Read from MH i2c: E2 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 17 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: E2 17 00 5B 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 78 [17:10:15]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:15]wFMCommunicate OK [17:10:15]CreateOFDProtocolMessage done [17:10:15]OFDSenderStorePacket 49103 [17:10:15]StoreOFDPacket docnum=49103 [17:10: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 B4 6F 07 01 14 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 56 00 00 00 F4 03 04 00 04 DC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C6 AC A6 E5 C6 A9 2D C2 61 E3 B9 36 1C FE [17:10:15]CheckFolder [17:10:15]dirname=/storage/ofd_packets [17:10:15]CheckFolder done [17:10:15]ProducePacketName [17:10:15]name=ofd_packets/00049103 [17:10:15]NVStorageSaveData ofd_packets/00049103 [17:10:15]File name is /storage/ofd_packets/00049103 [17:10:15]Write 301 bytes [17:10:15]NVStorageSaveData done [17:10:15]OFDSenderStorePacket done [17:10:15]KKMCreateOFDPacket done [17:10:15]NVStorageSaveData kkm_last_timestamp [17:10:15]File name is /storage/kkm_last_timestamp [17:10:15]Write 4 bytes [17:10:15]NVStorageSaveData done [17:10:15]ExternCall_PrintAddStr [17:10:15]wPrintStart [17:10:15]Write to MH i2c: 01 00 00 5C 56 B2 [17:10:15]Write i2c OK [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: 01 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: 01 07 00 [17:10:15]MH_I2C_Read... [17:10:15]Read from MH i2c: 01 07 00 5C 56 00 00 00 00 00 FF 0F C7 [17:10:15]RasterBufferAndPrint [17:10:15]line Счет N : (1)216204 [17:10:15]line ИÐÐ: 02508201610067 [17:10:15]line Контрольно-КаÑÑовый Чек [17:10:15]line ПРОДÐЖР[17:10:15]line ТРК (МРК, ГÐК) : 12 [17:10:15]line Товар: 2710124130 [17:10:15]line Ðи-92-К-5 [17:10:15]line 8.300 * 60.30 [17:10:15]line = 500.49 [17:10:15]line ÐДС 12% ÐСП 1% [17:10:15]line > о реализуемом товаре [17:10:15]line ОКРУГЛЕÐИЕ: -0.49 [17:10:15]line ИТОГО: 500.00 [17:10:15]line ВнеÑено: 500.00 [17:10:15]line СДÐЧÐ: 0.00 [17:10:15]line ÐСП 1% : 4.43 [17:10:15]line ÐДС 12% : 53.15 [17:10:15]line Ðаличными: 500.00 [17:10:15]line Безнал.: 0.00 [17:10:15]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [17:10:15]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:10:15]line СÐО: Общий режим [17:10:15]line Чек 86 29.01.2024 17:10 [17:10:15]line Смена: 245 ФФД: 1.0 [17:10:15]line ЗÐМ: 0300000040 [17:10:15]line РÐМ: 0000000000092723 [17:10:15]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:10:15]line ФМ: 0000000000875060 [17:10:15]line ФД: 49103 [17:10:15]line ФПД: 218444836751017 [17:10:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T171028&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49103&fm=218444836751017&tin=02508201610067®Number=0000000000092723&sum=50000 [17:10:16]OFD Sender: Processing packet 49103 [packets to send 12, broken 11] [17:10:16]ProducePacketName [17:10:16]name=ofd_packets/00049103 [17:10:16]OFD Sender: To server: ‡•öpG, [17:10:16]CommunicateWithHost lk.salyk.kg:30040 [17:10:16]ConnectInit lk.salyk.kg [17:10:16]written 0, free lines is 4095 [17:10:16]Connected sock=10 [17:10:16]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 B4 6F 07 01 14 B9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 56 00 00 00 F4 03 04 00 04 DC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 C6 AC A6 E5 C6 A9 2D C2 61 E3 B9 36 1C FE [17:10:16]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 42 47 00 CA 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 CF BF 00 00 F4 03 04 00 FC 87 B7 65 B6 04 01 00 00 FF 3B 43 63 B6 2F 66 24 [17:10:16]CommunicateWithHost err = 0 [17:10:16]CheckOFDResponse [17:10:16]1017 (14) - 77093643461234 [17:10:16]1041 (16) - 0000000000875060 [17:10:16]1040 (4) - 49103 [17:10:16]1012 (4) - 29.01.2024 11:11 [17:10:16]1206 (1) - 0 [17:10:16]OFD Sender: Remove packet 49103 [17:10:16]ProducePacketName [17:10:16]name=ofd_packets/00049103 [17:10:16]NVStorageDeleteData [17:10:16]Write to MH i2c: 01 00 00 87 56 DD [17:10:16]Write i2c OK [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: 01 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: 01 07 00 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: 01 07 00 87 56 00 00 00 00 00 F4 0C E4 [17:10:16]RasterBufferAndPrint [17:10:16]line [17:10:16]line [17:10:16]line [17:10:16]line [17:10:16]line [17:10:16]written 0, free lines is 3322 [17:10:16]MH_Cut [17:10:16]Write to MH i2c: D1 01 00 8E 56 01 B6 [17:10:16]Write i2c OK [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: D1 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: D1 01 00 [17:10:16]MH_I2C_Read... [17:10:16]Read from MH i2c: D1 01 00 8E 56 00 B5 [17:10:16]Write to MH i2c: 01 00 00 8F 56 E5 [17:10:16]Write i2c OK [17:10:16]MH_I2C_Read... [17:10:16]OFD Sender: No OFD packet to send [17:10:17]*** Cut start [17:10:17]*** Partial cut [17:10:17]*** CUTSNS_PIN = 1 [17:10:17]*** CUTSNS_PIN = 0 [17:10:17]*** Brake cut motor [17:10:17]Read from MH i2c: 01 [17:10:17]MH_I2C_Read... [17:10:17]*** Stop cut motor [17:10:17]*** Cut end [17:10:17]Read from MH i2c: 01 07 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: 01 07 00 8F 56 00 00 00 00 00 FF 0F FA [17:10:17]process_action close_receipt done [17:10:17]requested_data is exist [17:10:17]produce_requested_data [17:10:17]requested_item fm.sn is exist - process it [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 11 00 00 [17:10:17]Write to MH i2c: E2 08 00 90 56 80 11 00 00 00 00 00 00 60 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 17 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 17 00 90 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 AD [17:10:17]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:17]wFMCommunicate OK [17:10:17]requested_item fd.num is exist - process it [17:10:17]SAM_PROTO_GetFieldsCounters [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 13 00 00 [17:10:17]Write to MH i2c: E2 08 00 91 56 80 13 00 00 00 00 00 00 63 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 62 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 62 00 91 56 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 BF 00 00 0E 04 04 00 F5 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 01 [17:10: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 CF BF 00 00 0E 04 04 00 F5 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:10:17]wFMCommunicate OK [17:10:17]SAM_PROTO_GetFieldsCounters done [17:10:17]requested_item shift.num is exist - process it [17:10:17]requested_item shift.opened is exist - process it [17:10:17]req_shift_opened [17:10:17]FM_GetShiftState [17:10:17]SAM_PROTO_GetShiftState [17:10:17]wFMCommunicate request_size=4 [17:10:17]MH_SAM_APDU [17:10:17]CAPDU: 80 13 01 00 [17:10:17]Write to MH i2c: E2 08 00 92 56 80 13 01 00 00 00 00 00 65 [17:10:17]Write i2c OK [17:10:17]MH_I2C_Read... [17:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:17]Read from MH i2c: E2 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 0E 00 [17:10:17]MH_I2C_Read... [17:10:17]Read from MH i2c: E2 0E 00 92 56 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 D7 [17:10:17]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:10:17]wFMCommunicate OK [17:10:17]SAM_PROTO_GetShiftState done [17:10:17]FM_GetShiftState done [17:10:17]req_shift_opened done [17:10:17]requested_item shift.open_date is exist - process it [17:10:17]req_shift_open_date [17:10:17]req_shift_open_date done [17:10:17]produce_requested_data done [17:10:17]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49103,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [17:10:17]process_action_free close_receipt [17:10:17]json_value_free [17:10:17]json_value_free done [17:10:17]process_json_proto returns [17:10:17]Send response to host [17:10:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49103,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [17:10:17]free response buf [17:10:17]execute_script done [17:10:17]execute_script returns [17:10:17]free content buf [17:10:17]Sock 9.Close socket [17:10:17]Sock 9.Thread stoped [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:21]accept exits with 7 [17:14:21]New connection [17:14:21]New thread 3066670436 created [17:14:21]Thread 3066813796 joined [17:14:21]Waiting for new connection... [17:14:21] Sock 7.Parse request [17:14:21]Sock 7.Check first char [17:14:21]Sock 7.First char is OK [17:14:21]request: POST /json_proto HTTP/1.0 [17:14:21]Method: POST [17:14:21]URL: /json_proto [17:14:21]Method is POST - this is cgi request [17:14:21]url: /json_proto [17:14:21]query_string will be loaded in cgi processing [17:14:21]execute_cgi json_proto POST (null) [17:14:21]execute_cgi path=json_proto method=POST [17:14:21]POST find Content-Length [17:14:21]Host: 172.17.56.67:8080 [17:14:21]Content-Length: 677 [17:14:21]Content-Type: application/json [17:14:21] [17:14:21]POST finish read [17:14:21]Found Content-Length = 677 [17:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216205", "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" ] } } [17:14:21]execute_script... [17:14:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216205", "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" ] } } [17:14:21]POST & json_proto [17:14:21]process_json_proto [17:14:21]json parsed OK: [17:14:21]protocol is kg_v1.0 [17:14:21]action value=close_receipt [17:14:21]process_action close_receipt [17:14:21]cmd_close_receipt [17:14:21]MH_GetDate [17:14:21]Write to MH i2c: F0 00 00 93 56 D8 [17:14:21]Write i2c OK [17:14:21]MH_I2C_Read... [17:14:21]Read from MH i2c: F0 [17:14:21]MH_I2C_Read... [17:14:21]Read from MH i2c: F0 09 00 [17:14:21]MH_I2C_Read... [17:14:21]Read from MH i2c: F0 09 00 93 56 00 FC DC B7 65 26 5D 9E 65 5B [17:14:21]GetLastDocTimeStamp 1706548228 [17:14:21]current date 1706548476 [17:14:21]FM_GetShiftState [17:14:21]SAM_PROTO_GetShiftState [17:14:21]wFMCommunicate request_size=4 [17:14:21]MH_SAM_APDU [17:14:21]CAPDU: 80 13 01 00 [17:14:21]Write to MH i2c: E2 08 00 94 56 80 13 01 00 00 00 00 00 67 [17:14:21]Write i2c OK [17:14:21]MH_I2C_Read... [17:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:21]Read from MH i2c: E2 [17:14:21]MH_I2C_Read... [17:14:21]Read from MH i2c: E2 0E 00 [17:14:21]MH_I2C_Read... [17:14:21]Read from MH i2c: E2 0E 00 94 56 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 D9 [17:14:21]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:14:21]wFMCommunicate OK [17:14:21]SAM_PROTO_GetShiftState done [17:14:21]FM_GetShiftState done [17:14:21]opened in 1706486624 [17:14:21]opened+sec_in_day 1706573024 [17:14:21]quantity*price = 60058 [17:14:21]sum+1 = 60060 [17:14:21]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 СÐО: Общий режим Чек 87 29.01.2024 17:14 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49104 ФПД: 3827904992395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T171436&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49104&fm=3827904992395&tin=02508201610067®Number=0000000000092723&sum=60000 [17:14:22]StoreToDocumentArchive [17:14:22]shift 245 fd 49104 [17:14:22]save to /storage/0245/doc_00049104 [17:14:22]save last doc name /storage/0245/doc_00049104 to /storage/kkm_last_doc_name [17:14:22]save OK [17:14:22]Clear old archive folders... [17:14:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:22]tlvbuf is 01236A00 [17:14:22]SAM_PROTO_ClearQueue [17:14:22]wFMCommunicate request_size=4 [17:14:22]MH_SAM_APDU [17:14:22]CAPDU: 80 09 00 00 [17:14:22]Write to MH i2c: E2 08 00 A1 56 80 09 00 00 00 00 00 00 69 [17:14:22]Write i2c OK [17:14:22]MH_I2C_Read... [17:14:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:22]Read from MH i2c: E2 [17:14:22]MH_I2C_Read... [17:14:22]Read from MH i2c: E2 03 00 [17:14:22]MH_I2C_Read... [17:14:22]Read from MH i2c: E2 03 00 A1 56 00 90 00 6B [17:14:22]RAPDU: 90 00 [17:14:22]wFMCommunicate OK [17:14:22]SAM_PROTO_ClearQueue done [17:14:22]KKMCreateOFDPacket [17:14:22]OFDProtocolAddRootSTLVToBuf [17:14:22]FM_MakeSignedData [17:14:22]FM_MakeSignedData [17:14:22]SAM_PROTO_SignData [17:14:22]wFMCommunicate request_size=4 [17:14:22]MH_SAM_APDU [17:14:22]CAPDU: 80 0D 01 02 [17:14:22]Write to MH i2c: E2 08 00 A2 56 80 0D 01 02 00 00 00 00 71 [17:14:22]Write i2c OK [17:14:22]MH_I2C_Read... [17:14:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:23]Read from MH i2c: E2 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: E2 03 00 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: E2 03 00 A2 56 00 90 00 6C [17:14:23]RAPDU: 90 00 [17:14:23]wFMCommunicate OK [17:14:23]wFMCommunicate request_size=255 [17:14:23]MH_SAM_APDU [17:14:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 57 00 00 00 F4 03 04 00 FC DC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 03 [17:14:23]Write to MH i2c: E2 02 01 A3 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 57 00 00 00 F4 03 04 00 FC DC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 03 00 00 28 [17:14:23]Write i2c OK [17:14:23]MH_I2C_Read... [17:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:23]Read from MH i2c: E2 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: E2 03 00 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: E2 03 00 A3 56 00 90 00 6D [17:14:23]RAPDU: 90 00 [17:14:23]wFMCommunicate OK [17:14:23]wFMCommunicate request_size=10 [17:14:23]MH_SAM_APDU [17:14:23]CAPDU: 80 0D 02 02 05 7B 40 EA D4 8B [17:14:23]Write to MH i2c: E2 0D 00 A4 56 80 0D 02 02 05 00 7B 40 EA D4 8B 00 00 82 [17:14:23]Write i2c OK [17:14:23]MH_I2C_Read... [17:14:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:23]Read from MH i2c: E2 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: E2 03 00 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: E2 03 00 A4 56 00 90 00 6E [17:14:23]RAPDU: 90 00 [17:14:23]wFMCommunicate OK [17:14:23]wFMCommunicate request_size=4 [17:14:23]MH_SAM_APDU [17:14:23]CAPDU: 80 0D 03 02 [17:14:23]Write to MH i2c: E2 08 00 A5 56 80 0D 03 02 00 00 00 00 76 [17:14:23]Write i2c OK [17:14:23]MH_I2C_Read... [17:14:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:23]Read from MH i2c: E2 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: E2 0B 00 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: E2 0B 00 A5 56 00 50 D6 7C 41 72 A6 DA A4 90 00 F0 [17:14:23]RAPDU: 50 D6 7C 41 72 A6 DA A4 90 00 [17:14:23]wFMCommunicate OK [17:14:23]SAM_PROTO_SignData done [17:14:23]FM_MakeSignedData done [17:14:23]CreateOFDProtocolMessage [17:14:23]wFMCommunicate request_size=4 [17:14:23]MH_SAM_APDU [17:14:23]CAPDU: 80 11 00 00 [17:14:23]Write to MH i2c: E2 08 00 A6 56 80 11 00 00 00 00 00 00 76 [17:14:23]Write i2c OK [17:14:23]MH_I2C_Read... [17:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:23]Read from MH i2c: E2 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: E2 17 00 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: E2 17 00 A6 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 C3 [17:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:14:23]wFMCommunicate OK [17:14:23]CreateOFDProtocolMessage done [17:14:23]OFDSenderStorePacket 49104 [17:14:23]StoreOFDPacket docnum=49104 [17:14: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 0F 01 00 00 83 AB 07 01 80 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 57 00 00 00 F4 03 04 00 FC DC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 03 7B 40 EA D4 8B 50 D6 7C 41 72 A6 DA A4 [17:14:23]CheckFolder [17:14:23]dirname=/storage/ofd_packets [17:14:23]CheckFolder done [17:14:23]ProducePacketName [17:14:23]name=ofd_packets/00049104 [17:14:23]NVStorageSaveData ofd_packets/00049104 [17:14:23]File name is /storage/ofd_packets/00049104 [17:14:23]Write 301 bytes [17:14:23]NVStorageSaveData done [17:14:23]OFDSenderStorePacket done [17:14:23]KKMCreateOFDPacket done [17:14:23]NVStorageSaveData kkm_last_timestamp [17:14:23]File name is /storage/kkm_last_timestamp [17:14:23]Write 4 bytes [17:14:23]NVStorageSaveData done [17:14:23]ExternCall_PrintAddStr [17:14:23]wPrintStart [17:14:23]Write to MH i2c: 01 00 00 A7 56 FD [17:14:23]Write i2c OK [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: 01 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: 01 07 00 [17:14:23]MH_I2C_Read... [17:14:23]Read from MH i2c: 01 07 00 A7 56 00 00 00 00 00 FF 0F 12 [17:14:23]RasterBufferAndPrint [17:14:23]line Счет N : (1)216205 [17:14:23]line ИÐÐ: 02508201610067 [17:14:23]line Контрольно-КаÑÑовый Чек [17:14:23]line ПРОДÐЖР[17:14:23]line ТРК (МРК, ГÐК) : 22 [17:14:23]line Товар: 2710124130 [17:14:23]line Ðи-92-К-5 [17:14:23]line 9.960 * 60.30 [17:14:23]line = 600.59 [17:14:23]line ÐДС 12% ÐСП 1% [17:14:23]line > о реализуемом товаре [17:14:23]line ОКРУГЛЕÐИЕ: -0.59 [17:14:23]line ИТОГО: 600.00 [17:14:23]line ВнеÑено: 600.00 [17:14:23]line СДÐЧÐ: 0.00 [17:14:23]line ÐСП 1% : 5.31 [17:14:23]line ÐДС 12% : 63.78 [17:14:23]line Ðаличными: 600.00 [17:14:23]line Безнал.: 0.00 [17:14:23]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [17:14:23]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:14:23]line СÐО: Общий режим [17:14:23]line Чек 87 29.01.2024 17:14 [17:14:23]line Смена: 245 ФФД: 1.0 [17:14:23]line ЗÐМ: 0300000040 [17:14:23]line РÐМ: 0000000000092723 [17:14:23]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:14:23]line ФМ: 0000000000875060 [17:14:23]line ФД: 49104 [17:14:23]line ФПД: 3827904992395 [17:14:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T171436&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49104&fm=3827904992395&tin=02508201610067®Number=0000000000092723&sum=60000 [17:14:23]OFD Sender: Processing packet 49104 [packets to send 12, broken 11] [17:14:23]ProducePacketName [17:14:23]name=ofd_packets/00049104 [17:14:23]OFD Sender: To server: ‡•öpG, [17:14:23]CommunicateWithHost lk.salyk.kg:30040 [17:14:23]ConnectInit lk.salyk.kg [17:14:23]written 0, free lines is 4095 [17:14:23]Connected sock=10 [17:14:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 83 AB 07 01 80 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 57 00 00 00 F4 03 04 00 FC DC B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 03 7B 40 EA D4 8B 50 D6 7C 41 72 A6 DA A4 [17:14: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 6D AE 47 00 F3 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D0 BF 00 00 F4 03 04 00 F4 88 B7 65 B6 04 01 00 00 13 23 7C E8 10 28 27 26 [17:14:24]CommunicateWithHost err = 0 [17:14:24]CheckOFDResponse [17:14:24]1017 (14) - 77093643461234 [17:14:24]1041 (16) - 0000000000875060 [17:14:24]1040 (4) - 49104 [17:14:24]1012 (4) - 29.01.2024 11:16 [17:14:24]1206 (1) - 0 [17:14:24]OFD Sender: Remove packet 49104 [17:14:24]ProducePacketName [17:14:24]name=ofd_packets/00049104 [17:14:24]NVStorageDeleteData [17:14:24]Write to MH i2c: 01 00 00 D2 56 28 [17:14:24]Write i2c OK [17:14:24]MH_I2C_Read... [17:14:24]Read from MH i2c: 01 [17:14:24]MH_I2C_Read... [17:14:24]Read from MH i2c: 01 07 00 [17:14:24]MH_I2C_Read... [17:14:24]Read from MH i2c: 01 07 00 D2 56 00 00 00 00 00 01 0D 3D [17:14:24]RasterBufferAndPrint [17:14:24]line [17:14:24]line [17:14:24]line [17:14:24]line [17:14:24]line [17:14:24]written 0, free lines is 3335 [17:14:24]MH_Cut [17:14:24]Write to MH i2c: D1 01 00 D9 56 01 01 [17:14:24]Write i2c OK [17:14:24]MH_I2C_Read... [17:14:24]Read from MH i2c: D1 [17:14:24]MH_I2C_Read... [17:14:24]Read from MH i2c: D1 01 00 [17:14:24]MH_I2C_Read... [17:14:24]Read from MH i2c: D1 01 00 D9 56 00 00 [17:14:24]Write to MH i2c: 01 00 00 DA 56 30 [17:14:24]Write i2c OK [17:14:24]MH_I2C_Read... [17:14:24]OFD Sender: No OFD packet to send [17:14:24]*** Cut start [17:14:24]*** Partial cut [17:14:24]*** CUTSNS_PIN = 1 [17:14:24]*** CUTSNS_PIN = 0 [17:14:25]*** Brake cut motor [17:14:25]Read from MH i2c: 01 [17:14:25]MH_I2C_Read... [17:14:25]*** Stop cut motor [17:14:25]*** Cut end [17:14:25]Read from MH i2c: 01 07 00 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: 01 07 00 DA 56 00 00 00 00 00 FF 0F 45 [17:14:25]process_action close_receipt done [17:14:25]requested_data is exist [17:14:25]produce_requested_data [17:14:25]requested_item fm.sn is exist - process it [17:14:25]wFMCommunicate request_size=4 [17:14:25]MH_SAM_APDU [17:14:25]CAPDU: 80 11 00 00 [17:14:25]Write to MH i2c: E2 08 00 DB 56 80 11 00 00 00 00 00 00 AB [17:14:25]Write i2c OK [17:14:25]MH_I2C_Read... [17:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:25]Read from MH i2c: E2 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 17 00 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 17 00 DB 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F8 [17:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:14:25]wFMCommunicate OK [17:14:25]requested_item fd.num is exist - process it [17:14:25]SAM_PROTO_GetFieldsCounters [17:14:25]wFMCommunicate request_size=4 [17:14:25]MH_SAM_APDU [17:14:25]CAPDU: 80 13 00 00 [17:14:25]Write to MH i2c: E2 08 00 DC 56 80 13 00 00 00 00 00 00 AE [17:14:25]Write i2c OK [17:14:25]MH_I2C_Read... [17:14:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:25]Read from MH i2c: E2 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 62 00 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 62 00 DC 56 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 BF 00 00 0E 04 04 00 F5 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 50 [17:14: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 D0 BF 00 00 0E 04 04 00 F5 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:14:25]wFMCommunicate OK [17:14:25]SAM_PROTO_GetFieldsCounters done [17:14:25]requested_item shift.num is exist - process it [17:14:25]requested_item shift.opened is exist - process it [17:14:25]req_shift_opened [17:14:25]FM_GetShiftState [17:14:25]SAM_PROTO_GetShiftState [17:14:25]wFMCommunicate request_size=4 [17:14:25]MH_SAM_APDU [17:14:25]CAPDU: 80 13 01 00 [17:14:25]Write to MH i2c: E2 08 00 DD 56 80 13 01 00 00 00 00 00 B0 [17:14:25]Write i2c OK [17:14:25]MH_I2C_Read... [17:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:25]Read from MH i2c: E2 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 0E 00 [17:14:25]MH_I2C_Read... [17:14:25]Read from MH i2c: E2 0E 00 DD 56 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 22 [17:14:25]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:14:25]wFMCommunicate OK [17:14:25]SAM_PROTO_GetShiftState done [17:14:25]FM_GetShiftState done [17:14:25]req_shift_opened done [17:14:25]requested_item shift.open_date is exist - process it [17:14:25]req_shift_open_date [17:14:25]req_shift_open_date done [17:14:25]produce_requested_data done [17:14:25]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49104,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [17:14:25]process_action_free close_receipt [17:14:25]json_value_free [17:14:25]json_value_free done [17:14:25]process_json_proto returns [17:14:25]Send response to host [17:14:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49104,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [17:14:25]free response buf [17:14:25]execute_script done [17:14:25]execute_script returns [17:14:25]free content buf [17:14:25]Sock 7.Close socket [17:14:25]Sock 7.Thread stoped [17:14:29]OFD Sender: No OFD packet to send [17:14:34]OFD Sender: No OFD packet to send [17:14:39]OFD Sender: No OFD packet to send [17:14:44]OFD Sender: No OFD packet to send [17:14:49]OFD Sender: No OFD packet to send [17:14:54]OFD Sender: No OFD packet to send [17:14:59]OFD Sender: No OFD packet to send [17:15:04]OFD Sender: No OFD packet to send [17:15:08]accept exits with 9 [17:15:08]New connection [17:15:08]New thread 3066813796 created [17:15:08]Thread 3066670436 joined [17:15:08]Waiting for new connection... [17:15:08] Sock 9.Parse request [17:15:08]Sock 9.Check first char [17:15:08]Sock 9.First char is OK [17:15:08]request: POST /json_proto HTTP/1.0 [17:15:08]Method: POST [17:15:08]URL: /json_proto [17:15:08]Method is POST - this is cgi request [17:15:08]url: /json_proto [17:15:08]query_string will be loaded in cgi processing [17:15:08]execute_cgi json_proto POST (null) [17:15:08]execute_cgi path=json_proto method=POST [17:15:08]POST find Content-Length [17:15:08]Host: 172.17.56.67:8080 [17:15:08]Content-Length: 677 [17:15:08]Content-Type: application/json [17:15:08] [17:15:08]POST finish read [17:15:08]Found Content-Length = 677 [17:15:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216206", "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" ] } } [17:15:08]execute_script... [17:15: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)216206", "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" ] } } [17:15:08]POST & json_proto [17:15:08]process_json_proto [17:15:08]json parsed OK: [17:15:08]protocol is kg_v1.0 [17:15:08]action value=close_receipt [17:15:08]process_action close_receipt [17:15:08]cmd_close_receipt [17:15:08]MH_GetDate [17:15:08]Write to MH i2c: F0 00 00 DE 56 23 [17:15:08]Write i2c OK [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: F0 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: F0 09 00 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: F0 09 00 DE 56 00 2B DD B7 65 26 5D 9E 65 D6 [17:15:08]GetLastDocTimeStamp 1706548476 [17:15:08]current date 1706548523 [17:15:08]FM_GetShiftState [17:15:08]SAM_PROTO_GetShiftState [17:15:08]wFMCommunicate request_size=4 [17:15:08]MH_SAM_APDU [17:15:08]CAPDU: 80 13 01 00 [17:15:08]Write to MH i2c: E2 08 00 DF 56 80 13 01 00 00 00 00 00 B2 [17:15:08]Write i2c OK [17:15:08]MH_I2C_Read... [17:15:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:08]Read from MH i2c: E2 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 0E 00 [17:15:08]MH_I2C_Read... [17:15:08]Read from MH i2c: E2 0E 00 DF 56 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 24 [17:15:08]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:15:08]wFMCommunicate OK [17:15:08]SAM_PROTO_GetShiftState done [17:15:08]FM_GetShiftState done [17:15:08]opened in 1706486624 [17:15:08]opened+sec_in_day 1706573024 [17:15:08]quantity*price = 50049 [17:15:08]sum+1 = 50050 [17:15:08]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 СÐО: Общий режим Чек 88 29.01.2024 17:15 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49105 ФПД: 222880365617165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T171523&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49105&fm=222880365617165&tin=02508201610067®Number=0000000000092723&sum=50000 [17:15:09]StoreToDocumentArchive [17:15:09]shift 245 fd 49105 [17:15:09]save to /storage/0245/doc_00049105 [17:15:09]save last doc name /storage/0245/doc_00049105 to /storage/kkm_last_doc_name [17:15:09]save OK [17:15:09]Clear old archive folders... [17:15:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:09]tlvbuf is 011EA280 [17:15:09]SAM_PROTO_ClearQueue [17:15:09]wFMCommunicate request_size=4 [17:15:09]MH_SAM_APDU [17:15:09]CAPDU: 80 09 00 00 [17:15:09]Write to MH i2c: E2 08 00 EC 56 80 09 00 00 00 00 00 00 B4 [17:15:09]Write i2c OK [17:15:09]MH_I2C_Read... [17:15:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:10]Read from MH i2c: E2 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 03 00 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 03 00 EC 56 00 90 00 B6 [17:15:10]RAPDU: 90 00 [17:15:10]wFMCommunicate OK [17:15:10]SAM_PROTO_ClearQueue done [17:15:10]KKMCreateOFDPacket [17:15:10]OFDProtocolAddRootSTLVToBuf [17:15:10]FM_MakeSignedData [17:15:10]FM_MakeSignedData [17:15:10]SAM_PROTO_SignData [17:15:10]wFMCommunicate request_size=4 [17:15:10]MH_SAM_APDU [17:15:10]CAPDU: 80 0D 01 02 [17:15:10]Write to MH i2c: E2 08 00 ED 56 80 0D 01 02 00 00 00 00 BC [17:15:10]Write i2c OK [17:15:10]MH_I2C_Read... [17:15:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:10]Read from MH i2c: E2 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 03 00 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 03 00 ED 56 00 90 00 B7 [17:15:10]RAPDU: 90 00 [17:15:10]wFMCommunicate OK [17:15:10]wFMCommunicate request_size=255 [17:15:10]MH_SAM_APDU [17:15: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 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 58 00 00 00 F4 03 04 00 2B DD B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 CA [17:15:10]Write to MH i2c: E2 02 01 EE 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 58 00 00 00 F4 03 04 00 2B DD B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 CA 00 00 B7 [17:15:10]Write i2c OK [17:15:10]MH_I2C_Read... [17:15:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:10]Read from MH i2c: E2 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 03 00 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 03 00 EE 56 00 90 00 B8 [17:15:10]RAPDU: 90 00 [17:15:10]wFMCommunicate OK [17:15:10]wFMCommunicate request_size=10 [17:15:10]MH_SAM_APDU [17:15:10]CAPDU: 80 0D 02 02 05 B5 61 05 20 0D [17:15:10]Write to MH i2c: E2 0D 00 EF 56 80 0D 02 02 05 00 B5 61 05 20 0D 00 00 11 [17:15:10]Write i2c OK [17:15:10]MH_I2C_Read... [17:15:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:10]Read from MH i2c: E2 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 03 00 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 03 00 EF 56 00 90 00 B9 [17:15:10]RAPDU: 90 00 [17:15:10]wFMCommunicate OK [17:15:10]wFMCommunicate request_size=4 [17:15:10]MH_SAM_APDU [17:15:10]CAPDU: 80 0D 03 02 [17:15:10]Write to MH i2c: E2 08 00 F0 56 80 0D 03 02 00 00 00 00 C1 [17:15:10]Write i2c OK [17:15:10]MH_I2C_Read... [17:15:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:10]Read from MH i2c: E2 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 0B 00 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 0B 00 F0 56 00 8F 54 66 78 3B 7B 53 68 90 00 F4 [17:15:10]RAPDU: 8F 54 66 78 3B 7B 53 68 90 00 [17:15:10]wFMCommunicate OK [17:15:10]SAM_PROTO_SignData done [17:15:10]FM_MakeSignedData done [17:15:10]CreateOFDProtocolMessage [17:15:10]wFMCommunicate request_size=4 [17:15:10]MH_SAM_APDU [17:15:10]CAPDU: 80 11 00 00 [17:15:10]Write to MH i2c: E2 08 00 F1 56 80 11 00 00 00 00 00 00 C1 [17:15:10]Write i2c OK [17:15:10]MH_I2C_Read... [17:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:10]Read from MH i2c: E2 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 17 00 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: E2 17 00 F1 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 0E [17:15:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:15:10]wFMCommunicate OK [17:15:10]CreateOFDProtocolMessage done [17:15:10]OFDSenderStorePacket 49105 [17:15:10]StoreOFDPacket docnum=49105 [17:15: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 E9 58 07 01 F6 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 58 00 00 00 F4 03 04 00 2B DD B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 CA B5 61 05 20 0D 8F 54 66 78 3B 7B 53 68 [17:15:10]CheckFolder [17:15:10]dirname=/storage/ofd_packets [17:15:10]CheckFolder done [17:15:10]ProducePacketName [17:15:10]name=ofd_packets/00049105 [17:15:10]NVStorageSaveData ofd_packets/00049105 [17:15:10]File name is /storage/ofd_packets/00049105 [17:15:10]Write 301 bytes [17:15:10]NVStorageSaveData done [17:15:10]OFDSenderStorePacket done [17:15:10]KKMCreateOFDPacket done [17:15:10]NVStorageSaveData kkm_last_timestamp [17:15:10]File name is /storage/kkm_last_timestamp [17:15:10]Write 4 bytes [17:15:10]NVStorageSaveData done [17:15:10]ExternCall_PrintAddStr [17:15:10]wPrintStart [17:15:10]Write to MH i2c: 01 00 00 F2 56 48 [17:15:10]Write i2c OK [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: 01 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: 01 07 00 [17:15:10]MH_I2C_Read... [17:15:10]Read from MH i2c: 01 07 00 F2 56 00 00 00 00 00 FF 0F 5D [17:15:10]RasterBufferAndPrint [17:15:10]line Счет N : (1)216206 [17:15:10]line ИÐÐ: 02508201610067 [17:15:10]line Контрольно-КаÑÑовый Чек [17:15:10]line ПРОДÐЖР[17:15:10]line ТРК (МРК, ГÐК) : 12 [17:15:10]line Товар: 2710124130 [17:15:10]line Ðи-92-К-5 [17:15:10]line 8.300 * 60.30 [17:15:10]line = 500.49 [17:15:10]line ÐДС 12% ÐСП 1% [17:15:10]line > о реализуемом товаре [17:15:10]line ОКРУГЛЕÐИЕ: -0.49 [17:15:10]line ИТОГО: 500.00 [17:15:10]line ВнеÑено: 500.00 [17:15:10]line СДÐЧÐ: 0.00 [17:15:10]line ÐСП 1% : 4.43 [17:15:10]line ÐДС 12% : 53.15 [17:15:10]line Ðаличными: 500.00 [17:15:10]line Безнал.: 0.00 [17:15:10]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [17:15:10]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:15:10]line СÐО: Общий режим [17:15:10]line Чек 88 29.01.2024 17:15 [17:15:10]line Смена: 245 ФФД: 1.0 [17:15:10]line ЗÐМ: 0300000040 [17:15:10]line РÐМ: 0000000000092723 [17:15:10]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:15:10]line ФМ: 0000000000875060 [17:15:10]line ФД: 49105 [17:15:10]line ФПД: 222880365617165 [17:15:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T171523&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49105&fm=222880365617165&tin=02508201610067®Number=0000000000092723&sum=50000 [17:15:10]OFD Sender: Processing packet 49105 [packets to send 12, broken 11] [17:15:10]ProducePacketName [17:15:10]name=ofd_packets/00049105 [17:15:10]OFD Sender: To server: ‡•öpG, [17:15:10]CommunicateWithHost lk.salyk.kg:30040 [17:15:10]ConnectInit lk.salyk.kg [17:15:10]written 0, free lines is 4095 [17:15:10]Connected sock=10 [17:15: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 E9 58 07 01 F6 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 58 00 00 00 F4 03 04 00 2B DD B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 CA B5 61 05 20 0D 8F 54 66 78 3B 7B 53 68 [17:15: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 B3 A8 47 00 E2 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D1 BF 00 00 F4 03 04 00 23 89 B7 65 B6 04 01 00 00 A3 77 FE FE CE 7D 79 A8 [17:15:11]CommunicateWithHost err = 0 [17:15:11]CheckOFDResponse [17:15:11]1017 (14) - 77093643461234 [17:15:11]1041 (16) - 0000000000875060 [17:15:11]1040 (4) - 49105 [17:15:11]1012 (4) - 29.01.2024 11:16 [17:15:11]1206 (1) - 0 [17:15:11]OFD Sender: Remove packet 49105 [17:15:11]ProducePacketName [17:15:11]name=ofd_packets/00049105 [17:15:11]NVStorageDeleteData [17:15:11]Write to MH i2c: 01 00 00 1D 57 74 [17:15:11]Write i2c OK [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: 01 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: 01 07 00 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: 01 07 00 1D 57 00 00 00 00 00 0B 0D 93 [17:15:11]RasterBufferAndPrint [17:15:11]line [17:15:11]line [17:15:11]line [17:15:11]line [17:15:11]line [17:15:11]written 0, free lines is 3345 [17:15:11]MH_Cut [17:15:11]Write to MH i2c: D1 01 00 24 57 01 4D [17:15:11]Write i2c OK [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: D1 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: D1 01 00 [17:15:11]MH_I2C_Read... [17:15:11]Read from MH i2c: D1 01 00 24 57 00 4C [17:15:11]Write to MH i2c: 01 00 00 25 57 7C [17:15:11]Write i2c OK [17:15:11]MH_I2C_Read... [17:15:11]OFD Sender: No OFD packet to send [17:15:11]*** Cut start [17:15:11]*** Partial cut [17:15:11]*** CUTSNS_PIN = 1 [17:15:12]*** CUTSNS_PIN = 0 [17:15:12]*** Brake cut motor [17:15:12]Read from MH i2c: 01 [17:15:12]MH_I2C_Read... [17:15:12]*** Stop cut motor [17:15:12]*** Cut end [17:15:12]Read from MH i2c: 01 07 00 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: 01 07 00 25 57 00 00 00 00 00 FF 0F 91 [17:15:12]process_action close_receipt done [17:15:12]requested_data is exist [17:15:12]produce_requested_data [17:15:12]requested_item fm.sn is exist - process it [17:15:12]wFMCommunicate request_size=4 [17:15:12]MH_SAM_APDU [17:15:12]CAPDU: 80 11 00 00 [17:15:12]Write to MH i2c: E2 08 00 26 57 80 11 00 00 00 00 00 00 F7 [17:15:12]Write i2c OK [17:15:12]MH_I2C_Read... [17:15:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:12]Read from MH i2c: E2 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: E2 17 00 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: E2 17 00 26 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 44 [17:15: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:15:12]wFMCommunicate OK [17:15:12]requested_item fd.num is exist - process it [17:15:12]SAM_PROTO_GetFieldsCounters [17:15:12]wFMCommunicate request_size=4 [17:15:12]MH_SAM_APDU [17:15:12]CAPDU: 80 13 00 00 [17:15:12]Write to MH i2c: E2 08 00 27 57 80 13 00 00 00 00 00 00 FA [17:15:12]Write i2c OK [17:15:12]MH_I2C_Read... [17:15:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:12]Read from MH i2c: E2 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: E2 62 00 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: E2 62 00 27 57 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 BF 00 00 0E 04 04 00 F5 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 A0 [17:15: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 D1 BF 00 00 0E 04 04 00 F5 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:15:12]wFMCommunicate OK [17:15:12]SAM_PROTO_GetFieldsCounters done [17:15:12]requested_item shift.num is exist - process it [17:15:12]requested_item shift.opened is exist - process it [17:15:12]req_shift_opened [17:15:12]FM_GetShiftState [17:15:12]SAM_PROTO_GetShiftState [17:15:12]wFMCommunicate request_size=4 [17:15:12]MH_SAM_APDU [17:15:12]CAPDU: 80 13 01 00 [17:15:12]Write to MH i2c: E2 08 00 28 57 80 13 01 00 00 00 00 00 FC [17:15:12]Write i2c OK [17:15:12]MH_I2C_Read... [17:15:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:12]Read from MH i2c: E2 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: E2 0E 00 [17:15:12]MH_I2C_Read... [17:15:12]Read from MH i2c: E2 0E 00 28 57 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 6E [17:15:12]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:15:12]wFMCommunicate OK [17:15:12]SAM_PROTO_GetShiftState done [17:15:12]FM_GetShiftState done [17:15:12]req_shift_opened done [17:15:12]requested_item shift.open_date is exist - process it [17:15:12]req_shift_open_date [17:15:12]req_shift_open_date done [17:15:12]produce_requested_data done [17:15:12]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49105,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [17:15:12]process_action_free close_receipt [17:15:12]json_value_free [17:15:12]json_value_free done [17:15:12]process_json_proto returns [17:15:12]Send response to host [17:15:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49105,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [17:15:12]free response buf [17:15:12]execute_script done [17:15:12]execute_script returns [17:15:12]free content buf [17:15:12]Sock 9.Close socket [17:15:12]Sock 9.Thread stoped [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:21:01]OFD Sender: No OFD packet to send [17:21:06]OFD Sender: No OFD packet to send [17:21:11]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [17:21:26]OFD Sender: No OFD packet to send [17:21:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:17]accept exits with 7 [17:24:17]New connection [17:24:17]New thread 3066670436 created [17:24:17]Thread 3066813796 joined [17:24:17]Waiting for new connection... [17:24:17] Sock 7.Parse request [17:24:17]Sock 7.Check first char [17:24:17]Sock 7.First char is OK [17:24:17]request: POST /json_proto HTTP/1.0 [17:24:17]Method: POST [17:24:17]URL: /json_proto [17:24:17]Method is POST - this is cgi request [17:24:17]url: /json_proto [17:24:17]query_string will be loaded in cgi processing [17:24:17]execute_cgi json_proto POST (null) [17:24:17]execute_cgi path=json_proto method=POST [17:24:17]POST find Content-Length [17:24:17]Host: 172.17.56.67:8080 [17:24:17]Content-Length: 677 [17:24:17]Content-Type: application/json [17:24:17] [17:24:17]POST finish read [17:24:17]Found Content-Length = 677 [17:24:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216208", "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:24:17]execute_script... [17:24: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)216208", "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:24:17]POST & json_proto [17:24:17]process_json_proto [17:24:17]json parsed OK: [17:24:17]protocol is kg_v1.0 [17:24:17]action value=close_receipt [17:24:17]process_action close_receipt [17:24:17]cmd_close_receipt [17:24:17]MH_GetDate [17:24:17]Write to MH i2c: F0 00 00 29 57 6F [17:24:17]Write i2c OK [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: F0 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: F0 09 00 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: F0 09 00 29 57 00 4F DF B7 65 26 5D 9E 65 48 [17:24:17]GetLastDocTimeStamp 1706548523 [17:24:17]current date 1706549071 [17:24:17]FM_GetShiftState [17:24:17]SAM_PROTO_GetShiftState [17:24:17]wFMCommunicate request_size=4 [17:24:17]MH_SAM_APDU [17:24:17]CAPDU: 80 13 01 00 [17:24:17]Write to MH i2c: E2 08 00 2A 57 80 13 01 00 00 00 00 00 FE [17:24:17]Write i2c OK [17:24:17]MH_I2C_Read... [17:24:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:17]Read from MH i2c: E2 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 0E 00 [17:24:17]MH_I2C_Read... [17:24:17]Read from MH i2c: E2 0E 00 2A 57 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 70 [17:24:17]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:24:17]wFMCommunicate OK [17:24:17]SAM_PROTO_GetShiftState done [17:24:17]FM_GetShiftState done [17:24:17]opened in 1706486624 [17:24:17]opened+sec_in_day 1706573024 [17:24:17]quantity*price = 30029 [17:24:17]sum+1 = 30030 [17:24: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 СÐО: Общий режим Чек 89 29.01.2024 17:24 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49106 ФПД: 37669538045464 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T172431&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49106&fm=37669538045464&tin=02508201610067®Number=0000000000092723&sum=30000 [17:24:18]StoreToDocumentArchive [17:24:18]shift 245 fd 49106 [17:24:18]save to /storage/0245/doc_00049106 [17:24:18]save last doc name /storage/0245/doc_00049106 to /storage/kkm_last_doc_name [17:24:18]save OK [17:24:18]Clear old archive folders... [17:24:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:18]tlvbuf is 011DD590 [17:24:18]SAM_PROTO_ClearQueue [17:24:18]wFMCommunicate request_size=4 [17:24:18]MH_SAM_APDU [17:24:18]CAPDU: 80 09 00 00 [17:24:18]Write to MH i2c: E2 08 00 37 57 80 09 00 00 00 00 00 00 00 [17:24:18]Write i2c OK [17:24:18]MH_I2C_Read... [17:24:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:18]Read from MH i2c: E2 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 03 00 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 03 00 37 57 00 90 00 02 [17:24:18]RAPDU: 90 00 [17:24:18]wFMCommunicate OK [17:24:18]SAM_PROTO_ClearQueue done [17:24:18]KKMCreateOFDPacket [17:24:18]OFDProtocolAddRootSTLVToBuf [17:24:18]FM_MakeSignedData [17:24:18]FM_MakeSignedData [17:24:18]SAM_PROTO_SignData [17:24:18]wFMCommunicate request_size=4 [17:24:18]MH_SAM_APDU [17:24:18]CAPDU: 80 0D 01 02 [17:24:18]Write to MH i2c: E2 08 00 38 57 80 0D 01 02 00 00 00 00 08 [17:24:18]Write i2c OK [17:24:18]MH_I2C_Read... [17:24:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:18]Read from MH i2c: E2 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 03 00 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 03 00 38 57 00 90 00 03 [17:24:18]RAPDU: 90 00 [17:24:18]wFMCommunicate OK [17:24:18]wFMCommunicate request_size=255 [17:24:18]MH_SAM_APDU [17:24: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 59 00 00 00 F4 03 04 00 4F DF B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 22 [17:24:18]Write to MH i2c: E2 02 01 39 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 59 00 00 00 F4 03 04 00 4F DF B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 22 00 00 19 [17:24:18]Write i2c OK [17:24:18]MH_I2C_Read... [17:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:18]Read from MH i2c: E2 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 03 00 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 03 00 39 57 00 90 00 04 [17:24:18]RAPDU: 90 00 [17:24:18]wFMCommunicate OK [17:24:18]wFMCommunicate request_size=10 [17:24:18]MH_SAM_APDU [17:24:18]CAPDU: 80 0D 02 02 05 42 9F 6F 1E 18 [17:24:18]Write to MH i2c: E2 0D 00 3A 57 80 0D 02 02 05 00 42 9F 6F 1E 18 00 00 9B [17:24:18]Write i2c OK [17:24:18]MH_I2C_Read... [17:24:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:18]Read from MH i2c: E2 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 03 00 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 03 00 3A 57 00 90 00 05 [17:24:18]RAPDU: 90 00 [17:24:18]wFMCommunicate OK [17:24:18]wFMCommunicate request_size=4 [17:24:18]MH_SAM_APDU [17:24:18]CAPDU: 80 0D 03 02 [17:24:18]Write to MH i2c: E2 08 00 3B 57 80 0D 03 02 00 00 00 00 0D [17:24:18]Write i2c OK [17:24:18]MH_I2C_Read... [17:24:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:18]Read from MH i2c: E2 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 0B 00 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 0B 00 3B 57 00 1E 83 7E 81 90 AB 2F 89 90 00 A1 [17:24:18]RAPDU: 1E 83 7E 81 90 AB 2F 89 90 00 [17:24:18]wFMCommunicate OK [17:24:18]SAM_PROTO_SignData done [17:24:18]FM_MakeSignedData done [17:24:18]CreateOFDProtocolMessage [17:24:18]wFMCommunicate request_size=4 [17:24:18]MH_SAM_APDU [17:24:18]CAPDU: 80 11 00 00 [17:24:18]Write to MH i2c: E2 08 00 3C 57 80 11 00 00 00 00 00 00 0D [17:24:18]Write i2c OK [17:24:18]MH_I2C_Read... [17:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:18]Read from MH i2c: E2 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 17 00 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: E2 17 00 3C 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 5A [17:24: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:24:18]wFMCommunicate OK [17:24:18]CreateOFDProtocolMessage done [17:24:18]OFDSenderStorePacket 49106 [17:24:18]StoreOFDPacket docnum=49106 [17:24: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 D4 03 07 01 A1 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 59 00 00 00 F4 03 04 00 4F DF B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 22 42 9F 6F 1E 18 1E 83 7E 81 90 AB 2F 89 [17:24:18]CheckFolder [17:24:18]dirname=/storage/ofd_packets [17:24:18]CheckFolder done [17:24:18]ProducePacketName [17:24:18]name=ofd_packets/00049106 [17:24:18]NVStorageSaveData ofd_packets/00049106 [17:24:18]File name is /storage/ofd_packets/00049106 [17:24:18]Write 301 bytes [17:24:18]NVStorageSaveData done [17:24:18]OFDSenderStorePacket done [17:24:18]KKMCreateOFDPacket done [17:24:18]NVStorageSaveData kkm_last_timestamp [17:24:18]File name is /storage/kkm_last_timestamp [17:24:18]Write 4 bytes [17:24:18]NVStorageSaveData done [17:24:18]ExternCall_PrintAddStr [17:24:18]wPrintStart [17:24:18]Write to MH i2c: 01 00 00 3D 57 94 [17:24:18]Write i2c OK [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: 01 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: 01 07 00 [17:24:18]MH_I2C_Read... [17:24:18]Read from MH i2c: 01 07 00 3D 57 00 00 00 00 00 FF 0F A9 [17:24:18]RasterBufferAndPrint [17:24:18]line Счет N : (1)216208 [17:24:18]line ИÐÐ: 02508201610067 [17:24:18]line Контрольно-КаÑÑовый Чек [17:24:18]line ПРОДÐЖР[17:24:18]line ТРК (МРК, ГÐК) : 22 [17:24:18]line Товар: 2710124130 [17:24:18]line Ðи-92-К-5 [17:24:18]line 4.980 * 60.30 [17:24:18]line = 300.29 [17:24:18]line ÐДС 12% ÐСП 1% [17:24:18]line > о реализуемом товаре [17:24:18]line ОКРУГЛЕÐИЕ: -0.29 [17:24:18]line ИТОГО: 300.00 [17:24:18]line ВнеÑено: 300.00 [17:24:18]line СДÐЧÐ: 0.00 [17:24:18]line ÐСП 1% : 2.66 [17:24:18]line ÐДС 12% : 31.89 [17:24:18]line Ðаличными: 300.00 [17:24:18]line Безнал.: 0.00 [17:24:18]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [17:24:18]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:24:18]line СÐО: Общий режим [17:24:18]line Чек 89 29.01.2024 17:24 [17:24:18]line Смена: 245 ФФД: 1.0 [17:24:18]line ЗÐМ: 0300000040 [17:24:18]line РÐМ: 0000000000092723 [17:24:18]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:24:18]line ФМ: 0000000000875060 [17:24:18]line ФД: 49106 [17:24:18]line ФПД: 37669538045464 [17:24:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T172431&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49106&fm=37669538045464&tin=02508201610067®Number=0000000000092723&sum=30000 [17:24:19]OFD Sender: Processing packet 49106 [packets to send 12, broken 11] [17:24:19]ProducePacketName [17:24:19]name=ofd_packets/00049106 [17:24:19]OFD Sender: To server: ‡•öpG, [17:24:19]CommunicateWithHost lk.salyk.kg:30040 [17:24:19]ConnectInit lk.salyk.kg [17:24:19]written 0, free lines is 4095 [17:24:19]Connected sock=10 [17:24: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 D4 03 07 01 A1 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 59 00 00 00 F4 03 04 00 4F DF B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 22 42 9F 6F 1E 18 1E 83 7E 81 90 AB 2F 89 [17:24: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 C5 03 47 00 4D 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 D2 BF 00 00 F4 03 04 00 47 8B B7 65 B6 04 01 00 00 E6 38 55 7C 18 36 89 A9 [17:24:19]CommunicateWithHost err = 0 [17:24:19]CheckOFDResponse [17:24:19]1017 (14) - 77093643461234 [17:24:19]1041 (16) - 0000000000875060 [17:24:19]1040 (4) - 49106 [17:24:19]1012 (4) - 29.01.2024 11:25 [17:24:19]1206 (1) - 0 [17:24:19]OFD Sender: Remove packet 49106 [17:24:19]ProducePacketName [17:24:19]name=ofd_packets/00049106 [17:24:19]NVStorageDeleteData [17:24:19]Write to MH i2c: 01 00 00 68 57 BF [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: 01 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: 01 07 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: 01 07 00 68 57 00 00 00 00 00 FF 0C D1 [17:24:19]RasterBufferAndPrint [17:24:19]line [17:24:19]line [17:24:19]line [17:24:19]line [17:24:19]line [17:24:19]written 0, free lines is 3332 [17:24:19]MH_Cut [17:24:19]Write to MH i2c: D1 01 00 6F 57 01 98 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: D1 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: D1 01 00 [17:24:19]MH_I2C_Read... [17:24:19]Read from MH i2c: D1 01 00 6F 57 00 97 [17:24:19]Write to MH i2c: 01 00 00 70 57 C7 [17:24:19]Write i2c OK [17:24:19]MH_I2C_Read... [17:24:20]OFD Sender: No OFD packet to send [17:24:20]*** Cut start [17:24:20]*** Partial cut [17:24:20]*** CUTSNS_PIN = 1 [17:24:20]*** CUTSNS_PIN = 0 [17:24:20]*** Brake cut motor [17:24:20]Read from MH i2c: 01 [17:24:20]MH_I2C_Read... [17:24:20]*** Stop cut motor [17:24:20]*** Cut end [17:24:20]Read from MH i2c: 01 07 00 [17:24:20]MH_I2C_Read... [17:24:20]Read from MH i2c: 01 07 00 70 57 00 00 00 00 00 FF 0F DC [17:24:20]process_action close_receipt done [17:24:20]requested_data is exist [17:24:20]produce_requested_data [17:24:20]requested_item fm.sn is exist - process it [17:24:20]wFMCommunicate request_size=4 [17:24:20]MH_SAM_APDU [17:24:20]CAPDU: 80 11 00 00 [17:24:20]Write to MH i2c: E2 08 00 71 57 80 11 00 00 00 00 00 00 42 [17:24:20]Write i2c OK [17:24:20]MH_I2C_Read... [17:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:21]Read from MH i2c: E2 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 17 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 17 00 71 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 8F [17:24: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:24:21]wFMCommunicate OK [17:24:21]requested_item fd.num is exist - process it [17:24:21]SAM_PROTO_GetFieldsCounters [17:24:21]wFMCommunicate request_size=4 [17:24:21]MH_SAM_APDU [17:24:21]CAPDU: 80 13 00 00 [17:24:21]Write to MH i2c: E2 08 00 72 57 80 13 00 00 00 00 00 00 45 [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:21]Read from MH i2c: E2 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 62 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 62 00 72 57 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 BF 00 00 0E 04 04 00 F5 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 EF [17:24: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 D2 BF 00 00 0E 04 04 00 F5 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:24:21]wFMCommunicate OK [17:24:21]SAM_PROTO_GetFieldsCounters done [17:24:21]requested_item shift.num is exist - process it [17:24:21]requested_item shift.opened is exist - process it [17:24:21]req_shift_opened [17:24:21]FM_GetShiftState [17:24:21]SAM_PROTO_GetShiftState [17:24:21]wFMCommunicate request_size=4 [17:24:21]MH_SAM_APDU [17:24:21]CAPDU: 80 13 01 00 [17:24:21]Write to MH i2c: E2 08 00 73 57 80 13 01 00 00 00 00 00 47 [17:24:21]Write i2c OK [17:24:21]MH_I2C_Read... [17:24:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:21]Read from MH i2c: E2 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 0E 00 [17:24:21]MH_I2C_Read... [17:24:21]Read from MH i2c: E2 0E 00 73 57 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 B9 [17:24:21]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:24:21]wFMCommunicate OK [17:24:21]SAM_PROTO_GetShiftState done [17:24:21]FM_GetShiftState done [17:24:21]req_shift_opened done [17:24:21]requested_item shift.open_date is exist - process it [17:24:21]req_shift_open_date [17:24:21]req_shift_open_date done [17:24:21]produce_requested_data done [17:24:21]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49106,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [17:24:21]process_action_free close_receipt [17:24:21]json_value_free [17:24:21]json_value_free done [17:24:21]process_json_proto returns [17:24:21]Send response to host [17:24:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49106,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [17:24:21]free response buf [17:24:21]execute_script done [17:24:21]execute_script returns [17:24:21]free content buf [17:24:21]Sock 7.Close socket [17:24:21]Sock 7.Thread stoped [17:24:23]accept exits with 9 [17:24:23]New connection [17:24:23]New thread 3066813796 created [17:24:23]Thread 3066670436 joined [17:24:23]Waiting for new connection... [17:24:23] Sock 9.Parse request [17:24:23]Sock 9.Check first char [17:24:23]Sock 9.First char is OK [17:24:23]request: POST /json_proto HTTP/1.0 [17:24:23]Method: POST [17:24:23]URL: /json_proto [17:24:23]Method is POST - this is cgi request [17:24:23]url: /json_proto [17:24:23]query_string will be loaded in cgi processing [17:24:23]execute_cgi json_proto POST (null) [17:24:23]execute_cgi path=json_proto method=POST [17:24:23]POST find Content-Length [17:24:23]Host: 172.17.56.67:8080 [17:24:23]Content-Length: 679 [17:24:23]Content-Type: application/json [17:24:23] [17:24:23]POST finish read [17:24:23]Found Content-Length = 679 [17:24:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216207", "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" : 25.000, "sum" : 1747.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1747.00, "total" : 1747.00, "payments": [ { "type": 0, "sum" : 1747.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:23]execute_script... [17:24:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216207", "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" : 25.000, "sum" : 1747.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1747.00, "total" : 1747.00, "payments": [ { "type": 0, "sum" : 1747.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:23]POST & json_proto [17:24:23]process_json_proto [17:24:23]json parsed OK: [17:24:23]protocol is kg_v1.0 [17:24:23]action value=close_receipt [17:24:23]process_action close_receipt [17:24:23]cmd_close_receipt [17:24:23]MH_GetDate [17:24:23]Write to MH i2c: F0 00 00 74 57 BA [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: F0 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: F0 09 00 [17:24:23]MH_I2C_Read... [17:24:23]Read from MH i2c: F0 09 00 74 57 00 56 DF B7 65 26 5D 9E 65 9A [17:24:23]GetLastDocTimeStamp 1706549071 [17:24:23]current date 1706549078 [17:24:23]FM_GetShiftState [17:24:23]SAM_PROTO_GetShiftState [17:24:23]wFMCommunicate request_size=4 [17:24:23]MH_SAM_APDU [17:24:23]CAPDU: 80 13 01 00 [17:24:23]Write to MH i2c: E2 08 00 75 57 80 13 01 00 00 00 00 00 49 [17:24:23]Write i2c OK [17:24:23]MH_I2C_Read... [17:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:24]Read from MH i2c: E2 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 0E 00 [17:24:24]MH_I2C_Read... [17:24:24]Read from MH i2c: E2 0E 00 75 57 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 BB [17:24:24]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:24:24]wFMCommunicate OK [17:24:24]SAM_PROTO_GetShiftState done [17:24:24]FM_GetShiftState done [17:24:24]opened in 1706486624 [17:24:24]opened+sec_in_day 1706573024 [17:24:24]quantity*price = 174750 [17:24:24]sum+1 = 174751 [17:24:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.50 ИТОГО: 1747.00 ВнеÑено: 1747.00 СДÐЧÐ: 0.00 ÐСП 1% : 15.46 ÐДС 12% : 185.57 Ðаличными: 1747.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 90 29.01.2024 17:24 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49107 ФПД: 226752930186986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T172438&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49107&fm=226752930186986&tin=02508201610067®Number=0000000000092723&sum=174700 [17:24:25]StoreToDocumentArchive [17:24:25]shift 245 fd 49107 [17:24:25]save to /storage/0245/doc_00049107 [17:24:25]save last doc name /storage/0245/doc_00049107 to /storage/kkm_last_doc_name [17:24:25]save OK [17:24:25]Clear old archive folders... [17:24:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:24:25]tlvbuf is 01214D40 [17:24:25]SAM_PROTO_ClearQueue [17:24:25]wFMCommunicate request_size=4 [17:24:25]MH_SAM_APDU [17:24:25]CAPDU: 80 09 00 00 [17:24:25]Write to MH i2c: E2 08 00 82 57 80 09 00 00 00 00 00 00 4B [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:25]Read from MH i2c: E2 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 03 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 03 00 82 57 00 90 00 4D [17:24:25]RAPDU: 90 00 [17:24:25]wFMCommunicate OK [17:24:25]SAM_PROTO_ClearQueue done [17:24:25]KKMCreateOFDPacket [17:24:25]OFDProtocolAddRootSTLVToBuf [17:24:25]FM_MakeSignedData [17:24:25]FM_MakeSignedData [17:24:25]SAM_PROTO_SignData [17:24:25]wFMCommunicate request_size=4 [17:24:25]MH_SAM_APDU [17:24:25]CAPDU: 80 0D 01 02 [17:24:25]Write to MH i2c: E2 08 00 83 57 80 0D 01 02 00 00 00 00 53 [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:25]Read from MH i2c: E2 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 03 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 03 00 83 57 00 90 00 4E [17:24:25]RAPDU: 90 00 [17:24:25]wFMCommunicate OK [17:24:25]wFMCommunicate request_size=255 [17:24:25]MH_SAM_APDU [17:24:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 9E AA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C AA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 48 00 00 00 00 07 04 06 00 6C AA 02 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 56 DF B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 CE 3B 07 DB [17:24:25]Write to MH i2c: E2 02 01 84 57 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 A8 61 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 9E AA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C AA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 48 00 00 00 00 07 04 06 00 6C AA 02 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 56 DF B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 CE 3B 07 DB 00 00 86 [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:25]Read from MH i2c: E2 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 03 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 03 00 84 57 00 90 00 4F [17:24:25]RAPDU: 90 00 [17:24:25]wFMCommunicate OK [17:24:25]wFMCommunicate request_size=7 [17:24:25]MH_SAM_APDU [17:24:25]CAPDU: 80 0D 02 02 02 06 EA [17:24:25]Write to MH i2c: E2 0A 00 85 57 80 0D 02 02 02 00 06 EA 00 00 4A [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:25]Read from MH i2c: E2 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 03 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 03 00 85 57 00 90 00 50 [17:24:25]RAPDU: 90 00 [17:24:25]wFMCommunicate OK [17:24:25]wFMCommunicate request_size=4 [17:24:25]MH_SAM_APDU [17:24:25]CAPDU: 80 0D 03 02 [17:24:25]Write to MH i2c: E2 08 00 86 57 80 0D 03 02 00 00 00 00 58 [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:25]Read from MH i2c: E2 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 0B 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 0B 00 86 57 00 4E B6 E7 9F C8 4A EA DF 90 00 BE [17:24:25]RAPDU: 4E B6 E7 9F C8 4A EA DF 90 00 [17:24:25]wFMCommunicate OK [17:24:25]SAM_PROTO_SignData done [17:24:25]FM_MakeSignedData done [17:24:25]CreateOFDProtocolMessage [17:24:25]wFMCommunicate request_size=4 [17:24:25]MH_SAM_APDU [17:24:25]CAPDU: 80 11 00 00 [17:24:25]Write to MH i2c: E2 08 00 87 57 80 11 00 00 00 00 00 00 58 [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:25]Read from MH i2c: E2 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 17 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: E2 17 00 87 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 A5 [17:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:24:25]wFMCommunicate OK [17:24:25]CreateOFDProtocolMessage done [17:24:25]OFDSenderStorePacket 49107 [17:24:25]StoreOFDPacket docnum=49107 [17:24:25]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 B9 07 04 01 41 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 9E AA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C AA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 48 00 00 00 00 07 04 06 00 6C AA 02 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 56 DF B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 CE 3B 07 DB 06 EA 4E B6 E7 9F C8 4A EA DF [17:24:25]CheckFolder [17:24:25]dirname=/storage/ofd_packets [17:24:25]CheckFolder done [17:24:25]ProducePacketName [17:24:25]name=ofd_packets/00049107 [17:24:25]NVStorageSaveData ofd_packets/00049107 [17:24:25]File name is /storage/ofd_packets/00049107 [17:24:25]Write 298 bytes [17:24:25]NVStorageSaveData done [17:24:25]OFDSenderStorePacket done [17:24:25]KKMCreateOFDPacket done [17:24:25]NVStorageSaveData kkm_last_timestamp [17:24:25]File name is /storage/kkm_last_timestamp [17:24:25]Write 4 bytes [17:24:25]NVStorageSaveData done [17:24:25]ExternCall_PrintAddStr [17:24:25]wPrintStart [17:24:25]Write to MH i2c: 01 00 00 88 57 DF [17:24:25]Write i2c OK [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: 01 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: 01 07 00 [17:24:25]MH_I2C_Read... [17:24:25]Read from MH i2c: 01 07 00 88 57 00 00 00 00 00 FF 0F F4 [17:24:25]RasterBufferAndPrint [17:24:25]line Счет N : (1)216207 [17:24:25]line ИÐÐ: 02508201610067 [17:24:25]line Контрольно-КаÑÑовый Чек [17:24:25]line ПРОДÐЖР[17:24:25]line ТРК (МРК, ГÐК) : 11 [17:24:25]line Товар: 2710194210 [17:24:25]line ДТ-К-5 [17:24:25]line 25.000 * 69.90 [17:24:25]line = 1747.50 [17:24:25]line ÐДС 12% ÐСП 1% [17:24:25]line > о реализуемом товаре [17:24:25]line ОКРУГЛЕÐИЕ: -0.50 [17:24:25]line ИТОГО: 1747.00 [17:24:25]line ВнеÑено: 1747.00 [17:24:25]line СДÐЧÐ: 0.00 [17:24:25]line ÐСП 1% : 15.46 [17:24:25]line ÐДС 12% : 185.57 [17:24:25]line Ðаличными: 1747.00 [17:24:25]line Безнал.: 0.00 [17:24:25]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [17:24:25]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:24:25]line СÐО: Общий режим [17:24:25]line Чек 90 29.01.2024 17:24 [17:24:25]line Смена: 245 ФФД: 1.0 [17:24:25]line ЗÐМ: 0300000040 [17:24:25]line РÐМ: 0000000000092723 [17:24:25]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:24:25]line ФМ: 0000000000875060 [17:24:25]line ФД: 49107 [17:24:25]line ФПД: 226752930186986 [17:24:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T172438&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49107&fm=226752930186986&tin=02508201610067®Number=0000000000092723&sum=174700 [17:24:25]written 0, free lines is 4095 [17:24:25]OFD Sender: Processing packet 49107 [packets to send 12, broken 11] [17:24:25]ProducePacketName [17:24:26]name=ofd_packets/00049107 [17:24:26]OFD Sender: To server: ‡•öpG, [17:24:26]CommunicateWithHost lk.salyk.kg:30040 [17:24:26]ConnectInit lk.salyk.kg [17:24:26]Connected sock=10 [17:24: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 B9 07 04 01 41 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 9E AA 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C AA 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 48 00 00 00 00 07 04 06 00 6C AA 02 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 56 DF B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 CE 3B 07 DB 06 EA 4E B6 E7 9F C8 4A EA DF [17:24:26]Write to MH i2c: 01 00 00 B3 57 0A [17:24:26]Write i2c OK [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: 01 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: 01 07 00 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: 01 07 00 B3 57 00 00 00 00 00 0B 0D 29 [17:24:26]RasterBufferAndPrint [17:24:26]line [17:24:26]line [17:24:26]line [17:24:26]line [17:24:26]line [17:24:26]written 0, free lines is 3352 [17:24:26]MH_Cut [17:24:26]Write to MH i2c: D1 01 00 BA 57 01 E3 [17:24:26]Write i2c OK [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: D1 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: D1 01 00 [17:24:26]MH_I2C_Read... [17:24:26]Read from MH i2c: D1 01 00 BA 57 00 E2 [17:24:26]Write to MH i2c: 01 00 00 BB 57 12 [17:24:26]Write i2c OK [17:24:26]MH_I2C_Read... [17:24:26]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 10 47 00 E6 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D3 BF 00 00 F4 03 04 00 4E 8B B7 65 B6 04 01 00 00 37 9D 93 C0 66 37 E1 E6 [17:24:26]CommunicateWithHost err = 0 [17:24:26]CheckOFDResponse [17:24:26]1017 (14) - 77093643461234 [17:24:26]1041 (16) - 0000000000875060 [17:24:26]1040 (4) - 49107 [17:24:26]1012 (4) - 29.01.2024 11:26 [17:24:26]1206 (1) - 0 [17:24:26]OFD Sender: Remove packet 49107 [17:24:26]ProducePacketName [17:24:26]name=ofd_packets/00049107 [17:24:26]NVStorageDeleteData [17:24:26]OFD Sender: No OFD packet to send [17:24:26]*** Cut start [17:24:26]*** Partial cut [17:24:26]*** CUTSNS_PIN = 1 [17:24:26]*** CUTSNS_PIN = 0 [17:24:27]*** Brake cut motor [17:24:27]Read from MH i2c: 01 [17:24:27]MH_I2C_Read... [17:24:27]*** Stop cut motor [17:24:27]*** Cut end [17:24:27]Read from MH i2c: 01 07 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: 01 07 00 BB 57 00 00 00 00 00 FF 0F 27 [17:24:27]process_action close_receipt done [17:24:27]requested_data is exist [17:24:27]produce_requested_data [17:24:27]requested_item fm.sn is exist - process it [17:24:27]wFMCommunicate request_size=4 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 11 00 00 [17:24:27]Write to MH i2c: E2 08 00 BC 57 80 11 00 00 00 00 00 00 8D [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 17 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 17 00 BC 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 DA [17:24: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:24:27]wFMCommunicate OK [17:24:27]requested_item fd.num is exist - process it [17:24:27]SAM_PROTO_GetFieldsCounters [17:24:27]wFMCommunicate request_size=4 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 13 00 00 [17:24:27]Write to MH i2c: E2 08 00 BD 57 80 13 00 00 00 00 00 00 90 [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 62 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 62 00 BD 57 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 BF 00 00 0E 04 04 00 F5 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 3E [17:24:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:24:27]wFMCommunicate OK [17:24:27]SAM_PROTO_GetFieldsCounters done [17:24:27]requested_item shift.num is exist - process it [17:24:27]requested_item shift.opened is exist - process it [17:24:27]req_shift_opened [17:24:27]FM_GetShiftState [17:24:27]SAM_PROTO_GetShiftState [17:24:27]wFMCommunicate request_size=4 [17:24:27]MH_SAM_APDU [17:24:27]CAPDU: 80 13 01 00 [17:24:27]Write to MH i2c: E2 08 00 BE 57 80 13 01 00 00 00 00 00 92 [17:24:27]Write i2c OK [17:24:27]MH_I2C_Read... [17:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:27]Read from MH i2c: E2 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 0E 00 [17:24:27]MH_I2C_Read... [17:24:27]Read from MH i2c: E2 0E 00 BE 57 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 04 [17:24:27]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:24:27]wFMCommunicate OK [17:24:27]SAM_PROTO_GetShiftState done [17:24:27]FM_GetShiftState done [17:24:27]req_shift_opened done [17:24:27]requested_item shift.open_date is exist - process it [17:24:27]req_shift_open_date [17:24:27]req_shift_open_date done [17:24:27]produce_requested_data done [17:24:27]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49107,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [17:24:27]process_action_free close_receipt [17:24:27]json_value_free [17:24:27]json_value_free done [17:24:27]process_json_proto returns [17:24:27]Send response to host [17:24:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49107,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [17:24:27]free response buf [17:24:27]execute_script done [17:24:27]execute_script returns [17:24:27]free content buf [17:24:27]Sock 9.Close socket [17:24:27]Sock 9.Thread stoped [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:46]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:21]OFD Sender: No OFD packet to send [17:26:26]OFD Sender: No OFD packet to send [17:26:31]OFD Sender: No OFD packet to send [17:26:36]OFD Sender: No OFD packet to send [17:26:41]OFD Sender: No OFD packet to send [17:26:46]OFD Sender: No OFD packet to send [17:26:51]OFD Sender: No OFD packet to send [17:26:56]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:05]accept exits with 7 [17:28:05]New connection [17:28:05]New thread 3066670436 created [17:28:05]Thread 3066813796 joined [17:28:05]Waiting for new connection... [17:28:05] Sock 7.Parse request [17:28:05]Sock 7.Check first char [17:28:05]Sock 7.First char is OK [17:28:05]request: POST /json_proto HTTP/1.0 [17:28:05]Method: POST [17:28:05]URL: /json_proto [17:28:05]Method is POST - this is cgi request [17:28:05]url: /json_proto [17:28:05]query_string will be loaded in cgi processing [17:28:05]execute_cgi json_proto POST (null) [17:28:05]execute_cgi path=json_proto method=POST [17:28:05]POST find Content-Length [17:28:05]Host: 172.17.56.67:8080 [17:28:05]Content-Length: 678 [17:28:05]Content-Type: application/json [17:28:05] [17:28:05]POST finish read [17:28:05]Found Content-Length = 678 [17:28:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216209", "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" : 13.270, "sum" : 800.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:05]execute_script... [17:28: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)216209", "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" : 13.270, "sum" : 800.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:05]POST & json_proto [17:28:05]process_json_proto [17:28:05]json parsed OK: [17:28:05]protocol is kg_v1.0 [17:28:05]action value=close_receipt [17:28:05]process_action close_receipt [17:28:05]cmd_close_receipt [17:28:05]MH_GetDate [17:28:05]Write to MH i2c: F0 00 00 BF 57 05 [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: F0 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: F0 09 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: F0 09 00 BF 57 00 34 E0 B7 65 26 5D 9E 65 C4 [17:28:05]GetLastDocTimeStamp 1706549078 [17:28:05]current date 1706549300 [17:28:05]FM_GetShiftState [17:28:05]SAM_PROTO_GetShiftState [17:28:05]wFMCommunicate request_size=4 [17:28:05]MH_SAM_APDU [17:28:05]CAPDU: 80 13 01 00 [17:28:05]Write to MH i2c: E2 08 00 C0 57 80 13 01 00 00 00 00 00 94 [17:28:05]Write i2c OK [17:28:05]MH_I2C_Read... [17:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:05]Read from MH i2c: E2 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 0E 00 [17:28:05]MH_I2C_Read... [17:28:05]Read from MH i2c: E2 0E 00 C0 57 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 06 [17:28:05]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:28:05]wFMCommunicate OK [17:28:05]SAM_PROTO_GetShiftState done [17:28:05]FM_GetShiftState done [17:28:05]opened in 1706486624 [17:28:05]opened+sec_in_day 1706573024 [17:28:05]quantity*price = 80018 [17:28:05]sum+1 = 80019 [17:28:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.18 ИТОГО: 800.00 ВнеÑено: 800.00 СДÐЧÐ: 0.00 ÐСП 1% : 7.08 ÐДС 12% : 84.97 Ðаличными: 800.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 91 29.01.2024 17:28 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49108 ФПД: 77982323765372 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T172820&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49108&fm=77982323765372&tin=02508201610067®Number=0000000000092723&sum=80000 [17:28:06]StoreToDocumentArchive [17:28:06]shift 245 fd 49108 [17:28:06]save to /storage/0245/doc_00049108 [17:28:06]save last doc name /storage/0245/doc_00049108 to /storage/kkm_last_doc_name [17:28:06]save OK [17:28:06]Clear old archive folders... [17:28:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:06]tlvbuf is 012103E0 [17:28:06]SAM_PROTO_ClearQueue [17:28:06]wFMCommunicate request_size=4 [17:28:06]MH_SAM_APDU [17:28:06]CAPDU: 80 09 00 00 [17:28:06]Write to MH i2c: E2 08 00 CD 57 80 09 00 00 00 00 00 00 96 [17:28:06]Write i2c OK [17:28:06]MH_I2C_Read... [17:28:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:06]Read from MH i2c: E2 [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: E2 03 00 [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: E2 03 00 CD 57 00 90 00 98 [17:28:06]RAPDU: 90 00 [17:28:06]wFMCommunicate OK [17:28:06]SAM_PROTO_ClearQueue done [17:28:06]KKMCreateOFDPacket [17:28:06]OFDProtocolAddRootSTLVToBuf [17:28:06]FM_MakeSignedData [17:28:06]FM_MakeSignedData [17:28:06]SAM_PROTO_SignData [17:28:06]wFMCommunicate request_size=4 [17:28:06]MH_SAM_APDU [17:28:06]CAPDU: 80 0D 01 02 [17:28:06]Write to MH i2c: E2 08 00 CE 57 80 0D 01 02 00 00 00 00 9E [17:28:06]Write i2c OK [17:28:06]MH_I2C_Read... [17:28:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:06]Read from MH i2c: E2 [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: E2 03 00 [17:28:06]MH_I2C_Read... [17:28:06]Read from MH i2c: E2 03 00 CE 57 00 90 00 99 [17:28:06]RAPDU: 90 00 [17:28:06]wFMCommunicate OK [17:28:06]wFMCommunicate request_size=255 [17:28:06]MH_SAM_APDU [17:28: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 D6 33 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 92 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 34 E0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 46 [17:28:06]Write to MH i2c: E2 02 01 CF 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D6 33 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 92 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 34 E0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 46 00 00 FC [17:28:06]Write i2c OK [17:28:06]MH_I2C_Read... [17:28:07]OFD Sender: No OFD packet to send [17:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:07]Read from MH i2c: E2 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: E2 03 00 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: E2 03 00 CF 57 00 90 00 9A [17:28:07]RAPDU: 90 00 [17:28:07]wFMCommunicate OK [17:28:07]wFMCommunicate request_size=10 [17:28:07]MH_SAM_APDU [17:28:07]CAPDU: 80 0D 02 02 05 EC AC B4 F0 7C [17:28:07]Write to MH i2c: E2 0D 00 D0 57 80 0D 02 02 05 00 EC AC B4 F0 7C 00 00 63 [17:28:07]Write i2c OK [17:28:07]MH_I2C_Read... [17:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:07]Read from MH i2c: E2 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: E2 03 00 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: E2 03 00 D0 57 00 90 00 9B [17:28:07]RAPDU: 90 00 [17:28:07]wFMCommunicate OK [17:28:07]wFMCommunicate request_size=4 [17:28:07]MH_SAM_APDU [17:28:07]CAPDU: 80 0D 03 02 [17:28:07]Write to MH i2c: E2 08 00 D1 57 80 0D 03 02 00 00 00 00 A3 [17:28:07]Write i2c OK [17:28:07]MH_I2C_Read... [17:28:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:07]Read from MH i2c: E2 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: E2 0B 00 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: E2 0B 00 D1 57 00 DC 19 D3 CD 4F C2 24 1D 90 00 8B [17:28:07]RAPDU: DC 19 D3 CD 4F C2 24 1D 90 00 [17:28:07]wFMCommunicate OK [17:28:07]SAM_PROTO_SignData done [17:28:07]FM_MakeSignedData done [17:28:07]CreateOFDProtocolMessage [17:28:07]wFMCommunicate request_size=4 [17:28:07]MH_SAM_APDU [17:28:07]CAPDU: 80 11 00 00 [17:28:07]Write to MH i2c: E2 08 00 D2 57 80 11 00 00 00 00 00 00 A3 [17:28:07]Write i2c OK [17:28:07]MH_I2C_Read... [17:28:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:07]Read from MH i2c: E2 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: E2 17 00 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: E2 17 00 D2 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 F0 [17:28:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:28:07]wFMCommunicate OK [17:28:07]CreateOFDProtocolMessage done [17:28:07]OFDSenderStorePacket 49108 [17:28:07]StoreOFDPacket docnum=49108 [17:28: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 6B 26 07 01 E3 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 D6 33 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 92 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 34 E0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 46 EC AC B4 F0 7C DC 19 D3 CD 4F C2 24 1D [17:28:07]CheckFolder [17:28:07]dirname=/storage/ofd_packets [17:28:07]CheckFolder done [17:28:07]ProducePacketName [17:28:07]name=ofd_packets/00049108 [17:28:07]NVStorageSaveData ofd_packets/00049108 [17:28:07]File name is /storage/ofd_packets/00049108 [17:28:07]Write 301 bytes [17:28:07]NVStorageSaveData done [17:28:07]OFDSenderStorePacket done [17:28:07]KKMCreateOFDPacket done [17:28:07]NVStorageSaveData kkm_last_timestamp [17:28:07]File name is /storage/kkm_last_timestamp [17:28:07]Write 4 bytes [17:28:07]NVStorageSaveData done [17:28:07]ExternCall_PrintAddStr [17:28:07]wPrintStart [17:28:07]Write to MH i2c: 01 00 00 D3 57 2A [17:28:07]Write i2c OK [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: 01 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: 01 07 00 [17:28:07]MH_I2C_Read... [17:28:07]Read from MH i2c: 01 07 00 D3 57 00 00 00 00 00 FF 0F 3F [17:28:07]RasterBufferAndPrint [17:28:07]line Счет N : (1)216209 [17:28:07]line ИÐÐ: 02508201610067 [17:28:07]line Контрольно-КаÑÑовый Чек [17:28:07]line ПРОДÐЖР[17:28:07]line ТРК (МРК, ГÐК) : 22 [17:28:07]line Товар: 2710124130 [17:28:07]line Ðи-92-К-5 [17:28:07]line 13.270 * 60.30 [17:28:07]line = 800.18 [17:28:07]line ÐДС 12% ÐСП 1% [17:28:07]line > о реализуемом товаре [17:28:07]line ОКРУГЛЕÐИЕ: -0.18 [17:28:07]line ИТОГО: 800.00 [17:28:07]line ВнеÑено: 800.00 [17:28:07]line СДÐЧÐ: 0.00 [17:28:07]line ÐСП 1% : 7.08 [17:28:07]line ÐДС 12% : 84.97 [17:28:07]line Ðаличными: 800.00 [17:28:07]line Безнал.: 0.00 [17:28:07]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [17:28:07]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:28:07]line СÐО: Общий режим [17:28:07]line Чек 91 29.01.2024 17:28 [17:28:07]line Смена: 245 ФФД: 1.0 [17:28:07]line ЗÐМ: 0300000040 [17:28:07]line РÐМ: 0000000000092723 [17:28:07]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:28:07]line ФМ: 0000000000875060 [17:28:07]line ФД: 49108 [17:28:07]line ФПД: 77982323765372 [17:28:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T172820&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49108&fm=77982323765372&tin=02508201610067®Number=0000000000092723&sum=80000 [17:28:07]OFD Sender: Processing packet 49108 [packets to send 12, broken 11] [17:28:07]ProducePacketName [17:28:07]name=ofd_packets/00049108 [17:28:07]OFD Sender: To server: ‡•öpG, [17:28:07]CommunicateWithHost lk.salyk.kg:30040 [17:28:07]ConnectInit lk.salyk.kg [17:28:07]written 0, free lines is 4095 [17:28:07]Connected sock=10 [17:28: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 6B 26 07 01 E3 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 D6 33 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 92 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 34 E0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 46 EC AC B4 F0 7C DC 19 D3 CD 4F C2 24 1D [17:28: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 8D 48 47 00 12 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D4 BF 00 00 F4 03 04 00 2C 8C B7 65 B6 04 01 00 00 6F DD 39 45 CC 5D 94 4C [17:28:08]CommunicateWithHost err = 0 [17:28:08]CheckOFDResponse [17:28:08]1017 (14) - 77093643461234 [17:28:08]1041 (16) - 0000000000875060 [17:28:08]1040 (4) - 49108 [17:28:08]1012 (4) - 29.01.2024 11:29 [17:28:08]1206 (1) - 0 [17:28:08]OFD Sender: Remove packet 49108 [17:28:08]ProducePacketName [17:28:08]name=ofd_packets/00049108 [17:28:08]NVStorageDeleteData [17:28:08]Write to MH i2c: 01 00 00 FE 57 55 [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: 01 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: 01 07 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: 01 07 00 FE 57 00 00 00 00 00 F1 0C 59 [17:28:08]RasterBufferAndPrint [17:28:08]line [17:28:08]line [17:28:08]line [17:28:08]line [17:28:08]line [17:28:08]written 0, free lines is 3319 [17:28:08]MH_Cut [17:28:08]Write to MH i2c: D1 01 00 05 58 01 2F [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: D1 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: D1 01 00 [17:28:08]MH_I2C_Read... [17:28:08]Read from MH i2c: D1 01 00 05 58 00 2E [17:28:08]Write to MH i2c: 01 00 00 06 58 5E [17:28:08]Write i2c OK [17:28:08]MH_I2C_Read... [17:28:08]OFD Sender: No OFD packet to send [17:28:08]*** Cut start [17:28:08]*** Partial cut [17:28:08]*** CUTSNS_PIN = 1 [17:28:08]*** CUTSNS_PIN = 0 [17:28:09]*** Brake cut motor [17:28:09]Read from MH i2c: 01 [17:28:09]MH_I2C_Read... [17:28:09]*** Stop cut motor [17:28:09]*** Cut end [17:28:09]Read from MH i2c: 01 07 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: 01 07 00 06 58 00 00 00 00 00 FF 0F 73 [17:28:09]process_action close_receipt done [17:28:09]requested_data is exist [17:28:09]produce_requested_data [17:28:09]requested_item fm.sn is exist - process it [17:28:09]wFMCommunicate request_size=4 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 11 00 00 [17:28:09]Write to MH i2c: E2 08 00 07 58 80 11 00 00 00 00 00 00 D9 [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 17 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 17 00 07 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 26 [17:28:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:28:09]wFMCommunicate OK [17:28:09]requested_item fd.num is exist - process it [17:28:09]SAM_PROTO_GetFieldsCounters [17:28:09]wFMCommunicate request_size=4 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 13 00 00 [17:28:09]Write to MH i2c: E2 08 00 08 58 80 13 00 00 00 00 00 00 DC [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 62 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 62 00 08 58 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 BF 00 00 0E 04 04 00 F5 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 8E [17:28:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:28:09]wFMCommunicate OK [17:28:09]SAM_PROTO_GetFieldsCounters done [17:28:09]requested_item shift.num is exist - process it [17:28:09]requested_item shift.opened is exist - process it [17:28:09]req_shift_opened [17:28:09]FM_GetShiftState [17:28:09]SAM_PROTO_GetShiftState [17:28:09]wFMCommunicate request_size=4 [17:28:09]MH_SAM_APDU [17:28:09]CAPDU: 80 13 01 00 [17:28:09]Write to MH i2c: E2 08 00 09 58 80 13 01 00 00 00 00 00 DE [17:28:09]Write i2c OK [17:28:09]MH_I2C_Read... [17:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:09]Read from MH i2c: E2 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 0E 00 [17:28:09]MH_I2C_Read... [17:28:09]Read from MH i2c: E2 0E 00 09 58 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 50 [17:28:09]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:28:09]wFMCommunicate OK [17:28:09]SAM_PROTO_GetShiftState done [17:28:09]FM_GetShiftState done [17:28:09]req_shift_opened done [17:28:09]requested_item shift.open_date is exist - process it [17:28:09]req_shift_open_date [17:28:09]req_shift_open_date done [17:28:09]produce_requested_data done [17:28:09]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49108,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [17:28:09]process_action_free close_receipt [17:28:09]json_value_free [17:28:09]json_value_free done [17:28:09]process_json_proto returns [17:28:09]Send response to host [17:28:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49108,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [17:28:09]free response buf [17:28:09]execute_script done [17:28:09]execute_script returns [17:28:09]free content buf [17:28:09]Sock 7.Close socket [17:28:09]Sock 7.Thread stoped [17:28:13]accept exits with 9 [17:28:13]New connection [17:28:13]New thread 3066813796 created [17:28:13]Thread 3066670436 joined [17:28:13]Waiting for new connection... [17:28:13] Sock 9.Parse request [17:28:13]Sock 9.Check first char [17:28:13]Sock 9.First char is OK [17:28:13]request: POST /json_proto HTTP/1.0 [17:28:13]Method: POST [17:28:13]URL: /json_proto [17:28:13]Method is POST - this is cgi request [17:28:13]url: /json_proto [17:28:13]query_string will be loaded in cgi processing [17:28:13]execute_cgi json_proto POST (null) [17:28:13]execute_cgi path=json_proto method=POST [17:28:13]POST find Content-Length [17:28:13]Host: 172.17.56.67:8080 [17:28:13]Content-Length: 677 [17:28:13]Content-Type: application/json [17:28:13] [17:28:13]POST finish read [17:28:13]Found Content-Length = 677 [17:28:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216210", "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:28:13]execute_script... [17:28:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216210", "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:28:13]POST & json_proto [17:28:13]process_json_proto [17:28:13]json parsed OK: [17:28:13]protocol is kg_v1.0 [17:28:13]action value=close_receipt [17:28:13]process_action close_receipt [17:28:13]cmd_close_receipt [17:28:13]MH_GetDate [17:28:13]Write to MH i2c: F0 00 00 0A 58 51 [17:28:13]Write i2c OK [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: F0 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: F0 09 00 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: F0 09 00 0A 58 00 3B E0 B7 65 26 5D 9E 65 17 [17:28:13]GetLastDocTimeStamp 1706549300 [17:28:13]current date 1706549307 [17:28:13]FM_GetShiftState [17:28:13]SAM_PROTO_GetShiftState [17:28:13]wFMCommunicate request_size=4 [17:28:13]MH_SAM_APDU [17:28:13]CAPDU: 80 13 01 00 [17:28:13]Write to MH i2c: E2 08 00 0B 58 80 13 01 00 00 00 00 00 E0 [17:28:13]Write i2c OK [17:28:13]MH_I2C_Read... [17:28:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:13]Read from MH i2c: E2 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: E2 0E 00 [17:28:13]MH_I2C_Read... [17:28:13]Read from MH i2c: E2 0E 00 0B 58 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 52 [17:28:13]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:28:13]wFMCommunicate OK [17:28:13]SAM_PROTO_GetShiftState done [17:28:13]FM_GetShiftState done [17:28:13]opened in 1706486624 [17:28:13]opened+sec_in_day 1706573024 [17:28:13]quantity*price = 40039 [17:28:13]sum+1 = 40040 [17:28:13]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 СÐО: Общий режим Чек 92 29.01.2024 17:28 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49109 ФПД: 262013382596711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T172827&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49109&fm=262013382596711&tin=02508201610067®Number=0000000000092723&sum=40000 [17:28:14]StoreToDocumentArchive [17:28:14]shift 245 fd 49109 [17:28:14]save to /storage/0245/doc_00049109 [17:28:14]save last doc name /storage/0245/doc_00049109 to /storage/kkm_last_doc_name [17:28:14]save OK [17:28:14]Clear old archive folders... [17:28:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:14]tlvbuf is 013D70F0 [17:28:14]SAM_PROTO_ClearQueue [17:28:14]wFMCommunicate request_size=4 [17:28:14]MH_SAM_APDU [17:28:14]CAPDU: 80 09 00 00 [17:28:14]Write to MH i2c: E2 08 00 18 58 80 09 00 00 00 00 00 00 E2 [17:28:14]Write i2c OK [17:28:14]MH_I2C_Read... [17:28:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:14]Read from MH i2c: E2 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 03 00 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 03 00 18 58 00 90 00 E4 [17:28:14]RAPDU: 90 00 [17:28:14]wFMCommunicate OK [17:28:14]SAM_PROTO_ClearQueue done [17:28:14]KKMCreateOFDPacket [17:28:14]OFDProtocolAddRootSTLVToBuf [17:28:14]FM_MakeSignedData [17:28:14]FM_MakeSignedData [17:28:14]SAM_PROTO_SignData [17:28:14]wFMCommunicate request_size=4 [17:28:14]MH_SAM_APDU [17:28:14]CAPDU: 80 0D 01 02 [17:28:14]Write to MH i2c: E2 08 00 19 58 80 0D 01 02 00 00 00 00 EA [17:28:14]Write i2c OK [17:28:14]MH_I2C_Read... [17:28:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:14]Read from MH i2c: E2 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 03 00 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 03 00 19 58 00 90 00 E5 [17:28:14]RAPDU: 90 00 [17:28:14]wFMCommunicate OK [17:28:14]wFMCommunicate request_size=255 [17:28:14]MH_SAM_APDU [17:28:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5C 00 00 00 F4 03 04 00 3B E0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 EE [17:28:14]Write to MH i2c: E2 02 01 1A 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5C 00 00 00 F4 03 04 00 3B E0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 EE 00 00 6E [17:28:14]Write i2c OK [17:28:14]MH_I2C_Read... [17:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:14]Read from MH i2c: E2 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 03 00 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 03 00 1A 58 00 90 00 E6 [17:28:14]RAPDU: 90 00 [17:28:14]wFMCommunicate OK [17:28:14]wFMCommunicate request_size=10 [17:28:14]MH_SAM_APDU [17:28:14]CAPDU: 80 0D 02 02 05 4C BE 98 98 67 [17:28:14]Write to MH i2c: E2 0D 00 1B 58 80 0D 02 02 05 00 4C BE 98 98 67 00 00 98 [17:28:14]Write i2c OK [17:28:14]MH_I2C_Read... [17:28:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:14]Read from MH i2c: E2 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 03 00 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 03 00 1B 58 00 90 00 E7 [17:28:14]RAPDU: 90 00 [17:28:14]wFMCommunicate OK [17:28:14]wFMCommunicate request_size=4 [17:28:14]MH_SAM_APDU [17:28:14]CAPDU: 80 0D 03 02 [17:28:14]Write to MH i2c: E2 08 00 1C 58 80 0D 03 02 00 00 00 00 EF [17:28:14]Write i2c OK [17:28:14]MH_I2C_Read... [17:28:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:14]Read from MH i2c: E2 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 0B 00 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 0B 00 1C 58 00 65 E5 EA 1A 3D 15 93 6D 90 00 90 [17:28:14]RAPDU: 65 E5 EA 1A 3D 15 93 6D 90 00 [17:28:14]wFMCommunicate OK [17:28:14]SAM_PROTO_SignData done [17:28:14]FM_MakeSignedData done [17:28:14]CreateOFDProtocolMessage [17:28:14]wFMCommunicate request_size=4 [17:28:14]MH_SAM_APDU [17:28:14]CAPDU: 80 11 00 00 [17:28:14]Write to MH i2c: E2 08 00 1D 58 80 11 00 00 00 00 00 00 EF [17:28:14]Write i2c OK [17:28:14]MH_I2C_Read... [17:28:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:14]Read from MH i2c: E2 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 17 00 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: E2 17 00 1D 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3C [17:28: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:28:14]wFMCommunicate OK [17:28:14]CreateOFDProtocolMessage done [17:28:14]OFDSenderStorePacket 49109 [17:28:14]StoreOFDPacket docnum=49109 [17:28: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 0F 01 00 00 40 EF 07 01 E8 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 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 5C 00 00 00 F4 03 04 00 3B E0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 EE 4C BE 98 98 67 65 E5 EA 1A 3D 15 93 6D [17:28:14]CheckFolder [17:28:14]dirname=/storage/ofd_packets [17:28:14]CheckFolder done [17:28:14]ProducePacketName [17:28:14]name=ofd_packets/00049109 [17:28:14]NVStorageSaveData ofd_packets/00049109 [17:28:14]File name is /storage/ofd_packets/00049109 [17:28:14]Write 301 bytes [17:28:14]NVStorageSaveData done [17:28:14]OFDSenderStorePacket done [17:28:14]KKMCreateOFDPacket done [17:28:14]NVStorageSaveData kkm_last_timestamp [17:28:14]File name is /storage/kkm_last_timestamp [17:28:14]Write 4 bytes [17:28:14]NVStorageSaveData done [17:28:14]ExternCall_PrintAddStr [17:28:14]wPrintStart [17:28:14]Write to MH i2c: 01 00 00 1E 58 76 [17:28:14]Write i2c OK [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: 01 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: 01 07 00 [17:28:14]MH_I2C_Read... [17:28:14]Read from MH i2c: 01 07 00 1E 58 00 00 00 00 00 FF 0F 8B [17:28:14]RasterBufferAndPrint [17:28:14]line Счет N : (1)216210 [17:28:14]line ИÐÐ: 02508201610067 [17:28:14]line Контрольно-КаÑÑовый Чек [17:28:14]line ПРОДÐЖР[17:28:14]line ТРК (МРК, ГÐК) : 12 [17:28:14]line Товар: 2710124130 [17:28:14]line Ðи-92-К-5 [17:28:14]line 6.640 * 60.30 [17:28:14]line = 400.39 [17:28:14]line ÐДС 12% ÐСП 1% [17:28:14]line > о реализуемом товаре [17:28:14]line ОКРУГЛЕÐИЕ: -0.39 [17:28:14]line ИТОГО: 400.00 [17:28:14]line ВнеÑено: 400.00 [17:28:14]line СДÐЧÐ: 0.00 [17:28:14]line ÐСП 1% : 3.54 [17:28:14]line ÐДС 12% : 42.52 [17:28:14]line Ðаличными: 400.00 [17:28:14]line Безнал.: 0.00 [17:28:14]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [17:28:14]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:28:14]line СÐО: Общий режим [17:28:14]line Чек 92 29.01.2024 17:28 [17:28:14]line Смена: 245 ФФД: 1.0 [17:28:14]line ЗÐМ: 0300000040 [17:28:14]line РÐМ: 0000000000092723 [17:28:14]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:28:14]line ФМ: 0000000000875060 [17:28:14]line ФД: 49109 [17:28:14]line ФПД: 262013382596711 [17:28:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T172827&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49109&fm=262013382596711&tin=02508201610067®Number=0000000000092723&sum=40000 [17:28:14]written 0, free lines is 4095 [17:28:14]OFD Sender: Processing packet 49109 [packets to send 12, broken 11] [17:28:14]ProducePacketName [17:28:14]name=ofd_packets/00049109 [17:28:14]OFD Sender: To server: ‡•öpG, [17:28:14]CommunicateWithHost lk.salyk.kg:30040 [17:28:14]ConnectInit lk.salyk.kg [17:28:14]Connected sock=10 [17:28:14]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 40 EF 07 01 E8 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 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 5C 00 00 00 F4 03 04 00 3B E0 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 EE 4C BE 98 98 67 65 E5 EA 1A 3D 15 93 6D [17:28: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 51 68 47 00 01 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D5 BF 00 00 F4 03 04 00 33 8C B7 65 B6 04 01 00 00 98 13 7E 97 F6 4A B1 82 [17:28:15]CommunicateWithHost err = 0 [17:28:15]CheckOFDResponse [17:28:15]1017 (14) - 77093643461234 [17:28:15]1041 (16) - 0000000000875060 [17:28:15]1040 (4) - 49109 [17:28:15]1012 (4) - 29.01.2024 11:29 [17:28:15]1206 (1) - 0 [17:28:15]OFD Sender: Remove packet 49109 [17:28:15]ProducePacketName [17:28:15]name=ofd_packets/00049109 [17:28:15]NVStorageDeleteData [17:28:15]Write to MH i2c: 01 00 00 49 58 A1 [17:28:15]Write i2c OK [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: 01 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: 01 07 00 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: 01 07 00 49 58 00 00 00 00 00 F6 0C AA [17:28:15]RasterBufferAndPrint [17:28:15]line [17:28:15]line [17:28:15]line [17:28:15]line [17:28:15]line [17:28:15]written 0, free lines is 3330 [17:28:15]MH_Cut [17:28:15]Write to MH i2c: D1 01 00 50 58 01 7A [17:28:15]Write i2c OK [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: D1 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: D1 01 00 [17:28:15]MH_I2C_Read... [17:28:15]Read from MH i2c: D1 01 00 50 58 00 79 [17:28:15]Write to MH i2c: 01 00 00 51 58 A9 [17:28:15]Write i2c OK [17:28:15]MH_I2C_Read... [17:28:15]OFD Sender: No OFD packet to send [17:28:15]*** Cut start [17:28:15]*** Partial cut [17:28:15]*** CUTSNS_PIN = 1 [17:28:15]*** CUTSNS_PIN = 0 [17:28:16]*** Brake cut motor [17:28:16]Read from MH i2c: 01 [17:28:16]MH_I2C_Read... [17:28:16]*** Stop cut motor [17:28:16]*** Cut end [17:28:16]Read from MH i2c: 01 07 00 [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: 01 07 00 51 58 00 00 00 00 00 FF 0F BE [17:28:16]process_action close_receipt done [17:28:16]requested_data is exist [17:28:16]produce_requested_data [17:28:16]requested_item fm.sn is exist - process it [17:28:16]wFMCommunicate request_size=4 [17:28:16]MH_SAM_APDU [17:28:16]CAPDU: 80 11 00 00 [17:28:16]Write to MH i2c: E2 08 00 52 58 80 11 00 00 00 00 00 00 24 [17:28:16]Write i2c OK [17:28:16]MH_I2C_Read... [17:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:16]Read from MH i2c: E2 [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: E2 17 00 [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: E2 17 00 52 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 71 [17:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:28:16]wFMCommunicate OK [17:28:16]requested_item fd.num is exist - process it [17:28:16]SAM_PROTO_GetFieldsCounters [17:28:16]wFMCommunicate request_size=4 [17:28:16]MH_SAM_APDU [17:28:16]CAPDU: 80 13 00 00 [17:28:16]Write to MH i2c: E2 08 00 53 58 80 13 00 00 00 00 00 00 27 [17:28:16]Write i2c OK [17:28:16]MH_I2C_Read... [17:28:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:16]Read from MH i2c: E2 [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: E2 62 00 [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: E2 62 00 53 58 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 BF 00 00 0E 04 04 00 F5 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 DD [17:28:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:28:16]wFMCommunicate OK [17:28:16]SAM_PROTO_GetFieldsCounters done [17:28:16]requested_item shift.num is exist - process it [17:28:16]requested_item shift.opened is exist - process it [17:28:16]req_shift_opened [17:28:16]FM_GetShiftState [17:28:16]SAM_PROTO_GetShiftState [17:28:16]wFMCommunicate request_size=4 [17:28:16]MH_SAM_APDU [17:28:16]CAPDU: 80 13 01 00 [17:28:16]Write to MH i2c: E2 08 00 54 58 80 13 01 00 00 00 00 00 29 [17:28:16]Write i2c OK [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: E2 [17:28:16]MH_I2C_Read... [17:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:16]Read from MH i2c: E2 0E 00 [17:28:16]MH_I2C_Read... [17:28:16]Read from MH i2c: E2 0E 00 54 58 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 9B [17:28:16]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:28:16]wFMCommunicate OK [17:28:16]SAM_PROTO_GetShiftState done [17:28:16]FM_GetShiftState done [17:28:16]req_shift_opened done [17:28:16]requested_item shift.open_date is exist - process it [17:28:16]req_shift_open_date [17:28:16]req_shift_open_date done [17:28:16]produce_requested_data done [17:28:16]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49109,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [17:28:16]process_action_free close_receipt [17:28:16]json_value_free [17:28:16]json_value_free done [17:28:16]process_json_proto returns [17:28:16]Send response to host [17:28:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49109,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [17:28:16]free response buf [17:28:16]execute_script done [17:28:16]execute_script returns [17:28:16]free content buf [17:28:16]Sock 9.Close socket [17:28:16]Sock 9.Thread stoped [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:35]OFD Sender: No OFD packet to send [17:29:40]OFD Sender: No OFD packet to send [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:44]accept exits with 7 [17:31:44]New connection [17:31:44]New thread 3066670436 created [17:31:44]Thread 3066813796 joined [17:31:44]Waiting for new connection... [17:31:44] Sock 7.Parse request [17:31:44]Sock 7.Check first char [17:31:44]Sock 7.First char is OK [17:31:44]request: POST /json_proto HTTP/1.0 [17:31:44]Method: POST [17:31:44]URL: /json_proto [17:31:44]Method is POST - this is cgi request [17:31:44]url: /json_proto [17:31:44]query_string will be loaded in cgi processing [17:31:44]execute_cgi json_proto POST (null) [17:31:44]execute_cgi path=json_proto method=POST [17:31:44]POST find Content-Length [17:31:44]Host: 172.17.56.67:8080 [17:31:44]Content-Length: 677 [17:31:44]Content-Type: application/json [17:31:44] [17:31:44]POST finish read [17:31:44]Found Content-Length = 677 [17:31:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216211", "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:31:44]execute_script... [17:31: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)216211", "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:31:44]POST & json_proto [17:31:44]process_json_proto [17:31:44]json parsed OK: [17:31:44]protocol is kg_v1.0 [17:31:44]action value=close_receipt [17:31:44]process_action close_receipt [17:31:44]cmd_close_receipt [17:31:44]MH_GetDate [17:31:44]Write to MH i2c: F0 00 00 55 58 9C [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: F0 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: F0 09 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: F0 09 00 55 58 00 0F E1 B7 65 26 5D 9E 65 37 [17:31:44]GetLastDocTimeStamp 1706549307 [17:31:44]current date 1706549519 [17:31:44]FM_GetShiftState [17:31:44]SAM_PROTO_GetShiftState [17:31:44]wFMCommunicate request_size=4 [17:31:44]MH_SAM_APDU [17:31:44]CAPDU: 80 13 01 00 [17:31:44]Write to MH i2c: E2 08 00 56 58 80 13 01 00 00 00 00 00 2B [17:31:44]Write i2c OK [17:31:44]MH_I2C_Read... [17:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:44]Read from MH i2c: E2 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 0E 00 [17:31:44]MH_I2C_Read... [17:31:44]Read from MH i2c: E2 0E 00 56 58 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 9D [17:31:44]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:31:44]wFMCommunicate OK [17:31:44]SAM_PROTO_GetShiftState done [17:31:44]FM_GetShiftState done [17:31:44]opened in 1706486624 [17:31:44]opened+sec_in_day 1706573024 [17:31:44]quantity*price = 40039 [17:31:44]sum+1 = 40040 [17:31:44]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 29.01.2024 17:31 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49110 ФПД: 274179989821505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T173159&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49110&fm=274179989821505&tin=02508201610067®Number=0000000000092723&sum=40000 [17:31:46]StoreToDocumentArchive [17:31:46]shift 245 fd 49110 [17:31:46]save to /storage/0245/doc_00049110 [17:31:46]save last doc name /storage/0245/doc_00049110 to /storage/kkm_last_doc_name [17:31:46]save OK [17:31:46]Clear old archive folders... [17:31:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:31:46]tlvbuf is 01384D50 [17:31:46]SAM_PROTO_ClearQueue [17:31:46]wFMCommunicate request_size=4 [17:31:46]MH_SAM_APDU [17:31:46]CAPDU: 80 09 00 00 [17:31:46]Write to MH i2c: E2 08 00 63 58 80 09 00 00 00 00 00 00 2D [17:31:46]Write i2c OK [17:31:46]MH_I2C_Read... [17:31:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:46]Read from MH i2c: E2 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 03 00 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 03 00 63 58 00 90 00 2F [17:31:46]RAPDU: 90 00 [17:31:46]wFMCommunicate OK [17:31:46]SAM_PROTO_ClearQueue done [17:31:46]KKMCreateOFDPacket [17:31:46]OFDProtocolAddRootSTLVToBuf [17:31:46]FM_MakeSignedData [17:31:46]FM_MakeSignedData [17:31:46]SAM_PROTO_SignData [17:31:46]wFMCommunicate request_size=4 [17:31:46]MH_SAM_APDU [17:31:46]CAPDU: 80 0D 01 02 [17:31:46]Write to MH i2c: E2 08 00 64 58 80 0D 01 02 00 00 00 00 35 [17:31:46]Write i2c OK [17:31:46]MH_I2C_Read... [17:31:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:46]Read from MH i2c: E2 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 03 00 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 03 00 64 58 00 90 00 30 [17:31:46]RAPDU: 90 00 [17:31:46]wFMCommunicate OK [17:31:46]wFMCommunicate request_size=255 [17:31:46]MH_SAM_APDU [17:31:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 0F E1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 F9 [17:31:46]Write to MH i2c: E2 02 01 65 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0F E1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 F9 00 00 9B [17:31:46]Write i2c OK [17:31:46]MH_I2C_Read... [17:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:46]Read from MH i2c: E2 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 03 00 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 03 00 65 58 00 90 00 31 [17:31:46]RAPDU: 90 00 [17:31:46]wFMCommunicate OK [17:31:46]wFMCommunicate request_size=10 [17:31:46]MH_SAM_APDU [17:31:46]CAPDU: 80 0D 02 02 05 5D 80 E5 D8 41 [17:31:46]Write to MH i2c: E2 0D 00 66 58 80 0D 02 02 05 00 5D 80 E5 D8 41 00 00 1D [17:31:46]Write i2c OK [17:31:46]MH_I2C_Read... [17:31:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:46]Read from MH i2c: E2 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 03 00 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 03 00 66 58 00 90 00 32 [17:31:46]RAPDU: 90 00 [17:31:46]wFMCommunicate OK [17:31:46]wFMCommunicate request_size=4 [17:31:46]MH_SAM_APDU [17:31:46]CAPDU: 80 0D 03 02 [17:31:46]Write to MH i2c: E2 08 00 67 58 80 0D 03 02 00 00 00 00 3A [17:31:46]Write i2c OK [17:31:46]MH_I2C_Read... [17:31:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:46]Read from MH i2c: E2 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 0B 00 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 0B 00 67 58 00 B7 70 CF DE F1 8C D8 61 90 00 C5 [17:31:46]RAPDU: B7 70 CF DE F1 8C D8 61 90 00 [17:31:46]wFMCommunicate OK [17:31:46]SAM_PROTO_SignData done [17:31:46]FM_MakeSignedData done [17:31:46]CreateOFDProtocolMessage [17:31:46]wFMCommunicate request_size=4 [17:31:46]MH_SAM_APDU [17:31:46]CAPDU: 80 11 00 00 [17:31:46]Write to MH i2c: E2 08 00 68 58 80 11 00 00 00 00 00 00 3A [17:31:46]Write i2c OK [17:31:46]MH_I2C_Read... [17:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:46]Read from MH i2c: E2 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 17 00 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: E2 17 00 68 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 87 [17:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:31:46]wFMCommunicate OK [17:31:46]CreateOFDProtocolMessage done [17:31:46]OFDSenderStorePacket 49110 [17:31:46]StoreOFDPacket docnum=49110 [17:31:46]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 5A 07 01 D3 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0F E1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 F9 5D 80 E5 D8 41 B7 70 CF DE F1 8C D8 61 [17:31:46]CheckFolder [17:31:46]dirname=/storage/ofd_packets [17:31:46]CheckFolder done [17:31:46]ProducePacketName [17:31:46]name=ofd_packets/00049110 [17:31:46]NVStorageSaveData ofd_packets/00049110 [17:31:46]File name is /storage/ofd_packets/00049110 [17:31:46]Write 301 bytes [17:31:46]NVStorageSaveData done [17:31:46]OFDSenderStorePacket done [17:31:46]KKMCreateOFDPacket done [17:31:46]NVStorageSaveData kkm_last_timestamp [17:31:46]File name is /storage/kkm_last_timestamp [17:31:46]Write 4 bytes [17:31:46]NVStorageSaveData done [17:31:46]ExternCall_PrintAddStr [17:31:46]wPrintStart [17:31:46]Write to MH i2c: 01 00 00 69 58 C1 [17:31:46]Write i2c OK [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: 01 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: 01 07 00 [17:31:46]MH_I2C_Read... [17:31:46]Read from MH i2c: 01 07 00 69 58 00 00 00 00 00 FF 0F D6 [17:31:46]RasterBufferAndPrint [17:31:46]line Счет N : (1)216211 [17:31:46]line ИÐÐ: 02508201610067 [17:31:46]line Контрольно-КаÑÑовый Чек [17:31:46]line ПРОДÐЖР[17:31:46]line ТРК (МРК, ГÐК) : 22 [17:31:46]line Товар: 2710124130 [17:31:46]line Ðи-92-К-5 [17:31:46]line 6.640 * 60.30 [17:31:46]line = 400.39 [17:31:46]line ÐДС 12% ÐСП 1% [17:31:46]line > о реализуемом товаре [17:31:46]line ОКРУГЛЕÐИЕ: -0.39 [17:31:46]line ИТОГО: 400.00 [17:31:46]line ВнеÑено: 400.00 [17:31:46]line СДÐЧÐ: 0.00 [17:31:46]line ÐСП 1% : 3.54 [17:31:46]line ÐДС 12% : 42.52 [17:31:46]line Ðаличными: 400.00 [17:31:46]line Безнал.: 0.00 [17:31:46]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [17:31:46]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:31:46]line СÐО: Общий режим [17:31:46]line Чек 93 29.01.2024 17:31 [17:31:46]line Смена: 245 ФФД: 1.0 [17:31:46]line ЗÐМ: 0300000040 [17:31:46]line РÐМ: 0000000000092723 [17:31:46]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:31:46]line ФМ: 0000000000875060 [17:31:46]line ФД: 49110 [17:31:46]line ФПД: 274179989821505 [17:31:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T173159&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49110&fm=274179989821505&tin=02508201610067®Number=0000000000092723&sum=40000 [17:31:46]OFD Sender: Processing packet 49110 [packets to send 12, broken 11] [17:31:46]ProducePacketName [17:31:46]name=ofd_packets/00049110 [17:31:46]OFD Sender: To server: ‡•öpG, [17:31:46]CommunicateWithHost lk.salyk.kg:30040 [17:31:46]ConnectInit lk.salyk.kg [17:31:46]written 0, free lines is 4095 [17:31:47]Connected sock=11 [17:31:47]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 5A 07 01 D3 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 0F E1 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 F9 5D 80 E5 D8 41 B7 70 CF DE F1 8C D8 61 [17:31:47]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 E3 47 00 6D 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D6 BF 00 00 F4 03 04 00 07 8D B7 65 B6 04 01 00 00 29 CE 4D 96 CC B0 45 17 [17:31:47]CommunicateWithHost err = 0 [17:31:47]CheckOFDResponse [17:31:47]1017 (14) - 77093643461234 [17:31:47]1041 (16) - 0000000000875060 [17:31:47]1040 (4) - 49110 [17:31:47]1012 (4) - 29.01.2024 11:33 [17:31:47]1206 (1) - 0 [17:31:47]OFD Sender: Remove packet 49110 [17:31:47]ProducePacketName [17:31:47]name=ofd_packets/00049110 [17:31:47]NVStorageDeleteData [17:31:47]Write to MH i2c: 01 00 00 94 58 EC [17:31:47]Write i2c OK [17:31:47]MH_I2C_Read... [17:31:47]Read from MH i2c: 01 [17:31:47]MH_I2C_Read... [17:31:47]Read from MH i2c: 01 07 00 [17:31:47]MH_I2C_Read... [17:31:47]Read from MH i2c: 01 07 00 94 58 00 00 00 00 00 EF 0C EE [17:31:47]RasterBufferAndPrint [17:31:47]line [17:31:47]line [17:31:47]line [17:31:47]line [17:31:47]line [17:31:47]written 0, free lines is 3317 [17:31:47]MH_Cut [17:31:47]Write to MH i2c: D1 01 00 9B 58 01 C5 [17:31:47]Write i2c OK [17:31:47]MH_I2C_Read... [17:31:47]Read from MH i2c: D1 [17:31:47]MH_I2C_Read... [17:31:47]Read from MH i2c: D1 01 00 [17:31:47]MH_I2C_Read... [17:31:47]Read from MH i2c: D1 01 00 9B 58 00 C4 [17:31:47]Write to MH i2c: 01 00 00 9C 58 F4 [17:31:47]Write i2c OK [17:31:47]MH_I2C_Read... [17:31:47]OFD Sender: No OFD packet to send [17:31:48]*** Cut start [17:31:48]*** Partial cut [17:31:48]*** CUTSNS_PIN = 1 [17:31:48]*** CUTSNS_PIN = 0 [17:31:48]*** Brake cut motor [17:31:48]Read from MH i2c: 01 [17:31:48]MH_I2C_Read... [17:31:48]*** Stop cut motor [17:31:48]*** Cut end [17:31:48]Read from MH i2c: 01 07 00 [17:31:48]MH_I2C_Read... [17:31:48]Read from MH i2c: 01 07 00 9C 58 00 00 00 00 00 FF 0F 09 [17:31:48]process_action close_receipt done [17:31:48]requested_data is exist [17:31:48]produce_requested_data [17:31:48]requested_item fm.sn is exist - process it [17:31:48]wFMCommunicate request_size=4 [17:31:48]MH_SAM_APDU [17:31:48]CAPDU: 80 11 00 00 [17:31:48]Write to MH i2c: E2 08 00 9D 58 80 11 00 00 00 00 00 00 6F [17:31:48]Write i2c OK [17:31:48]MH_I2C_Read... [17:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:48]Read from MH i2c: E2 [17:31:48]MH_I2C_Read... [17:31:48]Read from MH i2c: E2 17 00 [17:31:48]MH_I2C_Read... [17:31:48]Read from MH i2c: E2 17 00 9D 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BC [17:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [17:31:48]wFMCommunicate OK [17:31:48]requested_item fd.num is exist - process it [17:31:48]SAM_PROTO_GetFieldsCounters [17:31:48]wFMCommunicate request_size=4 [17:31:48]MH_SAM_APDU [17:31:48]CAPDU: 80 13 00 00 [17:31:48]Write to MH i2c: E2 08 00 9E 58 80 13 00 00 00 00 00 00 72 [17:31:48]Write i2c OK [17:31:48]MH_I2C_Read... [17:31:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:48]Read from MH i2c: E2 [17:31:48]MH_I2C_Read... [17:31:48]Read from MH i2c: E2 62 00 [17:31:48]MH_I2C_Read... [17:31:48]Read from MH i2c: E2 62 00 9E 58 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 BF 00 00 0E 04 04 00 F5 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 2C [17:31: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 D6 BF 00 00 0E 04 04 00 F5 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:31:48]wFMCommunicate OK [17:31:48]SAM_PROTO_GetFieldsCounters done [17:31:48]requested_item shift.num is exist - process it [17:31:48]requested_item shift.opened is exist - process it [17:31:48]req_shift_opened [17:31:48]FM_GetShiftState [17:31:48]SAM_PROTO_GetShiftState [17:31:48]wFMCommunicate request_size=4 [17:31:48]MH_SAM_APDU [17:31:48]CAPDU: 80 13 01 00 [17:31:48]Write to MH i2c: E2 08 00 9F 58 80 13 01 00 00 00 00 00 74 [17:31:48]Write i2c OK [17:31:48]MH_I2C_Read... [17:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:48]Read from MH i2c: E2 [17:31:48]MH_I2C_Read... [17:31:48]Read from MH i2c: E2 0E 00 [17:31:48]MH_I2C_Read... [17:31:48]Read from MH i2c: E2 0E 00 9F 58 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 E6 [17:31:48]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:31:48]wFMCommunicate OK [17:31:48]SAM_PROTO_GetShiftState done [17:31:48]FM_GetShiftState done [17:31:48]req_shift_opened done [17:31:48]requested_item shift.open_date is exist - process it [17:31:48]req_shift_open_date [17:31:48]req_shift_open_date done [17:31:48]produce_requested_data done [17:31:48]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49110,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [17:31:48]process_action_free close_receipt [17:31:48]json_value_free [17:31:48]json_value_free done [17:31:48]process_json_proto returns [17:31:48]Send response to host [17:31:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49110,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [17:31:48]free response buf [17:31:48]execute_script done [17:31:48]execute_script returns [17:31:48]free content buf [17:31:48]Sock 7.Close socket [17:31:48]Sock 7.Thread stoped [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]OFD Sender: No OFD packet to send [17:32:22]OFD Sender: No OFD packet to send [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:22]OFD Sender: No OFD packet to send [17:34:27]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [17:35:37]OFD Sender: No OFD packet to send [17:35:42]OFD Sender: No OFD packet to send [17:35:45]accept exits with 9 [17:35:45]New connection [17:35:45]New thread 3066813796 created [17:35:45]Thread 3066670436 joined [17:35:45]Waiting for new connection... [17:35:45] Sock 9.Parse request [17:35:45]Sock 9.Check first char [17:35:45]Sock 9.First char is OK [17:35:45]request: POST /json_proto HTTP/1.0 [17:35:45]Method: POST [17:35:45]URL: /json_proto [17:35:45]Method is POST - this is cgi request [17:35:45]url: /json_proto [17:35:45]query_string will be loaded in cgi processing [17:35:45]execute_cgi json_proto POST (null) [17:35:45]execute_cgi path=json_proto method=POST [17:35:45]POST find Content-Length [17:35:45]Host: 172.17.56.67:8080 [17:35:45]Content-Length: 677 [17:35:45]Content-Type: application/json [17:35:45] [17:35:45]POST finish read [17:35:45]Found Content-Length = 677 [17:35:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216212", "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:35:45]execute_script... [17:35:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216212", "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:35:45]POST & json_proto [17:35:45]process_json_proto [17:35:45]json parsed OK: [17:35:45]protocol is kg_v1.0 [17:35:45]action value=close_receipt [17:35:45]process_action close_receipt [17:35:45]cmd_close_receipt [17:35:45]MH_GetDate [17:35:45]Write to MH i2c: F0 00 00 A0 58 E7 [17:35:45]Write i2c OK [17:35:45]MH_I2C_Read... [17:35:45]Read from MH i2c: F0 [17:35:45]MH_I2C_Read... [17:35:45]Read from MH i2c: F0 09 00 [17:35:45]MH_I2C_Read... [17:35:45]Read from MH i2c: F0 09 00 A0 58 00 00 E2 B7 65 26 5D 9E 65 74 [17:35:45]GetLastDocTimeStamp 1706549519 [17:35:45]current date 1706549760 [17:35:45]FM_GetShiftState [17:35:45]SAM_PROTO_GetShiftState [17:35:45]wFMCommunicate request_size=4 [17:35:45]MH_SAM_APDU [17:35:45]CAPDU: 80 13 01 00 [17:35:45]Write to MH i2c: E2 08 00 A1 58 80 13 01 00 00 00 00 00 76 [17:35:45]Write i2c OK [17:35:45]MH_I2C_Read... [17:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:45]Read from MH i2c: E2 [17:35:45]MH_I2C_Read... [17:35:45]Read from MH i2c: E2 0E 00 [17:35:45]MH_I2C_Read... [17:35:45]Read from MH i2c: E2 0E 00 A1 58 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 E8 [17:35:45]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:35:45]wFMCommunicate OK [17:35:45]SAM_PROTO_GetShiftState done [17:35:45]FM_GetShiftState done [17:35:45]opened in 1706486624 [17:35:45]opened+sec_in_day 1706573024 [17:35:45]quantity*price = 30029 [17:35:45]sum+1 = 30030 [17:35:45]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 СÐО: Общий режим Чек 94 29.01.2024 17:36 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49111 ФПД: 99836623542907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T173600&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49111&fm=99836623542907&tin=02508201610067®Number=0000000000092723&sum=30000 [17:35:46]StoreToDocumentArchive [17:35:46]shift 245 fd 49111 [17:35:46]save to /storage/0245/doc_00049111 [17:35:46]save last doc name /storage/0245/doc_00049111 to /storage/kkm_last_doc_name [17:35:46]save OK [17:35:46]Clear old archive folders... [17:35:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:35:46]tlvbuf is 01210C60 [17:35:46]SAM_PROTO_ClearQueue [17:35:46]wFMCommunicate request_size=4 [17:35:46]MH_SAM_APDU [17:35:46]CAPDU: 80 09 00 00 [17:35:46]Write to MH i2c: E2 08 00 AE 58 80 09 00 00 00 00 00 00 78 [17:35:46]Write i2c OK [17:35:46]MH_I2C_Read... [17:35:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:46]Read from MH i2c: E2 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: E2 03 00 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: E2 03 00 AE 58 00 90 00 7A [17:35:46]RAPDU: 90 00 [17:35:46]wFMCommunicate OK [17:35:46]SAM_PROTO_ClearQueue done [17:35:46]KKMCreateOFDPacket [17:35:46]OFDProtocolAddRootSTLVToBuf [17:35:46]FM_MakeSignedData [17:35:46]FM_MakeSignedData [17:35:46]SAM_PROTO_SignData [17:35:46]wFMCommunicate request_size=4 [17:35:46]MH_SAM_APDU [17:35:46]CAPDU: 80 0D 01 02 [17:35:46]Write to MH i2c: E2 08 00 AF 58 80 0D 01 02 00 00 00 00 80 [17:35:46]Write i2c OK [17:35:46]MH_I2C_Read... [17:35:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:46]Read from MH i2c: E2 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: E2 03 00 [17:35:46]MH_I2C_Read... [17:35:46]Read from MH i2c: E2 03 00 AF 58 00 90 00 7B [17:35:46]RAPDU: 90 00 [17:35:46]wFMCommunicate OK [17:35:46]wFMCommunicate request_size=255 [17:35:46]MH_SAM_APDU [17:35:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 5E 00 00 00 F4 03 04 00 00 E2 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5A [17:35:46]Write to MH i2c: E2 02 01 B0 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 5E 00 00 00 F4 03 04 00 00 E2 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5A 00 00 87 [17:35:46]Write i2c OK [17:35:46]MH_I2C_Read... [17:35:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:47]Read from MH i2c: E2 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 03 00 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 03 00 B0 58 00 90 00 7C [17:35:47]RAPDU: 90 00 [17:35:47]wFMCommunicate OK [17:35:47]wFMCommunicate request_size=10 [17:35:47]MH_SAM_APDU [17:35:47]CAPDU: 80 0D 02 02 05 CD 06 7B 5A 7B [17:35:47]Write to MH i2c: E2 0D 00 B1 58 80 0D 02 02 05 00 CD 06 7B 5A 7B 00 00 B0 [17:35:47]Write i2c OK [17:35:47]MH_I2C_Read... [17:35:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:47]Read from MH i2c: E2 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 03 00 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 03 00 B1 58 00 90 00 7D [17:35:47]RAPDU: 90 00 [17:35:47]wFMCommunicate OK [17:35:47]wFMCommunicate request_size=4 [17:35:47]MH_SAM_APDU [17:35:47]CAPDU: 80 0D 03 02 [17:35:47]Write to MH i2c: E2 08 00 B2 58 80 0D 03 02 00 00 00 00 85 [17:35:47]Write i2c OK [17:35:47]MH_I2C_Read... [17:35:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:47]Read from MH i2c: E2 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 0B 00 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 0B 00 B2 58 00 24 C3 E1 09 58 A3 EA 45 90 00 81 [17:35:47]RAPDU: 24 C3 E1 09 58 A3 EA 45 90 00 [17:35:47]wFMCommunicate OK [17:35:47]SAM_PROTO_SignData done [17:35:47]FM_MakeSignedData done [17:35:47]CreateOFDProtocolMessage [17:35:47]wFMCommunicate request_size=4 [17:35:47]MH_SAM_APDU [17:35:47]CAPDU: 80 11 00 00 [17:35:47]Write to MH i2c: E2 08 00 B3 58 80 11 00 00 00 00 00 00 85 [17:35:47]Write i2c OK [17:35:47]MH_I2C_Read... [17:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:47]Read from MH i2c: E2 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 17 00 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: E2 17 00 B3 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D2 [17:35: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:35:47]wFMCommunicate OK [17:35:47]CreateOFDProtocolMessage done [17:35:47]OFDSenderStorePacket 49111 [17:35:47]StoreOFDPacket docnum=49111 [17:35: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 13 0D 07 01 7B 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5E 00 00 00 F4 03 04 00 00 E2 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5A CD 06 7B 5A 7B 24 C3 E1 09 58 A3 EA 45 [17:35:47]CheckFolder [17:35:47]dirname=/storage/ofd_packets [17:35:47]CheckFolder done [17:35:47]ProducePacketName [17:35:47]name=ofd_packets/00049111 [17:35:47]NVStorageSaveData ofd_packets/00049111 [17:35:47]File name is /storage/ofd_packets/00049111 [17:35:47]Write 301 bytes [17:35:47]NVStorageSaveData done [17:35:47]OFDSenderStorePacket done [17:35:47]KKMCreateOFDPacket done [17:35:47]NVStorageSaveData kkm_last_timestamp [17:35:47]File name is /storage/kkm_last_timestamp [17:35:47]Write 4 bytes [17:35:47]NVStorageSaveData done [17:35:47]ExternCall_PrintAddStr [17:35:47]wPrintStart [17:35:47]Write to MH i2c: 01 00 00 B4 58 0C [17:35:47]Write i2c OK [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: 01 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: 01 07 00 [17:35:47]MH_I2C_Read... [17:35:47]Read from MH i2c: 01 07 00 B4 58 00 00 00 00 00 FF 0F 21 [17:35:47]RasterBufferAndPrint [17:35:47]line Счет N : (1)216212 [17:35:47]line ИÐÐ: 02508201610067 [17:35:47]line Контрольно-КаÑÑовый Чек [17:35:47]line ПРОДÐЖР[17:35:47]line ТРК (МРК, ГÐК) : 22 [17:35:47]line Товар: 2710124130 [17:35:47]line Ðи-92-К-5 [17:35:47]line 4.980 * 60.30 [17:35:47]line = 300.29 [17:35:47]line ÐДС 12% ÐСП 1% [17:35:47]line > о реализуемом товаре [17:35:47]line ОКРУГЛЕÐИЕ: -0.29 [17:35:47]line ИТОГО: 300.00 [17:35:47]line ВнеÑено: 300.00 [17:35:47]line СДÐЧÐ: 0.00 [17:35:47]line ÐСП 1% : 2.66 [17:35:47]line ÐДС 12% : 31.89 [17:35:47]line Ðаличными: 300.00 [17:35:47]line Безнал.: 0.00 [17:35:47]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [17:35:47]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [17:35:47]line СÐО: Общий режим [17:35:47]line Чек 94 29.01.2024 17:36 [17:35:47]line Смена: 245 ФФД: 1.0 [17:35:47]line ЗÐМ: 0300000040 [17:35:47]line РÐМ: 0000000000092723 [17:35:47]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [17:35:47]line ФМ: 0000000000875060 [17:35:47]line ФД: 49111 [17:35:47]line ФПД: 99836623542907 [17:35:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T173600&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49111&fm=99836623542907&tin=02508201610067®Number=0000000000092723&sum=30000 [17:35:47]OFD Sender: Processing packet 49111 [packets to send 12, broken 11] [17:35:47]ProducePacketName [17:35:47]name=ofd_packets/00049111 [17:35:47]OFD Sender: To server: ‡•öpG, [17:35:47]CommunicateWithHost lk.salyk.kg:30040 [17:35:47]ConnectInit lk.salyk.kg [17:35:47]written 0, free lines is 4095 [17:35:47]Connected sock=10 [17:35:47]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 13 0D 07 01 7B 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 5E 00 00 00 F4 03 04 00 00 E2 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5A CD 06 7B 5A 7B 24 C3 E1 09 58 A3 EA 45 [17:35:47]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 66 47 00 F6 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D7 BF 00 00 F4 03 04 00 F8 8D B7 65 B6 04 01 00 00 26 9C 69 F6 9C A1 25 E7 [17:35:47]CommunicateWithHost err = 0 [17:35:47]CheckOFDResponse [17:35:47]1017 (14) - 77093643461234 [17:35:47]1041 (16) - 0000000000875060 [17:35:47]1040 (4) - 49111 [17:35:47]1012 (4) - 29.01.2024 11:37 [17:35:47]1206 (1) - 0 [17:35:47]OFD Sender: Remove packet 49111 [17:35:47]ProducePacketName [17:35:47]name=ofd_packets/00049111 [17:35:47]NVStorageDeleteData [17:35:48]Write to MH i2c: 01 00 00 DF 58 37 [17:35:48]Write i2c OK [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: 01 [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: 01 07 00 [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: 01 07 00 DF 58 00 00 00 00 00 ED 0C 37 [17:35:48]RasterBufferAndPrint [17:35:48]line [17:35:48]line [17:35:48]line [17:35:48]line [17:35:48]line [17:35:48]written 0, free lines is 3315 [17:35:48]MH_Cut [17:35:48]Write to MH i2c: D1 01 00 E6 58 01 10 [17:35:48]Write i2c OK [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: D1 [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: D1 01 00 [17:35:48]MH_I2C_Read... [17:35:48]Read from MH i2c: D1 01 00 E6 58 00 0F [17:35:48]Write to MH i2c: 01 00 00 E7 58 3F [17:35:48]Write i2c OK [17:35:48]MH_I2C_Read... [17:35:48]OFD Sender: No OFD packet to send [17:35:48]*** Cut start [17:35:48]*** Partial cut [17:35:48]*** CUTSNS_PIN = 1 [17:35:48]*** CUTSNS_PIN = 0 [17:35:48]*** Brake cut motor [17:35:49]Read from MH i2c: 01 [17:35:49]MH_I2C_Read... [17:35:49]*** Stop cut motor [17:35:49]*** Cut end [17:35:49]Read from MH i2c: 01 07 00 [17:35:49]MH_I2C_Read... [17:35:49]Read from MH i2c: 01 07 00 E7 58 00 00 00 00 00 FF 0F 54 [17:35:49]process_action close_receipt done [17:35:49]requested_data is exist [17:35:49]produce_requested_data [17:35:49]requested_item fm.sn is exist - process it [17:35:49]wFMCommunicate request_size=4 [17:35:49]MH_SAM_APDU [17:35:49]CAPDU: 80 11 00 00 [17:35:49]Write to MH i2c: E2 08 00 E8 58 80 11 00 00 00 00 00 00 BA [17:35:49]Write i2c OK [17:35:49]MH_I2C_Read... [17:35:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:49]Read from MH i2c: E2 [17:35:49]MH_I2C_Read... [17:35:49]Read from MH i2c: E2 17 00 [17:35:49]MH_I2C_Read... [17:35:49]Read from MH i2c: E2 17 00 E8 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 07 [17:35: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:35:49]wFMCommunicate OK [17:35:49]requested_item fd.num is exist - process it [17:35:49]SAM_PROTO_GetFieldsCounters [17:35:49]wFMCommunicate request_size=4 [17:35:49]MH_SAM_APDU [17:35:49]CAPDU: 80 13 00 00 [17:35:49]Write to MH i2c: E2 08 00 E9 58 80 13 00 00 00 00 00 00 BD [17:35:49]Write i2c OK [17:35:49]MH_I2C_Read... [17:35:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:49]Read from MH i2c: E2 [17:35:49]MH_I2C_Read... [17:35:49]Read from MH i2c: E2 62 00 [17:35:49]MH_I2C_Read... [17:35:49]Read from MH i2c: E2 62 00 E9 58 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 BF 00 00 0E 04 04 00 F5 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 7B [17:35:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:35:49]wFMCommunicate OK [17:35:49]SAM_PROTO_GetFieldsCounters done [17:35:49]requested_item shift.num is exist - process it [17:35:49]requested_item shift.opened is exist - process it [17:35:49]req_shift_opened [17:35:49]FM_GetShiftState [17:35:49]SAM_PROTO_GetShiftState [17:35:49]wFMCommunicate request_size=4 [17:35:49]MH_SAM_APDU [17:35:49]CAPDU: 80 13 01 00 [17:35:49]Write to MH i2c: E2 08 00 EA 58 80 13 01 00 00 00 00 00 BF [17:35:49]Write i2c OK [17:35:49]MH_I2C_Read... [17:35:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:49]Read from MH i2c: E2 [17:35:49]MH_I2C_Read... [17:35:49]Read from MH i2c: E2 0E 00 [17:35:49]MH_I2C_Read... [17:35:49]Read from MH i2c: E2 0E 00 EA 58 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 31 [17:35:49]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [17:35:49]wFMCommunicate OK [17:35:49]SAM_PROTO_GetShiftState done [17:35:49]FM_GetShiftState done [17:35:49]req_shift_opened done [17:35:49]requested_item shift.open_date is exist - process it [17:35:49]req_shift_open_date [17:35:49]req_shift_open_date done [17:35:49]produce_requested_data done [17:35:49]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49111,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [17:35:49]process_action_free close_receipt [17:35:49]json_value_free [17:35:49]json_value_free done [17:35:49]process_json_proto returns [17:35:49]Send response to host [17:35:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49111,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [17:35:49]free response buf [17:35:49]execute_script done [17:35:49]execute_script returns [17:35:49]free content buf [17:35:49]Sock 9.Close socket [17:35:49]Sock 9.Thread stoped [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:18]OFD Sender: No OFD packet to send [17:36:23]OFD Sender: No OFD packet to send [17:36:28]OFD Sender: No OFD packet to send [17:36:33]OFD Sender: No OFD packet to send [17:36:38]OFD Sender: No OFD packet to send [17:36:43]OFD Sender: No OFD packet to send [17:36:48]OFD Sender: No OFD packet to send [17:36:53]OFD Sender: No OFD packet to send [17:36:58]OFD Sender: No OFD packet to send [17:37:03]OFD Sender: No OFD packet to send [17:37:08]OFD Sender: No OFD packet to send [17:37:13]OFD Sender: No OFD packet to send [17:37:18]OFD Sender: No OFD packet to send [17:37:23]OFD Sender: No OFD packet to send [17:37:28]OFD Sender: No OFD packet to send [17:37:33]OFD Sender: No OFD packet to send [17:37:38]OFD Sender: No OFD packet to send [17:37:43]OFD Sender: No OFD packet to send [17:37:48]OFD Sender: No OFD packet to send [17:37:53]OFD Sender: No OFD packet to send [17:37:58]OFD Sender: No OFD packet to send [17:38:03]OFD Sender: No OFD packet to send [17:38:08]OFD Sender: No OFD packet to send [17:38:13]OFD Sender: No OFD packet to send [17:38:18]OFD Sender: No OFD packet to send [17:38:23]OFD Sender: No OFD packet to send [17:38:28]OFD Sender: No OFD packet to send [17:38:33]OFD Sender: No OFD packet to send [17:38:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:18]OFD Sender: No OFD packet to send [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:08]OFD Sender: No OFD packet to send [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:48]OFD Sender: No OFD packet to send [17:41:53]OFD Sender: No OFD packet to send [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:18]OFD Sender: No OFD packet to send [17:47:23]OFD Sender: No OFD packet to send [17:47:28]OFD Sender: No OFD packet to send [17:47:33]OFD Sender: No OFD packet to send [17:47:38]OFD Sender: No OFD packet to send [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:23]OFD Sender: No OFD packet to send [17:48:28]OFD Sender: No OFD packet to send [17:48:33]OFD Sender: No OFD packet to send [17:48:38]OFD Sender: No OFD packet to send [17:48:43]OFD Sender: No OFD packet to send [17:48:48]OFD Sender: No OFD packet to send [17:48:53]OFD Sender: No OFD packet to send [17:48:58]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:34]OFD Sender: No OFD packet to send [18:06:39]OFD Sender: No OFD packet to send [18:06:44]OFD Sender: No OFD packet to send [18:06:49]OFD Sender: No OFD packet to send [18:06:54]OFD Sender: No OFD packet to send [18:06:59]OFD Sender: No OFD packet to send [18:07:04]OFD Sender: No OFD packet to send [18:07:09]OFD Sender: No OFD packet to send [18:07:14]OFD Sender: No OFD packet to send [18:07:19]OFD Sender: No OFD packet to send [18:07:24]OFD Sender: No OFD packet to send [18:07:29]OFD Sender: No OFD packet to send [18:07:34]OFD Sender: No OFD packet to send [18:07:39]OFD Sender: No OFD packet to send [18:07:44]OFD Sender: No OFD packet to send [18:07:49]OFD Sender: No OFD packet to send [18:07:54]OFD Sender: No OFD packet to send [18:07:59]OFD Sender: No OFD packet to send [18:08:04]OFD Sender: No OFD packet to send [18:08:09]OFD Sender: No OFD packet to send [18:08:14]OFD Sender: No OFD packet to send [18:08:19]OFD Sender: No OFD packet to send [18:08:24]OFD Sender: No OFD packet to send [18:08:29]OFD Sender: No OFD packet to send [18:08:34]OFD Sender: No OFD packet to send [18:08:36]accept exits with 7 [18:08:36]New connection [18:08:36]New thread 3066670436 created [18:08:36]Thread 3066813796 joined [18:08:36]Waiting for new connection... [18:08:36] Sock 7.Parse request [18:08:36]Sock 7.Check first char [18:08:36]Sock 7.First char is OK [18:08:36]request: POST /json_proto HTTP/1.0 [18:08:36]Method: POST [18:08:36]URL: /json_proto [18:08:36]Method is POST - this is cgi request [18:08:36]url: /json_proto [18:08:36]query_string will be loaded in cgi processing [18:08:36]execute_cgi json_proto POST (null) [18:08:36]execute_cgi path=json_proto method=POST [18:08:36]POST find Content-Length [18:08:36]Host: 172.17.56.67:8080 [18:08:36]Content-Length: 1180 [18:08:36]Content-Type: application/json [18:08:36] [18:08:36]POST finish read [18:08:36]Found Content-Length = 1180 [18:08:36]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 : \u041C\u0443\u043A\u0430\u043D\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)216213\u000A29.01.2024 18:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 69.90\u000A\u0418\u0422\u041E\u0413: 699.00\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:08:36]execute_script... [18:08:36]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 : \u041C\u0443\u043A\u0430\u043D\u043E\u0432 \u0410. \u000A\u0421\u0447\u0435\u0442 N : (1)216213\u000A29.01.2024 18:07\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 11\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 10.000 x 69.90\u000A\u0418\u0422\u041E\u0413: 699.00\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:08:36]POST & json_proto [18:08:36]process_json_proto [18:08:36]json parsed OK: [18:08:36]protocol is kg_v1.0 [18:08:36]action value=print_text [18:08:36]process_action print_text [18:08:36]cmd_print_text [18:08:36]ExternCall_PrintAddStr [18:08:36]wPrintStart [18:08:36]Write to MH i2c: 01 00 00 EB 58 43 [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: 01 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: 01 07 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: 01 07 00 EB 58 00 00 00 00 00 FF 0F 58 [18:08:36]RasterBufferAndPrint [18:08:36]line *****ТОВÐРÐЫЙ ЧЕК***** [18:08:36]line ÐЗС 102 [18:08:36]line Партнер нефть [18:08:36]line 02508201610067 [18:08:36]line КаÑÑир : Муканов Ð. [18:08:36]line Счет N : (1)216213 [18:08:36]line 29.01.2024 18:07 [18:08:36]line ПРОДÐЖР[18:08:36]line ТРК (МРК, ГÐК): 11 [18:08:36]line Вид ГСМ : 2710194210 [18:08:36]line ДТ-К-5 [18:08:36]line 10.000 x 69.90 [18:08:36]line ИТОГ: 699.00 [18:08:36]line Тип оплаты: ТехнологичеÑкий отпуÑк: [18:08:36]line ______________________ [18:08:36]line (подпиÑÑŒ) [18:08:36]written 0, free lines is 4095 [18:08:36]Write to MH i2c: 01 00 00 FE 58 56 [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: 01 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: 01 07 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: 01 07 00 FE 58 00 00 00 00 00 28 0E 93 [18:08:36]RasterBufferAndPrint [18:08:36]line [18:08:36]line [18:08:36]line [18:08:36]line [18:08:36]line [18:08:36]written 0, free lines is 3625 [18:08:36]MH_Cut [18:08:36]Write to MH i2c: D1 01 00 05 59 01 30 [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: D1 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: D1 01 00 [18:08:36]MH_I2C_Read... [18:08:36]Read from MH i2c: D1 01 00 05 59 00 2F [18:08:36]Write to MH i2c: 01 00 00 06 59 5F [18:08:36]Write i2c OK [18:08:36]MH_I2C_Read... [18:08:37]*** Cut start [18:08:37]*** Partial cut [18:08:37]*** CUTSNS_PIN = 1 [18:08:37]*** CUTSNS_PIN = 0 [18:08:37]*** Brake cut motor [18:08:38]Read from MH i2c: 01 [18:08:38]MH_I2C_Read... [18:08:38]*** Stop cut motor [18:08:38]*** Cut end [18:08:38]Read from MH i2c: 01 07 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: 01 07 00 06 59 00 00 00 00 00 FF 0F 74 [18:08:38]process_action print_text done [18:08:38]requested_data is exist [18:08:38]produce_requested_data [18:08:38]requested_item fm.sn is exist - process it [18:08:38]wFMCommunicate request_size=4 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 11 00 00 [18:08:38]Write to MH i2c: E2 08 00 07 59 80 11 00 00 00 00 00 00 DA [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 17 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 17 00 07 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 27 [18:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:08:38]wFMCommunicate OK [18:08:38]requested_item fd.num is exist - process it [18:08:38]SAM_PROTO_GetFieldsCounters [18:08:38]wFMCommunicate request_size=4 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 13 00 00 [18:08:38]Write to MH i2c: E2 08 00 08 59 80 13 00 00 00 00 00 00 DD [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 62 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 62 00 08 59 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 BF 00 00 0E 04 04 00 F5 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 9B [18:08: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 D7 BF 00 00 0E 04 04 00 F5 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 [18:08:38]wFMCommunicate OK [18:08:38]SAM_PROTO_GetFieldsCounters done [18:08:38]requested_item shift.num is exist - process it [18:08:38]requested_item shift.opened is exist - process it [18:08:38]req_shift_opened [18:08:38]FM_GetShiftState [18:08:38]SAM_PROTO_GetShiftState [18:08:38]wFMCommunicate request_size=4 [18:08:38]MH_SAM_APDU [18:08:38]CAPDU: 80 13 01 00 [18:08:38]Write to MH i2c: E2 08 00 09 59 80 13 01 00 00 00 00 00 DF [18:08:38]Write i2c OK [18:08:38]MH_I2C_Read... [18:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:38]Read from MH i2c: E2 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 0E 00 [18:08:38]MH_I2C_Read... [18:08:38]Read from MH i2c: E2 0E 00 09 59 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 51 [18:08:38]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [18:08:38]wFMCommunicate OK [18:08:38]SAM_PROTO_GetShiftState done [18:08:38]FM_GetShiftState done [18:08:38]req_shift_opened done [18:08:38]requested_item shift.open_date is exist - process it [18:08:38]req_shift_open_date [18:08:38]req_shift_open_date done [18:08:38]produce_requested_data done [18:08:38]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49111,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [18:08:38]process_action_free print_text [18:08:38]json_value_free [18:08:38]json_value_free done [18:08:38]process_json_proto returns [18:08:38]Send response to host [18:08:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49111,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [18:08:38]free response buf [18:08:38]execute_script done [18:08:38]execute_script returns [18:08:38]free content buf [18:08:38]Sock 7.Close socket [18:08:38]Sock 7.Thread stoped [18:08:39]OFD Sender: No OFD packet to send [18:08:44]OFD Sender: No OFD packet to send [18:08:49]OFD Sender: No OFD packet to send [18:08:54]OFD Sender: No OFD packet to send [18:08:59]OFD Sender: No OFD packet to send [18:09:04]OFD Sender: No OFD packet to send [18:09:09]OFD Sender: No OFD packet to send [18:09:14]OFD Sender: No OFD packet to send [18:09:19]OFD Sender: No OFD packet to send [18:09:24]OFD Sender: No OFD packet to send [18:09:29]OFD Sender: No OFD packet to send [18:09:34]OFD Sender: No OFD packet to send [18:09:39]OFD Sender: No OFD packet to send [18:09:44]OFD Sender: No OFD packet to send [18:09:49]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:20]OFD Sender: No OFD packet to send [18:10:25]OFD Sender: No OFD packet to send [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:40]OFD Sender: No OFD packet to send [18:10:45]OFD Sender: No OFD packet to send [18:10:50]OFD Sender: No OFD packet to send [18:10:55]OFD Sender: No OFD packet to send [18:11:00]OFD Sender: No OFD packet to send [18:11:05]OFD Sender: No OFD packet to send [18:11:10]OFD Sender: No OFD packet to send [18:11:15]OFD Sender: No OFD packet to send [18:11:20]OFD Sender: No OFD packet to send [18:11:25]OFD Sender: No OFD packet to send [18:11:30]OFD Sender: No OFD packet to send [18:11:35]OFD Sender: No OFD packet to send [18:11:40]OFD Sender: No OFD packet to send [18:11:45]OFD Sender: No OFD packet to send [18:11:50]OFD Sender: No OFD packet to send [18:11:55]OFD Sender: No OFD packet to send [18:12:00]OFD Sender: No OFD packet to send [18:12:05]OFD Sender: No OFD packet to send [18:12:10]OFD Sender: No OFD packet to send [18:12:15]OFD Sender: No OFD packet to send [18:12:20]OFD Sender: No OFD packet to send [18:12:25]OFD Sender: No OFD packet to send [18:12:30]OFD Sender: No OFD packet to send [18:12:35]OFD Sender: No OFD packet to send [18:12:40]OFD Sender: No OFD packet to send [18:12:45]OFD Sender: No OFD packet to send [18:12:50]OFD Sender: No OFD packet to send [18:12:55]OFD Sender: No OFD packet to send [18:13:00]OFD Sender: No OFD packet to send [18:13:05]OFD Sender: No OFD packet to send [18:13:10]OFD Sender: No OFD packet to send [18:13:15]OFD Sender: No OFD packet to send [18:13:20]OFD Sender: No OFD packet to send [18:13:25]OFD Sender: No OFD packet to send [18:13:30]OFD Sender: No OFD packet to send [18:13:31]accept exits with 9 [18:13:31]New connection [18:13:31]New thread 3066813796 created [18:13:31]Thread 3066670436 joined [18:13:31]Waiting for new connection... [18:13:31] Sock 9.Parse request [18:13:31]Sock 9.Check first char [18:13:31]Sock 9.First char is OK [18:13:31]request: POST /json_proto HTTP/1.0 [18:13:31]Method: POST [18:13:31]URL: /json_proto [18:13:31]Method is POST - this is cgi request [18:13:31]url: /json_proto [18:13:31]query_string will be loaded in cgi processing [18:13:31]execute_cgi json_proto POST (null) [18:13:31]execute_cgi path=json_proto method=POST [18:13:31]POST find Content-Length [18:13:31]Host: 172.17.56.67:8080 [18:13:31]Content-Length: 677 [18:13:31]Content-Type: application/json [18:13:31] [18:13:31]POST finish read [18:13:31]Found Content-Length = 677 [18:13:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216214", "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.480, "sum" : 270.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:31]execute_script... [18:13: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)216214", "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.480, "sum" : 270.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 270.00, "total" : 270.00, "payments": [ { "type": 0, "sum" : 270.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:31]POST & json_proto [18:13:31]process_json_proto [18:13:31]json parsed OK: [18:13:31]protocol is kg_v1.0 [18:13:31]action value=close_receipt [18:13:31]process_action close_receipt [18:13:31]cmd_close_receipt [18:13:31]MH_GetDate [18:13:31]Write to MH i2c: F0 00 00 0A 59 52 [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: F0 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: F0 09 00 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: F0 09 00 0A 59 00 DA EA B7 65 26 5D 9E 65 C1 [18:13:31]GetLastDocTimeStamp 1706549760 [18:13:31]current date 1706552026 [18:13:31]FM_GetShiftState [18:13:31]SAM_PROTO_GetShiftState [18:13:31]wFMCommunicate request_size=4 [18:13:31]MH_SAM_APDU [18:13:31]CAPDU: 80 13 01 00 [18:13:31]Write to MH i2c: E2 08 00 0B 59 80 13 01 00 00 00 00 00 E1 [18:13:31]Write i2c OK [18:13:31]MH_I2C_Read... [18:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:31]Read from MH i2c: E2 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 0E 00 [18:13:31]MH_I2C_Read... [18:13:31]Read from MH i2c: E2 0E 00 0B 59 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 53 [18:13:31]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [18:13:31]wFMCommunicate OK [18:13:31]SAM_PROTO_GetShiftState done [18:13:31]FM_GetShiftState done [18:13:31]opened in 1706486624 [18:13:31]opened+sec_in_day 1706573024 [18:13:31]quantity*price = 27014 [18:13:31]sum+1 = 27015 [18:13:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.14 ИТОГО: 270.00 ВнеÑено: 270.00 СДÐЧÐ: 0.00 ÐСП 1% : 2.39 ÐДС 12% : 28.69 Ðаличными: 270.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 95 29.01.2024 18:13 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49112 ФПД: 101375961959987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T181346&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49112&fm=101375961959987&tin=02508201610067®Number=0000000000092723&sum=27000 [18:13:32]StoreToDocumentArchive [18:13:32]shift 245 fd 49112 [18:13:32]save to /storage/0245/doc_00049112 [18:13:32]save last doc name /storage/0245/doc_00049112 to /storage/kkm_last_doc_name [18:13:32]save OK [18:13:32]Clear old archive folders... [18:13:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:32]tlvbuf is B6F33890 [18:13:32]SAM_PROTO_ClearQueue [18:13:32]wFMCommunicate request_size=4 [18:13:32]MH_SAM_APDU [18:13:32]CAPDU: 80 09 00 00 [18:13:32]Write to MH i2c: E2 08 00 18 59 80 09 00 00 00 00 00 00 E3 [18:13:32]Write i2c OK [18:13:32]MH_I2C_Read... [18:13:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:32]Read from MH i2c: E2 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: E2 03 00 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: E2 03 00 18 59 00 90 00 E5 [18:13:32]RAPDU: 90 00 [18:13:32]wFMCommunicate OK [18:13:32]SAM_PROTO_ClearQueue done [18:13:32]KKMCreateOFDPacket [18:13:32]OFDProtocolAddRootSTLVToBuf [18:13:32]FM_MakeSignedData [18:13:32]FM_MakeSignedData [18:13:32]SAM_PROTO_SignData [18:13:32]wFMCommunicate request_size=4 [18:13:32]MH_SAM_APDU [18:13:32]CAPDU: 80 0D 01 02 [18:13:32]Write to MH i2c: E2 08 00 19 59 80 0D 01 02 00 00 00 00 EB [18:13:32]Write i2c OK [18:13:32]MH_I2C_Read... [18:13:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:32]Read from MH i2c: E2 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: E2 03 00 [18:13:32]MH_I2C_Read... [18:13:32]Read from MH i2c: E2 03 00 19 59 00 90 00 E6 [18:13:32]RAPDU: 90 00 [18:13:32]wFMCommunicate OK [18:13:32]wFMCommunicate request_size=255 [18:13:32]MH_SAM_APDU [18:13: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 80 11 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 86 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 DA EA B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5C [18:13:32]Write to MH i2c: E2 02 01 1A 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 86 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 DA EA B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5C 00 00 2A [18:13:32]Write i2c OK [18:13:32]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 1A 59 00 90 00 E7 [18:13:33]RAPDU: 90 00 [18:13:33]wFMCommunicate OK [18:13:33]wFMCommunicate request_size=10 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 0D 02 02 05 33 6E 33 8E 33 [18:13:33]Write to MH i2c: E2 0D 00 1B 59 80 0D 02 02 05 00 33 6E 33 8E 33 00 00 8D [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 03 00 1B 59 00 90 00 E8 [18:13:33]RAPDU: 90 00 [18:13:33]wFMCommunicate OK [18:13:33]wFMCommunicate request_size=4 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 0D 03 02 [18:13:33]Write to MH i2c: E2 08 00 1C 59 80 0D 03 02 00 00 00 00 F0 [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 0B 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 0B 00 1C 59 00 F4 38 C7 BC 76 BC A5 8B 90 00 02 [18:13:33]RAPDU: F4 38 C7 BC 76 BC A5 8B 90 00 [18:13:33]wFMCommunicate OK [18:13:33]SAM_PROTO_SignData done [18:13:33]FM_MakeSignedData done [18:13:33]CreateOFDProtocolMessage [18:13:33]wFMCommunicate request_size=4 [18:13:33]MH_SAM_APDU [18:13:33]CAPDU: 80 11 00 00 [18:13:33]Write to MH i2c: E2 08 00 1D 59 80 11 00 00 00 00 00 00 F0 [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:33]Read from MH i2c: E2 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 17 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: E2 17 00 1D 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 3D [18:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:13:33]wFMCommunicate OK [18:13:33]CreateOFDProtocolMessage done [18:13:33]OFDSenderStorePacket 49112 [18:13:33]StoreOFDPacket docnum=49112 [18:13: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 2D DD 07 01 69 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 86 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 DA EA B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5C 33 6E 33 8E 33 F4 38 C7 BC 76 BC A5 8B [18:13:33]CheckFolder [18:13:33]dirname=/storage/ofd_packets [18:13:33]CheckFolder done [18:13:33]ProducePacketName [18:13:33]name=ofd_packets/00049112 [18:13:33]NVStorageSaveData ofd_packets/00049112 [18:13:33]File name is /storage/ofd_packets/00049112 [18:13:33]Write 301 bytes [18:13:33]NVStorageSaveData done [18:13:33]OFDSenderStorePacket done [18:13:33]KKMCreateOFDPacket done [18:13:33]NVStorageSaveData kkm_last_timestamp [18:13:33]File name is /storage/kkm_last_timestamp [18:13:33]Write 4 bytes [18:13:33]NVStorageSaveData done [18:13:33]ExternCall_PrintAddStr [18:13:33]wPrintStart [18:13:33]Write to MH i2c: 01 00 00 1E 59 77 [18:13:33]Write i2c OK [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: 01 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: 01 07 00 [18:13:33]MH_I2C_Read... [18:13:33]Read from MH i2c: 01 07 00 1E 59 00 00 00 00 00 FF 0F 8C [18:13:33]RasterBufferAndPrint [18:13:33]line Счет N : (1)216214 [18:13:33]line ИÐÐ: 02508201610067 [18:13:33]line Контрольно-КаÑÑовый Чек [18:13:33]line ПРОДÐЖР[18:13:33]line ТРК (МРК, ГÐК) : 12 [18:13:33]line Товар: 2710124130 [18:13:33]line Ðи-92-К-5 [18:13:33]line 4.480 * 60.30 [18:13:33]line = 270.14 [18:13:33]line ÐДС 12% ÐСП 1% [18:13:33]line > о реализуемом товаре [18:13:33]line ОКРУГЛЕÐИЕ: -0.14 [18:13:33]line ИТОГО: 270.00 [18:13:33]line ВнеÑено: 270.00 [18:13:33]line СДÐЧÐ: 0.00 [18:13:33]line ÐСП 1% : 2.39 [18:13:33]line ÐДС 12% : 28.69 [18:13:33]line Ðаличными: 270.00 [18:13:33]line Безнал.: 0.00 [18:13:33]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [18:13:33]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:13:33]line СÐО: Общий режим [18:13:33]line Чек 95 29.01.2024 18:13 [18:13:33]line Смена: 245 ФФД: 1.0 [18:13:33]line ЗÐМ: 0300000040 [18:13:33]line РÐМ: 0000000000092723 [18:13:33]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [18:13:33]line ФМ: 0000000000875060 [18:13:33]line ФД: 49112 [18:13:33]line ФПД: 101375961959987 [18:13:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T181346&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49112&fm=101375961959987&tin=02508201610067®Number=0000000000092723&sum=27000 [18:13:33]OFD Sender: Processing packet 49112 [packets to send 12, broken 11] [18:13:33]ProducePacketName [18:13:33]name=ofd_packets/00049112 [18:13:33]OFD Sender: To server: ‡•öpG, [18:13:33]CommunicateWithHost lk.salyk.kg:30040 [18:13:33]ConnectInit lk.salyk.kg [18:13:33]written 0, free lines is 4095 [18:13:33]Connected sock=10 [18:13: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 2D DD 07 01 69 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 11 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 86 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 0B 00 00 00 00 07 04 06 00 78 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 DA EA B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 5C 33 6E 33 8E 33 F4 38 C7 BC 76 BC A5 8B [18:13: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 E3 49 47 00 AA B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 D8 BF 00 00 F4 03 04 00 D2 96 B7 65 B6 04 01 00 00 B4 CE 2A A9 37 13 ED B2 [18:13:33]CommunicateWithHost err = 0 [18:13:33]CheckOFDResponse [18:13:33]1017 (14) - 77093643461234 [18:13:33]1041 (16) - 0000000000875060 [18:13:33]1040 (4) - 49112 [18:13:33]1012 (4) - 29.01.2024 12:15 [18:13:33]1206 (1) - 0 [18:13:33]OFD Sender: Remove packet 49112 [18:13:33]ProducePacketName [18:13:33]name=ofd_packets/00049112 [18:13:33]NVStorageDeleteData [18:13:34]Write to MH i2c: 01 00 00 49 59 A2 [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: 01 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: 01 07 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: 01 07 00 49 59 00 00 00 00 00 EC 0C A1 [18:13:34]RasterBufferAndPrint [18:13:34]line [18:13:34]line [18:13:34]line [18:13:34]line [18:13:34]line [18:13:34]written 0, free lines is 3314 [18:13:34]MH_Cut [18:13:34]Write to MH i2c: D1 01 00 50 59 01 7B [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: D1 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: D1 01 00 [18:13:34]MH_I2C_Read... [18:13:34]Read from MH i2c: D1 01 00 50 59 00 7A [18:13:34]Write to MH i2c: 01 00 00 51 59 AA [18:13:34]Write i2c OK [18:13:34]MH_I2C_Read... [18:13:34]OFD Sender: No OFD packet to send [18:13:34]*** Cut start [18:13:34]*** Partial cut [18:13:34]*** CUTSNS_PIN = 1 [18:13:34]*** CUTSNS_PIN = 0 [18:13:34]*** Brake cut motor [18:13:35]Read from MH i2c: 01 [18:13:35]MH_I2C_Read... [18:13:35]*** Stop cut motor [18:13:35]*** Cut end [18:13:35]Read from MH i2c: 01 07 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: 01 07 00 51 59 00 00 00 00 00 FF 0F BF [18:13:35]process_action close_receipt done [18:13:35]requested_data is exist [18:13:35]produce_requested_data [18:13:35]requested_item fm.sn is exist - process it [18:13:35]wFMCommunicate request_size=4 [18:13:35]MH_SAM_APDU [18:13:35]CAPDU: 80 11 00 00 [18:13:35]Write to MH i2c: E2 08 00 52 59 80 11 00 00 00 00 00 00 25 [18:13:35]Write i2c OK [18:13:35]MH_I2C_Read... [18:13:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:35]Read from MH i2c: E2 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 17 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 17 00 52 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 72 [18:13:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:13:35]wFMCommunicate OK [18:13:35]requested_item fd.num is exist - process it [18:13:35]SAM_PROTO_GetFieldsCounters [18:13:35]wFMCommunicate request_size=4 [18:13:35]MH_SAM_APDU [18:13:35]CAPDU: 80 13 00 00 [18:13:35]Write to MH i2c: E2 08 00 53 59 80 13 00 00 00 00 00 00 28 [18:13:35]Write i2c OK [18:13:35]MH_I2C_Read... [18:13:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:35]Read from MH i2c: E2 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 62 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 62 00 53 59 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 BF 00 00 0E 04 04 00 F5 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 EA [18:13: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 D8 BF 00 00 0E 04 04 00 F5 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 [18:13:35]wFMCommunicate OK [18:13:35]SAM_PROTO_GetFieldsCounters done [18:13:35]requested_item shift.num is exist - process it [18:13:35]requested_item shift.opened is exist - process it [18:13:35]req_shift_opened [18:13:35]FM_GetShiftState [18:13:35]SAM_PROTO_GetShiftState [18:13:35]wFMCommunicate request_size=4 [18:13:35]MH_SAM_APDU [18:13:35]CAPDU: 80 13 01 00 [18:13:35]Write to MH i2c: E2 08 00 54 59 80 13 01 00 00 00 00 00 2A [18:13:35]Write i2c OK [18:13:35]MH_I2C_Read... [18:13:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:35]Read from MH i2c: E2 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 0E 00 [18:13:35]MH_I2C_Read... [18:13:35]Read from MH i2c: E2 0E 00 54 59 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 9C [18:13:35]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [18:13:35]wFMCommunicate OK [18:13:35]SAM_PROTO_GetShiftState done [18:13:35]FM_GetShiftState done [18:13:35]req_shift_opened done [18:13:35]requested_item shift.open_date is exist - process it [18:13:35]req_shift_open_date [18:13:35]req_shift_open_date done [18:13:35]produce_requested_data done [18:13:35]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49112,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [18:13:35]process_action_free close_receipt [18:13:35]json_value_free [18:13:35]json_value_free done [18:13:35]process_json_proto returns [18:13:35]Send response to host [18:13:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49112,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [18:13:35]free response buf [18:13:35]execute_script done [18:13:35]execute_script returns [18:13:35]free content buf [18:13:35]Sock 9.Close socket [18:13:35]Sock 9.Thread stoped [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:56]accept exits with 7 [18:13:56]New connection [18:13:56]New thread 3066670436 created [18:13:56]Thread 3066813796 joined [18:13:56]Waiting for new connection... [18:13:56] Sock 7.Parse request [18:13:56]Sock 7.Check first char [18:13:56]Sock 7.First char is OK [18:13:56]request: POST /json_proto HTTP/1.0 [18:13:56]Method: POST [18:13:56]URL: /json_proto [18:13:56]Method is POST - this is cgi request [18:13:56]url: /json_proto [18:13:56]query_string will be loaded in cgi processing [18:13:56]execute_cgi json_proto POST (null) [18:13:56]execute_cgi path=json_proto method=POST [18:13:56]POST find Content-Length [18:13:56]Host: 172.17.56.67:8080 [18:13:56]Content-Length: 677 [18:13:56]Content-Type: application/json [18:13:56] [18:13:56]POST finish read [18:13:56]Found Content-Length = 677 [18:13:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216215", "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" ] } } [18:13:56]execute_script... [18:13: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)216215", "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" ] } } [18:13:56]POST & json_proto [18:13:56]process_json_proto [18:13:56]json parsed OK: [18:13:56]protocol is kg_v1.0 [18:13:56]action value=close_receipt [18:13:56]process_action close_receipt [18:13:56]cmd_close_receipt [18:13:56]MH_GetDate [18:13:56]Write to MH i2c: F0 00 00 55 59 9D [18:13:56]Write i2c OK [18:13:56]MH_I2C_Read... [18:13:56]Read from MH i2c: F0 [18:13:56]MH_I2C_Read... [18:13:56]Read from MH i2c: F0 09 00 [18:13:56]MH_I2C_Read... [18:13:56]Read from MH i2c: F0 09 00 55 59 00 F3 EA B7 65 26 5D 9E 65 25 [18:13:56]GetLastDocTimeStamp 1706552026 [18:13:56]current date 1706552051 [18:13:56]FM_GetShiftState [18:13:56]SAM_PROTO_GetShiftState [18:13:56]wFMCommunicate request_size=4 [18:13:56]MH_SAM_APDU [18:13:56]CAPDU: 80 13 01 00 [18:13:56]Write to MH i2c: E2 08 00 56 59 80 13 01 00 00 00 00 00 2C [18:13:56]Write i2c OK [18:13:56]MH_I2C_Read... [18:13:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:56]Read from MH i2c: E2 [18:13:56]MH_I2C_Read... [18:13:56]Read from MH i2c: E2 0E 00 [18:13:56]MH_I2C_Read... [18:13:56]Read from MH i2c: E2 0E 00 56 59 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 9E [18:13:56]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [18:13:56]wFMCommunicate OK [18:13:56]SAM_PROTO_GetShiftState done [18:13:56]FM_GetShiftState done [18:13:56]opened in 1706486624 [18:13:56]opened+sec_in_day 1706573024 [18:13:56]quantity*price = 30029 [18:13:56]sum+1 = 30030 [18:13: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 СÐО: Общий режим Чек 96 29.01.2024 18:14 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49113 ФПД: 37989491833287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T181411&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49113&fm=37989491833287&tin=02508201610067®Number=0000000000092723&sum=30000 [18:13:57]StoreToDocumentArchive [18:13:57]shift 245 fd 49113 [18:13:57]save to /storage/0245/doc_00049113 [18:13:57]save last doc name /storage/0245/doc_00049113 to /storage/kkm_last_doc_name [18:13:57]save OK [18:13:57]Clear old archive folders... [18:13:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:57]tlvbuf is 011D8AA0 [18:13:57]SAM_PROTO_ClearQueue [18:13:57]wFMCommunicate request_size=4 [18:13:57]MH_SAM_APDU [18:13:57]CAPDU: 80 09 00 00 [18:13:57]Write to MH i2c: E2 08 00 63 59 80 09 00 00 00 00 00 00 2E [18:13:57]Write i2c OK [18:13:57]MH_I2C_Read... [18:13:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:58]Read from MH i2c: E2 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 63 59 00 90 00 30 [18:13:58]RAPDU: 90 00 [18:13:58]wFMCommunicate OK [18:13:58]SAM_PROTO_ClearQueue done [18:13:58]KKMCreateOFDPacket [18:13:58]OFDProtocolAddRootSTLVToBuf [18:13:58]FM_MakeSignedData [18:13:58]FM_MakeSignedData [18:13:58]SAM_PROTO_SignData [18:13:58]wFMCommunicate request_size=4 [18:13:58]MH_SAM_APDU [18:13:58]CAPDU: 80 0D 01 02 [18:13:58]Write to MH i2c: E2 08 00 64 59 80 0D 01 02 00 00 00 00 36 [18:13:58]Write i2c OK [18:13:58]MH_I2C_Read... [18:13:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:58]Read from MH i2c: E2 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 64 59 00 90 00 31 [18:13:58]RAPDU: 90 00 [18:13:58]wFMCommunicate OK [18:13:58]wFMCommunicate request_size=255 [18:13:58]MH_SAM_APDU [18:13: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 60 00 00 00 F4 03 04 00 F3 EA B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 22 [18:13:58]Write to MH i2c: E2 02 01 65 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 60 00 00 00 F4 03 04 00 F3 EA B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 22 00 00 04 [18:13:58]Write i2c OK [18:13:58]MH_I2C_Read... [18:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:58]Read from MH i2c: E2 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 65 59 00 90 00 32 [18:13:58]RAPDU: 90 00 [18:13:58]wFMCommunicate OK [18:13:58]wFMCommunicate request_size=10 [18:13:58]MH_SAM_APDU [18:13:58]CAPDU: 80 0D 02 02 05 8D 1E 2A 79 C7 [18:13:58]Write to MH i2c: E2 0D 00 66 59 80 0D 02 02 05 00 8D 1E 2A 79 C7 00 00 58 [18:13:58]Write i2c OK [18:13:58]MH_I2C_Read... [18:13:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:58]Read from MH i2c: E2 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 03 00 66 59 00 90 00 33 [18:13:58]RAPDU: 90 00 [18:13:58]wFMCommunicate OK [18:13:58]wFMCommunicate request_size=4 [18:13:58]MH_SAM_APDU [18:13:58]CAPDU: 80 0D 03 02 [18:13:58]Write to MH i2c: E2 08 00 67 59 80 0D 03 02 00 00 00 00 3B [18:13:58]Write i2c OK [18:13:58]MH_I2C_Read... [18:13:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:58]Read from MH i2c: E2 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 0B 00 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 0B 00 67 59 00 7D 0F CD 09 3C B6 D5 EA 90 00 4F [18:13:58]RAPDU: 7D 0F CD 09 3C B6 D5 EA 90 00 [18:13:58]wFMCommunicate OK [18:13:58]SAM_PROTO_SignData done [18:13:58]FM_MakeSignedData done [18:13:58]CreateOFDProtocolMessage [18:13:58]wFMCommunicate request_size=4 [18:13:58]MH_SAM_APDU [18:13:58]CAPDU: 80 11 00 00 [18:13:58]Write to MH i2c: E2 08 00 68 59 80 11 00 00 00 00 00 00 3B [18:13:58]Write i2c OK [18:13:58]MH_I2C_Read... [18:13:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:58]Read from MH i2c: E2 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 17 00 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 17 00 68 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 88 [18:13:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:13:58]wFMCommunicate OK [18:13:58]CreateOFDProtocolMessage done [18:13:58]OFDSenderStorePacket 49113 [18:13:58]StoreOFDPacket docnum=49113 [18:13: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 F1 4A 07 01 C4 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 60 00 00 00 F4 03 04 00 F3 EA B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 22 8D 1E 2A 79 C7 7D 0F CD 09 3C B6 D5 EA [18:13:58]CheckFolder [18:13:58]dirname=/storage/ofd_packets [18:13:58]CheckFolder done [18:13:58]ProducePacketName [18:13:58]name=ofd_packets/00049113 [18:13:58]NVStorageSaveData ofd_packets/00049113 [18:13:58]File name is /storage/ofd_packets/00049113 [18:13:58]Write 301 bytes [18:13:58]NVStorageSaveData done [18:13:58]OFDSenderStorePacket done [18:13:58]KKMCreateOFDPacket done [18:13:58]NVStorageSaveData kkm_last_timestamp [18:13:58]File name is /storage/kkm_last_timestamp [18:13:58]Write 4 bytes [18:13:58]NVStorageSaveData done [18:13:58]ExternCall_PrintAddStr [18:13:58]wPrintStart [18:13:58]Write to MH i2c: 01 00 00 69 59 C2 [18:13:58]Write i2c OK [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: 01 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: 01 07 00 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: 01 07 00 69 59 00 00 00 00 00 FF 0F D7 [18:13:58]RasterBufferAndPrint [18:13:58]line Счет N : (1)216215 [18:13:58]line ИÐÐ: 02508201610067 [18:13:58]line Контрольно-КаÑÑовый Чек [18:13:58]line ПРОДÐЖР[18:13:58]line ТРК (МРК, ГÐК) : 22 [18:13:58]line Товар: 2710124130 [18:13:58]line Ðи-92-К-5 [18:13:58]line 4.980 * 60.30 [18:13:58]line = 300.29 [18:13:58]line ÐДС 12% ÐСП 1% [18:13:58]line > о реализуемом товаре [18:13:58]line ОКРУГЛЕÐИЕ: -0.29 [18:13:58]line ИТОГО: 300.00 [18:13:58]line ВнеÑено: 300.00 [18:13:58]line СДÐЧÐ: 0.00 [18:13:58]line ÐСП 1% : 2.66 [18:13:58]line ÐДС 12% : 31.89 [18:13:58]line Ðаличными: 300.00 [18:13:58]line Безнал.: 0.00 [18:13:58]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [18:13:58]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:13:58]line СÐО: Общий режим [18:13:58]line Чек 96 29.01.2024 18:14 [18:13:58]line Смена: 245 ФФД: 1.0 [18:13:58]line ЗÐМ: 0300000040 [18:13:58]line РÐМ: 0000000000092723 [18:13:58]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [18:13:58]line ФМ: 0000000000875060 [18:13:58]line ФД: 49113 [18:13:58]line ФПД: 37989491833287 [18:13:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T181411&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49113&fm=37989491833287&tin=02508201610067®Number=0000000000092723&sum=30000 [18:13:58]OFD Sender: Processing packet 49113 [packets to send 12, broken 11] [18:13:58]ProducePacketName [18:13:58]name=ofd_packets/00049113 [18:13:58]OFD Sender: To server: ‡•öpG, [18:13:58]CommunicateWithHost lk.salyk.kg:30040 [18:13:58]ConnectInit lk.salyk.kg [18:13:58]written 0, free lines is 4095 [18:13:58]Connected sock=10 [18:13: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 F1 4A 07 01 C4 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 60 00 00 00 F4 03 04 00 F3 EA B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 22 8D 1E 2A 79 C7 7D 0F CD 09 3C B6 D5 EA [18:13: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 51 1F 47 00 65 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 D9 BF 00 00 F4 03 04 00 EB 96 B7 65 B6 04 01 00 00 BD B2 A9 33 3B C1 6E D4 [18:13:59]CommunicateWithHost err = 0 [18:13:59]CheckOFDResponse [18:13:59]1017 (14) - 77093643461234 [18:13:59]1041 (16) - 0000000000875060 [18:13:59]1040 (4) - 49113 [18:13:59]1012 (4) - 29.01.2024 12:15 [18:13:59]1206 (1) - 0 [18:13:59]OFD Sender: Remove packet 49113 [18:13:59]ProducePacketName [18:13:59]name=ofd_packets/00049113 [18:13:59]NVStorageDeleteData [18:13:59]Write to MH i2c: 01 00 00 94 59 ED [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: 01 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: 01 07 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: 01 07 00 94 59 00 00 00 00 00 EC 0C EC [18:13:59]RasterBufferAndPrint [18:13:59]line [18:13:59]line [18:13:59]line [18:13:59]line [18:13:59]line [18:13:59]written 0, free lines is 3314 [18:13:59]MH_Cut [18:13:59]Write to MH i2c: D1 01 00 9B 59 01 C6 [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: D1 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: D1 01 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: D1 01 00 9B 59 00 C5 [18:13:59]Write to MH i2c: 01 00 00 9C 59 F5 [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]OFD Sender: No OFD packet to send [18:13:59]*** Cut start [18:13:59]*** Partial cut [18:13:59]*** CUTSNS_PIN = 1 [18:13:59]*** CUTSNS_PIN = 0 [18:14:00]*** Brake cut motor [18:14:00]Read from MH i2c: 01 [18:14:00]MH_I2C_Read... [18:14:00]*** Stop cut motor [18:14:00]*** Cut end [18:14:00]Read from MH i2c: 01 07 00 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: 01 07 00 9C 59 00 00 00 00 00 FF 0F 0A [18:14:00]process_action close_receipt done [18:14:00]requested_data is exist [18:14:00]produce_requested_data [18:14:00]requested_item fm.sn is exist - process it [18:14:00]wFMCommunicate request_size=4 [18:14:00]MH_SAM_APDU [18:14:00]CAPDU: 80 11 00 00 [18:14:00]Write to MH i2c: E2 08 00 9D 59 80 11 00 00 00 00 00 00 70 [18:14:00]Write i2c OK [18:14:00]MH_I2C_Read... [18:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:00]Read from MH i2c: E2 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 17 00 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 17 00 9D 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 BD [18:14:00]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:00]wFMCommunicate OK [18:14:00]requested_item fd.num is exist - process it [18:14:00]SAM_PROTO_GetFieldsCounters [18:14:00]wFMCommunicate request_size=4 [18:14:00]MH_SAM_APDU [18:14:00]CAPDU: 80 13 00 00 [18:14:00]Write to MH i2c: E2 08 00 9E 59 80 13 00 00 00 00 00 00 73 [18:14:00]Write i2c OK [18:14:00]MH_I2C_Read... [18:14:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:00]Read from MH i2c: E2 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 62 00 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 62 00 9E 59 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 BF 00 00 0E 04 04 00 F5 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 39 [18:14: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 D9 BF 00 00 0E 04 04 00 F5 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 [18:14:00]wFMCommunicate OK [18:14:00]SAM_PROTO_GetFieldsCounters done [18:14:00]requested_item shift.num is exist - process it [18:14:00]requested_item shift.opened is exist - process it [18:14:00]req_shift_opened [18:14:00]FM_GetShiftState [18:14:00]SAM_PROTO_GetShiftState [18:14:00]wFMCommunicate request_size=4 [18:14:00]MH_SAM_APDU [18:14:00]CAPDU: 80 13 01 00 [18:14:00]Write to MH i2c: E2 08 00 9F 59 80 13 01 00 00 00 00 00 75 [18:14:00]Write i2c OK [18:14:00]MH_I2C_Read... [18:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:00]Read from MH i2c: E2 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 0E 00 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 0E 00 9F 59 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 E7 [18:14:00]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [18:14:00]wFMCommunicate OK [18:14:00]SAM_PROTO_GetShiftState done [18:14:00]FM_GetShiftState done [18:14:00]req_shift_opened done [18:14:00]requested_item shift.open_date is exist - process it [18:14:00]req_shift_open_date [18:14:00]req_shift_open_date done [18:14:00]produce_requested_data done [18:14:00]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49113,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [18:14:00]process_action_free close_receipt [18:14:00]json_value_free [18:14:00]json_value_free done [18:14:00]process_json_proto returns [18:14:00]Send response to host [18:14:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49113,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [18:14:00]free response buf [18:14:00]execute_script done [18:14:00]execute_script returns [18:14:00]free content buf [18:14:00]Sock 7.Close socket [18:14:00]Sock 7.Thread stoped [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:33]accept exits with 9 [18:15:33]New connection [18:15:33]New thread 3066813796 created [18:15:33]Thread 3066670436 joined [18:15:33]Waiting for new connection... [18:15:33] Sock 9.Parse request [18:15:33]Sock 9.Check first char [18:15:33]Sock 9.First char is OK [18:15:33]request: POST /json_proto HTTP/1.0 [18:15:33]Method: POST [18:15:33]URL: /json_proto [18:15:33]Method is POST - this is cgi request [18:15:33]url: /json_proto [18:15:33]query_string will be loaded in cgi processing [18:15:33]execute_cgi json_proto POST (null) [18:15:33]execute_cgi path=json_proto method=POST [18:15:33]POST find Content-Length [18:15:33]Host: 172.17.56.67:8080 [18:15:33]Content-Length: 677 [18:15:33]Content-Type: application/json [18:15:33] [18:15:33]POST finish read [18:15:33]Found Content-Length = 677 [18:15:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216216", "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" ] } } [18:15:33]execute_script... [18:15:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216216", "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" ] } } [18:15:33]POST & json_proto [18:15:33]process_json_proto [18:15:33]json parsed OK: [18:15:33]protocol is kg_v1.0 [18:15:33]action value=close_receipt [18:15:33]process_action close_receipt [18:15:33]cmd_close_receipt [18:15:33]MH_GetDate [18:15:33]Write to MH i2c: F0 00 00 A0 59 E8 [18:15:33]Write i2c OK [18:15:33]MH_I2C_Read... [18:15:33]Read from MH i2c: F0 [18:15:33]MH_I2C_Read... [18:15:33]Read from MH i2c: F0 09 00 [18:15:33]MH_I2C_Read... [18:15:33]Read from MH i2c: F0 09 00 A0 59 00 54 EB B7 65 26 5D 9E 65 D2 [18:15:33]GetLastDocTimeStamp 1706552051 [18:15:33]current date 1706552148 [18:15:33]FM_GetShiftState [18:15:33]SAM_PROTO_GetShiftState [18:15:33]wFMCommunicate request_size=4 [18:15:33]MH_SAM_APDU [18:15:33]CAPDU: 80 13 01 00 [18:15:33]Write to MH i2c: E2 08 00 A1 59 80 13 01 00 00 00 00 00 77 [18:15:33]Write i2c OK [18:15:33]MH_I2C_Read... [18:15:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:33]Read from MH i2c: E2 [18:15:33]MH_I2C_Read... [18:15:33]Read from MH i2c: E2 0E 00 [18:15:33]MH_I2C_Read... [18:15:33]Read from MH i2c: E2 0E 00 A1 59 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 E9 [18:15:33]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [18:15:33]wFMCommunicate OK [18:15:33]SAM_PROTO_GetShiftState done [18:15:33]FM_GetShiftState done [18:15:33]opened in 1706486624 [18:15:33]opened+sec_in_day 1706573024 [18:15:33]quantity*price = 50049 [18:15:33]sum+1 = 50050 [18:15:33]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 СÐО: Общий режим Чек 97 29.01.2024 18:15 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49114 ФПД: 78832637384432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T181548&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49114&fm=78832637384432&tin=02508201610067®Number=0000000000092723&sum=50000 [18:15:34]StoreToDocumentArchive [18:15:34]shift 245 fd 49114 [18:15:34]save to /storage/0245/doc_00049114 [18:15:34]save last doc name /storage/0245/doc_00049114 to /storage/kkm_last_doc_name [18:15:34]save OK [18:15:34]Clear old archive folders... [18:15:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:15:34]tlvbuf is B6F36C10 [18:15:34]SAM_PROTO_ClearQueue [18:15:34]wFMCommunicate request_size=4 [18:15:34]MH_SAM_APDU [18:15:34]CAPDU: 80 09 00 00 [18:15:34]Write to MH i2c: E2 08 00 AE 59 80 09 00 00 00 00 00 00 79 [18:15:34]Write i2c OK [18:15:34]MH_I2C_Read... [18:15:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:35]Read from MH i2c: E2 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 AE 59 00 90 00 7B [18:15:35]RAPDU: 90 00 [18:15:35]wFMCommunicate OK [18:15:35]SAM_PROTO_ClearQueue done [18:15:35]KKMCreateOFDPacket [18:15:35]OFDProtocolAddRootSTLVToBuf [18:15:35]FM_MakeSignedData [18:15:35]FM_MakeSignedData [18:15:35]SAM_PROTO_SignData [18:15:35]wFMCommunicate request_size=4 [18:15:35]MH_SAM_APDU [18:15:35]CAPDU: 80 0D 01 02 [18:15:35]Write to MH i2c: E2 08 00 AF 59 80 0D 01 02 00 00 00 00 81 [18:15:35]Write i2c OK [18:15:35]MH_I2C_Read... [18:15:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:35]Read from MH i2c: E2 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 AF 59 00 90 00 7C [18:15:35]RAPDU: 90 00 [18:15:35]wFMCommunicate OK [18:15:35]wFMCommunicate request_size=255 [18:15:35]MH_SAM_APDU [18:15: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 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 61 00 00 00 F4 03 04 00 54 EB B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 47 [18:15:35]Write to MH i2c: E2 02 01 B0 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 61 00 00 00 F4 03 04 00 54 EB B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 47 00 00 42 [18:15:35]Write i2c OK [18:15:35]MH_I2C_Read... [18:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:35]Read from MH i2c: E2 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 B0 59 00 90 00 7D [18:15:35]RAPDU: 90 00 [18:15:35]wFMCommunicate OK [18:15:35]wFMCommunicate request_size=10 [18:15:35]MH_SAM_APDU [18:15:35]CAPDU: 80 0D 02 02 05 B2 A7 59 16 F0 [18:15:35]Write to MH i2c: E2 0D 00 B1 59 80 0D 02 02 05 00 B2 A7 59 16 F0 00 00 46 [18:15:35]Write i2c OK [18:15:35]MH_I2C_Read... [18:15:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:35]Read from MH i2c: E2 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 03 00 B1 59 00 90 00 7E [18:15:35]RAPDU: 90 00 [18:15:35]wFMCommunicate OK [18:15:35]wFMCommunicate request_size=4 [18:15:35]MH_SAM_APDU [18:15:35]CAPDU: 80 0D 03 02 [18:15:35]Write to MH i2c: E2 08 00 B2 59 80 0D 03 02 00 00 00 00 86 [18:15:35]Write i2c OK [18:15:35]MH_I2C_Read... [18:15:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:35]Read from MH i2c: E2 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 0B 00 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 0B 00 B2 59 00 98 2D FE 59 66 54 29 2A 90 00 B0 [18:15:35]RAPDU: 98 2D FE 59 66 54 29 2A 90 00 [18:15:35]wFMCommunicate OK [18:15:35]SAM_PROTO_SignData done [18:15:35]FM_MakeSignedData done [18:15:35]CreateOFDProtocolMessage [18:15:35]wFMCommunicate request_size=4 [18:15:35]MH_SAM_APDU [18:15:35]CAPDU: 80 11 00 00 [18:15:35]Write to MH i2c: E2 08 00 B3 59 80 11 00 00 00 00 00 00 86 [18:15:35]Write i2c OK [18:15:35]MH_I2C_Read... [18:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:35]Read from MH i2c: E2 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 17 00 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: E2 17 00 B3 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 D3 [18:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:15:35]wFMCommunicate OK [18:15:35]CreateOFDProtocolMessage done [18:15:35]OFDSenderStorePacket 49114 [18:15:35]StoreOFDPacket docnum=49114 [18:15:35]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 43 EA 07 01 31 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 61 00 00 00 F4 03 04 00 54 EB B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 47 B2 A7 59 16 F0 98 2D FE 59 66 54 29 2A [18:15:35]CheckFolder [18:15:35]dirname=/storage/ofd_packets [18:15:35]CheckFolder done [18:15:35]ProducePacketName [18:15:35]name=ofd_packets/00049114 [18:15:35]NVStorageSaveData ofd_packets/00049114 [18:15:35]File name is /storage/ofd_packets/00049114 [18:15:35]Write 301 bytes [18:15:35]NVStorageSaveData done [18:15:35]OFDSenderStorePacket done [18:15:35]KKMCreateOFDPacket done [18:15:35]NVStorageSaveData kkm_last_timestamp [18:15:35]File name is /storage/kkm_last_timestamp [18:15:35]Write 4 bytes [18:15:35]NVStorageSaveData done [18:15:35]ExternCall_PrintAddStr [18:15:35]wPrintStart [18:15:35]Write to MH i2c: 01 00 00 B4 59 0D [18:15:35]Write i2c OK [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: 01 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: 01 07 00 [18:15:35]MH_I2C_Read... [18:15:35]Read from MH i2c: 01 07 00 B4 59 00 00 00 00 00 FF 0F 22 [18:15:35]RasterBufferAndPrint [18:15:35]line Счет N : (1)216216 [18:15:35]line ИÐÐ: 02508201610067 [18:15:35]line Контрольно-КаÑÑовый Чек [18:15:35]line ПРОДÐЖР[18:15:35]line ТРК (МРК, ГÐК) : 22 [18:15:35]line Товар: 2710124130 [18:15:35]line Ðи-92-К-5 [18:15:35]line 8.300 * 60.30 [18:15:35]line = 500.49 [18:15:35]line ÐДС 12% ÐСП 1% [18:15:35]line > о реализуемом товаре [18:15:35]line ОКРУГЛЕÐИЕ: -0.49 [18:15:35]line ИТОГО: 500.00 [18:15:35]line ВнеÑено: 500.00 [18:15:35]line СДÐЧÐ: 0.00 [18:15:35]line ÐСП 1% : 4.43 [18:15:35]line ÐДС 12% : 53.15 [18:15:35]line Ðаличными: 500.00 [18:15:35]line Безнал.: 0.00 [18:15:35]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [18:15:35]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:15:35]line СÐО: Общий режим [18:15:35]line Чек 97 29.01.2024 18:15 [18:15:35]line Смена: 245 ФФД: 1.0 [18:15:35]line ЗÐМ: 0300000040 [18:15:35]line РÐМ: 0000000000092723 [18:15:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [18:15:35]line ФМ: 0000000000875060 [18:15:35]line ФД: 49114 [18:15:35]line ФПД: 78832637384432 [18:15:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T181548&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49114&fm=78832637384432&tin=02508201610067®Number=0000000000092723&sum=50000 [18:15:35]OFD Sender: Processing packet 49114 [packets to send 12, broken 11] [18:15:35]ProducePacketName [18:15:35]name=ofd_packets/00049114 [18:15:35]OFD Sender: To server: ‡•öpG, [18:15:35]CommunicateWithHost lk.salyk.kg:30040 [18:15:35]ConnectInit lk.salyk.kg [18:15:35]written 0, free lines is 4095 [18:15:36]Write to MH i2c: 01 00 00 DF 59 38 [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: 01 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: 01 07 00 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: 01 07 00 DF 59 00 00 00 00 00 ED 0C 38 [18:15:36]RasterBufferAndPrint [18:15:36]line [18:15:36]line [18:15:36]line [18:15:36]line [18:15:36]line [18:15:36]written 0, free lines is 3315 [18:15:36]MH_Cut [18:15:36]Write to MH i2c: D1 01 00 E6 59 01 11 [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: D1 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: D1 01 00 [18:15:36]MH_I2C_Read... [18:15:36]Read from MH i2c: D1 01 00 E6 59 00 10 [18:15:36]Write to MH i2c: 01 00 00 E7 59 40 [18:15:36]Write i2c OK [18:15:36]MH_I2C_Read... [18:15:36]*** Cut start [18:15:36]*** Partial cut [18:15:36]*** CUTSNS_PIN = 1 [18:15:37]*** CUTSNS_PIN = 0 [18:15:37]*** Brake cut motor [18:15:37]Read from MH i2c: 01 [18:15:37]MH_I2C_Read... [18:15:37]*** Stop cut motor [18:15:37]*** Cut end [18:15:37]Read from MH i2c: 01 07 00 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: 01 07 00 E7 59 00 00 00 00 00 FF 0F 55 [18:15:37]process_action close_receipt done [18:15:37]requested_data is exist [18:15:37]produce_requested_data [18:15:37]requested_item fm.sn is exist - process it [18:15:37]wFMCommunicate request_size=4 [18:15:37]MH_SAM_APDU [18:15:37]CAPDU: 80 11 00 00 [18:15:37]Write to MH i2c: E2 08 00 E8 59 80 11 00 00 00 00 00 00 BB [18:15:37]Write i2c OK [18:15:37]MH_I2C_Read... [18:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:37]Read from MH i2c: E2 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: E2 17 00 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: E2 17 00 E8 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 08 [18:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:15:37]wFMCommunicate OK [18:15:37]requested_item fd.num is exist - process it [18:15:37]SAM_PROTO_GetFieldsCounters [18:15:37]wFMCommunicate request_size=4 [18:15:37]MH_SAM_APDU [18:15:37]CAPDU: 80 13 00 00 [18:15:37]Write to MH i2c: E2 08 00 E9 59 80 13 00 00 00 00 00 00 BE [18:15:37]Write i2c OK [18:15:37]MH_I2C_Read... [18:15:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:37]Read from MH i2c: E2 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: E2 62 00 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: E2 62 00 E9 59 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 BF 00 00 0E 04 04 00 F5 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 88 [18:15:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 [18:15:37]wFMCommunicate OK [18:15:37]SAM_PROTO_GetFieldsCounters done [18:15:37]requested_item shift.num is exist - process it [18:15:37]requested_item shift.opened is exist - process it [18:15:37]req_shift_opened [18:15:37]FM_GetShiftState [18:15:37]SAM_PROTO_GetShiftState [18:15:37]wFMCommunicate request_size=4 [18:15:37]MH_SAM_APDU [18:15:37]CAPDU: 80 13 01 00 [18:15:37]Write to MH i2c: E2 08 00 EA 59 80 13 01 00 00 00 00 00 C0 [18:15:37]Write i2c OK [18:15:37]MH_I2C_Read... [18:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:37]Read from MH i2c: E2 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: E2 0E 00 [18:15:37]MH_I2C_Read... [18:15:37]Read from MH i2c: E2 0E 00 EA 59 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 32 [18:15:37]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [18:15:37]wFMCommunicate OK [18:15:37]SAM_PROTO_GetShiftState done [18:15:37]FM_GetShiftState done [18:15:37]req_shift_opened done [18:15:37]requested_item shift.open_date is exist - process it [18:15:37]req_shift_open_date [18:15:37]req_shift_open_date done [18:15:37]produce_requested_data done [18:15:37]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49114,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [18:15:37]process_action_free close_receipt [18:15:37]json_value_free [18:15:37]json_value_free done [18:15:37]process_json_proto returns [18:15:37]Send response to host [18:15:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49114,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [18:15:37]free response buf [18:15:37]execute_script done [18:15:37]execute_script returns [18:15:37]free content buf [18:15:37]Sock 9.Close socket [18:15:37]Sock 9.Thread stoped [18:17:47]ConnectInit Can't connect to host [18:17:47]CommunicateWithHost connect error [18:17:47]CommunicateWithHost err = -1 [18:17:47]OFD Sender: Server communicate error [18:17:52]OFD Sender: Processing packet 49114 [packets to send 12, broken 11] [18:17:52]ProducePacketName [18:17:52]name=ofd_packets/00049114 [18:17:52]OFD Sender: To server: ‡•öpG, [18:17:52]CommunicateWithHost lk.salyk.kg:30040 [18:17:52]ConnectInit lk.salyk.kg [18:17:52]Connected sock=9 [18:17:52]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 43 EA 07 01 31 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 61 00 00 00 F4 03 04 00 54 EB B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 47 B2 A7 59 16 F0 98 2D FE 59 66 54 29 2A [18:17:52]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 2A 62 47 00 67 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 DA BF 00 00 F4 03 04 00 D4 97 B7 65 B6 04 01 00 00 0F 03 BF FA B2 D6 A6 BB [18:17:52]CommunicateWithHost err = 0 [18:17:52]CheckOFDResponse [18:17:52]1017 (14) - 77093643461234 [18:17:52]1041 (16) - 0000000000875060 [18:17:52]1040 (4) - 49114 [18:17:52]1012 (4) - 29.01.2024 12:19 [18:17:52]1206 (1) - 0 [18:17:52]OFD Sender: Remove packet 49114 [18:17:52]ProducePacketName [18:17:52]name=ofd_packets/00049114 [18:17:52]NVStorageDeleteData [18:17:52]OFD Sender: No OFD packet to send [18:17:57]OFD Sender: No OFD packet to send [18:18:02]OFD Sender: No OFD packet to send [18:18:07]OFD Sender: No OFD packet to send [18:18:12]OFD Sender: No OFD packet to send [18:18:17]OFD Sender: No OFD packet to send [18:18:22]OFD Sender: No OFD packet to send [18:18:27]OFD Sender: No OFD packet to send [18:18:32]OFD Sender: No OFD packet to send [18:18:37]OFD Sender: No OFD packet to send [18:18:42]OFD Sender: No OFD packet to send [18:18:47]OFD Sender: No OFD packet to send [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:17]OFD Sender: No OFD packet to send [18:20:22]OFD Sender: No OFD packet to send [18:20:27]OFD Sender: No OFD packet to send [18:20:32]OFD Sender: No OFD packet to send [18:20:37]OFD Sender: No OFD packet to send [18:20:42]OFD Sender: No OFD packet to send [18:20:47]OFD Sender: No OFD packet to send [18:20:52]OFD Sender: No OFD packet to send [18:20:57]OFD Sender: No OFD packet to send [18:21:02]OFD Sender: No OFD packet to send [18:21:07]OFD Sender: No OFD packet to send [18:21:12]OFD Sender: No OFD packet to send [18:21:17]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:43]OFD Sender: No OFD packet to send [18:30:48]OFD Sender: No OFD packet to send [18:30:53]OFD Sender: No OFD packet to send [18:30:58]OFD Sender: No OFD packet to send [18:31:03]OFD Sender: No OFD packet to send [18:31:08]OFD Sender: No OFD packet to send [18:31:13]OFD Sender: No OFD packet to send [18:31:18]OFD Sender: No OFD packet to send [18:31:23]OFD Sender: No OFD packet to send [18:31:28]OFD Sender: No OFD packet to send [18:31:33]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:41]accept exits with 7 [18:33:41]New connection [18:33:41]New thread 3066670436 created [18:33:41]Thread 3066813796 joined [18:33:41]Waiting for new connection... [18:33:41] Sock 7.Parse request [18:33:41]Sock 7.Check first char [18:33:41]Sock 7.First char is OK [18:33:41]request: POST /json_proto HTTP/1.0 [18:33:41]Method: POST [18:33:41]URL: /json_proto [18:33:41]Method is POST - this is cgi request [18:33:41]url: /json_proto [18:33:41]query_string will be loaded in cgi processing [18:33:41]execute_cgi json_proto POST (null) [18:33:41]execute_cgi path=json_proto method=POST [18:33:41]POST find Content-Length [18:33:41]Host: 172.17.56.67:8080 [18:33:41]Content-Length: 674 [18:33:41]Content-Type: application/json [18:33:41] [18:33:41]POST finish read [18:33:41]Found Content-Length = 674 [18:33:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216217", "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" ] } } [18:33:41]execute_script... [18:33: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)216217", "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" ] } } [18:33:41]POST & json_proto [18:33:41]process_json_proto [18:33:41]json parsed OK: [18:33:41]protocol is kg_v1.0 [18:33:41]action value=close_receipt [18:33:41]process_action close_receipt [18:33:41]cmd_close_receipt [18:33:41]MH_GetDate [18:33:41]Write to MH i2c: F0 00 00 EB 59 33 [18:33:41]Write i2c OK [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: F0 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: F0 09 00 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: F0 09 00 EB 59 00 94 EF B7 65 26 5D 9E 65 61 [18:33:41]GetLastDocTimeStamp 1706552148 [18:33:41]current date 1706553236 [18:33:41]FM_GetShiftState [18:33:41]SAM_PROTO_GetShiftState [18:33:41]wFMCommunicate request_size=4 [18:33:41]MH_SAM_APDU [18:33:41]CAPDU: 80 13 01 00 [18:33:41]Write to MH i2c: E2 08 00 EC 59 80 13 01 00 00 00 00 00 C2 [18:33:41]Write i2c OK [18:33:41]MH_I2C_Read... [18:33:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:41]Read from MH i2c: E2 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: E2 0E 00 [18:33:41]MH_I2C_Read... [18:33:41]Read from MH i2c: E2 0E 00 EC 59 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 34 [18:33:41]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [18:33:41]wFMCommunicate OK [18:33:41]SAM_PROTO_GetShiftState done [18:33:41]FM_GetShiftState done [18:33:41]opened in 1706486624 [18:33:41]opened+sec_in_day 1706573024 [18:33:41]quantity*price = 50048 [18:33:41]sum+1 = 50049 [18:33:41]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 СÐО: Общий режим Чек 98 29.01.2024 18:33 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49115 ФПД: 16058384039082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T183356&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49115&fm=16058384039082&tin=02508201610067®Number=0000000000092723&sum=50000 [18:33:43]StoreToDocumentArchive [18:33:43]shift 245 fd 49115 [18:33:43]save to /storage/0245/doc_00049115 [18:33:43]save last doc name /storage/0245/doc_00049115 to /storage/kkm_last_doc_name [18:33:43]save OK [18:33:43]Clear old archive folders... [18:33:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:33:43]tlvbuf is 011C3C40 [18:33:43]SAM_PROTO_ClearQueue [18:33:43]wFMCommunicate request_size=4 [18:33:43]MH_SAM_APDU [18:33:43]CAPDU: 80 09 00 00 [18:33:43]Write to MH i2c: E2 08 00 F9 59 80 09 00 00 00 00 00 00 C4 [18:33:43]Write i2c OK [18:33:43]MH_I2C_Read... [18:33:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:43]Read from MH i2c: E2 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 03 00 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 03 00 F9 59 00 90 00 C6 [18:33:43]RAPDU: 90 00 [18:33:43]wFMCommunicate OK [18:33:43]SAM_PROTO_ClearQueue done [18:33:43]KKMCreateOFDPacket [18:33:43]OFDProtocolAddRootSTLVToBuf [18:33:43]FM_MakeSignedData [18:33:43]FM_MakeSignedData [18:33:43]SAM_PROTO_SignData [18:33:43]wFMCommunicate request_size=4 [18:33:43]MH_SAM_APDU [18:33:43]CAPDU: 80 0D 01 02 [18:33:43]Write to MH i2c: E2 08 00 FA 59 80 0D 01 02 00 00 00 00 CC [18:33:43]Write i2c OK [18:33:43]MH_I2C_Read... [18:33:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:43]Read from MH i2c: E2 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 03 00 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 03 00 FA 59 00 90 00 C7 [18:33:43]RAPDU: 90 00 [18:33:43]wFMCommunicate OK [18:33:43]wFMCommunicate request_size=255 [18:33:43]MH_SAM_APDU [18:33:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 62 00 00 00 F4 03 04 00 94 EF B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 0E 9A E2 46 [18:33:43]Write to MH i2c: E2 02 01 FB 59 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 62 00 00 00 F4 03 04 00 94 EF B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 0E 9A E2 46 00 00 F9 [18:33:43]Write i2c OK [18:33:43]MH_I2C_Read... [18:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:43]Read from MH i2c: E2 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 03 00 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 03 00 FB 59 00 90 00 C8 [18:33:43]RAPDU: 90 00 [18:33:43]wFMCommunicate OK [18:33:43]wFMCommunicate request_size=7 [18:33:43]MH_SAM_APDU [18:33:43]CAPDU: 80 0D 02 02 02 BC AA [18:33:43]Write to MH i2c: E2 0A 00 FC 59 80 0D 02 02 02 00 BC AA 00 00 39 [18:33:43]Write i2c OK [18:33:43]MH_I2C_Read... [18:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:43]Read from MH i2c: E2 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 03 00 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 03 00 FC 59 00 90 00 C9 [18:33:43]RAPDU: 90 00 [18:33:43]wFMCommunicate OK [18:33:43]wFMCommunicate request_size=4 [18:33:43]MH_SAM_APDU [18:33:43]CAPDU: 80 0D 03 02 [18:33:43]Write to MH i2c: E2 08 00 FD 59 80 0D 03 02 00 00 00 00 D1 [18:33:43]Write i2c OK [18:33:43]MH_I2C_Read... [18:33:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:43]Read from MH i2c: E2 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 0B 00 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 0B 00 FD 59 00 F2 DF 06 65 73 BE C3 86 90 00 88 [18:33:43]RAPDU: F2 DF 06 65 73 BE C3 86 90 00 [18:33:43]wFMCommunicate OK [18:33:43]SAM_PROTO_SignData done [18:33:43]FM_MakeSignedData done [18:33:43]CreateOFDProtocolMessage [18:33:43]wFMCommunicate request_size=4 [18:33:43]MH_SAM_APDU [18:33:43]CAPDU: 80 11 00 00 [18:33:43]Write to MH i2c: E2 08 00 FE 59 80 11 00 00 00 00 00 00 D1 [18:33:43]Write i2c OK [18:33:43]MH_I2C_Read... [18:33:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:43]Read from MH i2c: E2 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 17 00 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 17 00 FE 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 1E [18:33: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:33:43]wFMCommunicate OK [18:33:43]CreateOFDProtocolMessage done [18:33:43]OFDSenderStorePacket 49115 [18:33:43]StoreOFDPacket docnum=49115 [18:33: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 0C 01 00 00 8C 51 04 01 61 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 62 00 00 00 F4 03 04 00 94 EF B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 0E 9A E2 46 BC AA F2 DF 06 65 73 BE C3 86 [18:33:43]CheckFolder [18:33:43]dirname=/storage/ofd_packets [18:33:43]CheckFolder done [18:33:43]ProducePacketName [18:33:43]name=ofd_packets/00049115 [18:33:43]NVStorageSaveData ofd_packets/00049115 [18:33:43]File name is /storage/ofd_packets/00049115 [18:33:43]Write 298 bytes [18:33:43]NVStorageSaveData done [18:33:43]OFDSenderStorePacket done [18:33:43]KKMCreateOFDPacket done [18:33:43]NVStorageSaveData kkm_last_timestamp [18:33:43]File name is /storage/kkm_last_timestamp [18:33:43]Write 4 bytes [18:33:43]NVStorageSaveData done [18:33:43]ExternCall_PrintAddStr [18:33:43]wPrintStart [18:33:43]Write to MH i2c: 01 00 00 FF 59 58 [18:33:43]Write i2c OK [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: 01 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: 01 07 00 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: 01 07 00 FF 59 00 00 00 00 00 FF 0F 6D [18:33:43]RasterBufferAndPrint [18:33:43]line Счет N : (1)216217 [18:33:43]line ИÐÐ: 02508201610067 [18:33:43]line Контрольно-КаÑÑовый Чек [18:33:43]line ПРОДÐЖР[18:33:43]line ТРК (МРК, ГÐК) : 11 [18:33:43]line Товар: 2710194210 [18:33:43]line ДТ-К-5 [18:33:43]line 7.160 * 69.90 [18:33:43]line = 500.48 [18:33:43]line ÐДС 12% ÐСП 1% [18:33:43]line > о реализуемом товаре [18:33:43]line ОКРУГЛЕÐИЕ: -0.48 [18:33:43]line ИТОГО: 500.00 [18:33:43]line ВнеÑено: 500.00 [18:33:43]line СДÐЧÐ: 0.00 [18:33:43]line ÐСП 1% : 4.43 [18:33:43]line ÐДС 12% : 53.15 [18:33:43]line Ðаличными: 500.00 [18:33:43]line Безнал.: 0.00 [18:33:43]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [18:33:43]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:33:43]line СÐО: Общий режим [18:33:43]line Чек 98 29.01.2024 18:33 [18:33:43]line Смена: 245 ФФД: 1.0 [18:33:43]line ЗÐМ: 0300000040 [18:33:43]line РÐМ: 0000000000092723 [18:33:43]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [18:33:43]line ФМ: 0000000000875060 [18:33:43]line ФД: 49115 [18:33:43]line ФПД: 16058384039082 [18:33:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T183356&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49115&fm=16058384039082&tin=02508201610067®Number=0000000000092723&sum=50000 [18:33:43]OFD Sender: Processing packet 49115 [packets to send 12, broken 11] [18:33:43]ProducePacketName [18:33:43]name=ofd_packets/00049115 [18:33:43]OFD Sender: To server: ‡•öpG, [18:33:43]CommunicateWithHost lk.salyk.kg:30040 [18:33:43]ConnectInit lk.salyk.kg [18:33:43]written 0, free lines is 4095 [18:33:43]Connected sock=10 [18:33: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 0C 01 00 00 8C 51 04 01 61 C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 62 00 00 00 F4 03 04 00 94 EF B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 0E 9A E2 46 BC AA F2 DF 06 65 73 BE C3 86 [18:33: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 8F A4 47 00 36 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DB BF 00 00 F4 03 04 00 8C 9B B7 65 B6 04 01 00 00 71 83 62 B0 CB FC DA 9A [18:33:44]CommunicateWithHost err = 0 [18:33:44]CheckOFDResponse [18:33:44]1017 (14) - 77093643461234 [18:33:44]1041 (16) - 0000000000875060 [18:33:44]1040 (4) - 49115 [18:33:44]1012 (4) - 29.01.2024 12:35 [18:33:44]1206 (1) - 0 [18:33:44]OFD Sender: Remove packet 49115 [18:33:44]ProducePacketName [18:33:44]name=ofd_packets/00049115 [18:33:44]NVStorageDeleteData [18:33:44]Write to MH i2c: 01 00 00 2A 5A 84 [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: 01 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: 01 07 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: 01 07 00 2A 5A 00 00 00 00 00 E4 0C 7B [18:33:44]RasterBufferAndPrint [18:33:44]line [18:33:44]line [18:33:44]line [18:33:44]line [18:33:44]line [18:33:44]written 0, free lines is 3306 [18:33:44]MH_Cut [18:33:44]Write to MH i2c: D1 01 00 31 5A 01 5D [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: D1 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: D1 01 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: D1 01 00 31 5A 00 5C [18:33:44]Write to MH i2c: 01 00 00 32 5A 8C [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]OFD Sender: No OFD packet to send [18:33:45]*** Cut start [18:33:45]*** Partial cut [18:33:45]*** CUTSNS_PIN = 1 [18:33:45]*** CUTSNS_PIN = 0 [18:33:45]*** Brake cut motor [18:33:45]Read from MH i2c: 01 [18:33:45]MH_I2C_Read... [18:33:45]*** Stop cut motor [18:33:45]*** Cut end [18:33:45]Read from MH i2c: 01 07 00 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: 01 07 00 32 5A 00 00 00 00 00 FF 0F A1 [18:33:45]process_action close_receipt done [18:33:45]requested_data is exist [18:33:45]produce_requested_data [18:33:45]requested_item fm.sn is exist - process it [18:33:45]wFMCommunicate request_size=4 [18:33:45]MH_SAM_APDU [18:33:45]CAPDU: 80 11 00 00 [18:33:45]Write to MH i2c: E2 08 00 33 5A 80 11 00 00 00 00 00 00 07 [18:33:45]Write i2c OK [18:33:45]MH_I2C_Read... [18:33:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:45]Read from MH i2c: E2 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 17 00 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 17 00 33 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 54 [18:33: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:33:45]wFMCommunicate OK [18:33:45]requested_item fd.num is exist - process it [18:33:45]SAM_PROTO_GetFieldsCounters [18:33:45]wFMCommunicate request_size=4 [18:33:45]MH_SAM_APDU [18:33:45]CAPDU: 80 13 00 00 [18:33:45]Write to MH i2c: E2 08 00 34 5A 80 13 00 00 00 00 00 00 0A [18:33:45]Write i2c OK [18:33:45]MH_I2C_Read... [18:33:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:45]Read from MH i2c: E2 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 62 00 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 62 00 34 5A 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 BF 00 00 0E 04 04 00 F5 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 D8 [18:33: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 DB BF 00 00 0E 04 04 00 F5 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 [18:33:45]wFMCommunicate OK [18:33:45]SAM_PROTO_GetFieldsCounters done [18:33:45]requested_item shift.num is exist - process it [18:33:45]requested_item shift.opened is exist - process it [18:33:45]req_shift_opened [18:33:45]FM_GetShiftState [18:33:45]SAM_PROTO_GetShiftState [18:33:45]wFMCommunicate request_size=4 [18:33:45]MH_SAM_APDU [18:33:45]CAPDU: 80 13 01 00 [18:33:45]Write to MH i2c: E2 08 00 35 5A 80 13 01 00 00 00 00 00 0C [18:33:45]Write i2c OK [18:33:45]MH_I2C_Read... [18:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:45]Read from MH i2c: E2 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 0E 00 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 0E 00 35 5A 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 7E [18:33:45]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [18:33:45]wFMCommunicate OK [18:33:45]SAM_PROTO_GetShiftState done [18:33:45]FM_GetShiftState done [18:33:45]req_shift_opened done [18:33:45]requested_item shift.open_date is exist - process it [18:33:45]req_shift_open_date [18:33:45]req_shift_open_date done [18:33:45]produce_requested_data done [18:33:45]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49115,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [18:33:45]process_action_free close_receipt [18:33:45]json_value_free [18:33:45]json_value_free done [18:33:45]process_json_proto returns [18:33:45]Send response to host [18:33:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49115,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [18:33:45]free response buf [18:33:45]execute_script done [18:33:45]execute_script returns [18:33:45]free content buf [18:33:45]Sock 7.Close socket [18:33:45]Sock 7.Thread stoped [18:33:49]OFD Sender: No OFD packet to send [18:33:54]OFD Sender: No OFD packet to send [18:33:59]OFD Sender: No OFD packet to send [18:34:04]OFD Sender: No OFD packet to send [18:34:09]OFD Sender: No OFD packet to send [18:34:14]OFD Sender: No OFD packet to send [18:34:19]OFD Sender: No OFD packet to send [18:34:24]OFD Sender: No OFD packet to send [18:34:29]OFD Sender: No OFD packet to send [18:34:34]OFD Sender: No OFD packet to send [18:34:39]OFD Sender: No OFD packet to send [18:34:44]OFD Sender: No OFD packet to send [18:34:49]OFD Sender: No OFD packet to send [18:34:54]OFD Sender: No OFD packet to send [18:34:59]OFD Sender: No OFD packet to send [18:35:04]OFD Sender: No OFD packet to send [18:35:09]OFD Sender: No OFD packet to send [18:35:14]OFD Sender: No OFD packet to send [18:35:19]OFD Sender: No OFD packet to send [18:35:24]OFD Sender: No OFD packet to send [18:35:29]OFD Sender: No OFD packet to send [18:35:34]OFD Sender: No OFD packet to send [18:35:39]OFD Sender: No OFD packet to send [18:35:44]OFD Sender: No OFD packet to send [18:35:49]OFD Sender: No OFD packet to send [18:35:54]OFD Sender: No OFD packet to send [18:35:59]OFD Sender: No OFD packet to send [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:35]OFD Sender: No OFD packet to send [18:45:40]OFD Sender: No OFD packet to send [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]accept exits with 9 [18:49:55]New connection [18:49:55]New thread 3066813796 created [18:49:55]Thread 3066670436 joined [18:49:55]Waiting for new connection... [18:49:55] Sock 9.Parse request [18:49:55]Sock 9.Check first char [18:49:55]Sock 9.First char is OK [18:49:55]request: POST /json_proto HTTP/1.0 [18:49:55]Method: POST [18:49:55]URL: /json_proto [18:49:55]Method is POST - this is cgi request [18:49:55]url: /json_proto [18:49:55]query_string will be loaded in cgi processing [18:49:55]execute_cgi json_proto POST (null) [18:49:55]execute_cgi path=json_proto method=POST [18:49:55]POST find Content-Length [18:49:55]Host: 172.17.56.67:8080 [18:49:55]Content-Length: 678 [18:49:55]Content-Type: application/json [18:49:55] [18:49:55]POST finish read [18:49:55]Found Content-Length = 678 [18:49:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216218", "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" : 14.930, "sum" : 900.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:55]execute_script... [18:49:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216218", "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" : 14.930, "sum" : 900.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:55]POST & json_proto [18:49:55]process_json_proto [18:49:55]json parsed OK: [18:49:55]protocol is kg_v1.0 [18:49:55]action value=close_receipt [18:49:55]process_action close_receipt [18:49:55]cmd_close_receipt [18:49:55]MH_GetDate [18:49:55]Write to MH i2c: F0 00 00 36 5A 7F [18:49:55]Write i2c OK [18:49:55]MH_I2C_Read... [18:49:55]Read from MH i2c: F0 [18:49:55]MH_I2C_Read... [18:49:55]Read from MH i2c: F0 09 00 [18:49:55]MH_I2C_Read... [18:49:55]Read from MH i2c: F0 09 00 36 5A 00 62 F3 B7 65 26 5D 9E 65 7F [18:49:55]GetLastDocTimeStamp 1706553236 [18:49:55]current date 1706554210 [18:49:55]FM_GetShiftState [18:49:55]SAM_PROTO_GetShiftState [18:49:55]wFMCommunicate request_size=4 [18:49:55]MH_SAM_APDU [18:49:55]CAPDU: 80 13 01 00 [18:49:55]Write to MH i2c: E2 08 00 37 5A 80 13 01 00 00 00 00 00 0E [18:49:55]Write i2c OK [18:49:55]MH_I2C_Read... [18:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:55]Read from MH i2c: E2 [18:49:55]MH_I2C_Read... [18:49:55]Read from MH i2c: E2 0E 00 [18:49:55]MH_I2C_Read... [18:49:55]Read from MH i2c: E2 0E 00 37 5A 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 80 [18:49:55]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [18:49:55]wFMCommunicate OK [18:49:55]SAM_PROTO_GetShiftState done [18:49:55]FM_GetShiftState done [18:49:55]opened in 1706486624 [18:49:55]opened+sec_in_day 1706573024 [18:49:55]quantity*price = 90027 [18:49:55]sum+1 = 90029 [18:49:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.28 ИТОГО: 900.00 ВнеÑено: 900.00 СДÐЧÐ: 0.00 ÐСП 1% : 7.97 ÐДС 12% : 95.60 Ðаличными: 900.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 99 29.01.2024 18:50 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49116 ФПД: 241942248731626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T185010&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49116&fm=241942248731626&tin=02508201610067®Number=0000000000092723&sum=90000 [18:49:56]StoreToDocumentArchive [18:49:56]shift 245 fd 49116 [18:49:56]save to /storage/0245/doc_00049116 [18:49:56]save last doc name /storage/0245/doc_00049116 to /storage/kkm_last_doc_name [18:49:56]save OK [18:49:56]Clear old archive folders... [18:49:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:56]tlvbuf is 0128CC80 [18:49:56]SAM_PROTO_ClearQueue [18:49:56]wFMCommunicate request_size=4 [18:49:56]MH_SAM_APDU [18:49:56]CAPDU: 80 09 00 00 [18:49:56]Write to MH i2c: E2 08 00 44 5A 80 09 00 00 00 00 00 00 10 [18:49:56]Write i2c OK [18:49:56]MH_I2C_Read... [18:49:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:56]Read from MH i2c: E2 [18:49:56]MH_I2C_Read... [18:49:56]Read from MH i2c: E2 03 00 [18:49:56]MH_I2C_Read... [18:49:56]Read from MH i2c: E2 03 00 44 5A 00 90 00 12 [18:49:56]RAPDU: 90 00 [18:49:56]wFMCommunicate OK [18:49:56]SAM_PROTO_ClearQueue done [18:49:56]KKMCreateOFDPacket [18:49:56]OFDProtocolAddRootSTLVToBuf [18:49:56]FM_MakeSignedData [18:49:56]FM_MakeSignedData [18:49:56]SAM_PROTO_SignData [18:49:56]wFMCommunicate request_size=4 [18:49:56]MH_SAM_APDU [18:49:56]CAPDU: 80 0D 01 02 [18:49:56]Write to MH i2c: E2 08 00 45 5A 80 0D 01 02 00 00 00 00 18 [18:49:56]Write i2c OK [18:49:56]MH_I2C_Read... [18:49:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:56]Read from MH i2c: E2 [18:49:56]MH_I2C_Read... [18:49:56]Read from MH i2c: E2 03 00 [18:49:56]MH_I2C_Read... [18:49:56]Read from MH i2c: E2 03 00 45 5A 00 90 00 13 [18:49:56]RAPDU: 90 00 [18:49:56]wFMCommunicate OK [18:49:56]wFMCommunicate request_size=255 [18:49:56]MH_SAM_APDU [18:49:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 3A 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 AC 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 62 F3 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 DC [18:49:56]Write to MH i2c: E2 02 01 46 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 3A 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 AC 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 62 F3 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 DC 00 00 14 [18:49:56]Write i2c OK [18:49:56]MH_I2C_Read... [18:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:56]Read from MH i2c: E2 [18:49:56]MH_I2C_Read... [18:49:56]Read from MH i2c: E2 03 00 [18:49:56]MH_I2C_Read... [18:49:56]Read from MH i2c: E2 03 00 46 5A 00 90 00 14 [18:49:56]RAPDU: 90 00 [18:49:56]wFMCommunicate OK [18:49:56]wFMCommunicate request_size=10 [18:49:56]MH_SAM_APDU [18:49:56]CAPDU: 80 0D 02 02 05 0B 91 CA B3 EA [18:49:56]Write to MH i2c: E2 0D 00 47 5A 80 0D 02 02 05 00 0B 91 CA B3 EA 00 00 28 [18:49:56]Write i2c OK [18:49:56]MH_I2C_Read... [18:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:56]Read from MH i2c: E2 [18:49:56]MH_I2C_Read... [18:49:56]Read from MH i2c: E2 03 00 [18:49:56]MH_I2C_Read... [18:49:56]Read from MH i2c: E2 03 00 47 5A 00 90 00 15 [18:49:56]RAPDU: 90 00 [18:49:56]wFMCommunicate OK [18:49:56]wFMCommunicate request_size=4 [18:49:56]MH_SAM_APDU [18:49:56]CAPDU: 80 0D 03 02 [18:49:56]Write to MH i2c: E2 08 00 48 5A 80 0D 03 02 00 00 00 00 1D [18:49:56]Write i2c OK [18:49:56]MH_I2C_Read... [18:49:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:56]Read from MH i2c: E2 [18:49:56]MH_I2C_Read... [18:49:56]Read from MH i2c: E2 0B 00 [18:49:56]MH_I2C_Read... [18:49:56]Read from MH i2c: E2 0B 00 48 5A 00 D2 CB F7 EC 4B B9 5F 80 90 00 81 [18:49:56]RAPDU: D2 CB F7 EC 4B B9 5F 80 90 00 [18:49:56]wFMCommunicate OK [18:49:56]SAM_PROTO_SignData done [18:49:56]FM_MakeSignedData done [18:49:56]CreateOFDProtocolMessage [18:49:56]wFMCommunicate request_size=4 [18:49:56]MH_SAM_APDU [18:49:56]CAPDU: 80 11 00 00 [18:49:56]Write to MH i2c: E2 08 00 49 5A 80 11 00 00 00 00 00 00 1D [18:49:56]Write i2c OK [18:49:56]MH_I2C_Read... [18:49:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:57]Read from MH i2c: E2 [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: E2 17 00 [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: E2 17 00 49 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 6A [18:49:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:49:57]wFMCommunicate OK [18:49:57]CreateOFDProtocolMessage done [18:49:57]OFDSenderStorePacket 49116 [18:49:57]StoreOFDPacket docnum=49116 [18:49: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 05 87 07 01 8F 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 3A 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 AC 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 62 F3 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 DC 0B 91 CA B3 EA D2 CB F7 EC 4B B9 5F 80 [18:49:57]CheckFolder [18:49:57]dirname=/storage/ofd_packets [18:49:57]CheckFolder done [18:49:57]ProducePacketName [18:49:57]name=ofd_packets/00049116 [18:49:57]NVStorageSaveData ofd_packets/00049116 [18:49:57]File name is /storage/ofd_packets/00049116 [18:49:57]Write 301 bytes [18:49:57]NVStorageSaveData done [18:49:57]OFDSenderStorePacket done [18:49:57]KKMCreateOFDPacket done [18:49:57]NVStorageSaveData kkm_last_timestamp [18:49:57]File name is /storage/kkm_last_timestamp [18:49:57]Write 4 bytes [18:49:57]NVStorageSaveData done [18:49:57]ExternCall_PrintAddStr [18:49:57]wPrintStart [18:49:57]Write to MH i2c: 01 00 00 4A 5A A4 [18:49:57]Write i2c OK [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: 01 [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: 01 07 00 [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: 01 07 00 4A 5A 00 00 00 00 00 FF 0F B9 [18:49:57]RasterBufferAndPrint [18:49:57]line Счет N : (1)216218 [18:49:57]line ИÐÐ: 02508201610067 [18:49:57]line Контрольно-КаÑÑовый Чек [18:49:57]line ПРОДÐЖР[18:49:57]line ТРК (МРК, ГÐК) : 12 [18:49:57]line Товар: 2710124130 [18:49:57]line Ðи-92-К-5 [18:49:57]line 14.930 * 60.30 [18:49:57]line = 900.28 [18:49:57]line ÐДС 12% ÐСП 1% [18:49:57]line > о реализуемом товаре [18:49:57]line ОКРУГЛЕÐИЕ: -0.28 [18:49:57]line ИТОГО: 900.00 [18:49:57]line ВнеÑено: 900.00 [18:49:57]line СДÐЧÐ: 0.00 [18:49:57]line ÐСП 1% : 7.97 [18:49:57]line ÐДС 12% : 95.60 [18:49:57]line Ðаличными: 900.00 [18:49:57]line Безнал.: 0.00 [18:49:57]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [18:49:57]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [18:49:57]line СÐО: Общий режим [18:49:57]line Чек 99 29.01.2024 18:50 [18:49:57]line Смена: 245 ФФД: 1.0 [18:49:57]line ЗÐМ: 0300000040 [18:49:57]line РÐМ: 0000000000092723 [18:49:57]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [18:49:57]line ФМ: 0000000000875060 [18:49:57]line ФД: 49116 [18:49:57]line ФПД: 241942248731626 [18:49:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T185010&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49116&fm=241942248731626&tin=02508201610067®Number=0000000000092723&sum=90000 [18:49:57]OFD Sender: Processing packet 49116 [packets to send 12, broken 11] [18:49:57]ProducePacketName [18:49:57]name=ofd_packets/00049116 [18:49:57]OFD Sender: To server: ‡•öpG, [18:49:57]CommunicateWithHost lk.salyk.kg:30040 [18:49:57]ConnectInit lk.salyk.kg [18:49:57]written 0, free lines is 4095 [18:49:57]Connected sock=10 [18:49:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 05 87 07 01 8F 2F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 3A 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 AC 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 62 F3 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 DC 0B 91 CA B3 EA D2 CB F7 EC 4B B9 5F 80 [18:49: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 3B A4 47 00 ED EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DC BF 00 00 F4 03 04 00 5A 9F B7 65 B6 04 01 00 00 49 2B D4 88 D1 18 18 9E [18:49:57]CommunicateWithHost err = 0 [18:49:57]CheckOFDResponse [18:49:57]1017 (14) - 77093643461234 [18:49:57]1041 (16) - 0000000000875060 [18:49:57]1040 (4) - 49116 [18:49:57]1012 (4) - 29.01.2024 12:51 [18:49:57]1206 (1) - 0 [18:49:57]OFD Sender: Remove packet 49116 [18:49:57]ProducePacketName [18:49:57]name=ofd_packets/00049116 [18:49:57]NVStorageDeleteData [18:49:57]Write to MH i2c: 01 00 00 75 5A CF [18:49:57]Write i2c OK [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: 01 [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: 01 07 00 [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: 01 07 00 75 5A 00 00 00 00 00 F0 0C D2 [18:49:57]RasterBufferAndPrint [18:49:57]line [18:49:57]line [18:49:57]line [18:49:57]line [18:49:57]line [18:49:57]written 0, free lines is 3319 [18:49:57]MH_Cut [18:49:57]Write to MH i2c: D1 01 00 7C 5A 01 A8 [18:49:57]Write i2c OK [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: D1 [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: D1 01 00 [18:49:57]MH_I2C_Read... [18:49:57]Read from MH i2c: D1 01 00 7C 5A 00 A7 [18:49:57]Write to MH i2c: 01 00 00 7D 5A D7 [18:49:57]Write i2c OK [18:49:57]MH_I2C_Read... [18:49:58]OFD Sender: No OFD packet to send [18:49:58]*** Cut start [18:49:58]*** Partial cut [18:49:58]*** CUTSNS_PIN = 1 [18:49:58]*** CUTSNS_PIN = 0 [18:49:58]*** Brake cut motor [18:49:59]Read from MH i2c: 01 [18:49:59]MH_I2C_Read... [18:49:59]*** Stop cut motor [18:49:59]*** Cut end [18:49:59]Read from MH i2c: 01 07 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: 01 07 00 7D 5A 00 00 00 00 00 FF 0F EC [18:49:59]process_action close_receipt done [18:49:59]requested_data is exist [18:49:59]produce_requested_data [18:49:59]requested_item fm.sn is exist - process it [18:49:59]wFMCommunicate request_size=4 [18:49:59]MH_SAM_APDU [18:49:59]CAPDU: 80 11 00 00 [18:49:59]Write to MH i2c: E2 08 00 7E 5A 80 11 00 00 00 00 00 00 52 [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:59]Read from MH i2c: E2 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 17 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 17 00 7E 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9F [18:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [18:49:59]wFMCommunicate OK [18:49:59]requested_item fd.num is exist - process it [18:49:59]SAM_PROTO_GetFieldsCounters [18:49:59]wFMCommunicate request_size=4 [18:49:59]MH_SAM_APDU [18:49:59]CAPDU: 80 13 00 00 [18:49:59]Write to MH i2c: E2 08 00 7F 5A 80 13 00 00 00 00 00 00 55 [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:59]Read from MH i2c: E2 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 62 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 62 00 7F 5A 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 BF 00 00 0E 04 04 00 F5 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 27 [18:49:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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:49:59]wFMCommunicate OK [18:49:59]SAM_PROTO_GetFieldsCounters done [18:49:59]requested_item shift.num is exist - process it [18:49:59]requested_item shift.opened is exist - process it [18:49:59]req_shift_opened [18:49:59]FM_GetShiftState [18:49:59]SAM_PROTO_GetShiftState [18:49:59]wFMCommunicate request_size=4 [18:49:59]MH_SAM_APDU [18:49:59]CAPDU: 80 13 01 00 [18:49:59]Write to MH i2c: E2 08 00 80 5A 80 13 01 00 00 00 00 00 57 [18:49:59]Write i2c OK [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 [18:49:59]MH_I2C_Read... [18:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:59]Read from MH i2c: E2 0E 00 [18:49:59]MH_I2C_Read... [18:49:59]Read from MH i2c: E2 0E 00 80 5A 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 C9 [18:49:59]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [18:49:59]wFMCommunicate OK [18:49:59]SAM_PROTO_GetShiftState done [18:49:59]FM_GetShiftState done [18:49:59]req_shift_opened done [18:49:59]requested_item shift.open_date is exist - process it [18:49:59]req_shift_open_date [18:49:59]req_shift_open_date done [18:49:59]produce_requested_data done [18:49:59]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49116,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [18:49:59]process_action_free close_receipt [18:49:59]json_value_free [18:49:59]json_value_free done [18:49:59]process_json_proto returns [18:49:59]Send response to host [18:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49116,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [18:49:59]free response buf [18:49:59]execute_script done [18:49:59]execute_script returns [18:49:59]free content buf [18:49:59]Sock 9.Close socket [18:49:59]Sock 9.Thread stoped [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:27]accept exits with 7 [19:00:27]New connection [19:00:27]New thread 3066670436 created [19:00:27]Thread 3066813796 joined [19:00:27]Waiting for new connection... [19:00:27] Sock 7.Parse request [19:00:27]Sock 7.Check first char [19:00:27]Sock 7.First char is OK [19:00:27]request: POST /json_proto HTTP/1.0 [19:00:27]Method: POST [19:00:27]URL: /json_proto [19:00:27]Method is POST - this is cgi request [19:00:27]url: /json_proto [19:00:27]query_string will be loaded in cgi processing [19:00:27]execute_cgi json_proto POST (null) [19:00:27]execute_cgi path=json_proto method=POST [19:00:27]POST find Content-Length [19:00:27]Host: 172.17.56.67:8080 [19:00:27]Content-Length: 677 [19:00:27]Content-Type: application/json [19:00:27] [19:00:27]POST finish read [19:00:27]Found Content-Length = 677 [19:00:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216219", "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" ] } } [19:00:27]execute_script... [19:00: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)216219", "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" ] } } [19:00:27]POST & json_proto [19:00:27]process_json_proto [19:00:27]json parsed OK: [19:00:27]protocol is kg_v1.0 [19:00:27]action value=close_receipt [19:00:27]process_action close_receipt [19:00:27]cmd_close_receipt [19:00:27]MH_GetDate [19:00:27]Write to MH i2c: F0 00 00 81 5A CA [19:00:27]Write i2c OK [19:00:27]MH_I2C_Read... [19:00:27]Read from MH i2c: F0 [19:00:27]MH_I2C_Read... [19:00:27]Read from MH i2c: F0 09 00 [19:00:27]MH_I2C_Read... [19:00:27]Read from MH i2c: F0 09 00 81 5A 00 DA F5 B7 65 26 5D 9E 65 44 [19:00:27]GetLastDocTimeStamp 1706554210 [19:00:27]current date 1706554842 [19:00:27]FM_GetShiftState [19:00:27]SAM_PROTO_GetShiftState [19:00:27]wFMCommunicate request_size=4 [19:00:27]MH_SAM_APDU [19:00:27]CAPDU: 80 13 01 00 [19:00:27]Write to MH i2c: E2 08 00 82 5A 80 13 01 00 00 00 00 00 59 [19:00:27]Write i2c OK [19:00:27]MH_I2C_Read... [19:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:27]Read from MH i2c: E2 [19:00:27]MH_I2C_Read... [19:00:27]Read from MH i2c: E2 0E 00 [19:00:27]MH_I2C_Read... [19:00:27]Read from MH i2c: E2 0E 00 82 5A 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 CB [19:00:27]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [19:00:27]wFMCommunicate OK [19:00:27]SAM_PROTO_GetShiftState done [19:00:27]FM_GetShiftState done [19:00:27]opened in 1706486624 [19:00:27]opened+sec_in_day 1706573024 [19:00:27]quantity*price = 30029 [19:00:27]sum+1 = 30030 [19:00:27]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 СÐО: Общий режим Чек 100 29.01.2024 19:00 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49117 ФПД: 109708099159820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T190042&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49117&fm=109708099159820&tin=02508201610067®Number=0000000000092723&sum=30000 [19:00:28]StoreToDocumentArchive [19:00:28]shift 245 fd 49117 [19:00:28]save to /storage/0245/doc_00049117 [19:00:28]save last doc name /storage/0245/doc_00049117 to /storage/kkm_last_doc_name [19:00:28]save OK [19:00:28]Clear old archive folders... [19:00:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:00:28]tlvbuf is 013CD130 [19:00:28]SAM_PROTO_ClearQueue [19:00:28]wFMCommunicate request_size=4 [19:00:28]MH_SAM_APDU [19:00:28]CAPDU: 80 09 00 00 [19:00:28]Write to MH i2c: E2 08 00 8F 5A 80 09 00 00 00 00 00 00 5B [19:00:28]Write i2c OK [19:00:28]MH_I2C_Read... [19:00:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:29]Read from MH i2c: E2 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 03 00 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 03 00 8F 5A 00 90 00 5D [19:00:29]RAPDU: 90 00 [19:00:29]wFMCommunicate OK [19:00:29]SAM_PROTO_ClearQueue done [19:00:29]KKMCreateOFDPacket [19:00:29]OFDProtocolAddRootSTLVToBuf [19:00:29]FM_MakeSignedData [19:00:29]FM_MakeSignedData [19:00:29]SAM_PROTO_SignData [19:00:29]wFMCommunicate request_size=4 [19:00:29]MH_SAM_APDU [19:00:29]CAPDU: 80 0D 01 02 [19:00:29]Write to MH i2c: E2 08 00 90 5A 80 0D 01 02 00 00 00 00 63 [19:00:29]Write i2c OK [19:00:29]MH_I2C_Read... [19:00:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:29]Read from MH i2c: E2 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 03 00 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 03 00 90 5A 00 90 00 5E [19:00:29]RAPDU: 90 00 [19:00:29]wFMCommunicate OK [19:00:29]wFMCommunicate request_size=255 [19:00:29]MH_SAM_APDU [19:00: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 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 64 00 00 00 F4 03 04 00 DA F5 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 63 [19:00:29]Write to MH i2c: E2 02 01 91 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 64 00 00 00 F4 03 04 00 DA F5 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 63 00 00 6C [19:00:29]Write i2c OK [19:00:29]MH_I2C_Read... [19:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:29]Read from MH i2c: E2 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 03 00 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 03 00 91 5A 00 90 00 5F [19:00:29]RAPDU: 90 00 [19:00:29]wFMCommunicate OK [19:00:29]wFMCommunicate request_size=10 [19:00:29]MH_SAM_APDU [19:00:29]CAPDU: 80 0D 02 02 05 C7 68 47 87 0C [19:00:29]Write to MH i2c: E2 0D 00 92 5A 80 0D 02 02 05 00 C7 68 47 87 0C 00 00 79 [19:00:29]Write i2c OK [19:00:29]MH_I2C_Read... [19:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:29]Read from MH i2c: E2 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 03 00 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 03 00 92 5A 00 90 00 60 [19:00:29]RAPDU: 90 00 [19:00:29]wFMCommunicate OK [19:00:29]wFMCommunicate request_size=4 [19:00:29]MH_SAM_APDU [19:00:29]CAPDU: 80 0D 03 02 [19:00:29]Write to MH i2c: E2 08 00 93 5A 80 0D 03 02 00 00 00 00 68 [19:00:29]Write i2c OK [19:00:29]MH_I2C_Read... [19:00:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:29]Read from MH i2c: E2 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 0B 00 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 0B 00 93 5A 00 A4 F3 99 9B B5 37 FD 9A 90 00 B7 [19:00:29]RAPDU: A4 F3 99 9B B5 37 FD 9A 90 00 [19:00:29]wFMCommunicate OK [19:00:29]SAM_PROTO_SignData done [19:00:29]FM_MakeSignedData done [19:00:29]CreateOFDProtocolMessage [19:00:29]wFMCommunicate request_size=4 [19:00:29]MH_SAM_APDU [19:00:29]CAPDU: 80 11 00 00 [19:00:29]Write to MH i2c: E2 08 00 94 5A 80 11 00 00 00 00 00 00 68 [19:00:29]Write i2c OK [19:00:29]MH_I2C_Read... [19:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:29]Read from MH i2c: E2 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 17 00 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: E2 17 00 94 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 B5 [19: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 [19:00:29]wFMCommunicate OK [19:00:29]CreateOFDProtocolMessage done [19:00:29]OFDSenderStorePacket 49117 [19:00:29]StoreOFDPacket docnum=49117 [19:00: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 16 A7 07 01 6A 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 64 00 00 00 F4 03 04 00 DA F5 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 63 C7 68 47 87 0C A4 F3 99 9B B5 37 FD 9A [19:00:29]CheckFolder [19:00:29]dirname=/storage/ofd_packets [19:00:29]CheckFolder done [19:00:29]ProducePacketName [19:00:29]name=ofd_packets/00049117 [19:00:29]NVStorageSaveData ofd_packets/00049117 [19:00:29]File name is /storage/ofd_packets/00049117 [19:00:29]Write 301 bytes [19:00:29]NVStorageSaveData done [19:00:29]OFDSenderStorePacket done [19:00:29]KKMCreateOFDPacket done [19:00:29]NVStorageSaveData kkm_last_timestamp [19:00:29]File name is /storage/kkm_last_timestamp [19:00:29]Write 4 bytes [19:00:29]NVStorageSaveData done [19:00:29]ExternCall_PrintAddStr [19:00:29]wPrintStart [19:00:29]Write to MH i2c: 01 00 00 95 5A EF [19:00:29]Write i2c OK [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: 01 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: 01 07 00 [19:00:29]MH_I2C_Read... [19:00:29]Read from MH i2c: 01 07 00 95 5A 00 00 00 00 00 FF 0F 04 [19:00:29]RasterBufferAndPrint [19:00:29]line Счет N : (1)216219 [19:00:29]line ИÐÐ: 02508201610067 [19:00:29]line Контрольно-КаÑÑовый Чек [19:00:29]line ПРОДÐЖР[19:00:29]line ТРК (МРК, ГÐК) : 12 [19:00:29]line Товар: 2710124130 [19:00:29]line Ðи-92-К-5 [19:00:29]line 4.980 * 60.30 [19:00:29]line = 300.29 [19:00:29]line ÐДС 12% ÐСП 1% [19:00:29]line > о реализуемом товаре [19:00:29]line ОКРУГЛЕÐИЕ: -0.29 [19:00:29]line ИТОГО: 300.00 [19:00:29]line ВнеÑено: 300.00 [19:00:29]line СДÐЧÐ: 0.00 [19:00:29]line ÐСП 1% : 2.66 [19:00:29]line ÐДС 12% : 31.89 [19:00:29]line Ðаличными: 300.00 [19:00:29]line Безнал.: 0.00 [19:00:29]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [19:00:29]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [19:00:29]line СÐО: Общий режим [19:00:29]line Чек 100 29.01.2024 19:00 [19:00:29]line Смена: 245 ФФД: 1.0 [19:00:29]line ЗÐМ: 0300000040 [19:00:29]line РÐМ: 0000000000092723 [19:00:29]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:00:29]line ФМ: 0000000000875060 [19:00:29]line ФД: 49117 [19:00:29]line ФПД: 109708099159820 [19:00:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T190042&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49117&fm=109708099159820&tin=02508201610067®Number=0000000000092723&sum=30000 [19:00:29]OFD Sender: Processing packet 49117 [packets to send 12, broken 11] [19:00:29]ProducePacketName [19:00:29]name=ofd_packets/00049117 [19:00:29]OFD Sender: To server: ‡•öpG, [19:00:29]CommunicateWithHost lk.salyk.kg:30040 [19:00:29]ConnectInit lk.salyk.kg [19:00:29]written 0, free lines is 4095 [19:00:29]Connected sock=10 [19:00: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 16 A7 07 01 6A 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 64 00 00 00 F4 03 04 00 DA F5 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 63 C7 68 47 87 0C A4 F3 99 9B B5 37 FD 9A [19:00: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 24 55 47 00 E6 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 DD BF 00 00 F4 03 04 00 D2 A1 B7 65 B6 04 01 00 00 92 BD FE 5B 61 66 5F 26 [19:00:30]CommunicateWithHost err = 0 [19:00:30]CheckOFDResponse [19:00:30]1017 (14) - 77093643461234 [19:00:30]1041 (16) - 0000000000875060 [19:00:30]1040 (4) - 49117 [19:00:30]1012 (4) - 29.01.2024 13:02 [19:00:30]1206 (1) - 0 [19:00:30]OFD Sender: Remove packet 49117 [19:00:30]ProducePacketName [19:00:30]name=ofd_packets/00049117 [19:00:30]NVStorageDeleteData [19:00:30]Write to MH i2c: 01 00 00 C0 5A 1A [19:00:30]Write i2c OK [19:00:30]MH_I2C_Read... [19:00:30]Read from MH i2c: 01 [19:00:30]MH_I2C_Read... [19:00:30]Read from MH i2c: 01 07 00 [19:00:30]MH_I2C_Read... [19:00:30]Read from MH i2c: 01 07 00 C0 5A 00 00 00 00 00 EC 0C 19 [19:00:30]RasterBufferAndPrint [19:00:30]line [19:00:30]line [19:00:30]line [19:00:30]line [19:00:30]line [19:00:30]written 0, free lines is 3314 [19:00:30]MH_Cut [19:00:30]Write to MH i2c: D1 01 00 C7 5A 01 F3 [19:00:30]Write i2c OK [19:00:30]MH_I2C_Read... [19:00:30]Read from MH i2c: D1 [19:00:30]MH_I2C_Read... [19:00:30]Read from MH i2c: D1 01 00 [19:00:30]MH_I2C_Read... [19:00:30]Read from MH i2c: D1 01 00 C7 5A 00 F2 [19:00:30]Write to MH i2c: 01 00 00 C8 5A 22 [19:00:30]Write i2c OK [19:00:30]MH_I2C_Read... [19:00:30]OFD Sender: No OFD packet to send [19:00:30]*** Cut start [19:00:30]*** Partial cut [19:00:30]*** CUTSNS_PIN = 1 [19:00:31]*** CUTSNS_PIN = 0 [19:00:31]*** Brake cut motor [19:00:31]Read from MH i2c: 01 [19:00:31]MH_I2C_Read... [19:00:31]*** Stop cut motor [19:00:31]*** Cut end [19:00:31]Read from MH i2c: 01 07 00 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: 01 07 00 C8 5A 00 00 00 00 00 FF 0F 37 [19:00:31]process_action close_receipt done [19:00:31]requested_data is exist [19:00:31]produce_requested_data [19:00:31]requested_item fm.sn is exist - process it [19:00:31]wFMCommunicate request_size=4 [19:00:31]MH_SAM_APDU [19:00:31]CAPDU: 80 11 00 00 [19:00:31]Write to MH i2c: E2 08 00 C9 5A 80 11 00 00 00 00 00 00 9D [19:00:31]Write i2c OK [19:00:31]MH_I2C_Read... [19:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:31]Read from MH i2c: E2 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: E2 17 00 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: E2 17 00 C9 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 EA [19:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [19:00:31]wFMCommunicate OK [19:00:31]requested_item fd.num is exist - process it [19:00:31]SAM_PROTO_GetFieldsCounters [19:00:31]wFMCommunicate request_size=4 [19:00:31]MH_SAM_APDU [19:00:31]CAPDU: 80 13 00 00 [19:00:31]Write to MH i2c: E2 08 00 CA 5A 80 13 00 00 00 00 00 00 A0 [19:00:31]Write i2c OK [19:00:31]MH_I2C_Read... [19:00:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:31]Read from MH i2c: E2 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: E2 62 00 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: E2 62 00 CA 5A 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 BF 00 00 0E 04 04 00 F5 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 76 [19:00: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 DD BF 00 00 0E 04 04 00 F5 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 [19:00:31]wFMCommunicate OK [19:00:31]SAM_PROTO_GetFieldsCounters done [19:00:31]requested_item shift.num is exist - process it [19:00:31]requested_item shift.opened is exist - process it [19:00:31]req_shift_opened [19:00:31]FM_GetShiftState [19:00:31]SAM_PROTO_GetShiftState [19:00:31]wFMCommunicate request_size=4 [19:00:31]MH_SAM_APDU [19:00:31]CAPDU: 80 13 01 00 [19:00:31]Write to MH i2c: E2 08 00 CB 5A 80 13 01 00 00 00 00 00 A2 [19:00:31]Write i2c OK [19:00:31]MH_I2C_Read... [19:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:31]Read from MH i2c: E2 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: E2 0E 00 [19:00:31]MH_I2C_Read... [19:00:31]Read from MH i2c: E2 0E 00 CB 5A 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 14 [19:00:31]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [19:00:31]wFMCommunicate OK [19:00:31]SAM_PROTO_GetShiftState done [19:00:31]FM_GetShiftState done [19:00:31]req_shift_opened done [19:00:31]requested_item shift.open_date is exist - process it [19:00:31]req_shift_open_date [19:00:31]req_shift_open_date done [19:00:31]produce_requested_data done [19:00:31]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49117,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [19:00:31]process_action_free close_receipt [19:00:31]json_value_free [19:00:31]json_value_free done [19:00:31]process_json_proto returns [19:00:31]Send response to host [19:00:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49117,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [19:00:31]free response buf [19:00:31]execute_script done [19:00:31]execute_script returns [19:00:31]free content buf [19:00:31]Sock 7.Close socket [19:00:31]Sock 7.Thread stoped [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]accept exits with 9 [19:06:00]New connection [19:06:00]New thread 3066813796 created [19:06:00]Thread 3066670436 joined [19:06:00]Waiting for new connection... [19:06:00] Sock 9.Parse request [19:06:00]Sock 9.Check first char [19:06:00]Sock 9.First char is OK [19:06:00]request: POST /json_proto HTTP/1.0 [19:06:00]Method: POST [19:06:00]URL: /json_proto [19:06:00]Method is POST - this is cgi request [19:06:00]url: /json_proto [19:06:00]query_string will be loaded in cgi processing [19:06:00]execute_cgi json_proto POST (null) [19:06:00]execute_cgi path=json_proto method=POST [19:06:00]POST find Content-Length [19:06:00]Host: 172.17.56.67:8080 [19:06:00]Content-Length: 677 [19:06:00]Content-Type: application/json [19:06:00] [19:06:00]POST finish read [19:06:00]Found Content-Length = 677 [19:06:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216220", "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" : 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" ] } } [19:06:00]execute_script... [19:06:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216220", "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" : 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" ] } } [19:06:00]POST & json_proto [19:06:00]process_json_proto [19:06:00]json parsed OK: [19:06:00]protocol is kg_v1.0 [19:06:00]action value=close_receipt [19:06:00]process_action close_receipt [19:06:00]cmd_close_receipt [19:06:00]MH_GetDate [19:06:00]Write to MH i2c: F0 00 00 CC 5A 15 [19:06:00]Write i2c OK [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: F0 [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: F0 09 00 [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: F0 09 00 CC 5A 00 27 F7 B7 65 26 5D 9E 65 DE [19:06:00]GetLastDocTimeStamp 1706554842 [19:06:00]current date 1706555175 [19:06:00]FM_GetShiftState [19:06:00]SAM_PROTO_GetShiftState [19:06:00]wFMCommunicate request_size=4 [19:06:00]MH_SAM_APDU [19:06:00]CAPDU: 80 13 01 00 [19:06:00]Write to MH i2c: E2 08 00 CD 5A 80 13 01 00 00 00 00 00 A4 [19:06:00]Write i2c OK [19:06:00]MH_I2C_Read... [19:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:00]Read from MH i2c: E2 [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: E2 0E 00 [19:06:00]MH_I2C_Read... [19:06:00]Read from MH i2c: E2 0E 00 CD 5A 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 16 [19:06:00]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [19:06:00]wFMCommunicate OK [19:06:00]SAM_PROTO_GetShiftState done [19:06:00]FM_GetShiftState done [19:06:00]opened in 1706486624 [19:06:00]opened+sec_in_day 1706573024 [19:06:00]quantity*price = 45044 [19:06:00]sum+1 = 45045 [19:06:00]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 СÐО: Общий режим Чек 101 29.01.2024 19:06 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49118 ФПД: 255600713578758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T190615&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49118&fm=255600713578758&tin=02508201610067®Number=0000000000092723&sum=45000 [19:06:01]StoreToDocumentArchive [19:06:01]shift 245 fd 49118 [19:06:01]save to /storage/0245/doc_00049118 [19:06:01]save last doc name /storage/0245/doc_00049118 to /storage/kkm_last_doc_name [19:06:01]save OK [19:06:01]Clear old archive folders... [19:06:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:06:01]tlvbuf is 0128CA60 [19:06:01]SAM_PROTO_ClearQueue [19:06:01]wFMCommunicate request_size=4 [19:06:01]MH_SAM_APDU [19:06:01]CAPDU: 80 09 00 00 [19:06:01]Write to MH i2c: E2 08 00 DA 5A 80 09 00 00 00 00 00 00 A6 [19:06:01]Write i2c OK [19:06:01]MH_I2C_Read... [19:06:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:06:01]Read from MH i2c: E2 [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: E2 03 00 [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: E2 03 00 DA 5A 00 90 00 A8 [19:06:01]RAPDU: 90 00 [19:06:01]wFMCommunicate OK [19:06:01]SAM_PROTO_ClearQueue done [19:06:01]KKMCreateOFDPacket [19:06:01]OFDProtocolAddRootSTLVToBuf [19:06:01]FM_MakeSignedData [19:06:01]FM_MakeSignedData [19:06:01]SAM_PROTO_SignData [19:06:01]wFMCommunicate request_size=4 [19:06:01]MH_SAM_APDU [19:06:01]CAPDU: 80 0D 01 02 [19:06:01]Write to MH i2c: E2 08 00 DB 5A 80 0D 01 02 00 00 00 00 AE [19:06:01]Write i2c OK [19:06:01]MH_I2C_Read... [19:06:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:06:01]Read from MH i2c: E2 [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: E2 03 00 [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: E2 03 00 DB 5A 00 90 00 A9 [19:06:01]RAPDU: 90 00 [19:06:01]wFMCommunicate OK [19:06:01]wFMCommunicate request_size=255 [19:06:01]MH_SAM_APDU [19:06:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 65 00 00 00 F4 03 04 00 27 F7 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E8 [19:06:01]Write to MH i2c: E2 02 01 DC 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 65 00 00 00 F4 03 04 00 27 F7 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E8 00 00 9B [19:06:01]Write i2c OK [19:06:01]MH_I2C_Read... [19:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:01]Read from MH i2c: E2 [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: E2 03 00 [19:06:01]MH_I2C_Read... [19:06:01]Read from MH i2c: E2 03 00 DC 5A 00 90 00 AA [19:06:01]RAPDU: 90 00 [19:06:01]wFMCommunicate OK [19:06:01]wFMCommunicate request_size=10 [19:06:01]MH_SAM_APDU [19:06:01]CAPDU: 80 0D 02 02 05 77 AD BC B9 06 [19:06:01]Write to MH i2c: E2 0D 00 DD 5A 80 0D 02 02 05 00 77 AD BC B9 06 00 00 5A [19:06:01]Write i2c OK [19:06:01]MH_I2C_Read... [19:06:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:06:02]Read from MH i2c: E2 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: E2 03 00 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: E2 03 00 DD 5A 00 90 00 AB [19:06:02]RAPDU: 90 00 [19:06:02]wFMCommunicate OK [19:06:02]wFMCommunicate request_size=4 [19:06:02]MH_SAM_APDU [19:06:02]CAPDU: 80 0D 03 02 [19:06:02]Write to MH i2c: E2 08 00 DE 5A 80 0D 03 02 00 00 00 00 B3 [19:06:02]Write i2c OK [19:06:02]MH_I2C_Read... [19:06:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:06:02]Read from MH i2c: E2 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: E2 0B 00 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: E2 0B 00 DE 5A 00 45 76 69 D5 A7 E1 9A D1 90 00 A0 [19:06:02]RAPDU: 45 76 69 D5 A7 E1 9A D1 90 00 [19:06:02]wFMCommunicate OK [19:06:02]SAM_PROTO_SignData done [19:06:02]FM_MakeSignedData done [19:06:02]CreateOFDProtocolMessage [19:06:02]wFMCommunicate request_size=4 [19:06:02]MH_SAM_APDU [19:06:02]CAPDU: 80 11 00 00 [19:06:02]Write to MH i2c: E2 08 00 DF 5A 80 11 00 00 00 00 00 00 B3 [19:06:02]Write i2c OK [19:06:02]MH_I2C_Read... [19:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:02]Read from MH i2c: E2 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: E2 17 00 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: E2 17 00 DF 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 00 [19:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [19:06:02]wFMCommunicate OK [19:06:02]CreateOFDProtocolMessage done [19:06:02]OFDSenderStorePacket 49118 [19:06:02]StoreOFDPacket docnum=49118 [19:06:02]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 5A 3C 07 01 A9 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 65 00 00 00 F4 03 04 00 27 F7 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E8 77 AD BC B9 06 45 76 69 D5 A7 E1 9A D1 [19:06:02]CheckFolder [19:06:02]dirname=/storage/ofd_packets [19:06:02]CheckFolder done [19:06:02]ProducePacketName [19:06:02]name=ofd_packets/00049118 [19:06:02]NVStorageSaveData ofd_packets/00049118 [19:06:02]File name is /storage/ofd_packets/00049118 [19:06:02]Write 301 bytes [19:06:02]NVStorageSaveData done [19:06:02]OFDSenderStorePacket done [19:06:02]KKMCreateOFDPacket done [19:06:02]NVStorageSaveData kkm_last_timestamp [19:06:02]File name is /storage/kkm_last_timestamp [19:06:02]Write 4 bytes [19:06:02]NVStorageSaveData done [19:06:02]ExternCall_PrintAddStr [19:06:02]wPrintStart [19:06:02]Write to MH i2c: 01 00 00 E0 5A 3A [19:06:02]Write i2c OK [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: 01 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: 01 07 00 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: 01 07 00 E0 5A 00 00 00 00 00 FF 0F 4F [19:06:02]RasterBufferAndPrint [19:06:02]line Счет N : (1)216220 [19:06:02]line ИÐÐ: 02508201610067 [19:06:02]line Контрольно-КаÑÑовый Чек [19:06:02]line ПРОДÐЖР[19:06:02]line ТРК (МРК, ГÐК) : 12 [19:06:02]line Товар: 2710124130 [19:06:02]line Ðи-92-К-5 [19:06:02]line 7.470 * 60.30 [19:06:02]line = 450.44 [19:06:02]line ÐДС 12% ÐСП 1% [19:06:02]line > о реализуемом товаре [19:06:02]line ОКРУГЛЕÐИЕ: -0.44 [19:06:02]line ИТОГО: 450.00 [19:06:02]line ВнеÑено: 450.00 [19:06:02]line СДÐЧÐ: 0.00 [19:06:02]line ÐСП 1% : 3.99 [19:06:02]line ÐДС 12% : 47.83 [19:06:02]line Ðаличными: 450.00 [19:06:02]line Безнал.: 0.00 [19:06:02]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [19:06:02]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [19:06:02]line СÐО: Общий режим [19:06:02]line Чек 101 29.01.2024 19:06 [19:06:02]line Смена: 245 ФФД: 1.0 [19:06:02]line ЗÐМ: 0300000040 [19:06:02]line РÐМ: 0000000000092723 [19:06:02]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [19:06:02]line ФМ: 0000000000875060 [19:06:02]line ФД: 49118 [19:06:02]line ФПД: 255600713578758 [19:06:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T190615&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49118&fm=255600713578758&tin=02508201610067®Number=0000000000092723&sum=45000 [19:06:02]written 0, free lines is 4095 [19:06:02]OFD Sender: Processing packet 49118 [packets to send 12, broken 11] [19:06:02]ProducePacketName [19:06:02]name=ofd_packets/00049118 [19:06:02]OFD Sender: To server: ‡•öpG, [19:06:02]CommunicateWithHost lk.salyk.kg:30040 [19:06:02]ConnectInit lk.salyk.kg [19:06:02]Write to MH i2c: 01 00 00 0B 5B 66 [19:06:02]Write i2c OK [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: 01 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: 01 07 00 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: 01 07 00 0B 5B 00 00 00 00 00 E6 0C 5F [19:06:02]RasterBufferAndPrint [19:06:02]line [19:06:02]line [19:06:02]line [19:06:02]line [19:06:02]line [19:06:02]written 0, free lines is 3306 [19:06:02]MH_Cut [19:06:02]Write to MH i2c: D1 01 00 12 5B 01 3F [19:06:02]Write i2c OK [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: D1 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: D1 01 00 [19:06:02]MH_I2C_Read... [19:06:02]Read from MH i2c: D1 01 00 12 5B 00 3E [19:06:02]Write to MH i2c: 01 00 00 13 5B 6E [19:06:02]Write i2c OK [19:06:02]MH_I2C_Read... [19:06:03]*** Cut start [19:06:03]*** Partial cut [19:06:03]*** CUTSNS_PIN = 1 [19:06:03]*** CUTSNS_PIN = 0 [19:06:03]*** Brake cut motor [19:06:04]Read from MH i2c: 01 [19:06:04]MH_I2C_Read... [19:06:04]*** Stop cut motor [19:06:04]*** Cut end [19:06:04]Read from MH i2c: 01 07 00 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: 01 07 00 13 5B 00 00 00 00 00 FF 0F 83 [19:06:04]process_action close_receipt done [19:06:04]requested_data is exist [19:06:04]produce_requested_data [19:06:04]requested_item fm.sn is exist - process it [19:06:04]wFMCommunicate request_size=4 [19:06:04]MH_SAM_APDU [19:06:04]CAPDU: 80 11 00 00 [19:06:04]Write to MH i2c: E2 08 00 14 5B 80 11 00 00 00 00 00 00 E9 [19:06:04]Write i2c OK [19:06:04]MH_I2C_Read... [19:06:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:06:04]Read from MH i2c: E2 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 17 00 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 17 00 14 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 36 [19:06:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [19:06:04]wFMCommunicate OK [19:06:04]requested_item fd.num is exist - process it [19:06:04]SAM_PROTO_GetFieldsCounters [19:06:04]wFMCommunicate request_size=4 [19:06:04]MH_SAM_APDU [19:06:04]CAPDU: 80 13 00 00 [19:06:04]Write to MH i2c: E2 08 00 15 5B 80 13 00 00 00 00 00 00 EC [19:06:04]Write i2c OK [19:06:04]MH_I2C_Read... [19:06:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:06:04]Read from MH i2c: E2 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 62 00 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 62 00 15 5B 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 BF 00 00 0E 04 04 00 F5 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 C6 [19:06: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 DE BF 00 00 0E 04 04 00 F5 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 [19:06:04]wFMCommunicate OK [19:06:04]SAM_PROTO_GetFieldsCounters done [19:06:04]requested_item shift.num is exist - process it [19:06:04]requested_item shift.opened is exist - process it [19:06:04]req_shift_opened [19:06:04]FM_GetShiftState [19:06:04]SAM_PROTO_GetShiftState [19:06:04]wFMCommunicate request_size=4 [19:06:04]MH_SAM_APDU [19:06:04]CAPDU: 80 13 01 00 [19:06:04]Write to MH i2c: E2 08 00 16 5B 80 13 01 00 00 00 00 00 EE [19:06:04]Write i2c OK [19:06:04]MH_I2C_Read... [19:06:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:06:04]Read from MH i2c: E2 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 0E 00 [19:06:04]MH_I2C_Read... [19:06:04]Read from MH i2c: E2 0E 00 16 5B 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 60 [19:06:04]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [19:06:04]wFMCommunicate OK [19:06:04]SAM_PROTO_GetShiftState done [19:06:04]FM_GetShiftState done [19:06:04]req_shift_opened done [19:06:04]requested_item shift.open_date is exist - process it [19:06:04]req_shift_open_date [19:06:04]req_shift_open_date done [19:06:04]produce_requested_data done [19:06:04]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49118,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [19:06:04]process_action_free close_receipt [19:06:04]json_value_free [19:06:04]json_value_free done [19:06:04]process_json_proto returns [19:06:04]Send response to host [19:06:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49118,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [19:06:04]free response buf [19:06:04]execute_script done [19:06:04]execute_script returns [19:06:04]free content buf [19:06:04]Sock 9.Close socket [19:06:04]Sock 9.Thread stoped [19:08:12]ConnectInit Can't connect to host [19:08:12]CommunicateWithHost connect error [19:08:12]CommunicateWithHost err = -1 [19:08:12]OFD Sender: Server communicate error [19:08:17]OFD Sender: Processing packet 49118 [packets to send 12, broken 11] [19:08:17]ProducePacketName [19:08:17]name=ofd_packets/00049118 [19:08:17]OFD Sender: To server: ‡•öpG, [19:08:17]CommunicateWithHost lk.salyk.kg:30040 [19:08:17]ConnectInit lk.salyk.kg [19:08:18]Connected sock=9 [19:08:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 5A 3C 07 01 A9 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 65 00 00 00 F4 03 04 00 27 F7 B7 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 E8 77 AD BC B9 06 45 76 69 D5 A7 E1 9A D1 [19:08: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 5A E4 47 00 A3 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 DE BF 00 00 F4 03 04 00 A6 A3 B7 65 B6 04 01 00 00 18 83 55 F3 14 59 96 80 [19:08:18]CommunicateWithHost err = 0 [19:08:18]CheckOFDResponse [19:08:18]1017 (14) - 77093643461234 [19:08:18]1041 (16) - 0000000000875060 [19:08:18]1040 (4) - 49118 [19:08:18]1012 (4) - 29.01.2024 13:09 [19:08:18]1206 (1) - 0 [19:08:18]OFD Sender: Remove packet 49118 [19:08:18]ProducePacketName [19:08:18]name=ofd_packets/00049118 [19:08:18]NVStorageDeleteData [19:08:18]OFD Sender: No OFD packet to send [19:08:23]OFD Sender: No OFD packet to send [19:08:28]OFD Sender: No OFD packet to send [19:08:33]OFD Sender: No OFD packet to send [19:08:38]OFD Sender: No OFD packet to send [19:08:43]OFD Sender: No OFD packet to send [19:08:48]OFD Sender: No OFD packet to send [19:08:53]OFD Sender: No OFD packet to send [19:08:58]OFD Sender: No OFD packet to send [19:09:03]OFD Sender: No OFD packet to send [19:09:08]OFD Sender: No OFD packet to send [19:09:13]OFD Sender: No OFD packet to send [19:09:18]OFD Sender: No OFD packet to send [19:09:23]OFD Sender: No OFD packet to send [19:09:28]OFD Sender: No OFD packet to send [19:09:33]OFD Sender: No OFD packet to send [19:09:38]OFD Sender: No OFD packet to send [19:09:43]OFD Sender: No OFD packet to send [19:09:48]OFD Sender: No OFD packet to send [19:09:53]OFD Sender: No OFD packet to send [19:09:58]OFD Sender: No OFD packet to send [19:10:03]OFD Sender: No OFD packet to send [19:10:08]OFD Sender: No OFD packet to send [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]OFD Sender: No OFD packet to send [19:11:33]OFD Sender: No OFD packet to send [19:11: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:34]OFD Sender: No OFD packet to send [19:28:39]OFD Sender: No OFD packet to send [19:28:44]OFD Sender: No OFD packet to send [19:28:49]OFD Sender: No OFD packet to send [19:28:54]OFD Sender: No OFD packet to send [19:28:59]OFD Sender: No OFD packet to send [19:29:04]OFD Sender: No OFD packet to send [19:29:09]OFD Sender: No OFD packet to send [19:29:14]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]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:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:40]OFD Sender: No OFD packet to send [19:49:45]OFD Sender: No OFD packet to send [19:49:50]OFD Sender: No OFD packet to send [19:49:55]OFD Sender: No OFD packet to send [19:50:00]OFD Sender: No OFD packet to send [19:50:05]OFD Sender: No OFD packet to send [19:50:10]OFD Sender: No OFD packet to send [19:50:15]OFD Sender: No OFD packet to send [19:50:20]OFD Sender: No OFD packet to send [19:50:25]OFD Sender: No OFD packet to send [19:50:30]OFD Sender: No OFD packet to send [19:50:35]OFD Sender: No OFD packet to send [19:50:40]OFD Sender: No OFD packet to send [19:50:45]OFD Sender: No OFD packet to send [19:50:50]OFD Sender: No OFD packet to send [19:50:55]OFD Sender: No OFD packet to send [19:51:00]OFD Sender: No OFD packet to send [19:51:05]OFD Sender: No OFD packet to send [19:51:10]OFD Sender: No OFD packet to send [19:51:15]OFD Sender: No OFD packet to send [19:51:20]OFD Sender: No OFD packet to send [19:51:25]OFD Sender: No OFD packet to send [19:51:30]OFD Sender: No OFD packet to send [19:51:35]OFD Sender: No OFD packet to send [19:51:40]OFD Sender: No OFD packet to send [19:51:45]OFD Sender: No OFD packet to send [19:51:50]OFD Sender: No OFD packet to send [19:51:55]OFD Sender: No OFD packet to send [19:52:00]OFD Sender: No OFD packet to send [19:52:05]OFD Sender: No OFD packet to send [19:52:10]OFD Sender: No OFD packet to send [19:52:15]OFD Sender: No OFD packet to send [19:52:20]OFD Sender: No OFD packet to send [19:52:25]OFD Sender: No OFD packet to send [19:52:30]OFD Sender: No OFD packet to send [19:52:35]OFD Sender: No OFD packet to send [19:52:40]OFD Sender: No OFD packet to send [19:52:45]OFD Sender: No OFD packet to send [19:52:50]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:30]OFD Sender: No OFD packet to send [19:53: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:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14: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:40]accept exits with 7 [20:18:40]New connection [20:18:40]New thread 3066670436 created [20:18:40]Thread 3066813796 joined [20:18:40]Waiting for new connection... [20:18:40] Sock 7.Parse request [20:18:40]Sock 7.Check first char [20:18:40]Sock 7.First char is OK [20:18:40]request: POST /json_proto HTTP/1.0 [20:18:40]Method: POST [20:18:40]URL: /json_proto [20:18:40]Method is POST - this is cgi request [20:18:40]url: /json_proto [20:18:40]query_string will be loaded in cgi processing [20:18:40]execute_cgi json_proto POST (null) [20:18:40]execute_cgi path=json_proto method=POST [20:18:40]POST find Content-Length [20:18:40]Host: 172.17.56.67:8080 [20:18:40]Content-Length: 677 [20:18:40]Content-Type: application/json [20:18:40] [20:18:40]POST finish read [20:18:40]Found Content-Length = 677 [20:18:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216221", "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" ] } } [20:18:40]execute_script... [20:18:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216221", "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" ] } } [20:18:40]POST & json_proto [20:18:40]process_json_proto [20:18:40]json parsed OK: [20:18:40]protocol is kg_v1.0 [20:18:40]action value=close_receipt [20:18:40]process_action close_receipt [20:18:40]cmd_close_receipt [20:18:40]MH_GetDate [20:18:40]Write to MH i2c: F0 00 00 17 5B 61 [20:18:40]Write i2c OK [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: F0 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: F0 09 00 [20:18:40]MH_I2C_Read... [20:18:40]Read from MH i2c: F0 09 00 17 5B 00 30 08 B8 65 26 5D 9E 65 45 [20:18:40]GetLastDocTimeStamp 1706555175 [20:18:40]current date 1706559536 [20:18:40]FM_GetShiftState [20:18:40]SAM_PROTO_GetShiftState [20:18:40]wFMCommunicate request_size=4 [20:18:40]MH_SAM_APDU [20:18:40]CAPDU: 80 13 01 00 [20:18:40]Write to MH i2c: E2 08 00 18 5B 80 13 01 00 00 00 00 00 F0 [20:18:40]Write i2c OK [20:18:40]MH_I2C_Read... [20:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:41]Read from MH i2c: E2 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 0E 00 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 0E 00 18 5B 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 62 [20:18:41]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [20:18:41]wFMCommunicate OK [20:18:41]SAM_PROTO_GetShiftState done [20:18:41]FM_GetShiftState done [20:18:41]opened in 1706486624 [20:18:41]opened+sec_in_day 1706573024 [20:18:41]quantity*price = 30029 [20:18:41]sum+1 = 30030 [20:18: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 СÐО: Общий режим Чек 102 29.01.2024 20:18 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49119 ФПД: 277606231496686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T201856&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49119&fm=277606231496686&tin=02508201610067®Number=0000000000092723&sum=30000 [20:18:42]StoreToDocumentArchive [20:18:42]shift 245 fd 49119 [20:18:42]save to /storage/0245/doc_00049119 [20:18:42]save last doc name /storage/0245/doc_00049119 to /storage/kkm_last_doc_name [20:18:42]save OK [20:18:42]Clear old archive folders... [20:18:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:42]tlvbuf is 01284270 [20:18:42]SAM_PROTO_ClearQueue [20:18:42]wFMCommunicate request_size=4 [20:18:42]MH_SAM_APDU [20:18:42]CAPDU: 80 09 00 00 [20:18:42]Write to MH i2c: E2 08 00 25 5B 80 09 00 00 00 00 00 00 F2 [20:18:42]Write i2c OK [20:18:42]MH_I2C_Read... [20:18:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:42]Read from MH i2c: E2 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 03 00 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 03 00 25 5B 00 90 00 F4 [20:18:42]RAPDU: 90 00 [20:18:42]wFMCommunicate OK [20:18:42]SAM_PROTO_ClearQueue done [20:18:42]KKMCreateOFDPacket [20:18:42]OFDProtocolAddRootSTLVToBuf [20:18:42]FM_MakeSignedData [20:18:42]FM_MakeSignedData [20:18:42]SAM_PROTO_SignData [20:18:42]wFMCommunicate request_size=4 [20:18:42]MH_SAM_APDU [20:18:42]CAPDU: 80 0D 01 02 [20:18:42]Write to MH i2c: E2 08 00 26 5B 80 0D 01 02 00 00 00 00 FA [20:18:42]Write i2c OK [20:18:42]MH_I2C_Read... [20:18:42]OFD Sender: No OFD packet to send [20:18:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:42]Read from MH i2c: E2 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 03 00 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 03 00 26 5B 00 90 00 F5 [20:18:42]RAPDU: 90 00 [20:18:42]wFMCommunicate OK [20:18:42]wFMCommunicate request_size=255 [20:18:42]MH_SAM_APDU [20:18: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 66 00 00 00 F4 03 04 00 30 08 B8 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 FC [20:18:42]Write to MH i2c: E2 02 01 27 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 66 00 00 00 F4 03 04 00 30 08 B8 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 FC 00 00 0A [20:18:42]Write i2c OK [20:18:42]MH_I2C_Read... [20:18:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:42]Read from MH i2c: E2 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 03 00 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 03 00 27 5B 00 90 00 F6 [20:18:42]RAPDU: 90 00 [20:18:42]wFMCommunicate OK [20:18:42]wFMCommunicate request_size=10 [20:18:42]MH_SAM_APDU [20:18:42]CAPDU: 80 0D 02 02 05 7B 3C D0 D7 EE [20:18:42]Write to MH i2c: E2 0D 00 28 5B 80 0D 02 02 05 00 7B 3C D0 D7 EE 00 00 53 [20:18:42]Write i2c OK [20:18:42]MH_I2C_Read... [20:18:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:42]Read from MH i2c: E2 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 03 00 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 03 00 28 5B 00 90 00 F7 [20:18:42]RAPDU: 90 00 [20:18:42]wFMCommunicate OK [20:18:42]wFMCommunicate request_size=4 [20:18:42]MH_SAM_APDU [20:18:42]CAPDU: 80 0D 03 02 [20:18:42]Write to MH i2c: E2 08 00 29 5B 80 0D 03 02 00 00 00 00 FF [20:18:42]Write i2c OK [20:18:42]MH_I2C_Read... [20:18:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:42]Read from MH i2c: E2 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 0B 00 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 0B 00 29 5B 00 AB 6C 46 16 0A C8 C4 3F 90 00 48 [20:18:42]RAPDU: AB 6C 46 16 0A C8 C4 3F 90 00 [20:18:42]wFMCommunicate OK [20:18:42]SAM_PROTO_SignData done [20:18:42]FM_MakeSignedData done [20:18:42]CreateOFDProtocolMessage [20:18:42]wFMCommunicate request_size=4 [20:18:42]MH_SAM_APDU [20:18:42]CAPDU: 80 11 00 00 [20:18:42]Write to MH i2c: E2 08 00 2A 5B 80 11 00 00 00 00 00 00 FF [20:18:42]Write i2c OK [20:18:42]MH_I2C_Read... [20:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:42]Read from MH i2c: E2 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 17 00 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 17 00 2A 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4C [20:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [20:18:42]wFMCommunicate OK [20:18:42]CreateOFDProtocolMessage done [20:18:42]OFDSenderStorePacket 49119 [20:18:42]StoreOFDPacket docnum=49119 [20:18:42]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 4C 07 01 25 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 66 00 00 00 F4 03 04 00 30 08 B8 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 FC 7B 3C D0 D7 EE AB 6C 46 16 0A C8 C4 3F [20:18:42]CheckFolder [20:18:42]dirname=/storage/ofd_packets [20:18:42]CheckFolder done [20:18:42]ProducePacketName [20:18:42]name=ofd_packets/00049119 [20:18:42]NVStorageSaveData ofd_packets/00049119 [20:18:42]File name is /storage/ofd_packets/00049119 [20:18:42]Write 301 bytes [20:18:42]NVStorageSaveData done [20:18:42]OFDSenderStorePacket done [20:18:42]KKMCreateOFDPacket done [20:18:42]NVStorageSaveData kkm_last_timestamp [20:18:42]File name is /storage/kkm_last_timestamp [20:18:42]Write 4 bytes [20:18:42]NVStorageSaveData done [20:18:42]ExternCall_PrintAddStr [20:18:42]wPrintStart [20:18:42]Write to MH i2c: 01 00 00 2B 5B 86 [20:18:42]Write i2c OK [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: 01 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: 01 07 00 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: 01 07 00 2B 5B 00 00 00 00 00 FF 0F 9B [20:18:42]RasterBufferAndPrint [20:18:42]line Счет N : (1)216221 [20:18:42]line ИÐÐ: 02508201610067 [20:18:42]line Контрольно-КаÑÑовый Чек [20:18:42]line ПРОДÐЖР[20:18:42]line ТРК (МРК, ГÐК) : 22 [20:18:42]line Товар: 2710124130 [20:18:42]line Ðи-92-К-5 [20:18:42]line 4.980 * 60.30 [20:18:42]line = 300.29 [20:18:42]line ÐДС 12% ÐСП 1% [20:18:42]line > о реализуемом товаре [20:18:42]line ОКРУГЛЕÐИЕ: -0.29 [20:18:42]line ИТОГО: 300.00 [20:18:42]line ВнеÑено: 300.00 [20:18:42]line СДÐЧÐ: 0.00 [20:18:42]line ÐСП 1% : 2.66 [20:18:42]line ÐДС 12% : 31.89 [20:18:42]line Ðаличными: 300.00 [20:18:42]line Безнал.: 0.00 [20:18:42]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [20:18:42]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [20:18:42]line СÐО: Общий режим [20:18:42]line Чек 102 29.01.2024 20:18 [20:18:42]line Смена: 245 ФФД: 1.0 [20:18:42]line ЗÐМ: 0300000040 [20:18:42]line РÐМ: 0000000000092723 [20:18:42]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [20:18:42]line ФМ: 0000000000875060 [20:18:42]line ФД: 49119 [20:18:42]line ФПД: 277606231496686 [20:18:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T201856&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49119&fm=277606231496686&tin=02508201610067®Number=0000000000092723&sum=30000 [20:18:43]OFD Sender: Processing packet 49119 [packets to send 12, broken 11] [20:18:43]ProducePacketName [20:18:43]name=ofd_packets/00049119 [20:18:43]OFD Sender: To server: ‡•öpG, [20:18:43]CommunicateWithHost lk.salyk.kg:30040 [20:18:43]ConnectInit lk.salyk.kg [20:18:43]written 0, free lines is 4095 [20:18:43]Connected sock=10 [20:18: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 83 4C 07 01 25 4A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 66 00 00 00 F4 03 04 00 30 08 B8 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 FC 7B 3C D0 D7 EE AB 6C 46 16 0A C8 C4 3F [20:18:43]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 C2 7F 47 00 A2 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 DF BF 00 00 F4 03 04 00 27 B4 B7 65 B6 04 01 00 00 B4 03 1C 66 33 DB 9C 5D [20:18:43]CommunicateWithHost err = 0 [20:18:43]CheckOFDResponse [20:18:43]1017 (14) - 77093643461234 [20:18:43]1041 (16) - 0000000000875060 [20:18:43]1040 (4) - 49119 [20:18:43]1012 (4) - 29.01.2024 14:20 [20:18:43]1206 (1) - 0 [20:18:43]OFD Sender: Remove packet 49119 [20:18:43]ProducePacketName [20:18:43]name=ofd_packets/00049119 [20:18:43]NVStorageDeleteData [20:18:43]Write to MH i2c: 01 00 00 56 5B B1 [20:18:43]Write i2c OK [20:18:43]MH_I2C_Read... [20:18:43]Read from MH i2c: 01 [20:18:43]MH_I2C_Read... [20:18:43]Read from MH i2c: 01 07 00 [20:18:43]MH_I2C_Read... [20:18:43]Read from MH i2c: 01 07 00 56 5B 00 00 00 00 00 EC 0C B0 [20:18:43]RasterBufferAndPrint [20:18:43]line [20:18:43]line [20:18:43]line [20:18:43]line [20:18:43]line [20:18:43]written 0, free lines is 3315 [20:18:43]MH_Cut [20:18:43]Write to MH i2c: D1 01 00 5D 5B 01 8A [20:18:43]Write i2c OK [20:18:43]MH_I2C_Read... [20:18:43]Read from MH i2c: D1 [20:18:43]MH_I2C_Read... [20:18:43]Read from MH i2c: D1 01 00 [20:18:43]MH_I2C_Read... [20:18:43]Read from MH i2c: D1 01 00 5D 5B 00 89 [20:18:43]Write to MH i2c: 01 00 00 5E 5B B9 [20:18:43]Write i2c OK [20:18:43]MH_I2C_Read... [20:18:43]OFD Sender: No OFD packet to send [20:18:44]*** Cut start [20:18:44]*** Partial cut [20:18:44]*** CUTSNS_PIN = 1 [20:18:44]*** CUTSNS_PIN = 0 [20:18:44]*** Brake cut motor [20:18:44]Read from MH i2c: 01 [20:18:44]MH_I2C_Read... [20:18:44]*** Stop cut motor [20:18:44]*** Cut end [20:18:44]Read from MH i2c: 01 07 00 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: 01 07 00 5E 5B 00 00 00 00 00 FF 0F CE [20:18:44]process_action close_receipt done [20:18:44]requested_data is exist [20:18:44]produce_requested_data [20:18:44]requested_item fm.sn is exist - process it [20:18:44]wFMCommunicate request_size=4 [20:18:44]MH_SAM_APDU [20:18:44]CAPDU: 80 11 00 00 [20:18:44]Write to MH i2c: E2 08 00 5F 5B 80 11 00 00 00 00 00 00 34 [20:18:44]Write i2c OK [20:18:44]MH_I2C_Read... [20:18:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:44]Read from MH i2c: E2 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: E2 17 00 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: E2 17 00 5F 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 81 [20:18:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [20:18:44]wFMCommunicate OK [20:18:44]requested_item fd.num is exist - process it [20:18:44]SAM_PROTO_GetFieldsCounters [20:18:44]wFMCommunicate request_size=4 [20:18:44]MH_SAM_APDU [20:18:44]CAPDU: 80 13 00 00 [20:18:44]Write to MH i2c: E2 08 00 60 5B 80 13 00 00 00 00 00 00 37 [20:18:44]Write i2c OK [20:18:44]MH_I2C_Read... [20:18:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:44]Read from MH i2c: E2 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: E2 62 00 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: E2 62 00 60 5B 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 BF 00 00 0E 04 04 00 F5 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 15 [20:18:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 [20:18:44]wFMCommunicate OK [20:18:44]SAM_PROTO_GetFieldsCounters done [20:18:44]requested_item shift.num is exist - process it [20:18:44]requested_item shift.opened is exist - process it [20:18:44]req_shift_opened [20:18:44]FM_GetShiftState [20:18:44]SAM_PROTO_GetShiftState [20:18:44]wFMCommunicate request_size=4 [20:18:44]MH_SAM_APDU [20:18:44]CAPDU: 80 13 01 00 [20:18:44]Write to MH i2c: E2 08 00 61 5B 80 13 01 00 00 00 00 00 39 [20:18:44]Write i2c OK [20:18:44]MH_I2C_Read... [20:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:44]Read from MH i2c: E2 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: E2 0E 00 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: E2 0E 00 61 5B 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 AB [20:18:44]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [20:18:44]wFMCommunicate OK [20:18:44]SAM_PROTO_GetShiftState done [20:18:44]FM_GetShiftState done [20:18:44]req_shift_opened done [20:18:44]requested_item shift.open_date is exist - process it [20:18:44]req_shift_open_date [20:18:44]req_shift_open_date done [20:18:44]produce_requested_data done [20:18:44]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49119,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [20:18:44]process_action_free close_receipt [20:18:44]json_value_free [20:18:44]json_value_free done [20:18:44]process_json_proto returns [20:18:44]Send response to host [20:18:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49119,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [20:18:44]free response buf [20:18:44]execute_script done [20:18:44]execute_script returns [20:18:44]free content buf [20:18:44]Sock 7.Close socket [20:18:44]Sock 7.Thread stoped [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:24]accept exits with 9 [20:34:24]New connection [20:34:24]New thread 3066813796 created [20:34:24]Thread 3066670436 joined [20:34:24]Waiting for new connection... [20:34:24] Sock 9.Parse request [20:34:24]Sock 9.Check first char [20:34:24]Sock 9.First char is OK [20:34:24]request: POST /json_proto HTTP/1.0 [20:34:24]Method: POST [20:34:24]URL: /json_proto [20:34:24]Method is POST - this is cgi request [20:34:24]url: /json_proto [20:34:24]query_string will be loaded in cgi processing [20:34:24]execute_cgi json_proto POST (null) [20:34:24]execute_cgi path=json_proto method=POST [20:34:24]POST find Content-Length [20:34:24]Host: 172.17.56.67:8080 [20:34:24]Content-Length: 682 [20:34:24]Content-Type: application/json [20:34:24] [20:34:24]POST finish read [20:34:24]Found Content-Length = 682 [20:34:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216222", "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" : 33.170, "sum" : 2000.15, "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" ] } } [20:34:24]execute_script... [20:34:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216222", "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" : 33.170, "sum" : 2000.15, "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" ] } } [20:34:24]POST & json_proto [20:34:24]process_json_proto [20:34:24]json parsed OK: [20:34:24]protocol is kg_v1.0 [20:34:24]action value=close_receipt [20:34:24]process_action close_receipt [20:34:24]cmd_close_receipt [20:34:24]MH_GetDate [20:34:24]Write to MH i2c: F0 00 00 62 5B AC [20:34:24]Write i2c OK [20:34:24]MH_I2C_Read... [20:34:24]Read from MH i2c: F0 [20:34:24]MH_I2C_Read... [20:34:24]Read from MH i2c: F0 09 00 [20:34:24]MH_I2C_Read... [20:34:24]Read from MH i2c: F0 09 00 62 5B 00 E0 0B B8 65 26 5D 9E 65 43 [20:34:24]GetLastDocTimeStamp 1706559536 [20:34:24]current date 1706560480 [20:34:24]FM_GetShiftState [20:34:24]SAM_PROTO_GetShiftState [20:34:24]wFMCommunicate request_size=4 [20:34:24]MH_SAM_APDU [20:34:24]CAPDU: 80 13 01 00 [20:34:24]Write to MH i2c: E2 08 00 63 5B 80 13 01 00 00 00 00 00 3B [20:34:24]Write i2c OK [20:34:24]MH_I2C_Read... [20:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:24]Read from MH i2c: E2 [20:34:24]MH_I2C_Read... [20:34:24]Read from MH i2c: E2 0E 00 [20:34:24]MH_I2C_Read... [20:34:24]Read from MH i2c: E2 0E 00 63 5B 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 AD [20:34:24]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [20:34:24]wFMCommunicate OK [20:34:24]SAM_PROTO_GetShiftState done [20:34:24]FM_GetShiftState done [20:34:24]opened in 1706486624 [20:34:24]opened+sec_in_day 1706573024 [20:34:24]quantity*price = 200015 [20:34:24]sum+1 = 200016 [20:34:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.15 ИТОГО: 2000.00 ВнеÑено: 2000.00 СДÐЧÐ: 0.00 ÐСП 1% : 17.70 ÐДС 12% : 212.40 Ðаличными: 2000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 103 29.01.2024 20:34 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49120 ФПД: 44224452699869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T203440&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49120&fm=44224452699869&tin=02508201610067®Number=0000000000092723&sum=200000 [20:34:25]StoreToDocumentArchive [20:34:25]shift 245 fd 49120 [20:34:25]save to /storage/0245/doc_00049120 [20:34:25]save last doc name /storage/0245/doc_00049120 to /storage/kkm_last_doc_name [20:34:25]save OK [20:34:25]Clear old archive folders... [20:34:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:34:25]tlvbuf is 013ED750 [20:34:25]SAM_PROTO_ClearQueue [20:34:25]wFMCommunicate request_size=4 [20:34:25]MH_SAM_APDU [20:34:25]CAPDU: 80 09 00 00 [20:34:25]Write to MH i2c: E2 08 00 70 5B 80 09 00 00 00 00 00 00 3D [20:34:25]Write i2c OK [20:34:25]MH_I2C_Read... [20:34:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:34:26]Read from MH i2c: E2 [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: E2 03 00 [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: E2 03 00 70 5B 00 90 00 3F [20:34:26]RAPDU: 90 00 [20:34:26]wFMCommunicate OK [20:34:26]SAM_PROTO_ClearQueue done [20:34:26]KKMCreateOFDPacket [20:34:26]OFDProtocolAddRootSTLVToBuf [20:34:26]FM_MakeSignedData [20:34:26]FM_MakeSignedData [20:34:26]SAM_PROTO_SignData [20:34:26]wFMCommunicate request_size=4 [20:34:26]MH_SAM_APDU [20:34:26]CAPDU: 80 0D 01 02 [20:34:26]Write to MH i2c: E2 08 00 71 5B 80 0D 01 02 00 00 00 00 45 [20:34:26]Write i2c OK [20:34:26]MH_I2C_Read... [20:34:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:34:26]Read from MH i2c: E2 [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: E2 03 00 [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: E2 03 00 71 5B 00 90 00 40 [20:34:26]RAPDU: 90 00 [20:34:26]wFMCommunicate OK [20:34:26]wFMCommunicate request_size=255 [20:34:26]MH_SAM_APDU [20:34: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 92 81 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E0 0B B8 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 28 [20:34:26]Write to MH i2c: E2 02 01 72 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 81 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E0 0B B8 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 28 00 00 63 [20:34:26]Write i2c OK [20:34:26]MH_I2C_Read... [20:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:26]Read from MH i2c: E2 [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: E2 03 00 [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: E2 03 00 72 5B 00 90 00 41 [20:34:26]RAPDU: 90 00 [20:34:26]wFMCommunicate OK [20:34:26]wFMCommunicate request_size=10 [20:34:26]MH_SAM_APDU [20:34:26]CAPDU: 80 0D 02 02 05 38 CE CB 26 DD [20:34:26]Write to MH i2c: E2 0D 00 73 5B 80 0D 02 02 05 00 38 CE CB 26 DD 00 00 26 [20:34:26]Write i2c OK [20:34:26]MH_I2C_Read... [20:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:34:26]Read from MH i2c: E2 [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: E2 03 00 [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: E2 03 00 73 5B 00 90 00 42 [20:34:26]RAPDU: 90 00 [20:34:26]wFMCommunicate OK [20:34:26]wFMCommunicate request_size=4 [20:34:26]MH_SAM_APDU [20:34:26]CAPDU: 80 0D 03 02 [20:34:26]Write to MH i2c: E2 08 00 74 5B 80 0D 03 02 00 00 00 00 4A [20:34:26]Write i2c OK [20:34:26]MH_I2C_Read... [20:34:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:34:26]Read from MH i2c: E2 [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: E2 0B 00 [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: E2 0B 00 74 5B 00 CC 19 24 63 5E 83 01 91 90 00 2A [20:34:26]RAPDU: CC 19 24 63 5E 83 01 91 90 00 [20:34:26]wFMCommunicate OK [20:34:26]SAM_PROTO_SignData done [20:34:26]FM_MakeSignedData done [20:34:26]CreateOFDProtocolMessage [20:34:26]wFMCommunicate request_size=4 [20:34:26]MH_SAM_APDU [20:34:26]CAPDU: 80 11 00 00 [20:34:26]Write to MH i2c: E2 08 00 75 5B 80 11 00 00 00 00 00 00 4A [20:34:26]Write i2c OK [20:34:26]MH_I2C_Read... [20:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:26]Read from MH i2c: E2 [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: E2 17 00 [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: E2 17 00 75 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 97 [20:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [20:34:26]wFMCommunicate OK [20:34:26]CreateOFDProtocolMessage done [20:34:26]OFDSenderStorePacket 49120 [20:34:26]StoreOFDPacket docnum=49120 [20:34: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 0F 01 00 00 67 1F 07 01 9E 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 81 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E0 0B B8 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 28 38 CE CB 26 DD CC 19 24 63 5E 83 01 91 [20:34:26]CheckFolder [20:34:26]dirname=/storage/ofd_packets [20:34:26]CheckFolder done [20:34:26]ProducePacketName [20:34:26]name=ofd_packets/00049120 [20:34:26]NVStorageSaveData ofd_packets/00049120 [20:34:26]File name is /storage/ofd_packets/00049120 [20:34:26]Write 301 bytes [20:34:26]NVStorageSaveData done [20:34:26]OFDSenderStorePacket done [20:34:26]KKMCreateOFDPacket done [20:34:26]NVStorageSaveData kkm_last_timestamp [20:34:26]File name is /storage/kkm_last_timestamp [20:34:26]Write 4 bytes [20:34:26]NVStorageSaveData done [20:34:26]ExternCall_PrintAddStr [20:34:26]wPrintStart [20:34:26]Write to MH i2c: 01 00 00 76 5B D1 [20:34:26]Write i2c OK [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: 01 [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: 01 07 00 [20:34:26]MH_I2C_Read... [20:34:26]Read from MH i2c: 01 07 00 76 5B 00 00 00 00 00 FF 0F E6 [20:34:26]RasterBufferAndPrint [20:34:26]line Счет N : (1)216222 [20:34:26]line ИÐÐ: 02508201610067 [20:34:26]line Контрольно-КаÑÑовый Чек [20:34:26]line ПРОДÐЖР[20:34:26]line ТРК (МРК, ГÐК) : 22 [20:34:26]line Товар: 2710124130 [20:34:26]line Ðи-92-К-5 [20:34:26]line 33.170 * 60.30 [20:34:26]line = 2000.15 [20:34:26]line ÐДС 12% ÐСП 1% [20:34:26]line > о реализуемом товаре [20:34:26]line ОКРУГЛЕÐИЕ: -0.15 [20:34:26]line ИТОГО: 2000.00 [20:34:26]line ВнеÑено: 2000.00 [20:34:26]line СДÐЧÐ: 0.00 [20:34:26]line ÐСП 1% : 17.70 [20:34:26]line ÐДС 12% : 212.40 [20:34:26]line Ðаличными: 2000.00 [20:34:26]line Безнал.: 0.00 [20:34:26]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [20:34:26]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [20:34:26]line СÐО: Общий режим [20:34:26]line Чек 103 29.01.2024 20:34 [20:34:26]line Смена: 245 ФФД: 1.0 [20:34:26]line ЗÐМ: 0300000040 [20:34:26]line РÐМ: 0000000000092723 [20:34:26]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [20:34:26]line ФМ: 0000000000875060 [20:34:26]line ФД: 49120 [20:34:26]line ФПД: 44224452699869 [20:34:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T203440&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49120&fm=44224452699869&tin=02508201610067®Number=0000000000092723&sum=200000 [20:34:26]OFD Sender: Processing packet 49120 [packets to send 12, broken 11] [20:34:26]ProducePacketName [20:34:26]name=ofd_packets/00049120 [20:34:26]OFD Sender: To server: ‡•öpG, [20:34:26]CommunicateWithHost lk.salyk.kg:30040 [20:34:26]ConnectInit lk.salyk.kg [20:34:26]written 0, free lines is 4095 [20:34:26]Connected sock=10 [20:34:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 67 1F 07 01 9E 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 92 81 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 4F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 E0 0B B8 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 28 38 CE CB 26 DD CC 19 24 63 5E 83 01 91 [20:34: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 38 32 47 00 86 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 E0 BF 00 00 F4 03 04 00 D7 B7 B7 65 B6 04 01 00 00 6A 61 6C 21 9E 49 5E E1 [20:34:27]CommunicateWithHost err = 0 [20:34:27]CheckOFDResponse [20:34:27]1017 (14) - 77093643461234 [20:34:27]1041 (16) - 0000000000875060 [20:34:27]1040 (4) - 49120 [20:34:27]1012 (4) - 29.01.2024 14:36 [20:34:27]1206 (1) - 0 [20:34:27]OFD Sender: Remove packet 49120 [20:34:27]ProducePacketName [20:34:27]name=ofd_packets/00049120 [20:34:27]NVStorageDeleteData [20:34:27]Write to MH i2c: 01 00 00 A1 5B FC [20:34:27]Write i2c OK [20:34:27]MH_I2C_Read... [20:34:27]Read from MH i2c: 01 [20:34:27]MH_I2C_Read... [20:34:27]Read from MH i2c: 01 07 00 [20:34:27]MH_I2C_Read... [20:34:27]Read from MH i2c: 01 07 00 A1 5B 00 00 00 00 00 F5 0C 04 [20:34:27]RasterBufferAndPrint [20:34:27]line [20:34:27]line [20:34:27]line [20:34:27]line [20:34:27]line [20:34:27]written 0, free lines is 3324 [20:34:27]MH_Cut [20:34:27]Write to MH i2c: D1 01 00 A8 5B 01 D5 [20:34:27]Write i2c OK [20:34:27]MH_I2C_Read... [20:34:27]Read from MH i2c: D1 [20:34:27]MH_I2C_Read... [20:34:27]Read from MH i2c: D1 01 00 [20:34:27]MH_I2C_Read... [20:34:27]Read from MH i2c: D1 01 00 A8 5B 00 D4 [20:34:27]Write to MH i2c: 01 00 00 A9 5B 04 [20:34:27]Write i2c OK [20:34:27]MH_I2C_Read... [20:34:27]OFD Sender: No OFD packet to send [20:34:27]*** Cut start [20:34:27]*** Partial cut [20:34:27]*** CUTSNS_PIN = 1 [20:34:28]*** CUTSNS_PIN = 0 [20:34:28]*** Brake cut motor [20:34:28]Read from MH i2c: 01 [20:34:28]MH_I2C_Read... [20:34:28]*** Stop cut motor [20:34:28]*** Cut end [20:34:28]Read from MH i2c: 01 07 00 [20:34:28]MH_I2C_Read... [20:34:28]Read from MH i2c: 01 07 00 A9 5B 00 00 00 00 00 FF 0F 19 [20:34:28]process_action close_receipt done [20:34:28]requested_data is exist [20:34:28]produce_requested_data [20:34:28]requested_item fm.sn is exist - process it [20:34:28]wFMCommunicate request_size=4 [20:34:28]MH_SAM_APDU [20:34:28]CAPDU: 80 11 00 00 [20:34:28]Write to MH i2c: E2 08 00 AA 5B 80 11 00 00 00 00 00 00 7F [20:34:28]Write i2c OK [20:34:28]MH_I2C_Read... [20:34:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:34:28]Read from MH i2c: E2 [20:34:28]MH_I2C_Read... [20:34:28]Read from MH i2c: E2 17 00 [20:34:28]MH_I2C_Read... [20:34:28]Read from MH i2c: E2 17 00 AA 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CC [20:34:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [20:34:28]wFMCommunicate OK [20:34:28]requested_item fd.num is exist - process it [20:34:28]SAM_PROTO_GetFieldsCounters [20:34:28]wFMCommunicate request_size=4 [20:34:28]MH_SAM_APDU [20:34:28]CAPDU: 80 13 00 00 [20:34:28]Write to MH i2c: E2 08 00 AB 5B 80 13 00 00 00 00 00 00 82 [20:34:28]Write i2c OK [20:34:28]MH_I2C_Read... [20:34:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:34:28]Read from MH i2c: E2 [20:34:28]MH_I2C_Read... [20:34:28]Read from MH i2c: E2 62 00 [20:34:28]MH_I2C_Read... [20:34:28]Read from MH i2c: E2 62 00 AB 5B 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 BF 00 00 0E 04 04 00 F5 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 64 [20:34:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 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 [20:34:28]wFMCommunicate OK [20:34:28]SAM_PROTO_GetFieldsCounters done [20:34:28]requested_item shift.num is exist - process it [20:34:28]requested_item shift.opened is exist - process it [20:34:28]req_shift_opened [20:34:28]FM_GetShiftState [20:34:28]SAM_PROTO_GetShiftState [20:34:28]wFMCommunicate request_size=4 [20:34:28]MH_SAM_APDU [20:34:28]CAPDU: 80 13 01 00 [20:34:28]Write to MH i2c: E2 08 00 AC 5B 80 13 01 00 00 00 00 00 84 [20:34:28]Write i2c OK [20:34:28]MH_I2C_Read... [20:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:34:28]Read from MH i2c: E2 [20:34:28]MH_I2C_Read... [20:34:28]Read from MH i2c: E2 0E 00 [20:34:28]MH_I2C_Read... [20:34:28]Read from MH i2c: E2 0E 00 AC 5B 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 F6 [20:34:28]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [20:34:28]wFMCommunicate OK [20:34:28]SAM_PROTO_GetShiftState done [20:34:28]FM_GetShiftState done [20:34:28]req_shift_opened done [20:34:28]requested_item shift.open_date is exist - process it [20:34:28]req_shift_open_date [20:34:28]req_shift_open_date done [20:34:28]produce_requested_data done [20:34:28]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49120,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [20:34:28]process_action_free close_receipt [20:34:28]json_value_free [20:34:28]json_value_free done [20:34:28]process_json_proto returns [20:34:28]Send response to host [20:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49120,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [20:34:28]free response buf [20:34:28]execute_script done [20:34:28]execute_script returns [20:34:28]free content buf [20:34:28]Sock 9.Close socket [20:34:28]Sock 9.Thread stoped [20:34:32]OFD Sender: No OFD packet to send [20:34:37]OFD Sender: No OFD packet to send [20:34:42]OFD Sender: No OFD packet to send [20:34:47]OFD Sender: No OFD packet to send [20:34:52]OFD Sender: No OFD packet to send [20:34:57]OFD Sender: No OFD packet to send [20:35:02]OFD Sender: No OFD packet to send [20:35:07]OFD Sender: No OFD packet to send [20:35:12]OFD Sender: No OFD packet to send [20:35:17]OFD Sender: No OFD packet to send [20:35:22]OFD Sender: No OFD packet to send [20:35:27]OFD Sender: No OFD packet to send [20:35:32]OFD Sender: No OFD packet to send [20:35:37]OFD Sender: No OFD packet to send [20:35:42]OFD Sender: No OFD packet to send [20:35:47]OFD Sender: No OFD packet to send [20:35:52]OFD Sender: No OFD packet to send [20:35:57]OFD Sender: No OFD packet to send [20:36:02]OFD Sender: No OFD packet to send [20:36:07]OFD Sender: No OFD packet to send [20:36:12]OFD Sender: No OFD packet to send [20:36:17]OFD Sender: No OFD packet to send [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]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:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03: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:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:44]OFD Sender: No OFD packet to send [21:14:49]OFD Sender: No OFD packet to send [21:14:54]OFD Sender: No OFD packet to send [21:14:59]OFD Sender: No OFD packet to send [21:15:04]OFD Sender: No OFD packet to send [21:15:09]OFD Sender: No OFD packet to send [21:15:14]OFD Sender: No OFD packet to send [21:15:19]OFD Sender: No OFD packet to send [21:15:24]OFD Sender: No OFD packet to send [21:15:29]OFD Sender: No OFD packet to send [21:15:34]OFD Sender: No OFD packet to send [21:15:39]OFD Sender: No OFD packet to send [21:15:44]OFD Sender: No OFD packet to send [21:15:49]OFD Sender: No OFD packet to send [21:15:54]OFD Sender: No OFD packet to send [21:15:59]OFD Sender: No OFD packet to send [21:16:04]OFD Sender: No OFD packet to send [21:16:09]OFD Sender: No OFD packet to send [21:16:14]OFD Sender: No OFD packet to send [21:16:19]OFD Sender: No OFD packet to send [21:16:24]OFD Sender: No OFD packet to send [21:16:29]OFD Sender: No OFD packet to send [21:16:34]OFD Sender: No OFD packet to send [21:16:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:24]OFD Sender: No OFD packet to send [21:19:29]OFD Sender: No OFD packet to send [21:19:34]OFD Sender: No OFD packet to send [21:19:39]OFD Sender: No OFD packet to send [21:19:44]OFD Sender: No OFD packet to send [21:19:49]OFD Sender: No OFD packet to send [21:19:54]OFD Sender: No OFD packet to send [21:19:59]OFD Sender: No OFD packet to send [21:20:04]OFD Sender: No OFD packet to send [21:20:09]OFD Sender: No OFD packet to send [21:20:14]OFD Sender: No OFD packet to send [21:20:19]OFD Sender: No OFD packet to send [21:20:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [21:23:09]OFD Sender: No OFD packet to send [21:23:14]OFD Sender: No OFD packet to send [21:23:19]OFD Sender: No OFD packet to send [21:23:24]OFD Sender: No OFD packet to send [21:23:29]OFD Sender: No OFD packet to send [21:23:34]OFD Sender: No OFD packet to send [21:23:39]OFD Sender: No OFD packet to send [21:23:44]OFD Sender: No OFD packet to send [21:23:49]OFD Sender: No OFD packet to send [21:23:54]OFD Sender: No OFD packet to send [21:23:59]OFD Sender: No OFD packet to send [21:24:04]OFD Sender: No OFD packet to send [21:24:09]OFD Sender: No OFD packet to send [21:24:14]OFD Sender: No OFD packet to send [21:24:19]OFD Sender: No OFD packet to send [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24: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:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:42:00]OFD Sender: No OFD packet to send [21:42:05]OFD Sender: No OFD packet to send [21:42:10]OFD Sender: No OFD packet to send [21:42:15]OFD Sender: No OFD packet to send [21:42:20]OFD Sender: No OFD packet to send [21:42:25]OFD Sender: No OFD packet to send [21:42:30]OFD Sender: No OFD packet to send [21:42:35]OFD Sender: No OFD packet to send [21:42:40]OFD Sender: No OFD packet to send [21:42:45]OFD Sender: No OFD packet to send [21:42:50]OFD Sender: No OFD packet to send [21:42:55]OFD Sender: No OFD packet to send [21:43:00]OFD Sender: No OFD packet to send [21:43:05]OFD Sender: No OFD packet to send [21:43:10]OFD Sender: No OFD packet to send [21:43:15]OFD Sender: No OFD packet to send [21:43:20]OFD Sender: No OFD packet to send [21:43:25]OFD Sender: No OFD packet to send [21:43:30]OFD Sender: No OFD packet to send [21:43:35]OFD Sender: No OFD packet to send [21:43:40]OFD Sender: No OFD packet to send [21:43:45]OFD Sender: No OFD packet to send [21:43:50]OFD Sender: No OFD packet to send [21:43:55]OFD Sender: No OFD packet to send [21:44:00]OFD Sender: No OFD packet to send [21:44:05]OFD Sender: No OFD packet to send [21:44:10]OFD Sender: No OFD packet to send [21:44:15]OFD Sender: No OFD packet to send [21:44:20]OFD Sender: No OFD packet to send [21:44:25]OFD Sender: No OFD packet to send [21:44:30]OFD Sender: No OFD packet to send [21:44:35]OFD Sender: No OFD packet to send [21:44:40]OFD Sender: No OFD packet to send [21:44:45]OFD Sender: No OFD packet to send [21:44:50]OFD Sender: No OFD packet to send [21:44:55]OFD Sender: No OFD packet to send [21:45:00]OFD Sender: No OFD packet to send [21:45:05]OFD Sender: No OFD packet to send [21:45:10]OFD Sender: No OFD packet to send [21:45:15]OFD Sender: No OFD packet to send [21:45:20]OFD Sender: No OFD packet to send [21:45:25]OFD Sender: No OFD packet to send [21:45:30]OFD Sender: No OFD packet to send [21:45:35]OFD Sender: No OFD packet to send [21:45: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:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:06]OFD Sender: No OFD packet to send [21:55:11]OFD Sender: No OFD packet to send [21:55:16]OFD Sender: No OFD packet to send [21:55:21]OFD Sender: No OFD packet to send [21:55:26]OFD Sender: No OFD packet to send [21:55:31]OFD Sender: No OFD packet to send [21:55:36]OFD Sender: No OFD packet to send [21:55:41]OFD Sender: No OFD packet to send [21:55:46]OFD Sender: No OFD packet to send [21:55:51]OFD Sender: No OFD packet to send [21:55:56]OFD Sender: No OFD packet to send [21:56:01]OFD Sender: No OFD packet to send [21:56:06]OFD Sender: No OFD packet to send [21:56:11]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06: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:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:02]OFD Sender: No OFD packet to send [22:16:07]OFD Sender: No OFD packet to send [22:16:12]OFD Sender: No OFD packet to send [22:16:17]OFD Sender: No OFD packet to send [22:16:22]OFD Sender: No OFD packet to send [22:16:27]OFD Sender: No OFD packet to send [22:16:32]OFD Sender: No OFD packet to send [22:16:37]OFD Sender: No OFD packet to send [22:16:42]OFD Sender: No OFD packet to send [22:16:47]OFD Sender: No OFD packet to send [22:16:52]OFD Sender: No OFD packet to send [22:16:57]OFD Sender: No OFD packet to send [22:17:02]OFD Sender: No OFD packet to send [22:17:07]OFD Sender: No OFD packet to send [22:17:12]OFD Sender: No OFD packet to send [22:17:17]OFD Sender: No OFD packet to send [22:17:22]OFD Sender: No OFD packet to send [22:17:27]OFD Sender: No OFD packet to send [22:17:32]OFD Sender: No OFD packet to send [22:17:37]OFD Sender: No OFD packet to send [22:17:42]OFD Sender: No OFD packet to send [22:17:47]OFD Sender: No OFD packet to send [22:17:52]OFD Sender: No OFD packet to send [22:17:57]OFD Sender: No OFD packet to send [22:18:02]OFD Sender: No OFD packet to send [22:18:07]OFD Sender: No OFD packet to send [22:18:12]OFD Sender: No OFD packet to send [22:18:17]OFD Sender: No OFD packet to send [22:18:22]OFD Sender: No OFD packet to send [22:18:27]OFD Sender: No OFD packet to send [22:18:32]OFD Sender: No OFD packet to send [22:18:37]OFD Sender: No OFD packet to send [22:18:42]OFD Sender: No OFD packet to send [22:18:47]OFD Sender: No OFD packet to send [22:18:52]OFD Sender: No OFD packet to send [22:18:57]OFD Sender: No OFD packet to send [22:19:02]OFD Sender: No OFD packet to send [22:19:07]OFD Sender: No OFD packet to send [22:19:12]OFD Sender: No OFD packet to send [22:19:17]OFD Sender: No OFD packet to send [22:19:22]OFD Sender: No OFD packet to send [22:19:27]OFD Sender: No OFD packet to send [22:19:32]OFD Sender: No OFD packet to send [22:19:37]OFD Sender: No OFD packet to send [22:19:42]OFD Sender: No OFD packet to send [22:19:47]OFD Sender: No OFD packet to send [22:19:52]OFD Sender: No OFD packet to send [22:19:57]OFD Sender: No OFD packet to send [22:20:02]OFD Sender: No OFD packet to send [22:20:07]OFD Sender: No OFD packet to send [22:20:12]OFD Sender: No OFD packet to send [22:20:17]OFD Sender: No OFD packet to send [22:20:22]OFD Sender: No OFD packet to send [22:20:27]OFD Sender: No OFD packet to send [22:20:32]OFD Sender: No OFD packet to send [22:20:37]OFD Sender: No OFD packet to send [22:20:42]OFD Sender: No OFD packet to send [22:20:47]OFD Sender: No OFD packet to send [22:20:52]OFD Sender: No OFD packet to send [22:20:57]OFD Sender: No OFD packet to send [22:21:02]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27: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:14]accept exits with 7 [22:28:14]New connection [22:28:14]New thread 3066670436 created [22:28:14]Thread 3066813796 joined [22:28:14]Waiting for new connection... [22:28:14] Sock 7.Parse request [22:28:14]Sock 7.Check first char [22:28:14]Sock 7.First char is OK [22:28:14]request: POST /json_proto HTTP/1.0 [22:28:14]Method: POST [22:28:14]URL: /json_proto [22:28:14]Method is POST - this is cgi request [22:28:14]url: /json_proto [22:28:14]query_string will be loaded in cgi processing [22:28:14]execute_cgi json_proto POST (null) [22:28:14]execute_cgi path=json_proto method=POST [22:28:14]POST find Content-Length [22:28:14]Host: 172.17.56.67:8080 [22:28:14]Content-Length: 677 [22:28:14]Content-Type: application/json [22:28:14] [22:28:14]POST finish read [22:28:14]Found Content-Length = 677 [22:28:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216223", "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" ] } } [22:28:14]execute_script... [22:28:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216223", "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" ] } } [22:28:14]POST & json_proto [22:28:14]process_json_proto [22:28:14]json parsed OK: [22:28:14]protocol is kg_v1.0 [22:28:14]action value=close_receipt [22:28:14]process_action close_receipt [22:28:14]cmd_close_receipt [22:28:14]MH_GetDate [22:28:14]Write to MH i2c: F0 00 00 AD 5B F7 [22:28:14]Write i2c OK [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: F0 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: F0 09 00 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: F0 09 00 AD 5B 00 8D 26 B8 65 26 5D 9E 65 56 [22:28:14]GetLastDocTimeStamp 1706560480 [22:28:14]current date 1706567309 [22:28:14]FM_GetShiftState [22:28:14]SAM_PROTO_GetShiftState [22:28:14]wFMCommunicate request_size=4 [22:28:14]MH_SAM_APDU [22:28:14]CAPDU: 80 13 01 00 [22:28:14]Write to MH i2c: E2 08 00 AE 5B 80 13 01 00 00 00 00 00 86 [22:28:14]Write i2c OK [22:28:14]MH_I2C_Read... [22:28:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:14]Read from MH i2c: E2 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 0E 00 [22:28:14]MH_I2C_Read... [22:28:14]Read from MH i2c: E2 0E 00 AE 5B 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 F8 [22:28:14]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [22:28:14]wFMCommunicate OK [22:28:14]SAM_PROTO_GetShiftState done [22:28:14]FM_GetShiftState done [22:28:14]opened in 1706486624 [22:28:14]opened+sec_in_day 1706573024 [22:28:14]quantity*price = 30029 [22:28:14]sum+1 = 30030 [22:28:14]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 СÐО: Общий режим Чек 104 29.01.2024 22:28 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49121 ФПД: 192470513014714 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T222830&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49121&fm=192470513014714&tin=02508201610067®Number=0000000000092723&sum=30000 [22:28:15]StoreToDocumentArchive [22:28:15]shift 245 fd 49121 [22:28:15]save to /storage/0245/doc_00049121 [22:28:15]save last doc name /storage/0245/doc_00049121 to /storage/kkm_last_doc_name [22:28:15]save OK [22:28:15]Clear old archive folders... [22:28:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:28:15]tlvbuf is 01254FE0 [22:28:15]SAM_PROTO_ClearQueue [22:28:15]wFMCommunicate request_size=4 [22:28:15]MH_SAM_APDU [22:28:15]CAPDU: 80 09 00 00 [22:28:15]Write to MH i2c: E2 08 00 BB 5B 80 09 00 00 00 00 00 00 88 [22:28:15]Write i2c OK [22:28:15]MH_I2C_Read... [22:28:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:28:15]Read from MH i2c: E2 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: E2 03 00 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: E2 03 00 BB 5B 00 90 00 8A [22:28:15]RAPDU: 90 00 [22:28:15]wFMCommunicate OK [22:28:15]SAM_PROTO_ClearQueue done [22:28:15]KKMCreateOFDPacket [22:28:15]OFDProtocolAddRootSTLVToBuf [22:28:15]FM_MakeSignedData [22:28:15]FM_MakeSignedData [22:28:15]SAM_PROTO_SignData [22:28:15]wFMCommunicate request_size=4 [22:28:15]MH_SAM_APDU [22:28:15]CAPDU: 80 0D 01 02 [22:28:15]Write to MH i2c: E2 08 00 BC 5B 80 0D 01 02 00 00 00 00 90 [22:28:15]Write i2c OK [22:28:15]MH_I2C_Read... [22:28:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:28:15]Read from MH i2c: E2 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: E2 03 00 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: E2 03 00 BC 5B 00 90 00 8B [22:28:15]RAPDU: 90 00 [22:28:15]wFMCommunicate OK [22:28:15]wFMCommunicate request_size=255 [22:28:15]MH_SAM_APDU [22:28:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 68 00 00 00 F4 03 04 00 8E 26 B8 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 AF [22:28:15]Write to MH i2c: E2 02 01 BD 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 68 00 00 00 F4 03 04 00 8E 26 B8 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 AF 00 00 D3 [22:28:15]Write i2c OK [22:28:15]MH_I2C_Read... [22:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:15]Read from MH i2c: E2 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: E2 03 00 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: E2 03 00 BD 5B 00 90 00 8C [22:28:15]RAPDU: 90 00 [22:28:15]wFMCommunicate OK [22:28:15]wFMCommunicate request_size=10 [22:28:15]MH_SAM_APDU [22:28:15]CAPDU: 80 0D 02 02 05 0D 08 8E D7 BA [22:28:15]Write to MH i2c: E2 0D 00 BE 5B 80 0D 02 02 05 00 0D 08 8E D7 BA 00 00 D1 [22:28:15]Write i2c OK [22:28:15]MH_I2C_Read... [22:28:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:28:15]Read from MH i2c: E2 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: E2 03 00 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: E2 03 00 BE 5B 00 90 00 8D [22:28:15]RAPDU: 90 00 [22:28:15]wFMCommunicate OK [22:28:15]wFMCommunicate request_size=4 [22:28:15]MH_SAM_APDU [22:28:15]CAPDU: 80 0D 03 02 [22:28:15]Write to MH i2c: E2 08 00 BF 5B 80 0D 03 02 00 00 00 00 95 [22:28:15]Write i2c OK [22:28:15]MH_I2C_Read... [22:28:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:28:15]Read from MH i2c: E2 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: E2 0B 00 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: E2 0B 00 BF 5B 00 14 25 A2 AA DE 27 36 B0 90 00 06 [22:28:15]RAPDU: 14 25 A2 AA DE 27 36 B0 90 00 [22:28:15]wFMCommunicate OK [22:28:15]SAM_PROTO_SignData done [22:28:15]FM_MakeSignedData done [22:28:15]CreateOFDProtocolMessage [22:28:15]wFMCommunicate request_size=4 [22:28:15]MH_SAM_APDU [22:28:15]CAPDU: 80 11 00 00 [22:28:15]Write to MH i2c: E2 08 00 C0 5B 80 11 00 00 00 00 00 00 95 [22:28:15]Write i2c OK [22:28:15]MH_I2C_Read... [22:28:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:15]Read from MH i2c: E2 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: E2 17 00 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: E2 17 00 C0 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E2 [22:28:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [22:28:15]wFMCommunicate OK [22:28:15]CreateOFDProtocolMessage done [22:28:15]OFDSenderStorePacket 49121 [22:28:15]StoreOFDPacket docnum=49121 [22:28: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 3C BD 07 01 29 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 68 00 00 00 F4 03 04 00 8E 26 B8 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 AF 0D 08 8E D7 BA 14 25 A2 AA DE 27 36 B0 [22:28:15]CheckFolder [22:28:15]dirname=/storage/ofd_packets [22:28:15]CheckFolder done [22:28:15]ProducePacketName [22:28:15]name=ofd_packets/00049121 [22:28:15]NVStorageSaveData ofd_packets/00049121 [22:28:15]File name is /storage/ofd_packets/00049121 [22:28:15]Write 301 bytes [22:28:15]NVStorageSaveData done [22:28:15]OFDSenderStorePacket done [22:28:15]KKMCreateOFDPacket done [22:28:15]NVStorageSaveData kkm_last_timestamp [22:28:15]File name is /storage/kkm_last_timestamp [22:28:15]Write 4 bytes [22:28:15]NVStorageSaveData done [22:28:15]ExternCall_PrintAddStr [22:28:15]wPrintStart [22:28:15]Write to MH i2c: 01 00 00 C1 5B 1C [22:28:15]Write i2c OK [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: 01 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: 01 07 00 [22:28:15]MH_I2C_Read... [22:28:15]Read from MH i2c: 01 07 00 C1 5B 00 00 00 00 00 FF 0F 31 [22:28:15]RasterBufferAndPrint [22:28:15]line Счет N : (1)216223 [22:28:15]line ИÐÐ: 02508201610067 [22:28:15]line Контрольно-КаÑÑовый Чек [22:28:15]line ПРОДÐЖР[22:28:15]line ТРК (МРК, ГÐК) : 22 [22:28:15]line Товар: 2710124130 [22:28:15]line Ðи-92-К-5 [22:28:15]line 4.980 * 60.30 [22:28:15]line = 300.29 [22:28:15]line ÐДС 12% ÐСП 1% [22:28:15]line > о реализуемом товаре [22:28:15]line ОКРУГЛЕÐИЕ: -0.29 [22:28:15]line ИТОГО: 300.00 [22:28:15]line ВнеÑено: 300.00 [22:28:15]line СДÐЧÐ: 0.00 [22:28:15]line ÐСП 1% : 2.66 [22:28:15]line ÐДС 12% : 31.89 [22:28:15]line Ðаличными: 300.00 [22:28:15]line Безнал.: 0.00 [22:28:15]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [22:28:15]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [22:28:15]line СÐО: Общий режим [22:28:15]line Чек 104 29.01.2024 22:28 [22:28:15]line Смена: 245 ФФД: 1.0 [22:28:15]line ЗÐМ: 0300000040 [22:28:15]line РÐМ: 0000000000092723 [22:28:15]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [22:28:15]line ФМ: 0000000000875060 [22:28:15]line ФД: 49121 [22:28:15]line ФПД: 192470513014714 [22:28:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T222830&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49121&fm=192470513014714&tin=02508201610067®Number=0000000000092723&sum=30000 [22:28:15]OFD Sender: Processing packet 49121 [packets to send 12, broken 11] [22:28:15]ProducePacketName [22:28:15]name=ofd_packets/00049121 [22:28:15]OFD Sender: To server: ‡•öpG, [22:28:15]CommunicateWithHost lk.salyk.kg:30040 [22:28:15]ConnectInit lk.salyk.kg [22:28:15]written 0, free lines is 4095 [22:28:16]Connected sock=10 [22:28:16]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 BD 07 01 29 F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 68 00 00 00 F4 03 04 00 8E 26 B8 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 AF 0D 08 8E D7 BA 14 25 A2 AA DE 27 36 B0 [22:28:16]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 31 47 00 49 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E1 BF 00 00 F4 03 04 00 84 D2 B7 65 B6 04 01 00 00 52 C5 2D B5 F2 25 43 C7 [22:28:16]CommunicateWithHost err = 0 [22:28:16]CheckOFDResponse [22:28:16]1017 (14) - 77093643461234 [22:28:16]1041 (16) - 0000000000875060 [22:28:16]1040 (4) - 49121 [22:28:16]1012 (4) - 29.01.2024 16:29 [22:28:16]1206 (1) - 0 [22:28:16]OFD Sender: Remove packet 49121 [22:28:16]ProducePacketName [22:28:16]name=ofd_packets/00049121 [22:28:16]NVStorageDeleteData [22:28:16]Write to MH i2c: 01 00 00 EC 5B 47 [22:28:16]Write i2c OK [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: 01 [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: 01 07 00 [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: 01 07 00 EC 5B 00 00 00 00 00 F5 0C 4F [22:28:16]RasterBufferAndPrint [22:28:16]line [22:28:16]line [22:28:16]line [22:28:16]line [22:28:16]line [22:28:16]written 0, free lines is 3323 [22:28:16]MH_Cut [22:28:16]Write to MH i2c: D1 01 00 F3 5B 01 20 [22:28:16]Write i2c OK [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: D1 [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: D1 01 00 [22:28:16]MH_I2C_Read... [22:28:16]Read from MH i2c: D1 01 00 F3 5B 00 1F [22:28:16]Write to MH i2c: 01 00 00 F4 5B 4F [22:28:16]Write i2c OK [22:28:16]MH_I2C_Read... [22:28:16]OFD Sender: No OFD packet to send [22:28:17]*** Cut start [22:28:17]*** Partial cut [22:28:17]*** CUTSNS_PIN = 1 [22:28:17]*** CUTSNS_PIN = 0 [22:28:17]*** Brake cut motor [22:28:17]Read from MH i2c: 01 [22:28:17]MH_I2C_Read... [22:28:17]*** Stop cut motor [22:28:17]*** Cut end [22:28:17]Read from MH i2c: 01 07 00 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: 01 07 00 F4 5B 00 00 00 00 00 FF 0F 64 [22:28:17]process_action close_receipt done [22:28:17]requested_data is exist [22:28:17]produce_requested_data [22:28:17]requested_item fm.sn is exist - process it [22:28:17]wFMCommunicate request_size=4 [22:28:17]MH_SAM_APDU [22:28:17]CAPDU: 80 11 00 00 [22:28:17]Write to MH i2c: E2 08 00 F5 5B 80 11 00 00 00 00 00 00 CA [22:28:17]Write i2c OK [22:28:17]MH_I2C_Read... [22:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:28:17]Read from MH i2c: E2 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: E2 17 00 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: E2 17 00 F5 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 17 [22:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [22:28:17]wFMCommunicate OK [22:28:17]requested_item fd.num is exist - process it [22:28:17]SAM_PROTO_GetFieldsCounters [22:28:17]wFMCommunicate request_size=4 [22:28:17]MH_SAM_APDU [22:28:17]CAPDU: 80 13 00 00 [22:28:17]Write to MH i2c: E2 08 00 F6 5B 80 13 00 00 00 00 00 00 CD [22:28:17]Write i2c OK [22:28:17]MH_I2C_Read... [22:28:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:28:17]Read from MH i2c: E2 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: E2 62 00 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: E2 62 00 F6 5B 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 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [22:28:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:28:17]wFMCommunicate OK [22:28:17]SAM_PROTO_GetFieldsCounters done [22:28:17]requested_item shift.num is exist - process it [22:28:17]requested_item shift.opened is exist - process it [22:28:17]req_shift_opened [22:28:17]FM_GetShiftState [22:28:17]SAM_PROTO_GetShiftState [22:28:17]wFMCommunicate request_size=4 [22:28:17]MH_SAM_APDU [22:28:17]CAPDU: 80 13 01 00 [22:28:17]Write to MH i2c: E2 08 00 F7 5B 80 13 01 00 00 00 00 00 CF [22:28:17]Write i2c OK [22:28:17]MH_I2C_Read... [22:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:28:17]Read from MH i2c: E2 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: E2 0E 00 [22:28:17]MH_I2C_Read... [22:28:17]Read from MH i2c: E2 0E 00 F7 5B 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 41 [22:28:17]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [22:28:17]wFMCommunicate OK [22:28:17]SAM_PROTO_GetShiftState done [22:28:17]FM_GetShiftState done [22:28:17]req_shift_opened done [22:28:17]requested_item shift.open_date is exist - process it [22:28:17]req_shift_open_date [22:28:17]req_shift_open_date done [22:28:17]produce_requested_data done [22:28:17]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49121,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [22:28:17]process_action_free close_receipt [22:28:17]json_value_free [22:28:17]json_value_free done [22:28:17]process_json_proto returns [22:28:17]Send response to host [22:28:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49121,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [22:28:17]free response buf [22:28:17]execute_script done [22:28:17]execute_script returns [22:28:17]free content buf [22:28:17]Sock 7.Close socket [22:28:17]Sock 7.Thread stoped [22:28:21]OFD Sender: No OFD packet to send [22:28:26]OFD Sender: No OFD packet to send [22:28:31]OFD Sender: No OFD packet to send [22:28:36]OFD Sender: No OFD packet to send [22:28:41]OFD Sender: No OFD packet to send [22:28:46]OFD Sender: No OFD packet to send [22:28:51]OFD Sender: No OFD packet to send [22:28:56]OFD Sender: No OFD packet to send [22:29:01]OFD Sender: No OFD packet to send [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:56]OFD Sender: No OFD packet to send [22:30:01]OFD Sender: No OFD packet to send [22:30:06]OFD Sender: No OFD packet to send [22:30:11]OFD Sender: No OFD packet to send [22:30:16]OFD Sender: No OFD packet to send [22:30:21]OFD Sender: No OFD packet to send [22:30:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:27]OFD Sender: No OFD packet to send [22:40:32]OFD Sender: No OFD packet to send [22:40:37]OFD Sender: No OFD packet to send [22:40:42]OFD Sender: No OFD packet to send [22:40:47]OFD Sender: No OFD packet to send [22:40:52]OFD Sender: No OFD packet to send [22:40:57]OFD Sender: No OFD packet to send [22:41:02]OFD Sender: No OFD packet to send [22:41:07]OFD Sender: No OFD packet to send [22:41:12]OFD Sender: No OFD packet to send [22:41:17]OFD Sender: No OFD packet to send [22:41:22]OFD Sender: No OFD packet to send [22:41:27]OFD Sender: No OFD packet to send [22:41:32]OFD Sender: No OFD packet to send [22:41:37]OFD Sender: No OFD packet to send [22:41:42]OFD Sender: No OFD packet to send [22:41:47]OFD Sender: No OFD packet to send [22:41:52]OFD Sender: No OFD packet to send [22:41:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:52]accept exits with 9 [22:54:52]New connection [22:54:52]New thread 3066813796 created [22:54:52]Thread 3066670436 joined [22:54:52]Waiting for new connection... [22:54:52] Sock 9.Parse request [22:54:52]Sock 9.Check first char [22:54:52]Sock 9.First char is OK [22:54:52]request: POST /json_proto HTTP/1.0 [22:54:52]Method: POST [22:54:52]URL: /json_proto [22:54:52]Method is POST - this is cgi request [22:54:52]url: /json_proto [22:54:52]query_string will be loaded in cgi processing [22:54:52]execute_cgi json_proto POST (null) [22:54:52]execute_cgi path=json_proto method=POST [22:54:52]POST find Content-Length [22:54:52]Host: 172.17.56.67:8080 [22:54:52]Content-Length: 639 [22:54:52]Content-Type: application/json [22:54:52] [22:54:52]POST finish read [22:54:52]Found Content-Length = 639 [22:54:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216224", "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.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" ] } } [22:54:52]execute_script... [22:54:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216224", "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.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" ] } } [22:54:52]POST & json_proto [22:54:52]process_json_proto [22:54:52]json parsed OK: [22:54:52]protocol is kg_v1.0 [22:54:52]action value=close_receipt [22:54:52]process_action close_receipt [22:54:52]cmd_close_receipt [22:54:52]MH_GetDate [22:54:52]Write to MH i2c: F0 00 00 F8 5B 42 [22:54:52]Write i2c OK [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: F0 [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: F0 09 00 [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: F0 09 00 F8 5B 00 CC 2C B8 65 26 5D 9E 65 E6 [22:54:52]GetLastDocTimeStamp 1706567310 [22:54:52]current date 1706568908 [22:54:52]FM_GetShiftState [22:54:52]SAM_PROTO_GetShiftState [22:54:52]wFMCommunicate request_size=4 [22:54:52]MH_SAM_APDU [22:54:52]CAPDU: 80 13 01 00 [22:54:52]Write to MH i2c: E2 08 00 F9 5B 80 13 01 00 00 00 00 00 D1 [22:54:52]Write i2c OK [22:54:52]MH_I2C_Read... [22:54:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:52]Read from MH i2c: E2 [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: E2 0E 00 [22:54:52]MH_I2C_Read... [22:54:52]Read from MH i2c: E2 0E 00 F9 5B 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 43 [22:54:52]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [22:54:52]wFMCommunicate OK [22:54:52]SAM_PROTO_GetShiftState done [22:54:52]FM_GetShiftState done [22:54:52]opened in 1706486624 [22:54:52]opened+sec_in_day 1706573024 [22:54:52]quantity*price = 11999 [22:54:52]sum+1 = 12001 [22:54:52]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 СÐО: Общий режим Чек 105 29.01.2024 22:55 Смена: 245 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49122 ФПД: 60830536799295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T225508&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49122&fm=60830536799295&tin=02508201610067®Number=0000000000092723&sum=12000 [22:54:53]StoreToDocumentArchive [22:54:53]shift 245 fd 49122 [22:54:53]save to /storage/0245/doc_00049122 [22:54:53]save last doc name /storage/0245/doc_00049122 to /storage/kkm_last_doc_name [22:54:53]save OK [22:54:53]Clear old archive folders... [22:54:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:54:53]tlvbuf is B6D862E0 [22:54:53]SAM_PROTO_ClearQueue [22:54:53]wFMCommunicate request_size=4 [22:54:53]MH_SAM_APDU [22:54:53]CAPDU: 80 09 00 00 [22:54:53]Write to MH i2c: E2 08 00 06 5C 80 09 00 00 00 00 00 00 D4 [22:54:53]Write i2c OK [22:54:53]MH_I2C_Read... [22:54:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:53]Read from MH i2c: E2 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: E2 03 00 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: E2 03 00 06 5C 00 90 00 D6 [22:54:53]RAPDU: 90 00 [22:54:53]wFMCommunicate OK [22:54:53]SAM_PROTO_ClearQueue done [22:54:53]KKMCreateOFDPacket [22:54:53]OFDProtocolAddRootSTLVToBuf [22:54:53]FM_MakeSignedData [22:54:53]FM_MakeSignedData [22:54:53]SAM_PROTO_SignData [22:54:53]wFMCommunicate request_size=4 [22:54:53]MH_SAM_APDU [22:54:53]CAPDU: 80 0D 01 02 [22:54:53]Write to MH i2c: E2 08 00 07 5C 80 0D 01 02 00 00 00 00 DC [22:54:53]Write i2c OK [22:54:53]MH_I2C_Read... [22:54:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:53]Read from MH i2c: E2 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: E2 03 00 [22:54:53]MH_I2C_Read... [22:54:53]Read from MH i2c: E2 03 00 07 5C 00 90 00 D7 [22:54:53]RAPDU: 90 00 [22:54:53]wFMCommunicate OK [22:54:53]wFMCommunicate request_size=255 [22:54:53]MH_SAM_APDU [22:54:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 69 00 00 00 F4 03 04 00 CC 2C B8 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 37 [22:54:53]Write to MH i2c: E2 02 01 08 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 69 00 00 00 F4 03 04 00 CC 2C B8 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 37 00 00 2D [22:54:53]Write i2c OK [22:54:53]MH_I2C_Read... [22:54:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:54]Read from MH i2c: E2 [22:54:54]MH_I2C_Read... [22:54:54]Read from MH i2c: E2 03 00 [22:54:54]MH_I2C_Read... [22:54:54]Read from MH i2c: E2 03 00 08 5C 00 90 00 D8 [22:54:54]RAPDU: 90 00 [22:54:54]wFMCommunicate OK [22:54:54]wFMCommunicate request_size=10 [22:54:54]MH_SAM_APDU [22:54:54]CAPDU: 80 0D 02 02 05 53 36 89 94 3F [22:54:54]Write to MH i2c: E2 0D 00 09 5C 80 0D 02 02 05 00 53 36 89 94 3F 00 00 CE [22:54:54]Write i2c OK [22:54:54]MH_I2C_Read... [22:54:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:54]Read from MH i2c: E2 [22:54:54]MH_I2C_Read... [22:54:54]Read from MH i2c: E2 03 00 [22:54:54]MH_I2C_Read... [22:54:54]Read from MH i2c: E2 03 00 09 5C 00 90 00 D9 [22:54:54]RAPDU: 90 00 [22:54:54]wFMCommunicate OK [22:54:54]wFMCommunicate request_size=4 [22:54:54]MH_SAM_APDU [22:54:54]CAPDU: 80 0D 03 02 [22:54:54]Write to MH i2c: E2 08 00 0A 5C 80 0D 03 02 00 00 00 00 E1 [22:54:54]Write i2c OK [22:54:54]MH_I2C_Read... [22:54:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:54]Read from MH i2c: E2 [22:54:54]MH_I2C_Read... [22:54:54]Read from MH i2c: E2 0B 00 [22:54:54]MH_I2C_Read... [22:54:54]Read from MH i2c: E2 0B 00 0A 5C 00 7B 37 A9 7D 05 5E AA FC 90 00 C3 [22:54:54]RAPDU: 7B 37 A9 7D 05 5E AA FC 90 00 [22:54:54]wFMCommunicate OK [22:54:54]SAM_PROTO_SignData done [22:54:54]FM_MakeSignedData done [22:54:54]CreateOFDProtocolMessage [22:54:54]wFMCommunicate request_size=4 [22:54:54]MH_SAM_APDU [22:54:54]CAPDU: 80 11 00 00 [22:54:54]Write to MH i2c: E2 08 00 0B 5C 80 11 00 00 00 00 00 00 E1 [22:54:54]Write i2c OK [22:54:54]MH_I2C_Read... [22:54:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:54]Read from MH i2c: E2 [22:54:54]MH_I2C_Read... [22:54:54]Read from MH i2c: E2 17 00 [22:54:54]MH_I2C_Read... [22:54:54]Read from MH i2c: E2 17 00 0B 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 2E [22:54:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [22:54:54]wFMCommunicate OK [22:54:54]CreateOFDProtocolMessage done [22:54:54]OFDSenderStorePacket 49122 [22:54:54]StoreOFDPacket docnum=49122 [22:54: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 7F 43 07 01 82 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 69 00 00 00 F4 03 04 00 CC 2C B8 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 37 53 36 89 94 3F 7B 37 A9 7D 05 5E AA FC [22:54:54]CheckFolder [22:54:54]dirname=/storage/ofd_packets [22:54:54]CheckFolder done [22:54:54]ProducePacketName [22:54:54]name=ofd_packets/00049122 [22:54:54]NVStorageSaveData ofd_packets/00049122 [22:54:54]File name is /storage/ofd_packets/00049122 [22:54:54]Write 301 bytes [22:54:54]NVStorageSaveData done [22:54:54]OFDSenderStorePacket done [22:54:54]KKMCreateOFDPacket done [22:54:54]NVStorageSaveData kkm_last_timestamp [22:54:54]File name is /storage/kkm_last_timestamp [22:54:54]Write 4 bytes [22:54:54]NVStorageSaveData done [22:54:54]ExternCall_PrintAddStr [22:54:54]wPrintStart [22:54:54]Write to MH i2c: 01 00 00 0C 5C 68 [22:54:54]Write i2c OK [22:54:54]MH_I2C_Read... [22:54:54]Read from MH i2c: 01 [22:54:54]MH_I2C_Read... [22:54:54]Read from MH i2c: 01 07 00 [22:54:54]MH_I2C_Read... [22:54:54]Read from MH i2c: 01 07 00 0C 5C 00 00 00 00 00 FF 0F 7D [22:54:54]RasterBufferAndPrint [22:54:54]line Счет N : (1)216224 [22:54:54]line ИÐÐ: 02508201610067 [22:54:54]line Контрольно-КаÑÑовый Чек [22:54:54]line ПРОДÐЖР[22:54:54]line ТРК (МРК, ГÐК) : 22 [22:54:54]line Товар: 2710124130 [22:54:54]line Ðи-92-К-5 [22:54:54]line 1.990 * 60.30 [22:54:54]line = 120.00 [22:54:54]line ÐДС 12% ÐСП 1% [22:54:54]line > о реализуемом товаре [22:54:54]line ИТОГО: 120.00 [22:54:54]line ÐСП 1% : 1.06 [22:54:54]line ÐДС 12% : 12.74 [22:54:54]line Ðаличными: 120.00 [22:54:54]line Безнал.: 0.00 [22:54:54]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [22:54:54]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [22:54:54]line СÐО: Общий режим [22:54:54]line Чек 105 29.01.2024 22:55 [22:54:54]line Смена: 245 ФФД: 1.0 [22:54:54]line ЗÐМ: 0300000040 [22:54:54]line РÐМ: 0000000000092723 [22:54:54]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [22:54:54]line ФМ: 0000000000875060 [22:54:54]line ФД: 49122 [22:54:54]line ФПД: 60830536799295 [22:54:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240129T225508&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49122&fm=60830536799295&tin=02508201610067®Number=0000000000092723&sum=12000 [22:54:54]OFD Sender: Processing packet 49122 [packets to send 12, broken 11] [22:54:54]ProducePacketName [22:54:54]name=ofd_packets/00049122 [22:54:54]OFD Sender: To server: ‡•öpG, [22:54:54]CommunicateWithHost lk.salyk.kg:30040 [22:54:54]ConnectInit lk.salyk.kg [22:54:54]written 0, free lines is 4095 [22:54:54]Connected sock=10 [22:54:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 0F 01 00 00 7F 43 07 01 82 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 69 00 00 00 F4 03 04 00 CC 2C B8 65 0E 04 04 00 F5 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 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 BF 00 00 35 04 06 00 37 53 36 89 94 3F 7B 37 A9 7D 05 5E AA FC [22:54: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 6E 34 47 00 E6 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E2 BF 00 00 F4 03 04 00 C3 D8 B7 65 B6 04 01 00 00 A0 F4 C1 58 D7 A9 D6 93 [22:54:54]CommunicateWithHost err = 0 [22:54:54]CheckOFDResponse [22:54:54]1017 (14) - 77093643461234 [22:54:54]1041 (16) - 0000000000875060 [22:54:54]1040 (4) - 49122 [22:54:54]1012 (4) - 29.01.2024 16:56 [22:54:54]1206 (1) - 0 [22:54:54]OFD Sender: Remove packet 49122 [22:54:54]ProducePacketName [22:54:54]name=ofd_packets/00049122 [22:54:54]NVStorageDeleteData [22:54:55]Write to MH i2c: 01 00 00 34 5C 90 [22:54:55]Write i2c OK [22:54:55]MH_I2C_Read... [22:54:55]Read from MH i2c: 01 [22:54:55]MH_I2C_Read... [22:54:55]Read from MH i2c: 01 07 00 [22:54:55]MH_I2C_Read... [22:54:55]Read from MH i2c: 01 07 00 34 5C 00 00 00 00 00 1C 0D C0 [22:54:55]RasterBufferAndPrint [22:54:55]line [22:54:55]line [22:54:55]line [22:54:55]line [22:54:55]line [22:54:55]written 0, free lines is 3364 [22:54:55]MH_Cut [22:54:55]Write to MH i2c: D1 01 00 3B 5C 01 69 [22:54:55]Write i2c OK [22:54:55]MH_I2C_Read... [22:54:55]Read from MH i2c: D1 [22:54:55]MH_I2C_Read... [22:54:55]Read from MH i2c: D1 01 00 [22:54:55]MH_I2C_Read... [22:54:55]Read from MH i2c: D1 01 00 3B 5C 00 68 [22:54:55]Write to MH i2c: 01 00 00 3C 5C 98 [22:54:55]Write i2c OK [22:54:55]MH_I2C_Read... [22:54:55]OFD Sender: No OFD packet to send [22:54:55]*** Cut start [22:54:55]*** Partial cut [22:54:55]*** CUTSNS_PIN = 1 [22:54:55]*** CUTSNS_PIN = 0 [22:54:55]*** Brake cut motor [22:54:56]Read from MH i2c: 01 [22:54:56]MH_I2C_Read... [22:54:56]*** Stop cut motor [22:54:56]*** Cut end [22:54:56]Read from MH i2c: 01 07 00 [22:54:56]MH_I2C_Read... [22:54:56]Read from MH i2c: 01 07 00 3C 5C 00 00 00 00 00 FF 0F AD [22:54:56]process_action close_receipt done [22:54:56]requested_data is exist [22:54:56]produce_requested_data [22:54:56]requested_item fm.sn is exist - process it [22:54:56]wFMCommunicate request_size=4 [22:54:56]MH_SAM_APDU [22:54:56]CAPDU: 80 11 00 00 [22:54:56]Write to MH i2c: E2 08 00 3D 5C 80 11 00 00 00 00 00 00 13 [22:54:56]Write i2c OK [22:54:56]MH_I2C_Read... [22:54:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:56]Read from MH i2c: E2 [22:54:56]MH_I2C_Read... [22:54:56]Read from MH i2c: E2 17 00 [22:54:56]MH_I2C_Read... [22:54:56]Read from MH i2c: E2 17 00 3D 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 60 [22:54:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [22:54:56]wFMCommunicate OK [22:54:56]requested_item fd.num is exist - process it [22:54:56]SAM_PROTO_GetFieldsCounters [22:54:56]wFMCommunicate request_size=4 [22:54:56]MH_SAM_APDU [22:54:56]CAPDU: 80 13 00 00 [22:54:56]Write to MH i2c: E2 08 00 3E 5C 80 13 00 00 00 00 00 00 16 [22:54:56]Write i2c OK [22:54:56]MH_I2C_Read... [22:54:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:54:56]Read from MH i2c: E2 [22:54:56]MH_I2C_Read... [22:54:56]Read from MH i2c: E2 62 00 [22:54:56]MH_I2C_Read... [22:54:56]Read from MH i2c: E2 62 00 3E 5C 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 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [22:54:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:54:56]wFMCommunicate OK [22:54:56]SAM_PROTO_GetFieldsCounters done [22:54:56]requested_item shift.num is exist - process it [22:54:56]requested_item shift.opened is exist - process it [22:54:56]req_shift_opened [22:54:56]FM_GetShiftState [22:54:56]SAM_PROTO_GetShiftState [22:54:56]wFMCommunicate request_size=4 [22:54:56]MH_SAM_APDU [22:54:56]CAPDU: 80 13 01 00 [22:54:56]Write to MH i2c: E2 08 00 3F 5C 80 13 01 00 00 00 00 00 18 [22:54:56]Write i2c OK [22:54:56]MH_I2C_Read... [22:54:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:56]Read from MH i2c: E2 [22:54:56]MH_I2C_Read... [22:54:56]Read from MH i2c: E2 0E 00 [22:54:56]MH_I2C_Read... [22:54:56]Read from MH i2c: E2 0E 00 3F 5C 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 8A [22:54:56]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [22:54:56]wFMCommunicate OK [22:54:56]SAM_PROTO_GetShiftState done [22:54:56]FM_GetShiftState done [22:54:56]req_shift_opened done [22:54:56]requested_item shift.open_date is exist - process it [22:54:56]req_shift_open_date [22:54:56]req_shift_open_date done [22:54:56]produce_requested_data done [22:54:56]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49122,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [22:54:56]process_action_free close_receipt [22:54:56]json_value_free [22:54:56]json_value_free done [22:54:56]process_json_proto returns [22:54:56]Send response to host [22:54:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49122,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [22:54:56]free response buf [22:54:56]execute_script done [22:54:56]execute_script returns [22:54:56]free content buf [22:54:56]Sock 9.Close socket [22:54:56]Sock 9.Thread stoped [22:55:00]OFD Sender: No OFD packet to send [22:55:05]OFD Sender: No OFD packet to send [22:55:10]OFD Sender: No OFD packet to send [22:55:15]OFD Sender: No OFD packet to send [22:55:20]OFD Sender: No OFD packet to send [22:55:25]OFD Sender: No OFD packet to send [22:55:30]OFD Sender: No OFD packet to send [22:55:35]OFD Sender: No OFD packet to send [22:55:40]OFD Sender: No OFD packet to send [22:55:45]OFD Sender: No OFD packet to send [22:55:50]OFD Sender: No OFD packet to send [22:55:55]OFD Sender: No OFD packet to send [22:56:00]OFD Sender: No OFD packet to send [22:56:05]OFD Sender: No OFD packet to send [22:56:10]OFD Sender: No OFD packet to send [22:56:15]OFD Sender: No OFD packet to send [22:56:20]OFD Sender: No OFD packet to send [22:56:25]OFD Sender: No OFD packet to send [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58: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:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:57]OFD Sender: No OFD packet to send [23:28:02]OFD Sender: No OFD packet to send [23:28:07]OFD Sender: No OFD packet to send [23:28:12]OFD Sender: No OFD packet to send [23:28:17]OFD Sender: No OFD packet to send [23:28:22]OFD Sender: No OFD packet to send [23:28:27]OFD Sender: No OFD packet to send [23:28:32]OFD Sender: No OFD packet to send [23:28:37]OFD Sender: No OFD packet to send [23:28:42]OFD Sender: No OFD packet to send [23:28:47]OFD Sender: No OFD packet to send [23:28:52]OFD Sender: No OFD packet to send [23:28:57]OFD Sender: No OFD packet to send [23:29:02]OFD Sender: No OFD packet to send [23:29:07]OFD Sender: No OFD packet to send [23:29:12]OFD Sender: No OFD packet to send [23:29:17]OFD Sender: No OFD packet to send [23:29:22]OFD Sender: No OFD packet to send [23:29:27]OFD Sender: No OFD packet to send [23:29:32]OFD Sender: No OFD packet to send [23:29:37]OFD Sender: No OFD packet to send [23:29:42]OFD Sender: No OFD packet to send [23:29:47]OFD Sender: No OFD packet to send [23:29:52]OFD Sender: No OFD packet to send [23:29:57]OFD Sender: No OFD packet to send [23:30:02]OFD Sender: No OFD packet to send [23:30:07]OFD Sender: No OFD packet to send [23:30:12]OFD Sender: No OFD packet to send [23:30:17]OFD Sender: No OFD packet to send [23:30:22]OFD Sender: No OFD packet to send [23:30:27]OFD Sender: No OFD packet to send [23:30:32]OFD Sender: No OFD packet to send [23:30:37]OFD Sender: No OFD packet to send [23:30:42]OFD Sender: No OFD packet to send [23:30:47]OFD Sender: No OFD packet to send [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]OFD Sender: No OFD packet to send [23:32:27]OFD Sender: No OFD packet to send [23:32:32]OFD Sender: No OFD packet to send [23:32:37]OFD Sender: No OFD packet to send [23:32:42]OFD Sender: No OFD packet to send [23:32:47]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:07]OFD Sender: No OFD packet to send [23:33:12]OFD Sender: No OFD packet to send [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]OFD Sender: No OFD packet to send [23:33:57]OFD Sender: No OFD packet to send [23:34:02]OFD Sender: No OFD packet to send [23:34:07]OFD Sender: No OFD packet to send [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:58]OFD Sender: No OFD packet to send [23:49:03]OFD Sender: No OFD packet to send [23:49:08]OFD Sender: No OFD packet to send [23:49:13]OFD Sender: No OFD packet to send [23:49:18]OFD Sender: No OFD packet to send [23:49:23]OFD Sender: No OFD packet to send [23:49:28]OFD Sender: No OFD packet to send [23:49:33]OFD Sender: No OFD packet to send [23:49:38]OFD Sender: No OFD packet to send [23:49:43]OFD Sender: No OFD packet to send [23:49:48]OFD Sender: No OFD packet to send [23:49:53]OFD Sender: No OFD packet to send [23:49:58]OFD Sender: No OFD packet to send [23:50:03]OFD Sender: No OFD packet to send [23:50:08]OFD Sender: No OFD packet to send [23:50:13]OFD Sender: No OFD packet to send [23:50:18]OFD Sender: No OFD packet to send [23:50:23]OFD Sender: No OFD packet to send [23:50:28]OFD Sender: No OFD packet to send [23:50:33]OFD Sender: No OFD packet to send [23:50:38]OFD Sender: No OFD packet to send [23:50:43]OFD Sender: No OFD packet to send [23:50:48]OFD Sender: No OFD packet to send [23:50:53]OFD Sender: No OFD packet to send [23:50:58]OFD Sender: No OFD packet to send [23:51:03]OFD Sender: No OFD packet to send [23:51:08]OFD Sender: No OFD packet to send [23:51:13]OFD Sender: No OFD packet to send [23:51:18]OFD Sender: No OFD packet to send [23:51:23]OFD Sender: No OFD packet to send [23:51:28]OFD Sender: No OFD packet to send [23:51:33]OFD Sender: No OFD packet to send [23:51:38]OFD Sender: No OFD packet to send [23:51:43]OFD Sender: No OFD packet to send [23:51:48]OFD Sender: No OFD packet to send [23:51:53]OFD Sender: No OFD packet to send [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:18]OFD Sender: No OFD packet to send [23:52:23]OFD Sender: No OFD packet to send [23:52:28]OFD Sender: No OFD packet to send [23:52:33]OFD Sender: No OFD packet to send [23:52:38]OFD Sender: No OFD packet to send [23:52:43]OFD Sender: No OFD packet to send [23:52:48]OFD Sender: No OFD packet to send [23:52:53]OFD Sender: No OFD packet to send [23:52:58]OFD Sender: No OFD packet to send [23:53:03]OFD Sender: No OFD packet to send [23:53:08]OFD Sender: No OFD packet to send [23:53:13]OFD Sender: No OFD packet to send [23:53:18]OFD Sender: No OFD packet to send [23:53:23]OFD Sender: No OFD packet to send [23:53:28]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:03]OFD Sender: No OFD packet to send [23:54:08]OFD Sender: No OFD packet to send [23:54:13]OFD Sender: No OFD packet to send [23:54:18]OFD Sender: No OFD packet to send [23:54:23]OFD Sender: No OFD packet to send [23:54:28]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:35]accept exits with 7 [23:54:35]New connection [23:54:35]New thread 3066670436 created [23:54:35]Thread 3066813796 joined [23:54:35]Waiting for new connection... [23:54:35] Sock 7.Parse request [23:54:35]Sock 7.Check first char [23:54:35]Sock 7.First char is OK [23:54:35]request: POST /json_proto HTTP/1.0 [23:54:35]Method: POST [23:54:35]URL: /json_proto [23:54:35]Method is POST - this is cgi request [23:54:35]url: /json_proto [23:54:35]query_string will be loaded in cgi processing [23:54:35]execute_cgi json_proto POST (null) [23:54:35]execute_cgi path=json_proto method=POST [23:54:35]POST find Content-Length [23:54:35]Host: 172.17.56.67:8080 [23:54:35]Content-Length: 215 [23:54:35]Content-Type: application/json [23:54:35] [23:54:35]POST finish read [23:54:35]Found Content-Length = 215 [23:54:35]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:54:35]execute_script... [23:54:35]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:54:35]POST & json_proto [23:54:35]process_json_proto [23:54:35]json parsed OK: [23:54:35]protocol is kg_v1.0 [23:54:35]action value=get_value [23:54:35]process_action get_value [23:54:35]cmd_get_value [23:54:35]process_action get_value done [23:54:35]requested_data is exist [23:54:35]produce_requested_data [23:54:35]requested_item kkm.sn is exist - process it [23:54:35]requested_item kkm.ver is exist - process it [23:54:35]requested_item fm.sn is exist - process it [23:54:35]wFMCommunicate request_size=4 [23:54:35]MH_SAM_APDU [23:54:35]CAPDU: 80 11 00 00 [23:54:35]Write to MH i2c: E2 08 00 40 5C 80 11 00 00 00 00 00 00 16 [23:54:35]Write i2c OK [23:54:35]MH_I2C_Read... [23:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:35]Read from MH i2c: E2 [23:54:35]MH_I2C_Read... [23:54:35]Read from MH i2c: E2 17 00 [23:54:35]MH_I2C_Read... [23:54:35]Read from MH i2c: E2 17 00 40 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 63 [23:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:54:35]wFMCommunicate OK [23:54:35]requested_item fd.num is exist - process it [23:54:35]SAM_PROTO_GetFieldsCounters [23:54:35]wFMCommunicate request_size=4 [23:54:35]MH_SAM_APDU [23:54:35]CAPDU: 80 13 00 00 [23:54:35]Write to MH i2c: E2 08 00 41 5C 80 13 00 00 00 00 00 00 19 [23:54:35]Write i2c OK [23:54:35]MH_I2C_Read... [23:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:35]Read from MH i2c: E2 [23:54:35]MH_I2C_Read... [23:54:35]Read from MH i2c: E2 62 00 [23:54:35]MH_I2C_Read... [23:54:35]Read from MH i2c: E2 62 00 41 5C 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 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [23:54: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 E2 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:35]wFMCommunicate OK [23:54:35]SAM_PROTO_GetFieldsCounters done [23:54:35]requested_item shift.num is exist - process it [23:54:35]requested_item shift.opened is exist - process it [23:54:35]req_shift_opened [23:54:35]FM_GetShiftState [23:54:35]SAM_PROTO_GetShiftState [23:54:35]wFMCommunicate request_size=4 [23:54:35]MH_SAM_APDU [23:54:35]CAPDU: 80 13 01 00 [23:54:35]Write to MH i2c: E2 08 00 42 5C 80 13 01 00 00 00 00 00 1B [23:54:35]Write i2c OK [23:54:35]MH_I2C_Read... [23:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:35]Read from MH i2c: E2 [23:54:35]MH_I2C_Read... [23:54:35]Read from MH i2c: E2 0E 00 [23:54:35]MH_I2C_Read... [23:54:35]Read from MH i2c: E2 0E 00 42 5C 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 8D [23:54:35]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [23:54:35]wFMCommunicate OK [23:54:35]SAM_PROTO_GetShiftState done [23:54:35]FM_GetShiftState done [23:54:35]req_shift_opened done [23:54:35]requested_item shift.open_date is exist - process it [23:54:35]req_shift_open_date [23:54:35]req_shift_open_date done [23:54:35]produce_requested_data done [23:54:35]produce_requested_data return {"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49122,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [23:54:35]process_action_free get_value [23:54:35]json_value_free [23:54:35]json_value_free done [23:54:35]process_json_proto returns [23:54:35]Send response to host [23:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49122,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [23:54:35]free response buf [23:54:35]execute_script done [23:54:35]execute_script returns [23:54:35]free content buf [23:54:35]Sock 7.Close socket [23:54:35]Sock 7.Thread stoped [23:54:36]accept exits with 9 [23:54:36]New connection [23:54:36]New thread 3066813796 created [23:54:36]Thread 3066670436 joined [23:54:36]Waiting for new connection... [23:54:36] Sock 9.Parse request [23:54:36]Sock 9.Check first char [23:54:36]Sock 9.First char is OK [23:54:36]request: POST /json_proto HTTP/1.0 [23:54:36]Method: POST [23:54:36]URL: /json_proto [23:54:36]Method is POST - this is cgi request [23:54:36]url: /json_proto [23:54:36]query_string will be loaded in cgi processing [23:54:36]execute_cgi json_proto POST (null) [23:54:36]execute_cgi path=json_proto method=POST [23:54:36]POST find Content-Length [23:54:36]Host: 172.17.56.67:8080 [23:54:36]Content-Length: 331 [23:54:36]Content-Type: application/json [23:54:36] [23:54:36]POST finish read [23:54:36]Found Content-Length = 331 [23:54:36]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:54:36]execute_script... [23:54:36]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:54:36]POST & json_proto [23:54:36]process_json_proto [23:54:36]json parsed OK: [23:54:36]protocol is kg_v1.0 [23:54:36]action value=get_value [23:54:36]process_action get_value [23:54:36]cmd_get_value [23:54:36]process_action get_value done [23:54:36]requested_data is exist [23:54:36]produce_requested_data [23:54:36]requested_item fm.sale.total is exist - process it [23:54:36]SAM_PROTO_GetFMData [23:54:36]wFMCommunicate request_size=4 [23:54:36]MH_SAM_APDU [23:54:36]CAPDU: 80 13 03 00 [23:54:36]Write to MH i2c: E2 08 00 43 5C 80 13 03 00 00 00 00 00 1E [23:54:36]Write i2c OK [23:54:36]MH_I2C_Read... [23:54:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:36]Read from MH i2c: E2 [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: E2 FD 00 [23:54:36]MH_I2C_Read... [23:54:36]Read from MH i2c: E2 FD 00 43 5C 00 BF 04 85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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 9E [23:54:36]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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:54:36]wFMCommunicate OK [23:54:36]wFMCommunicate request_size=4 [23:54:36]MH_SAM_APDU [23:54:36]CAPDU: 80 17 00 00 [23:54:36]Write to MH i2c: E2 08 00 44 5C 80 17 00 00 00 00 00 00 20 [23:54:36]Write i2c OK [23:54:36]MH_I2C_Read... [23:54:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:37]Read from MH i2c: E2 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 FD 00 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 FD 00 44 5C 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 D0 [23:54: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:54:37]wFMCommunicate OK [23:54:37]wFMCommunicate request_size=4 [23:54:37]MH_SAM_APDU [23:54:37]CAPDU: 80 17 00 00 [23:54:37]Write to MH i2c: E2 08 00 45 5C 80 17 00 00 00 00 00 00 21 [23:54:37]Write i2c OK [23:54:37]MH_I2C_Read... [23:54:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:37]Read from MH i2c: E2 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 FD 00 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 FD 00 45 5C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C5 [23:54:37]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:54:37]wFMCommunicate OK [23:54:37]wFMCommunicate request_size=4 [23:54:37]MH_SAM_APDU [23:54:37]CAPDU: 80 17 00 00 [23:54:37]Write to MH i2c: E2 08 00 46 5C 80 17 00 00 00 00 00 00 22 [23:54:37]Write i2c OK [23:54:37]MH_I2C_Read... [23:54:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:37]Read from MH i2c: E2 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 FD 00 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 FD 00 46 5C 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 9C [23:54:37]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:54:37]wFMCommunicate OK [23:54:37]wFMCommunicate request_size=4 [23:54:37]MH_SAM_APDU [23:54:37]CAPDU: 80 17 00 00 [23:54:37]Write to MH i2c: E2 08 00 47 5C 80 17 00 00 00 00 00 00 23 [23:54:37]Write i2c OK [23:54:37]MH_I2C_Read... [23:54:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:54:37]Read from MH i2c: E2 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 DC 00 [23:54:37]MH_I2C_Read... [23:54:37]Read from MH i2c: E2 DC 00 47 5C 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 07 [23:54:37]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:54:37]wFMCommunicate OK [23:54:37]SAM_PROTO_GetFMData done [23:54:37]requested_item fm.sale_refund.total is exist - process it [23:54:37]requested_item fm.buy.total is exist - process it [23:54:37]requested_item shift.sale.total is exist - process it [23:54:37]SAM_PROTO_GetShiftData [23:54:37]wFMCommunicate request_size=4 [23:54:37]MH_SAM_APDU [23:54:37]CAPDU: 80 13 02 00 [23:54:37]Write to MH i2c: E2 08 00 48 5C 80 13 02 00 00 00 00 00 22 [23:54:37]Write i2c OK [23:54:37]MH_I2C_Read... [23:54:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:54:38]Read from MH i2c: E2 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 FD 00 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 FD 00 48 5C 00 AD 04 AA 04 A9 04 6E 04 04 00 69 00 00 00 69 04 9A 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 D4 F0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8A [23:54:38]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 69 00 00 00 69 04 9A 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 D4 F0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:38]wFMCommunicate OK [23:54:38]wFMCommunicate request_size=4 [23:54:38]MH_SAM_APDU [23:54:38]CAPDU: 80 17 00 00 [23:54:38]Write to MH i2c: E2 08 00 49 5C 80 17 00 00 00 00 00 00 25 [23:54:38]Write i2c OK [23:54:38]MH_I2C_Read... [23:54:38]OFD Sender: No OFD packet to send [23:54:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:38]Read from MH i2c: E2 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 FD 00 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 FD 00 49 5C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 37 [23:54:38]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:54:38]wFMCommunicate OK [23:54:38]wFMCommunicate request_size=4 [23:54:38]MH_SAM_APDU [23:54:38]CAPDU: 80 17 00 00 [23:54:38]Write to MH i2c: E2 08 00 4A 5C 80 17 00 00 00 00 00 00 26 [23:54:38]Write i2c OK [23:54:38]MH_I2C_Read... [23:54:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:38]Read from MH i2c: E2 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 FD 00 [23:54:38]MH_I2C_Read... [23:54:38]Read from MH i2c: E2 FD 00 4A 5C 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EA [23:54:38]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:38]wFMCommunicate OK [23:54:38]wFMCommunicate request_size=4 [23:54:38]MH_SAM_APDU [23:54:38]CAPDU: 80 17 00 00 [23:54:38]Write to MH i2c: E2 08 00 4B 5C 80 17 00 00 00 00 00 00 27 [23:54:38]Write i2c OK [23:54:38]MH_I2C_Read... [23:54:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:39]Read from MH i2c: E2 [23:54:39]MH_I2C_Read... [23:54:39]Read from MH i2c: E2 FD 00 [23:54:39]MH_I2C_Read... [23:54:39]Read from MH i2c: E2 FD 00 4B 5C 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 90 00 9C [23:54:39]RAPDU: 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 90 00 [23:54:39]wFMCommunicate OK [23:54:39]wFMCommunicate request_size=4 [23:54:39]MH_SAM_APDU [23:54:39]CAPDU: 80 17 00 00 [23:54:39]Write to MH i2c: E2 08 00 4C 5C 80 17 00 00 00 00 00 00 28 [23:54:39]Write i2c OK [23:54:39]MH_I2C_Read... [23:54:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [23:54:39]Read from MH i2c: E2 [23:54:39]MH_I2C_Read... [23:54:39]Read from MH i2c: E2 CA 00 [23:54:39]MH_I2C_Read... [23:54:39]Read from MH i2c: E2 CA 00 4C 5C 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 0D [23:54:39]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:54:39]wFMCommunicate OK [23:54:39]SAM_PROTO_GetShiftData done [23:54:39]requested_item shift.sale.total_cash is exist - process it [23:54:39]requested_item shift.sale_refund.total is exist - process it [23:54:39]requested_item shift.sale_refund.total_cash is exist - process it [23:54:39]requested_item shift.buy.total is exist - process it [23:54:39]requested_item shift.buy.total_cash is exist - process it [23:54:39]produce_requested_data done [23:54:39]produce_requested_data return {"fm.sale.total":31581364.09,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":69632.49,"shift.sale.total_cash":69132.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:54:39]process_action_free get_value [23:54:39]json_value_free [23:54:39]json_value_free done [23:54:39]process_json_proto returns [23:54:39]Send response to host [23:54:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31581364.09,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":69632.49,"shift.sale.total_cash":69132.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:54:39]free response buf [23:54:39]execute_script done [23:54:39]execute_script returns [23:54:39]free content buf [23:54:39]Sock 9.Close socket [23:54:39]Sock 9.Thread stoped [23:54:39]accept exits with 7 [23:54:39]New connection [23:54:39]New thread 3066670436 created [23:54:39]Thread 3066813796 joined [23:54:39]Waiting for new connection... [23:54:39] Sock 7.Parse request [23:54:39]Sock 7.Check first char [23:54:39]Sock 7.First char is OK [23:54:39]request: POST /json_proto HTTP/1.0 [23:54:39]Method: POST [23:54:39]URL: /json_proto [23:54:39]Method is POST - this is cgi request [23:54:39]url: /json_proto [23:54:39]query_string will be loaded in cgi processing [23:54:39]execute_cgi json_proto POST (null) [23:54:39]execute_cgi path=json_proto method=POST [23:54:39]POST find Content-Length [23:54:39]Host: 172.17.56.67:8080 [23:54:39]Content-Length: 331 [23:54:39]Content-Type: application/json [23:54:39] [23:54:39]POST finish read [23:54:39]Found Content-Length = 331 [23:54:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:54:39]execute_script... [23:54:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:54:39]POST & json_proto [23:54:39]process_json_proto [23:54:39]json parsed OK: [23:54:39]protocol is kg_v1.0 [23:54:39]action value=get_value [23:54:39]process_action get_value [23:54:39]cmd_get_value [23:54:39]process_action get_value done [23:54:39]requested_data is exist [23:54:39]produce_requested_data [23:54:39]requested_item fm.sale.total is exist - process it [23:54:39]SAM_PROTO_GetFMData [23:54:39]wFMCommunicate request_size=4 [23:54:39]MH_SAM_APDU [23:54:39]CAPDU: 80 13 03 00 [23:54:39]Write to MH i2c: E2 08 00 4D 5C 80 13 03 00 00 00 00 00 28 [23:54:39]Write i2c OK [23:54:39]MH_I2C_Read... [23:54:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:40]Read from MH i2c: E2 [23:54:40]MH_I2C_Read... [23:54:40]Read from MH i2c: E2 FD 00 [23:54:40]MH_I2C_Read... [23:54:40]Read from MH i2c: E2 FD 00 4D 5C 00 BF 04 85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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 A8 [23:54:40]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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:54:40]wFMCommunicate OK [23:54:40]wFMCommunicate request_size=4 [23:54:40]MH_SAM_APDU [23:54:40]CAPDU: 80 17 00 00 [23:54:40]Write to MH i2c: E2 08 00 4E 5C 80 17 00 00 00 00 00 00 2A [23:54:40]Write i2c OK [23:54:40]MH_I2C_Read... [23:54:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:40]Read from MH i2c: E2 [23:54:40]MH_I2C_Read... [23:54:40]Read from MH i2c: E2 FD 00 [23:54:40]MH_I2C_Read... [23:54:40]Read from MH i2c: E2 FD 00 4E 5C 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 DA [23:54:40]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:54:40]wFMCommunicate OK [23:54:40]wFMCommunicate request_size=4 [23:54:40]MH_SAM_APDU [23:54:40]CAPDU: 80 17 00 00 [23:54:40]Write to MH i2c: E2 08 00 4F 5C 80 17 00 00 00 00 00 00 2B [23:54:40]Write i2c OK [23:54:40]MH_I2C_Read... [23:54:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:40]Read from MH i2c: E2 [23:54:40]MH_I2C_Read... [23:54:40]Read from MH i2c: E2 FD 00 [23:54:40]MH_I2C_Read... [23:54:40]Read from MH i2c: E2 FD 00 4F 5C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CF [23:54:40]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:54:40]wFMCommunicate OK [23:54:40]wFMCommunicate request_size=4 [23:54:40]MH_SAM_APDU [23:54:40]CAPDU: 80 17 00 00 [23:54:40]Write to MH i2c: E2 08 00 50 5C 80 17 00 00 00 00 00 00 2C [23:54:40]Write i2c OK [23:54:40]MH_I2C_Read... [23:54:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:41]Read from MH i2c: E2 [23:54:41]MH_I2C_Read... [23:54:41]Read from MH i2c: E2 FD 00 [23:54:41]MH_I2C_Read... [23:54:41]Read from MH i2c: E2 FD 00 50 5C 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 A6 [23:54:41]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:54:41]wFMCommunicate OK [23:54:41]wFMCommunicate request_size=4 [23:54:41]MH_SAM_APDU [23:54:41]CAPDU: 80 17 00 00 [23:54:41]Write to MH i2c: E2 08 00 51 5C 80 17 00 00 00 00 00 00 2D [23:54:41]Write i2c OK [23:54:41]MH_I2C_Read... [23:54:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:54:41]Read from MH i2c: E2 [23:54:41]MH_I2C_Read... [23:54:41]Read from MH i2c: E2 DC 00 [23:54:41]MH_I2C_Read... [23:54:41]Read from MH i2c: E2 DC 00 51 5C 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 11 [23:54:41]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:54:41]wFMCommunicate OK [23:54:41]SAM_PROTO_GetFMData done [23:54:41]requested_item fm.sale_refund.total is exist - process it [23:54:41]requested_item fm.buy.total is exist - process it [23:54:41]requested_item shift.sale.total is exist - process it [23:54:41]SAM_PROTO_GetShiftData [23:54:41]wFMCommunicate request_size=4 [23:54:41]MH_SAM_APDU [23:54:41]CAPDU: 80 13 02 00 [23:54:41]Write to MH i2c: E2 08 00 52 5C 80 13 02 00 00 00 00 00 2C [23:54:41]Write i2c OK [23:54:41]MH_I2C_Read... [23:54:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:54:42]Read from MH i2c: E2 [23:54:42]MH_I2C_Read... [23:54:42]Read from MH i2c: E2 FD 00 [23:54:42]MH_I2C_Read... [23:54:42]Read from MH i2c: E2 FD 00 52 5C 00 AD 04 AA 04 A9 04 6E 04 04 00 69 00 00 00 69 04 9A 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 D4 F0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 94 [23:54:42]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 69 00 00 00 69 04 9A 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 D4 F0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:42]wFMCommunicate OK [23:54:42]wFMCommunicate request_size=4 [23:54:42]MH_SAM_APDU [23:54:42]CAPDU: 80 17 00 00 [23:54:42]Write to MH i2c: E2 08 00 53 5C 80 17 00 00 00 00 00 00 2F [23:54:42]Write i2c OK [23:54:42]MH_I2C_Read... [23:54:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:42]Read from MH i2c: E2 [23:54:42]MH_I2C_Read... [23:54:42]Read from MH i2c: E2 FD 00 [23:54:42]MH_I2C_Read... [23:54:42]Read from MH i2c: E2 FD 00 53 5C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 41 [23:54:42]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:54:42]wFMCommunicate OK [23:54:42]wFMCommunicate request_size=4 [23:54:42]MH_SAM_APDU [23:54:42]CAPDU: 80 17 00 00 [23:54:42]Write to MH i2c: E2 08 00 54 5C 80 17 00 00 00 00 00 00 30 [23:54:42]Write i2c OK [23:54:42]MH_I2C_Read... [23:54:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:42]Read from MH i2c: E2 [23:54:42]MH_I2C_Read... [23:54:42]Read from MH i2c: E2 FD 00 [23:54:42]MH_I2C_Read... [23:54:42]Read from MH i2c: E2 FD 00 54 5C 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F4 [23:54:42]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:43]wFMCommunicate OK [23:54:43]wFMCommunicate request_size=4 [23:54:43]MH_SAM_APDU [23:54:43]CAPDU: 80 17 00 00 [23:54:43]Write to MH i2c: E2 08 00 55 5C 80 17 00 00 00 00 00 00 31 [23:54:43]Write i2c OK [23:54:43]MH_I2C_Read... [23:54:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:43]Read from MH i2c: E2 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 FD 00 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 FD 00 55 5C 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 90 00 A6 [23:54:43]RAPDU: 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 90 00 [23:54:43]wFMCommunicate OK [23:54:43]wFMCommunicate request_size=4 [23:54:43]MH_SAM_APDU [23:54:43]CAPDU: 80 17 00 00 [23:54:43]Write to MH i2c: E2 08 00 56 5C 80 17 00 00 00 00 00 00 32 [23:54:43]OFD Sender: No OFD packet to send [23:54:43]Write i2c OK [23:54:43]MH_I2C_Read... [23:54:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [23:54:43]Read from MH i2c: E2 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 CA 00 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 CA 00 56 5C 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 17 [23:54:43]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:54:43]wFMCommunicate OK [23:54:43]SAM_PROTO_GetShiftData done [23:54:43]requested_item shift.sale.total_cash is exist - process it [23:54:43]requested_item shift.sale_refund.total is exist - process it [23:54:43]requested_item shift.sale_refund.total_cash is exist - process it [23:54:43]requested_item shift.buy.total is exist - process it [23:54:43]requested_item shift.buy.total_cash is exist - process it [23:54:43]produce_requested_data done [23:54:43]produce_requested_data return {"fm.sale.total":31581364.09,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":69632.49,"shift.sale.total_cash":69132.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:54:43]process_action_free get_value [23:54:43]json_value_free [23:54:43]json_value_free done [23:54:43]process_json_proto returns [23:54:43]Send response to host [23:54:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31581364.09,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":69632.49,"shift.sale.total_cash":69132.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:54:43]free response buf [23:54:43]execute_script done [23:54:43]execute_script returns [23:54:43]free content buf [23:54:43]Sock 7.Close socket [23:54:43]Sock 7.Thread stoped [23:54:43]accept exits with 9 [23:54:43]New connection [23:54:43]New thread 3066813796 created [23:54:43]Thread 3066670436 joined [23:54:43]Waiting for new connection... [23:54:43] Sock 9.Parse request [23:54:43]Sock 9.Check first char [23:54:43]Sock 9.First char is OK [23:54:43]request: POST /json_proto HTTP/1.0 [23:54:43]Method: POST [23:54:43]URL: /json_proto [23:54:43]Method is POST - this is cgi request [23:54:43]url: /json_proto [23:54:43]query_string will be loaded in cgi processing [23:54:43]execute_cgi json_proto POST (null) [23:54:43]execute_cgi path=json_proto method=POST [23:54:43]POST find Content-Length [23:54:43]Host: 172.17.56.67:8080 [23:54:43]Content-Length: 251 [23:54:43]Content-Type: application/json [23:54:43] [23:54:43]POST finish read [23:54:43]Found Content-Length = 251 [23:54:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0443\u043A\u0430\u043D\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:43]execute_script... [23:54:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041C\u0443\u043A\u0430\u043D\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:43]POST & json_proto [23:54:43]process_json_proto [23:54:43]json parsed OK: [23:54:43]protocol is kg_v1.0 [23:54:43]action value=x_report [23:54:43]process_action x_report [23:54:43]cmd_x_report [23:54:43]MH_GetDate [23:54:43]Write to MH i2c: F0 00 00 57 5C A2 [23:54:43]Write i2c OK [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: F0 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: F0 09 00 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: F0 09 00 57 5C 00 D3 3A B8 65 26 5D 9E 65 5B [23:54:43]GetLastDocTimeStamp 1706568908 [23:54:43]current date 1706572499 [23:54:43]FM_GetShiftState [23:54:43]SAM_PROTO_GetShiftState [23:54:43]wFMCommunicate request_size=4 [23:54:43]MH_SAM_APDU [23:54:43]CAPDU: 80 13 01 00 [23:54:43]Write to MH i2c: E2 08 00 58 5C 80 13 01 00 00 00 00 00 31 [23:54:43]Write i2c OK [23:54:43]MH_I2C_Read... [23:54:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:43]Read from MH i2c: E2 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 0E 00 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 0E 00 58 5C 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 A3 [23:54:43]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [23:54:43]wFMCommunicate OK [23:54:43]SAM_PROTO_GetShiftState done [23:54:43]FM_GetShiftState done [23:54:43]KKMCreateXReportDocument [23:54:43]Load OK [23:54:43]Malloc new data [23:54:43]MH_GetDate [23:54:43]Write to MH i2c: F0 00 00 59 5C A4 [23:54:43]Write i2c OK [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: F0 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: F0 09 00 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: F0 09 00 59 5C 00 D3 3A B8 65 26 5D 9E 65 5D [23:54:43]Malloc new data [23:54:43]Malloc new data [23:54:43]wFMCommunicate request_size=4 [23:54:43]MH_SAM_APDU [23:54:43]CAPDU: 80 11 00 00 [23:54:43]Write to MH i2c: E2 08 00 5A 5C 80 11 00 00 00 00 00 00 30 [23:54:43]Write i2c OK [23:54:43]MH_I2C_Read... [23:54:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:43]Read from MH i2c: E2 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 17 00 [23:54:43]MH_I2C_Read... [23:54:43]Read from MH i2c: E2 17 00 5A 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 7D [23:54:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:54:43]wFMCommunicate OK [23:54:43]SAM_PROTO_GetFieldsCounters [23:54:43]wFMCommunicate request_size=4 [23:54:43]MH_SAM_APDU [23:54:43]CAPDU: 80 13 00 00 [23:54:43]Write to MH i2c: E2 08 00 5B 5C 80 13 00 00 00 00 00 00 33 [23:54:43]Write i2c OK [23:54:43]MH_I2C_Read... [23:54:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:44]Read from MH i2c: E2 [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: E2 62 00 [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: E2 62 00 5B 5C 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 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [23:54:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 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 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:44]wFMCommunicate OK [23:54:44]SAM_PROTO_GetFieldsCounters done [23:54:44]Malloc new data [23:54:44]Malloc new data [23:54:44]Malloc new data [23:54:44]KKMCreateXReportDocument OK [23:54:44]KKMSetXReportData OK [23:54:44]KKMPrepareXReportFMData [23:54:44]SAM_PROTO_GetShiftData [23:54:44]wFMCommunicate request_size=4 [23:54:44]MH_SAM_APDU [23:54:44]CAPDU: 80 13 02 00 [23:54:44]Write to MH i2c: E2 08 00 5C 5C 80 13 02 00 00 00 00 00 36 [23:54:44]Write i2c OK [23:54:44]MH_I2C_Read... [23:54:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:54:44]Read from MH i2c: E2 [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: E2 FD 00 [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: E2 FD 00 5C 5C 00 AD 04 AA 04 A9 04 6E 04 04 00 69 00 00 00 69 04 9A 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 D4 F0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9E [23:54:44]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 69 00 00 00 69 04 9A 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 D4 F0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:44]wFMCommunicate OK [23:54:44]wFMCommunicate request_size=4 [23:54:44]MH_SAM_APDU [23:54:44]CAPDU: 80 17 00 00 [23:54:44]Write to MH i2c: E2 08 00 5D 5C 80 17 00 00 00 00 00 00 39 [23:54:44]Write i2c OK [23:54:44]MH_I2C_Read... [23:54:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:45]Read from MH i2c: E2 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: E2 FD 00 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: E2 FD 00 5D 5C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 4B [23:54:45]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:54:45]wFMCommunicate OK [23:54:45]wFMCommunicate request_size=4 [23:54:45]MH_SAM_APDU [23:54:45]CAPDU: 80 17 00 00 [23:54:45]Write to MH i2c: E2 08 00 5E 5C 80 17 00 00 00 00 00 00 3A [23:54:45]Write i2c OK [23:54:45]MH_I2C_Read... [23:54:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:45]Read from MH i2c: E2 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: E2 FD 00 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: E2 FD 00 5E 5C 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FE [23:54:45]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:45]wFMCommunicate OK [23:54:45]wFMCommunicate request_size=4 [23:54:45]MH_SAM_APDU [23:54:45]CAPDU: 80 17 00 00 [23:54:45]Write to MH i2c: E2 08 00 5F 5C 80 17 00 00 00 00 00 00 3B [23:54:45]Write i2c OK [23:54:45]MH_I2C_Read... [23:54:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:45]Read from MH i2c: E2 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: E2 FD 00 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: E2 FD 00 5F 5C 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 90 00 B0 [23:54:46]RAPDU: 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 90 00 [23:54:46]wFMCommunicate OK [23:54:46]wFMCommunicate request_size=4 [23:54:46]MH_SAM_APDU [23:54:46]CAPDU: 80 17 00 00 [23:54:46]Write to MH i2c: E2 08 00 60 5C 80 17 00 00 00 00 00 00 3C [23:54:46]Write i2c OK [23:54:46]MH_I2C_Read... [23:54:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [23:54:46]Read from MH i2c: E2 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: E2 CA 00 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: E2 CA 00 60 5C 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 21 [23:54:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:54:46]wFMCommunicate OK [23:54:46]SAM_PROTO_GetShiftData done [23:54:46]1194 (1193) - Ñчетчики итогов Ñмены [23:54:46] 1134 (4) - 105 - количеÑтво чеков Ñо вÑеми признаками раÑчетов [23:54:46] 1129 (154) - Ñчетчики операций «приход» [23:54:46] 1135 (4) - 105 - количеÑтво чеков по признаку раÑчетов [23:54:46] 1201 (3) - 69632.49 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [23:54:46] 1136 (3) - 69132.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [23:54:46] 1138 (2) - 500.49 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [23:54:46] 1024 (122) - Ñуммы налогов [23:54:46] 1006 (9) - Ñуммы ÐДС [23:54:46] 1010 (1) - 0% - код Ñтавки ÐДС [23:54:46] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [23:54:46] 1006 (12) - Ñуммы ÐДС [23:54:46] 1010 (1) - 12% - код Ñтавки ÐДС [23:54:46] 1011 (3) - 7398.49 - Ñумма ÐДС по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 0% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (11) - Ñуммы ÐСП [23:54:46] 1014 (1) - 1% - код Ñтавки ÐСП [23:54:46] 1015 (2) - 616.52 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 2% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 3% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 5% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 0,50% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 1,50% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1130 (141) - Ñчетчики операций «возврат прихода» [23:54:46] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [23:54:46] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [23:54:46] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [23:54:46] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [23:54:46] 1024 (117) - Ñуммы налогов [23:54:46] 1006 (9) - Ñуммы ÐДС [23:54:46] 1010 (1) - 0% - код Ñтавки ÐДС [23:54:46] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [23:54:46] 1006 (9) - Ñуммы ÐДС [23:54:46] 1010 (1) - 12% - код Ñтавки ÐДС [23:54:46] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 0% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 1% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 2% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 3% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 5% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 0,50% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 1,50% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1131 (141) - Ñчетчики операций «раÑход» [23:54:46] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [23:54:46] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [23:54:46] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [23:54:46] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [23:54:46] 1024 (117) - Ñуммы налогов [23:54:46] 1006 (9) - Ñуммы ÐДС [23:54:46] 1010 (1) - 0% - код Ñтавки ÐДС [23:54:46] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [23:54:46] 1006 (9) - Ñуммы ÐДС [23:54:46] 1010 (1) - 12% - код Ñтавки ÐДС [23:54:46] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 0% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 1% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 2% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 3% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 5% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 0,50% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 1,50% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1132 (141) - Ñчетчики операций «возврат раÑхода» [23:54:46] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [23:54:46] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [23:54:46] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [23:54:46] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [23:54:46] 1024 (117) - Ñуммы налогов [23:54:46] 1006 (9) - Ñуммы ÐДС [23:54:46] 1010 (1) - 0% - код Ñтавки ÐДС [23:54:46] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [23:54:46] 1006 (9) - Ñуммы ÐДС [23:54:46] 1010 (1) - 12% - код Ñтавки ÐДС [23:54:46] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 0% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 1% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 2% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 3% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 5% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 0,50% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1007 (9) - Ñуммы ÐСП [23:54:46] 1014 (1) - 1,50% - код Ñтавки ÐСП [23:54:46] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:54:46] 1133 (588) - - Ñчетчики коррекции - не иÑпользуютÑÑ [23:54:46]SetTLVBufToDocument [23:54:46]Processing tag 1194 (04AA) [23:54:46]Load OK [23:54:46]SetTLVBufToDocument [23:54:46]Processing tag 1134 (046E) [23:54:46]Malloc new data [23:54:46]Processing tag 1129 (0469) [23:54:46]Load OK [23:54:46]SetTLVBufToDocument [23:54:46]Processing tag 1135 (046F) [23:54:46]Malloc new data [23:54:46]Processing tag 1201 (04B1) [23:54:46]Malloc new data [23:54:46]Processing tag 1136 (0470) [23:54:46]Malloc new data [23:54:46]Processing tag 1138 (0472) [23:54:46]Malloc new data [23:54:46]Processing tag 1024 (0400) [23:54:46]Load OK [23:54:46]SetTLVBufToDocument [23:54:46]Processing tag 1006 (03EE) [23:54:46]Load OK [23:54:46]SetTLVBufToDocument [23:54:46]Processing tag 1010 (03F2) [23:54:47]Malloc new data [23:54:47]Processing tag 1011 (03F3) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1006 (03EE) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1010 (03F2) [23:54:47]Malloc new data [23:54:47]Processing tag 1011 (03F3) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]SetTLVBufToDocument err=0 [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1130 (046A) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1135 (046F) [23:54:47]Malloc new data [23:54:47]Processing tag 1201 (04B1) [23:54:47]Malloc new data [23:54:47]Processing tag 1136 (0470) [23:54:47]Malloc new data [23:54:47]Processing tag 1138 (0472) [23:54:47]Malloc new data [23:54:47]Processing tag 1024 (0400) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1006 (03EE) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1010 (03F2) [23:54:47]Malloc new data [23:54:47]Processing tag 1011 (03F3) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1006 (03EE) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1010 (03F2) [23:54:47]Malloc new data [23:54:47]Processing tag 1011 (03F3) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]SetTLVBufToDocument err=0 [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1131 (046B) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1135 (046F) [23:54:47]Malloc new data [23:54:47]Processing tag 1201 (04B1) [23:54:47]Malloc new data [23:54:47]Processing tag 1136 (0470) [23:54:47]Malloc new data [23:54:47]Processing tag 1138 (0472) [23:54:47]Malloc new data [23:54:47]Processing tag 1024 (0400) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1006 (03EE) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1010 (03F2) [23:54:47]Malloc new data [23:54:47]Processing tag 1011 (03F3) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1006 (03EE) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1010 (03F2) [23:54:47]Malloc new data [23:54:47]Processing tag 1011 (03F3) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]SetTLVBufToDocument err=0 [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1132 (046C) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1135 (046F) [23:54:47]Malloc new data [23:54:47]Processing tag 1201 (04B1) [23:54:47]Malloc new data [23:54:47]Processing tag 1136 (0470) [23:54:47]Malloc new data [23:54:47]Processing tag 1138 (0472) [23:54:47]Malloc new data [23:54:47]Processing tag 1024 (0400) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1006 (03EE) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1010 (03F2) [23:54:47]Malloc new data [23:54:47]Processing tag 1011 (03F3) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1006 (03EE) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1010 (03F2) [23:54:47]Malloc new data [23:54:47]Processing tag 1011 (03F3) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1007 (03EF) [23:54:47]Load OK [23:54:47]SetTLVBufToDocument [23:54:47]Processing tag 1014 (03F6) [23:54:47]Malloc new data [23:54:47]Processing tag 1015 (03F7) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]SetTLVBufToDocument err=0 [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Processing tag 1133 (046D) [23:54:47]Malloc new data [23:54:47]SetTLVBufToDocument err=0 [23:54:47]SetTLVBufToDocument err=0 [23:54:47]Malloc new data [23:54:47]SAM_PROTO_GetFMData [23:54:47]wFMCommunicate request_size=4 [23:54:47]MH_SAM_APDU [23:54:47]CAPDU: 80 13 03 00 [23:54:47]Write to MH i2c: E2 08 00 61 5C 80 13 03 00 00 00 00 00 3C [23:54:47]Write i2c OK [23:54:47]MH_I2C_Read... [23:54:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:48]Read from MH i2c: E2 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: E2 FD 00 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: E2 FD 00 61 5C 00 BF 04 85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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 BC [23:54:48]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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:54:48]wFMCommunicate OK [23:54:48]wFMCommunicate request_size=4 [23:54:48]MH_SAM_APDU [23:54:48]CAPDU: 80 17 00 00 [23:54:48]Write to MH i2c: E2 08 00 62 5C 80 17 00 00 00 00 00 00 3E [23:54:48]Write i2c OK [23:54:48]MH_I2C_Read... [23:54:48]OFD Sender: No OFD packet to send [23:54:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:48]Read from MH i2c: E2 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: E2 FD 00 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: E2 FD 00 62 5C 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 EE [23:54:48]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:54:48]wFMCommunicate OK [23:54:48]wFMCommunicate request_size=4 [23:54:48]MH_SAM_APDU [23:54:48]CAPDU: 80 17 00 00 [23:54:48]Write to MH i2c: E2 08 00 63 5C 80 17 00 00 00 00 00 00 3F [23:54:48]Write i2c OK [23:54:48]MH_I2C_Read... [23:54:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:49]Read from MH i2c: E2 [23:54:49]MH_I2C_Read... [23:54:49]Read from MH i2c: E2 FD 00 [23:54:49]MH_I2C_Read... [23:54:49]Read from MH i2c: E2 FD 00 63 5C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E3 [23:54:49]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:54:49]wFMCommunicate OK [23:54:49]wFMCommunicate request_size=4 [23:54:49]MH_SAM_APDU [23:54:49]CAPDU: 80 17 00 00 [23:54:49]Write to MH i2c: E2 08 00 64 5C 80 17 00 00 00 00 00 00 40 [23:54:49]Write i2c OK [23:54:49]MH_I2C_Read... [23:54:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:49]Read from MH i2c: E2 [23:54:49]MH_I2C_Read... [23:54:49]Read from MH i2c: E2 FD 00 [23:54:49]MH_I2C_Read... [23:54:49]Read from MH i2c: E2 FD 00 64 5C 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 BA [23:54:49]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:54:49]wFMCommunicate OK [23:54:49]wFMCommunicate request_size=4 [23:54:49]MH_SAM_APDU [23:54:49]CAPDU: 80 17 00 00 [23:54:49]Write to MH i2c: E2 08 00 65 5C 80 17 00 00 00 00 00 00 41 [23:54:49]Write i2c OK [23:54:49]MH_I2C_Read... [23:54:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:54:50]Read from MH i2c: E2 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 DC 00 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 DC 00 65 5C 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 25 [23:54:50]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:54:50]wFMCommunicate OK [23:54:50]SAM_PROTO_GetFMData done [23:54:50]FM_GetFMData:85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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:54:51]oper:6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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:54:51]total:59 56 3D BC [23:54:51]Malloc new data [23:54:51]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:54:51]total:18 75 09 [23:54:51]Malloc new data [23:54:51]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:54:51]total: [23:54:51]Malloc new data [23:54:51]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:54:51]total: [23:54:51]Malloc new data [23:54:51]KKMPrepareXReportFMData err=0 [23:54:51]Ð¥ отчет ИÐÐ: 02508201610067 КаÑÑир: Муканов Ð. 29.01.2024 23:54 Смена: 10 РÐМ: 0000000000092723 ЗÐМ: 0300000040 СÐО: Общий режим Ð’Ñего чеков: 105 ИТОГИ ПРИХОД Чеков: 105 Общий итог: 69632.49 Итого наличными: 69132.00 Итого безнал.: 500.49 ÐДС 0% : 0.00 ÐДС 12% : 7398.49 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 616.52 ИТОГИ ВОЗВРÐТ ПРИХОДРЧеков: 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 Ðал. в каÑÑе: 69132.00 ÐС Приход: 31581364.09 ÐС Возвр.Прихода: 6198.00 ÐС РаÑход: 0.00 ÐС Возвр.РаÑхода: 0.00 ФМ: 0000000000875060 [23:54:51]StoreToDocumentArchive [23:54:51]MH_GetDate [23:54:51]Write to MH i2c: F0 00 00 66 5C B1 [23:54:51]Write i2c OK [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: F0 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: F0 09 00 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: F0 09 00 66 5C 00 DB 3A B8 65 26 5D 9E 65 72 [23:54:51]shift 10 fd 1706572507 [23:54:51]Create dir for shift 0010 [23:54:51]save to /storage/0010/doc_1706572507 [23:54:51]save last doc name /storage/0010/doc_1706572507 to /storage/kkm_last_doc_name [23:54:51]save OK [23:54:51]Clear old archive folders... [23:54:51]NVStorageSaveData kkm_last_timestamp [23:54:51]File name is /storage/kkm_last_timestamp [23:54:51]Write 4 bytes [23:54:51]NVStorageSaveData done [23:54:51]ExternCall_PrintAddStr [23:54:51]wPrintStart [23:54:51]Write to MH i2c: 01 00 00 67 5C C3 [23:54:51]Write i2c OK [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: 01 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: 01 07 00 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: 01 07 00 67 5C 00 00 00 00 00 FF 0F D8 [23:54:51]RasterBufferAndPrint [23:54:51]line Ð¥ отчет [23:54:51]line ИÐÐ: 02508201610067 [23:54:51]line КаÑÑир: Муканов Ð. [23:54:51]line 29.01.2024 23:54 [23:54:51]line Смена: 10 [23:54:51]line РÐМ: 0000000000092723 [23:54:51]line ЗÐМ: 0300000040 [23:54:51]line СÐО: Общий режим [23:54:51]line Ð’Ñего чеков: 105 [23:54:51]line ИТОГИ ПРИХОД [23:54:51]line Чеков: 105 [23:54:51]line Общий итог: 69632.49 [23:54:51]line Итого наличными: 69132.00 [23:54:51]line Итого безнал.: 500.49 [23:54:51]line ÐДС 0% : 0.00 [23:54:51]line ÐДС 12% : 7398.49 [23:54:51]line ÐСП 0% : 0.00 [23:54:51]line ÐСП 1,50% : 0.00 [23:54:51]line ÐСП 0,50% : 0.00 [23:54:51]line ÐСП 5% : 0.00 [23:54:51]line ÐСП 3% : 0.00 [23:54:51]line ÐСП 2% : 0.00 [23:54:51]line ÐСП 1% : 616.52 [23:54:51]line ИТОГИ ВОЗВРÐТ ПРИХОДР[23:54:51]line Чеков: 0 [23:54:51]line Общий итог: 0.00 [23:54:51]line Итого наличными: 0.00 [23:54:51]line Итого безнал.: 0.00 [23:54:51]line ÐДС 0% : 0.00 [23:54:51]line ÐДС 12% : 0.00 [23:54:51]line ÐСП 0% : 0.00 [23:54:51]line ÐСП 1,50% : 0.00 [23:54:51]line ÐСП 0,50% : 0.00 [23:54:51]line ÐСП 5% : 0.00 [23:54:51]line ÐСП 3% : 0.00 [23:54:51]line ÐСП 2% : 0.00 [23:54:51]line ÐСП 1% : 0.00 [23:54:51]line ИТОГИ РÐСХОД [23:54:51]line Чеков: 0 [23:54:51]line Общий итог: 0.00 [23:54:51]line Итого наличными: 0.00 [23:54:51]line Итого безнал.: 0.00 [23:54:51]line ÐДС 0% : 0.00 [23:54:51]line ÐДС 12% : 0.00 [23:54:51]line ÐСП 0% : 0.00 [23:54:51]line ÐСП 1,50% : 0.00 [23:54:51]line ÐСП 0,50% : 0.00 [23:54:51]line ÐСП 5% : 0.00 [23:54:51]line ÐСП 3% : 0.00 [23:54:51]line ÐСП 2% : 0.00 [23:54:51]line ÐСП 1% : 0.00 [23:54:51]line ИТОГИ ВОЗВРÐТ РÐСХОДР[23:54:51]line Чеков: 0 [23:54:51]line Общий итог: 0.00 [23:54:51]line Итого наличными: 0.00 [23:54:51]line Итого безнал.: 0.00 [23:54:51]line ÐДС 0% : 0.00 [23:54:51]line ÐДС 12% : 0.00 [23:54:51]line ÐСП 0% : 0.00 [23:54:51]line ÐСП 1,50% : 0.00 [23:54:51]line ÐСП 0,50% : 0.00 [23:54:51]line ÐСП 5% : 0.00 [23:54:51]line ÐСП 3% : 0.00 [23:54:51]line ÐСП 2% : 0.00 [23:54:51]line ÐСП 1% : 0.00 [23:54:51]line Сумма внеÑений: 0.00 [23:54:51]line Сумма выплат: 0.00 [23:54:51]line Ðал. в каÑÑе: 69132.00 [23:54:51]line ÐС Приход: 31581364.09 [23:54:51]line ÐС Возвр.Прихода: 6198.00 [23:54:51]line ÐС РаÑход: 0.00 [23:54:51]line ÐС Возвр.РаÑхода: 0.00 [23:54:51]line ФМ: 0000000000875060 [23:54:51]written 0, free lines is 4095 [23:54:52]Write to MH i2c: 01 00 00 B2 5C 0E [23:54:52]Write i2c OK [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: 01 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: 01 07 00 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: 01 07 00 B2 5C 00 00 00 00 00 01 0B 21 [23:54:52]RasterBufferAndPrint [23:54:52]line [23:54:52]line [23:54:52]line [23:54:52]line [23:54:52]line [23:54:52]written 0, free lines is 2853 [23:54:52]MH_Cut [23:54:52]Write to MH i2c: D1 01 00 B9 5C 01 E7 [23:54:52]Write i2c OK [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: D1 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: D1 01 00 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: D1 01 00 B9 5C 00 E6 [23:54:52]Write to MH i2c: 01 00 00 BA 5C 16 [23:54:52]Write i2c OK [23:54:52]MH_I2C_Read... [23:54:53]*** Cut start [23:54:53]*** Partial cut [23:54:53]*** CUTSNS_PIN = 1 [23:54:53]*** CUTSNS_PIN = 0 [23:54:53]*** Brake cut motor [23:54:53]OFD Sender: No OFD packet to send [23:54:53]Read from MH i2c: 01 [23:54:53]MH_I2C_Read... [23:54:53]*** Stop cut motor [23:54:53]*** Cut end [23:54:53]Read from MH i2c: 01 07 00 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: 01 07 00 BA 5C 00 00 00 00 00 FF 0F 2B [23:54:53]process_action x_report done [23:54:53]requested_data is exist [23:54:53]produce_requested_data [23:54:53]requested_item fd.num is exist - process it [23:54:53]SAM_PROTO_GetFieldsCounters [23:54:53]wFMCommunicate request_size=4 [23:54:53]MH_SAM_APDU [23:54:53]CAPDU: 80 13 00 00 [23:54:53]Write to MH i2c: E2 08 00 BB 5C 80 13 00 00 00 00 00 00 93 [23:54:53]Write i2c OK [23:54:53]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 62 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 62 00 BB 5C 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 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [23:54: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 E2 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:54]wFMCommunicate OK [23:54:54]SAM_PROTO_GetFieldsCounters done [23:54:54]requested_item shift.num is exist - process it [23:54:54]requested_item shift.opened is exist - process it [23:54:54]req_shift_opened [23:54:54]FM_GetShiftState [23:54:54]SAM_PROTO_GetShiftState [23:54:54]wFMCommunicate request_size=4 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 13 01 00 [23:54:54]Write to MH i2c: E2 08 00 BC 5C 80 13 01 00 00 00 00 00 95 [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 0E 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 0E 00 BC 5C 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 07 [23:54:54]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [23:54:54]wFMCommunicate OK [23:54:54]SAM_PROTO_GetShiftState done [23:54:54]FM_GetShiftState done [23:54:54]req_shift_opened done [23:54:54]requested_item shift.open_date is exist - process it [23:54:54]req_shift_open_date [23:54:54]req_shift_open_date done [23:54:54]produce_requested_data done [23:54:54]produce_requested_data return {"fd.num":49122,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [23:54:54]process_action_free x_report [23:54:54]json_value_free [23:54:54]json_value_free done [23:54:54]process_json_proto returns [23:54:54]Send response to host [23:54:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":49122,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [23:54:54]free response buf [23:54:54]execute_script done [23:54:54]execute_script returns [23:54:54]free content buf [23:54:54]Sock 9.Close socket [23:54:54]Sock 9.Thread stoped [23:54:58]accept exits with 7 [23:54:58]New connection [23:54:58]New thread 3066670436 created [23:54:58]Thread 3066813796 joined [23:54:58]Waiting for new connection... [23:54:58] Sock 7.Parse request [23:54:58]Sock 7.Check first char [23:54:58]Sock 7.First char is OK [23:54:58]request: POST /json_proto HTTP/1.0 [23:54:58]Method: POST [23:54:58]URL: /json_proto [23:54:58]Method is POST - this is cgi request [23:54:58]url: /json_proto [23:54:58]query_string will be loaded in cgi processing [23:54:58]execute_cgi json_proto POST (null) [23:54:58]execute_cgi path=json_proto method=POST [23:54:58]POST find Content-Length [23:54:58]Host: 172.17.56.67:8080 [23:54:58]Content-Length: 215 [23:54:58]Content-Type: application/json [23:54:58] [23:54:58]POST finish read [23:54:58]Found Content-Length = 215 [23:54:58]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:54:58]execute_script... [23:54:58]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:54:58]POST & json_proto [23:54:58]process_json_proto [23:54:58]json parsed OK: [23:54:58]protocol is kg_v1.0 [23:54:58]action value=get_value [23:54:58]process_action get_value [23:54:58]cmd_get_value [23:54:58]process_action get_value done [23:54:58]requested_data is exist [23:54:58]produce_requested_data [23:54:58]requested_item kkm.sn is exist - process it [23:54:58]requested_item kkm.ver is exist - process it [23:54:58]requested_item fm.sn is exist - process it [23:54:58]wFMCommunicate request_size=4 [23:54:58]MH_SAM_APDU [23:54:58]CAPDU: 80 11 00 00 [23:54:58]Write to MH i2c: E2 08 00 BD 5C 80 11 00 00 00 00 00 00 93 [23:54:58]Write i2c OK [23:54:58]MH_I2C_Read... [23:54:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:58]Read from MH i2c: E2 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 17 00 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 17 00 BD 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 E0 [23:54:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [23:54:58]wFMCommunicate OK [23:54:58]requested_item fd.num is exist - process it [23:54:58]SAM_PROTO_GetFieldsCounters [23:54:58]wFMCommunicate request_size=4 [23:54:58]MH_SAM_APDU [23:54:58]CAPDU: 80 13 00 00 [23:54:58]Write to MH i2c: E2 08 00 BE 5C 80 13 00 00 00 00 00 00 96 [23:54:58]Write i2c OK [23:54:58]MH_I2C_Read... [23:54:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:58]Read from MH i2c: E2 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 62 00 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 62 00 BE 5C 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 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [23:54: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 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:54:58]wFMCommunicate OK [23:54:58]SAM_PROTO_GetFieldsCounters done [23:54:58]requested_item shift.num is exist - process it [23:54:58]requested_item shift.opened is exist - process it [23:54:58]req_shift_opened [23:54:58]FM_GetShiftState [23:54:58]SAM_PROTO_GetShiftState [23:54:58]wFMCommunicate request_size=4 [23:54:58]MH_SAM_APDU [23:54:58]CAPDU: 80 13 01 00 [23:54:58]Write to MH i2c: E2 08 00 BF 5C 80 13 01 00 00 00 00 00 98 [23:54:58]OFD Sender: No OFD packet to send [23:54:58]Write i2c OK [23:54:58]MH_I2C_Read... [23:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:58]Read from MH i2c: E2 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 0E 00 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 0E 00 BF 5C 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 0A [23:54:58]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [23:54:58]wFMCommunicate OK [23:54:58]SAM_PROTO_GetShiftState done [23:54:58]FM_GetShiftState done [23:54:58]req_shift_opened done [23:54:58]requested_item shift.open_date is exist - process it [23:54:58]req_shift_open_date [23:54:58]req_shift_open_date done [23:54:58]produce_requested_data done [23:54:58]produce_requested_data return {"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49122,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624} [23:54:58]process_action_free get_value [23:54:58]json_value_free [23:54:58]json_value_free done [23:54:58]process_json_proto returns [23:54:58]Send response to host [23:54:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49122,"shift.num":245,"shift.opened":1,"shift.open_date":1706486624}}} [23:54:58]free response buf [23:54:58]execute_script done [23:54:58]execute_script returns [23:54:58]free content buf [23:54:58]Sock 7.Close socket [23:54:58]Sock 7.Thread stoped [23:54:58]accept exits with 9 [23:54:58]New connection [23:54:58]New thread 3066813796 created [23:54:58]Thread 3066670436 joined [23:54:58]Waiting for new connection... [23:54:58] Sock 9.Parse request [23:54:58]Sock 9.Check first char [23:54:58]Sock 9.First char is OK [23:54:58]request: POST /json_proto HTTP/1.0 [23:54:58]Method: POST [23:54:58]URL: /json_proto [23:54:58]Method is POST - this is cgi request [23:54:58]url: /json_proto [23:54:58]query_string will be loaded in cgi processing [23:54:58]execute_cgi json_proto POST (null) [23:54:58]execute_cgi path=json_proto method=POST [23:54:58]POST find Content-Length [23:54:58]Host: 172.17.56.67:8080 [23:54:58]Content-Length: 331 [23:54:58]Content-Type: application/json [23:54:58] [23:54:58]POST finish read [23:54:58]Found Content-Length = 331 [23:54: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:54:58]execute_script... [23:54: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:54:58]POST & json_proto [23:54:58]process_json_proto [23:54:58]json parsed OK: [23:54:58]protocol is kg_v1.0 [23:54:58]action value=get_value [23:54:58]process_action get_value [23:54:58]cmd_get_value [23:54:58]process_action get_value done [23:54:58]requested_data is exist [23:54:58]produce_requested_data [23:54:58]requested_item fm.sale.total is exist - process it [23:54:58]SAM_PROTO_GetFMData [23:54:58]wFMCommunicate request_size=4 [23:54:58]MH_SAM_APDU [23:54:58]CAPDU: 80 13 03 00 [23:54:58]Write to MH i2c: E2 08 00 C0 5C 80 13 03 00 00 00 00 00 9B [23:54:58]Write i2c OK [23:54:58]MH_I2C_Read... [23:54:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:59]Read from MH i2c: E2 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 FD 00 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 FD 00 C0 5C 00 BF 04 85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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 1B [23:54:59]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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:54:59]wFMCommunicate OK [23:54:59]wFMCommunicate request_size=4 [23:54:59]MH_SAM_APDU [23:54:59]CAPDU: 80 17 00 00 [23:54:59]Write to MH i2c: E2 08 00 C1 5C 80 17 00 00 00 00 00 00 9D [23:54:59]Write i2c OK [23:54:59]MH_I2C_Read... [23:54:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:59]Read from MH i2c: E2 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 FD 00 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 FD 00 C1 5C 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 4D [23:54: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:55:00]wFMCommunicate OK [23:55:00]wFMCommunicate request_size=4 [23:55:00]MH_SAM_APDU [23:55:00]CAPDU: 80 17 00 00 [23:55:00]Write to MH i2c: E2 08 00 C2 5C 80 17 00 00 00 00 00 00 9E [23:55:00]Write i2c OK [23:55:00]MH_I2C_Read... [23:55:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:00]Read from MH i2c: E2 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 FD 00 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 FD 00 C2 5C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 42 [23:55:00]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:55:00]wFMCommunicate OK [23:55:00]wFMCommunicate request_size=4 [23:55:00]MH_SAM_APDU [23:55:00]CAPDU: 80 17 00 00 [23:55:00]Write to MH i2c: E2 08 00 C3 5C 80 17 00 00 00 00 00 00 9F [23:55:00]Write i2c OK [23:55:00]MH_I2C_Read... [23:55:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:00]Read from MH i2c: E2 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 FD 00 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 FD 00 C3 5C 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 19 [23:55:01]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:55:01]wFMCommunicate OK [23:55:01]wFMCommunicate request_size=4 [23:55:01]MH_SAM_APDU [23:55:01]CAPDU: 80 17 00 00 [23:55:01]Write to MH i2c: E2 08 00 C4 5C 80 17 00 00 00 00 00 00 A0 [23:55:01]Write i2c OK [23:55:01]MH_I2C_Read... [23:55:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:55:01]Read from MH i2c: E2 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 DC 00 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 DC 00 C4 5C 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 84 [23:55:01]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:55:01]wFMCommunicate OK [23:55:01]SAM_PROTO_GetFMData done [23:55:01]requested_item fm.sale_refund.total is exist - process it [23:55:01]requested_item fm.buy.total is exist - process it [23:55:01]requested_item shift.sale.total is exist - process it [23:55:01]SAM_PROTO_GetShiftData [23:55:01]wFMCommunicate request_size=4 [23:55:01]MH_SAM_APDU [23:55:01]CAPDU: 80 13 02 00 [23:55:01]Write to MH i2c: E2 08 00 C5 5C 80 13 02 00 00 00 00 00 9F [23:55:01]Write i2c OK [23:55:01]MH_I2C_Read... [23:55:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:02]Read from MH i2c: E2 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 FD 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 FD 00 C5 5C 00 AD 04 AA 04 A9 04 6E 04 04 00 69 00 00 00 69 04 9A 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 D4 F0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 07 [23:55:02]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 69 00 00 00 69 04 9A 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 D4 F0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:02]wFMCommunicate OK [23:55:02]wFMCommunicate request_size=4 [23:55:02]MH_SAM_APDU [23:55:02]CAPDU: 80 17 00 00 [23:55:02]Write to MH i2c: E2 08 00 C6 5C 80 17 00 00 00 00 00 00 A2 [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:02]Read from MH i2c: E2 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 FD 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 FD 00 C6 5C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 B4 [23:55:02]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:55:03]wFMCommunicate OK [23:55:03]wFMCommunicate request_size=4 [23:55:03]MH_SAM_APDU [23:55:03]CAPDU: 80 17 00 00 [23:55:03]Write to MH i2c: E2 08 00 C7 5C 80 17 00 00 00 00 00 00 A3 [23:55:03]Write i2c OK [23:55:03]MH_I2C_Read... [23:55:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:03]Read from MH i2c: E2 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 FD 00 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 FD 00 C7 5C 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 67 [23:55:03]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:03]wFMCommunicate OK [23:55:03]wFMCommunicate request_size=4 [23:55:03]MH_SAM_APDU [23:55:03]CAPDU: 80 17 00 00 [23:55:03]Write to MH i2c: E2 08 00 C8 5C 80 17 00 00 00 00 00 00 A4 [23:55:03]Write i2c OK [23:55:03]MH_I2C_Read... [23:55:03]OFD Sender: No OFD packet to send [23:55:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:03]Read from MH i2c: E2 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 FD 00 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 FD 00 C8 5C 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 90 00 19 [23:55:04]RAPDU: 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 90 00 [23:55:04]wFMCommunicate OK [23:55:04]wFMCommunicate request_size=4 [23:55:04]MH_SAM_APDU [23:55:04]CAPDU: 80 17 00 00 [23:55:04]Write to MH i2c: E2 08 00 C9 5C 80 17 00 00 00 00 00 00 A5 [23:55:04]Write i2c OK [23:55:04]MH_I2C_Read... [23:55:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [23:55:04]Read from MH i2c: E2 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 CA 00 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 CA 00 C9 5C 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 8A [23:55:04]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:55:04]wFMCommunicate OK [23:55:04]SAM_PROTO_GetShiftData done [23:55:04]requested_item shift.sale.total_cash is exist - process it [23:55:04]requested_item shift.sale_refund.total is exist - process it [23:55:04]requested_item shift.sale_refund.total_cash is exist - process it [23:55:04]requested_item shift.buy.total is exist - process it [23:55:04]requested_item shift.buy.total_cash is exist - process it [23:55:04]produce_requested_data done [23:55:04]produce_requested_data return {"fm.sale.total":31581364.09,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":69632.49,"shift.sale.total_cash":69132.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:55:04]process_action_free get_value [23:55:04]json_value_free [23:55:04]json_value_free done [23:55:04]process_json_proto returns [23:55:04]Send response to host [23:55:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31581364.09,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":69632.49,"shift.sale.total_cash":69132.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:55:04]free response buf [23:55:04]execute_script done [23:55:04]execute_script returns [23:55:04]free content buf [23:55:04]Sock 9.Close socket [23:55:04]Sock 9.Thread stoped [23:55:04]accept exits with 7 [23:55:04]New connection [23:55:04]New thread 3066670436 created [23:55:04]Thread 3066813796 joined [23:55:04]Waiting for new connection... [23:55:04] Sock 7.Parse request [23:55:04]Sock 7.Check first char [23:55:04]Sock 7.First char is OK [23:55:04]request: POST /json_proto HTTP/1.0 [23:55:04]Method: POST [23:55:04]URL: /json_proto [23:55:04]Method is POST - this is cgi request [23:55:04]url: /json_proto [23:55:04]query_string will be loaded in cgi processing [23:55:04]execute_cgi json_proto POST (null) [23:55:04]execute_cgi path=json_proto method=POST [23:55:04]POST find Content-Length [23:55:04]Host: 172.17.56.67:8080 [23:55:04]Content-Length: 331 [23:55:04]Content-Type: application/json [23:55:04] [23:55:04]POST finish read [23:55:04]Found Content-Length = 331 [23:55: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:55:04]execute_script... [23:55: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:55:04]POST & json_proto [23:55:04]process_json_proto [23:55:04]json parsed OK: [23:55:04]protocol is kg_v1.0 [23:55:04]action value=get_value [23:55:04]process_action get_value [23:55:04]cmd_get_value [23:55:04]process_action get_value done [23:55:04]requested_data is exist [23:55:04]produce_requested_data [23:55:04]requested_item fm.sale.total is exist - process it [23:55:04]SAM_PROTO_GetFMData [23:55:04]wFMCommunicate request_size=4 [23:55:04]MH_SAM_APDU [23:55:04]CAPDU: 80 13 03 00 [23:55:04]Write to MH i2c: E2 08 00 CA 5C 80 13 03 00 00 00 00 00 A5 [23:55:04]Write i2c OK [23:55:04]MH_I2C_Read... [23:55:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:05]Read from MH i2c: E2 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 FD 00 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 FD 00 CA 5C 00 BF 04 85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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 25 [23:55:05]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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:55:05]wFMCommunicate OK [23:55:05]wFMCommunicate request_size=4 [23:55:05]MH_SAM_APDU [23:55:05]CAPDU: 80 17 00 00 [23:55:05]Write to MH i2c: E2 08 00 CB 5C 80 17 00 00 00 00 00 00 A7 [23:55:05]Write i2c OK [23:55:05]MH_I2C_Read... [23:55:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:05]Read from MH i2c: E2 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 FD 00 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 FD 00 CB 5C 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 57 [23:55:06]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:55:06]wFMCommunicate OK [23:55:06]wFMCommunicate request_size=4 [23:55:06]MH_SAM_APDU [23:55:06]CAPDU: 80 17 00 00 [23:55:06]Write to MH i2c: E2 08 00 CC 5C 80 17 00 00 00 00 00 00 A8 [23:55:06]Write i2c OK [23:55:06]MH_I2C_Read... [23:55:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:06]Read from MH i2c: E2 [23:55:06]MH_I2C_Read... [23:55:06]Read from MH i2c: E2 FD 00 [23:55:06]MH_I2C_Read... [23:55:06]Read from MH i2c: E2 FD 00 CC 5C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4C [23:55: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:55:06]wFMCommunicate OK [23:55:06]wFMCommunicate request_size=4 [23:55:06]MH_SAM_APDU [23:55:06]CAPDU: 80 17 00 00 [23:55:06]Write to MH i2c: E2 08 00 CD 5C 80 17 00 00 00 00 00 00 A9 [23:55:06]Write i2c OK [23:55:06]MH_I2C_Read... [23:55:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:07]Read from MH i2c: E2 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 FD 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 FD 00 CD 5C 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 23 [23:55:07]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:55:07]wFMCommunicate OK [23:55:07]wFMCommunicate request_size=4 [23:55:07]MH_SAM_APDU [23:55:07]CAPDU: 80 17 00 00 [23:55:07]Write to MH i2c: E2 08 00 CE 5C 80 17 00 00 00 00 00 00 AA [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:55:07]Read from MH i2c: E2 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 DC 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 DC 00 CE 5C 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 8E [23:55: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:55:08]wFMCommunicate OK [23:55:08]SAM_PROTO_GetFMData done [23:55:08]requested_item fm.sale_refund.total is exist - process it [23:55:08]requested_item fm.buy.total is exist - process it [23:55:08]requested_item shift.sale.total is exist - process it [23:55:08]SAM_PROTO_GetShiftData [23:55:08]wFMCommunicate request_size=4 [23:55:08]MH_SAM_APDU [23:55:08]CAPDU: 80 13 02 00 [23:55:08]Write to MH i2c: E2 08 00 CF 5C 80 13 02 00 00 00 00 00 A9 [23:55:08]Write i2c OK [23:55:08]MH_I2C_Read... [23:55:08]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:08]Read from MH i2c: E2 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 CF 5C 00 AD 04 AA 04 A9 04 6E 04 04 00 69 00 00 00 69 04 9A 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 D4 F0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 11 [23:55:08]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 69 00 00 00 69 04 9A 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 D4 F0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:08]wFMCommunicate OK [23:55:08]wFMCommunicate request_size=4 [23:55:08]MH_SAM_APDU [23:55:08]CAPDU: 80 17 00 00 [23:55:08]Write to MH i2c: E2 08 00 D0 5C 80 17 00 00 00 00 00 00 AC [23:55:08]OFD Sender: No OFD packet to send [23:55:08]Write i2c OK [23:55:08]MH_I2C_Read... [23:55:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:09]Read from MH i2c: E2 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 FD 00 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 FD 00 D0 5C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 BE [23:55:09]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:55:09]wFMCommunicate OK [23:55:09]wFMCommunicate request_size=4 [23:55:09]MH_SAM_APDU [23:55:09]CAPDU: 80 17 00 00 [23:55:09]Write to MH i2c: E2 08 00 D1 5C 80 17 00 00 00 00 00 00 AD [23:55:09]Write i2c OK [23:55:09]MH_I2C_Read... [23:55:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:09]Read from MH i2c: E2 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 FD 00 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 FD 00 D1 5C 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 71 [23:55:10]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:10]wFMCommunicate OK [23:55:10]wFMCommunicate request_size=4 [23:55:10]MH_SAM_APDU [23:55:10]CAPDU: 80 17 00 00 [23:55:10]Write to MH i2c: E2 08 00 D2 5C 80 17 00 00 00 00 00 00 AE [23:55:10]Write i2c OK [23:55:10]MH_I2C_Read... [23:55:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:10]Read from MH i2c: E2 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 FD 00 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 FD 00 D2 5C 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 90 00 23 [23:55:10]RAPDU: 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 90 00 [23:55:10]wFMCommunicate OK [23:55:10]wFMCommunicate request_size=4 [23:55:10]MH_SAM_APDU [23:55:10]CAPDU: 80 17 00 00 [23:55:10]Write to MH i2c: E2 08 00 D3 5C 80 17 00 00 00 00 00 00 AF [23:55:10]Write i2c OK [23:55:10]MH_I2C_Read... [23:55:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [23:55:11]Read from MH i2c: E2 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 CA 00 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 CA 00 D3 5C 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 94 [23:55:11]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:55:11]wFMCommunicate OK [23:55:11]SAM_PROTO_GetShiftData done [23:55:11]requested_item shift.sale.total_cash is exist - process it [23:55:11]requested_item shift.sale_refund.total is exist - process it [23:55:11]requested_item shift.sale_refund.total_cash is exist - process it [23:55:11]requested_item shift.buy.total is exist - process it [23:55:11]requested_item shift.buy.total_cash is exist - process it [23:55:11]produce_requested_data done [23:55:11]produce_requested_data return {"fm.sale.total":31581364.09,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":69632.49,"shift.sale.total_cash":69132.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:55:11]process_action_free get_value [23:55:11]json_value_free [23:55:11]json_value_free done [23:55:11]process_json_proto returns [23:55:11]Send response to host [23:55:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31581364.09,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":69632.49,"shift.sale.total_cash":69132.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:55:11]free response buf [23:55:11]execute_script done [23:55:11]execute_script returns [23:55:11]free content buf [23:55:11]Sock 7.Close socket [23:55:11]Sock 7.Thread stoped [23:55:11]accept exits with 9 [23:55:11]New connection [23:55:11]New thread 3066813796 created [23:55:11]Thread 3066670436 joined [23:55:11]Waiting for new connection... [23:55:11] Sock 9.Parse request [23:55:11]Sock 9.Check first char [23:55:11]Sock 9.First char is OK [23:55:11]request: POST /json_proto HTTP/1.0 [23:55:11]Method: POST [23:55:11]URL: /json_proto [23:55:11]Method is POST - this is cgi request [23:55:11]url: /json_proto [23:55:11]query_string will be loaded in cgi processing [23:55:11]execute_cgi json_proto POST (null) [23:55:11]execute_cgi path=json_proto method=POST [23:55:11]POST find Content-Length [23:55:11]Host: 172.17.56.67:8080 [23:55:11]Content-Length: 254 [23:55:11]Content-Type: application/json [23:55:11] [23:55:11]POST finish read [23:55:11]Found Content-Length = 254 [23:55:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0443\u043A\u0430\u043D\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:11]execute_script... [23:55:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041C\u0443\u043A\u0430\u043D\u043E\u0432 \u0410. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:11]POST & json_proto [23:55:11]process_json_proto [23:55:11]json parsed OK: [23:55:11]protocol is kg_v1.0 [23:55:11]action value=close_shift [23:55:11]process_action close_shift [23:55:11]cmd_close_shift [23:55:11]MH_GetDate [23:55:11]Write to MH i2c: F0 00 00 D4 5C 1F [23:55:11]Write i2c OK [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: F0 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: F0 09 00 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: F0 09 00 D4 5C 00 EF 3A B8 65 26 5D 9E 65 F4 [23:55:11]GetLastDocTimeStamp 1706572499 [23:55:11]current date 1706572527 [23:55:11]FM_GetShiftState [23:55:11]SAM_PROTO_GetShiftState [23:55:11]wFMCommunicate request_size=4 [23:55:11]MH_SAM_APDU [23:55:11]CAPDU: 80 13 01 00 [23:55:11]Write to MH i2c: E2 08 00 D5 5C 80 13 01 00 00 00 00 00 AE [23:55:11]Write i2c OK [23:55:11]MH_I2C_Read... [23:55:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:11]Read from MH i2c: E2 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 0E 00 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 0E 00 D5 5C 00 09 00 01 60 EB B6 65 00 00 00 00 90 00 20 [23:55:11]RAPDU: 09 00 01 60 EB B6 65 00 00 00 00 90 00 [23:55:11]wFMCommunicate OK [23:55:11]SAM_PROTO_GetShiftState done [23:55:11]FM_GetShiftState done [23:55:11]KKMCreateCloseShiftDocument [23:55:11]Load OK [23:55:11]Malloc new data [23:55:11]MH_GetDate [23:55:11]Write to MH i2c: F0 00 00 D6 5C 21 [23:55:11]Write i2c OK [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: F0 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: F0 09 00 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: F0 09 00 D6 5C 00 EF 3A B8 65 26 5D 9E 65 F6 [23:55:11]Malloc new data [23:55:11]Malloc new data [23:55:11]Malloc new data [23:55:11]Malloc new data [23:55:11]KKMCreateCloseShiftDocument OK [23:55:11]KKMSetCloseShiftData OK [23:55:11]ProcessDocumentItem done err = 0, tmpTLVsize=69 [23:55:11]tlvbuf is 0145C0C0 [23:55:11]KKMLoadAndSignCloseShiftData [23:55:11]SAM_PROTO_ProcessDocument [23:55:11]wFMCommunicate request_size=9 [23:55:11]MH_SAM_APDU [23:55:11]CAPDU: 80 15 01 00 04 05 00 45 00 [23:55:11]Write to MH i2c: E2 0C 00 D7 5C 80 15 01 00 04 00 05 00 45 00 00 00 04 [23:55:11]Write i2c OK [23:55:11]MH_I2C_Read... [23:55:11]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:55:11]Read from MH i2c: E2 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 03 00 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 03 00 D7 5C 00 90 00 A7 [23:55:11]RAPDU: 90 00 [23:55:11]wFMCommunicate OK [23:55:11]wFMCommunicate request_size=23 [23:55:11]MH_SAM_APDU [23:55: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:55:11]Write to MH i2c: E2 1A 00 D8 5C 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 A9 [23:55:11]Write i2c OK [23:55:11]MH_I2C_Read... [23:55:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:11]Read from MH i2c: E2 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 03 00 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 03 00 D8 5C 00 90 00 A8 [23:55:11]RAPDU: 90 00 [23:55:11]wFMCommunicate OK [23:55:11]wFMCommunicate request_size=28 [23:55:11]MH_SAM_APDU [23:55:11]CAPDU: 80 15 02 00 17 FD 03 13 00 D0 9C D1 83 D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 [23:55:11]Write to MH i2c: E2 1F 00 D9 5C 80 15 02 00 17 00 FD 03 13 00 D0 9C D1 83 D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 00 00 2B [23:55:11]Write i2c OK [23:55:11]MH_I2C_Read... [23:55:11]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:11]Read from MH i2c: E2 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 03 00 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 03 00 D9 5C 00 90 00 A9 [23:55:11]RAPDU: 90 00 [23:55:11]wFMCommunicate OK [23:55:11]wFMCommunicate request_size=13 [23:55:11]MH_SAM_APDU [23:55:11]CAPDU: 80 15 02 00 08 F4 03 04 00 EF 3A B8 65 [23:55:11]Write to MH i2c: E2 10 00 DA 5C 80 15 02 00 08 00 F4 03 04 00 EF 3A B8 65 00 00 07 [23:55:11]Write i2c OK [23:55:11]MH_I2C_Read... [23:55:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:12]Read from MH i2c: E2 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 03 00 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 03 00 DA 5C 00 90 00 AA [23:55:12]RAPDU: 90 00 [23:55:12]wFMCommunicate OK [23:55:12]wFMCommunicate request_size=25 [23:55:12]MH_SAM_APDU [23:55:12]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:55:12]Write to MH i2c: E2 1C 00 DB 5C 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 17 [23:55:12]Write i2c OK [23:55:12]MH_I2C_Read... [23:55:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:55:12]Read from MH i2c: E2 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 03 00 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 03 00 DB 5C 00 90 00 AB [23:55:12]RAPDU: 90 00 [23:55:12]wFMCommunicate OK [23:55:12]wFMCommunicate request_size=4 [23:55:12]MH_SAM_APDU [23:55:12]CAPDU: 80 15 03 00 [23:55:12]Write to MH i2c: E2 08 00 DC 5C 80 15 03 00 00 00 00 00 B9 [23:55:12]Write i2c OK [23:55:12]MH_I2C_Read... [23:55:12]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:55:12]Read from MH i2c: E2 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 FD 00 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 FD 00 DC 5C 00 F0 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 BF 00 00 0E 04 04 00 F5 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6B 00 00 00 AA 04 A9 04 6E 04 04 00 69 00 00 00 69 04 9A 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 D4 F0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 94 [23:55:12]RAPDU: F0 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 BF 00 00 0E 04 04 00 F5 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6B 00 00 00 AA 04 A9 04 6E 04 04 00 69 00 00 00 69 04 9A 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 D4 F0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:13]wFMCommunicate OK [23:55:13]SAM_PROTO_ProcessDocument answer len = 1264 [23:55:13]SAM_PROTO_ProcessDocument remain to read = 1016 [23:55:13]wFMCommunicate request_size=4 [23:55:13]MH_SAM_APDU [23:55:13]CAPDU: 80 17 00 00 [23:55:13]Write to MH i2c: E2 08 00 DD 5C 80 17 00 00 00 00 00 00 B9 [23:55:13]Write i2c OK [23:55:13]MH_I2C_Read... [23:55:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:13]Read from MH i2c: E2 [23:55:13]MH_I2C_Read... [23:55:13]Read from MH i2c: E2 FD 00 [23:55:13]MH_I2C_Read... [23:55:13]Read from MH i2c: E2 FD 00 DD 5C 00 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 91 [23:55:13]RAPDU: 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:55:13]wFMCommunicate OK [23:55:13]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:13]SAM_PROTO_ProcessDocument remain to read = 766 [23:55:13]wFMCommunicate request_size=4 [23:55:13]MH_SAM_APDU [23:55:13]CAPDU: 80 17 00 00 [23:55:13]Write to MH i2c: E2 08 00 DE 5C 80 17 00 00 00 00 00 00 BA [23:55:13]Write i2c OK [23:55:13]MH_I2C_Read... [23:55:13]OFD Sender: No OFD packet to send [23:55:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:14]Read from MH i2c: E2 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: E2 FD 00 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: E2 FD 00 DE 5C 00 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 90 00 1C [23:55:14]RAPDU: 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 90 00 [23:55:14]wFMCommunicate OK [23:55:14]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:14]SAM_PROTO_ProcessDocument remain to read = 516 [23:55:14]wFMCommunicate request_size=4 [23:55:14]MH_SAM_APDU [23:55:14]CAPDU: 80 17 00 00 [23:55:14]Write to MH i2c: E2 08 00 DF 5C 80 17 00 00 00 00 00 00 BB [23:55:14]Write i2c OK [23:55:14]MH_I2C_Read... [23:55:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:14]Read from MH i2c: E2 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: E2 FD 00 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: E2 FD 00 DF 5C 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 47 [23:55:15]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:55:15]wFMCommunicate OK [23:55:15]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:15]SAM_PROTO_ProcessDocument remain to read = 266 [23:55:15]wFMCommunicate request_size=4 [23:55:15]MH_SAM_APDU [23:55:15]CAPDU: 80 17 00 00 [23:55:15]Write to MH i2c: E2 08 00 E0 5C 80 17 00 00 00 00 00 00 BC [23:55:15]Write i2c OK [23:55:15]MH_I2C_Read... [23:55:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:15]Read from MH i2c: E2 [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: E2 FD 00 [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: E2 FD 00 E0 5C 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 82 [23:55:15]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:55:16]wFMCommunicate OK [23:55:16]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:55:16]SAM_PROTO_ProcessDocument remain to read = 16 [23:55:16]wFMCommunicate request_size=4 [23:55:16]MH_SAM_APDU [23:55:16]CAPDU: 80 17 00 00 [23:55:16]Write to MH i2c: E2 08 00 E1 5C 80 17 00 00 00 00 00 00 BD [23:55:16]Write i2c OK [23:55:16]MH_I2C_Read... [23:55:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 16! [23:55:16]Read from MH i2c: E2 [23:55:16]MH_I2C_Read... [23:55:16]Read from MH i2c: E2 13 00 [23:55:16]MH_I2C_Read... [23:55:16]Read from MH i2c: E2 13 00 E1 5C 00 00 06 F7 03 00 00 35 04 06 00 1D 7B 99 68 BC DE 90 00 33 [23:55:16]RAPDU: 00 06 F7 03 00 00 35 04 06 00 1D 7B 99 68 BC DE 90 00 [23:55:16]wFMCommunicate OK [23:55:16]SAM_PROTO_ProcessDocument received (without SW) 16 bytes [23:55:16]SAM_PROTO_ProcessDocument done [23:55:16]1209 (1) - 1.0 - номер верÑии ФФД [23:55:16]1041 (16) - 0000000000875060 - номер ФМ [23:55:16]1040 (4) - 49123 - номер ФД [23:55:16]1038 (4) - 245 - номер Ñмены [23:55:16]1118 (4) - 105 - количеÑтво каÑÑовых чеков за Ñмену [23:55:16]1111 (4) - 107 - общее количеÑтво ФД за Ñмену [23:55:16]1194 (1193) - Ñчетчики итогов Ñмены [23:55:16] 1134 (4) - 105 - количеÑтво чеков Ñо вÑеми признаками раÑчетов [23:55:16] 1129 (154) - Ñчетчики операций «приход» [23:55:16] 1135 (4) - 105 - количеÑтво чеков по признаку раÑчетов [23:55:16] 1201 (3) - 69632.49 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [23:55:16] 1136 (3) - 69132.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [23:55:16] 1138 (2) - 500.49 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [23:55:16] 1024 (122) - Ñуммы налогов [23:55:16] 1006 (9) - Ñуммы ÐДС [23:55:16] 1010 (1) - 0% - код Ñтавки ÐДС [23:55:16] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [23:55:16] 1006 (12) - Ñуммы ÐДС [23:55:16] 1010 (1) - 12% - код Ñтавки ÐДС [23:55:16] 1011 (3) - 7398.49 - Ñумма ÐДС по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 0% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (11) - Ñуммы ÐСП [23:55:16] 1014 (1) - 1% - код Ñтавки ÐСП [23:55:16] 1015 (2) - 616.52 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 2% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 3% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 5% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 0,50% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 1,50% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1130 (141) - Ñчетчики операций «возврат прихода» [23:55:16] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [23:55:16] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [23:55:16] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [23:55:16] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [23:55:16] 1024 (117) - Ñуммы налогов [23:55:16] 1006 (9) - Ñуммы ÐДС [23:55:16] 1010 (1) - 0% - код Ñтавки ÐДС [23:55:16] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [23:55:16] 1006 (9) - Ñуммы ÐДС [23:55:16] 1010 (1) - 12% - код Ñтавки ÐДС [23:55:16] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 0% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 1% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 2% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 3% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 5% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 0,50% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 1,50% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1131 (141) - Ñчетчики операций «раÑход» [23:55:16] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [23:55:16] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [23:55:16] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [23:55:16] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [23:55:16] 1024 (117) - Ñуммы налогов [23:55:16] 1006 (9) - Ñуммы ÐДС [23:55:16] 1010 (1) - 0% - код Ñтавки ÐДС [23:55:16] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [23:55:16] 1006 (9) - Ñуммы ÐДС [23:55:16] 1010 (1) - 12% - код Ñтавки ÐДС [23:55:16] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 0% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 1% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 2% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 3% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 5% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 0,50% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 1,50% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1132 (141) - Ñчетчики операций «возврат раÑхода» [23:55:16] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [23:55:16] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [23:55:16] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [23:55:16] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [23:55:16] 1024 (117) - Ñуммы налогов [23:55:16] 1006 (9) - Ñуммы ÐДС [23:55:16] 1010 (1) - 0% - код Ñтавки ÐДС [23:55:16] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [23:55:16] 1006 (9) - Ñуммы ÐДС [23:55:16] 1010 (1) - 12% - код Ñтавки ÐДС [23:55:16] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 0% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 1% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 2% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 3% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 5% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 0,50% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1007 (9) - Ñуммы ÐСП [23:55:16] 1014 (1) - 1,50% - код Ñтавки ÐСП [23:55:16] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [23:55:16] 1133 (588) - - Ñчетчики коррекции - не иÑпользуютÑÑ [23:55:16]1077 (6) - 32416691961054 - ФПД [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1209 (04B9) [23:55:16]Malloc new data [23:55:16]Processing tag 1041 (0411) [23:55:16]Processing tag 1040 (0410) [23:55:16]Malloc new data [23:55:16]Processing tag 1038 (040E) [23:55:16]Malloc new data [23:55:16]Processing tag 1118 (045E) [23:55:16]Malloc new data [23:55:16]Processing tag 1111 (0457) [23:55:16]Malloc new data [23:55:16]Processing tag 1194 (04AA) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1134 (046E) [23:55:16]Malloc new data [23:55:16]Processing tag 1129 (0469) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1135 (046F) [23:55:16]Malloc new data [23:55:16]Processing tag 1201 (04B1) [23:55:16]Malloc new data [23:55:16]Processing tag 1136 (0470) [23:55:16]Malloc new data [23:55:16]Processing tag 1138 (0472) [23:55:16]Malloc new data [23:55:16]Processing tag 1024 (0400) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1006 (03EE) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1010 (03F2) [23:55:16]Malloc new data [23:55:16]Processing tag 1011 (03F3) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1006 (03EE) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1010 (03F2) [23:55:16]Malloc new data [23:55:16]Processing tag 1011 (03F3) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]SetTLVBufToDocument err=0 [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1130 (046A) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1135 (046F) [23:55:16]Malloc new data [23:55:16]Processing tag 1201 (04B1) [23:55:16]Malloc new data [23:55:16]Processing tag 1136 (0470) [23:55:16]Malloc new data [23:55:16]Processing tag 1138 (0472) [23:55:16]Malloc new data [23:55:16]Processing tag 1024 (0400) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1006 (03EE) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1010 (03F2) [23:55:16]Malloc new data [23:55:16]Processing tag 1011 (03F3) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1006 (03EE) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1010 (03F2) [23:55:16]Malloc new data [23:55:16]Processing tag 1011 (03F3) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]SetTLVBufToDocument err=0 [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1131 (046B) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1135 (046F) [23:55:16]Malloc new data [23:55:16]Processing tag 1201 (04B1) [23:55:16]Malloc new data [23:55:16]Processing tag 1136 (0470) [23:55:16]Malloc new data [23:55:16]Processing tag 1138 (0472) [23:55:16]Malloc new data [23:55:16]Processing tag 1024 (0400) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1006 (03EE) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1010 (03F2) [23:55:16]Malloc new data [23:55:16]Processing tag 1011 (03F3) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1006 (03EE) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1010 (03F2) [23:55:16]Malloc new data [23:55:16]Processing tag 1011 (03F3) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:16]Malloc new data [23:55:16]SetTLVBufToDocument err=0 [23:55:16]Processing tag 1007 (03EF) [23:55:16]Load OK [23:55:16]SetTLVBufToDocument [23:55:16]Processing tag 1014 (03F6) [23:55:16]Malloc new data [23:55:16]Processing tag 1015 (03F7) [23:55:17]Malloc new data [23:55:17]SetTLVBufToDocument err=0 [23:55:17]SetTLVBufToDocument err=0 [23:55:17]SetTLVBufToDocument err=0 [23:55:17]Processing tag 1132 (046C) [23:55:17]Load OK [23:55:17]SetTLVBufToDocument [23:55:17]Processing tag 1135 (046F) [23:55:17]Malloc new data [23:55:17]Processing tag 1201 (04B1) [23:55:17]Malloc new data [23:55:17]Processing tag 1136 (0470) [23:55:17]Malloc new data [23:55:17]Processing tag 1138 (0472) [23:55:17]Malloc new data [23:55:17]Processing tag 1024 (0400) [23:55:17]Load OK [23:55:17]SetTLVBufToDocument [23:55:17]Processing tag 1006 (03EE) [23:55:17]Load OK [23:55:17]SetTLVBufToDocument [23:55:17]Processing tag 1010 (03F2) [23:55:17]Malloc new data [23:55:17]Processing tag 1011 (03F3) [23:55:17]Malloc new data [23:55:17]SetTLVBufToDocument err=0 [23:55:17]Processing tag 1006 (03EE) [23:55:17]Load OK [23:55:17]SetTLVBufToDocument [23:55:17]Processing tag 1010 (03F2) [23:55:17]Malloc new data [23:55:17]Processing tag 1011 (03F3) [23:55:17]Malloc new data [23:55:17]SetTLVBufToDocument err=0 [23:55:17]Processing tag 1007 (03EF) [23:55:17]Load OK [23:55:17]SetTLVBufToDocument [23:55:17]Processing tag 1014 (03F6) [23:55:17]Malloc new data [23:55:17]Processing tag 1015 (03F7) [23:55:17]Malloc new data [23:55:17]SetTLVBufToDocument err=0 [23:55:17]Processing tag 1007 (03EF) [23:55:17]Load OK [23:55:17]SetTLVBufToDocument [23:55:17]Processing tag 1014 (03F6) [23:55:17]Malloc new data [23:55:17]Processing tag 1015 (03F7) [23:55:17]Malloc new data [23:55:17]SetTLVBufToDocument err=0 [23:55:17]Processing tag 1007 (03EF) [23:55:17]Load OK [23:55:17]SetTLVBufToDocument [23:55:17]Processing tag 1014 (03F6) [23:55:17]Malloc new data [23:55:17]Processing tag 1015 (03F7) [23:55:17]Malloc new data [23:55:17]SetTLVBufToDocument err=0 [23:55:17]Processing tag 1007 (03EF) [23:55:17]Load OK [23:55:17]SetTLVBufToDocument [23:55:17]Processing tag 1014 (03F6) [23:55:17]Malloc new data [23:55:17]Processing tag 1015 (03F7) [23:55:17]Malloc new data [23:55:17]SetTLVBufToDocument err=0 [23:55:17]Processing tag 1007 (03EF) [23:55:17]Load OK [23:55:17]SetTLVBufToDocument [23:55:17]Processing tag 1014 (03F6) [23:55:17]Malloc new data [23:55:17]Processing tag 1015 (03F7) [23:55:17]Malloc new data [23:55:17]SetTLVBufToDocument err=0 [23:55:17]Processing tag 1007 (03EF) [23:55:17]Load OK [23:55:17]SetTLVBufToDocument [23:55:17]Processing tag 1014 (03F6) [23:55:17]Malloc new data [23:55:17]Processing tag 1015 (03F7) [23:55:17]Malloc new data [23:55:17]SetTLVBufToDocument err=0 [23:55:17]Processing tag 1007 (03EF) [23:55:17]Load OK [23:55:17]SetTLVBufToDocument [23:55:17]Processing tag 1014 (03F6) [23:55:17]Malloc new data [23:55:17]Processing tag 1015 (03F7) [23:55:17]Malloc new data [23:55:17]SetTLVBufToDocument err=0 [23:55:17]SetTLVBufToDocument err=0 [23:55:17]SetTLVBufToDocument err=0 [23:55:17]Processing tag 1133 (046D) [23:55:17]Malloc new data [23:55:17]SetTLVBufToDocument err=0 [23:55:17]Processing tag 1077 (0435) [23:55:17]Malloc new data [23:55:17]SetTLVBufToDocument err=0 [23:55:17]Malloc new data [23:55:17]SAM_PROTO_GetFMData [23:55:17]wFMCommunicate request_size=4 [23:55:17]MH_SAM_APDU [23:55:17]CAPDU: 80 13 03 00 [23:55:17]Write to MH i2c: E2 08 00 E2 5C 80 13 03 00 00 00 00 00 BD [23:55:17]Write i2c OK [23:55:17]MH_I2C_Read... [23:55:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:17]Read from MH i2c: E2 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: E2 FD 00 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: E2 FD 00 E2 5C 00 BF 04 85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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 3D [23:55:18]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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:55:18]wFMCommunicate OK [23:55:18]wFMCommunicate request_size=4 [23:55:18]MH_SAM_APDU [23:55:18]CAPDU: 80 17 00 00 [23:55:18]Write to MH i2c: E2 08 00 E3 5C 80 17 00 00 00 00 00 00 BF [23:55:18]Write i2c OK [23:55:18]MH_I2C_Read... [23:55:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:18]Read from MH i2c: E2 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 FD 00 [23:55:18]MH_I2C_Read... [23:55:18]Read from MH i2c: E2 FD 00 E3 5C 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 6F [23:55: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 OFD Sender: No OFD packet to send [23:55:19]03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:55:19]wFMCommunicate OK [23:55:19]wFMCommunicate request_size=4 [23:55:19]MH_SAM_APDU [23:55:19]CAPDU: 80 17 00 00 [23:55:19]Write to MH i2c: E2 08 00 E4 5C 80 17 00 00 00 00 00 00 C0 [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:19]Read from MH i2c: E2 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 FD 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 FD 00 E4 5C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 64 [23:55: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:55:19]wFMCommunicate OK [23:55:19]wFMCommunicate request_size=4 [23:55:19]MH_SAM_APDU [23:55:19]CAPDU: 80 17 00 00 [23:55:19]Write to MH i2c: E2 08 00 E5 5C 80 17 00 00 00 00 00 00 C1 [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:20]Read from MH i2c: E2 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 FD 00 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 FD 00 E5 5C 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 3B [23:55: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:55:20]wFMCommunicate OK [23:55:20]wFMCommunicate request_size=4 [23:55:20]MH_SAM_APDU [23:55:20]CAPDU: 80 17 00 00 [23:55:20]Write to MH i2c: E2 08 00 E6 5C 80 17 00 00 00 00 00 00 C2 [23:55:20]Write i2c OK [23:55:20]MH_I2C_Read... [23:55:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:55:20]Read from MH i2c: E2 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 DC 00 [23:55:20]MH_I2C_Read... [23:55:21]Read from MH i2c: E2 DC 00 E6 5C 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 A6 [23:55:21]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:55:21]wFMCommunicate OK [23:55:21]SAM_PROTO_GetFMData done [23:55:21]Malloc new data [23:55:21]Malloc new data [23:55:21]Malloc new data [23:55:21]Malloc new data [23:55:21]KKMLoadAndSignCloseShiftData err=0 [23:55:21]Отчет о закрытии Ñмены ФФД: 1.0 ИÐÐ: 02508201610067 КаÑÑир: Муканов Ð. 29.01.2024 23:55 Смена: 245 РÐМ: 0000000000092723 ЗÐМ: 0300000040 СÐО: Общий режим Чеков за Ñмену: 105 ФД за Ñмену: 107 Ð’Ñего чеков: 105 ИТОГИ ПРИХОД Чеков: 105 Общий итог: 69632.49 Итого наличными: 69132.00 Итого безнал.: 500.49 ÐДС 0% : 0.00 ÐДС 12% : 7398.49 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 616.52 ИТОГИ ВОЗВРÐТ ПРИХОДРЧеков: 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 Ðал. в каÑÑе: 69132.00 ÐС Приход: 31581364.09 ÐС Возвр.Прихода: 6198.00 ÐС РаÑход: 0.00 ÐС Возвр.РаÑхода: 0.00 ФД: 49123 ФМ: 0000000000875060 ФПД: 32416691961054 [23:55:21]StoreToDocumentArchive [23:55:21]shift 245 fd 49123 [23:55:21]save to /storage/0245/doc_00049123 [23:55:21]save last doc name /storage/0245/doc_00049123 to /storage/kkm_last_doc_name [23:55:21]save OK [23:55:21]Clear old archive folders... [23:55:21]Remove dir /storage/0010 [23:55:21]opendir ok [23:55:21]file . [23:55:21]file .. [23:55:21]file doc_1706572507 [23:55:21]remove file /storage/0010/doc_1706572507 [23:55:21]remove dir /storage/0010 [23:55:21]NVStorageSaveData kkm_registers [23:55:21]File name is /storage/kkm_registers [23:55:21]Write 24 bytes [23:55:21]NVStorageSaveData done [23:55:21]NVStorageSaveData kkm_registers [23:55:21]File name is /storage/kkm_registers [23:55:21]Write 24 bytes [23:55:21]NVStorageSaveData done [23:55:21]ProcessDocumentItem done err = 0, tmpTLVsize=1376 [23:55:21]tlvbuf is 01254E10 [23:55:21]SAM_PROTO_ClearQueue [23:55:21]wFMCommunicate request_size=4 [23:55:21]MH_SAM_APDU [23:55:21]CAPDU: 80 09 00 00 [23:55:21]Write to MH i2c: E2 08 00 E7 5C 80 09 00 00 00 00 00 00 B5 [23:55:21]Write i2c OK [23:55:21]MH_I2C_Read... [23:55:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:55:21]Read from MH i2c: E2 [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: E2 03 00 [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: E2 03 00 E7 5C 00 90 00 B7 [23:55:21]RAPDU: 90 00 [23:55:21]wFMCommunicate OK [23:55:21]SAM_PROTO_ClearQueue done [23:55:21]KKMCreateOFDPacket [23:55:21]OFDProtocolAddRootSTLVToBuf [23:55:21]FM_MakeSignedData [23:55:21]FM_MakeSignedData [23:55:21]SAM_PROTO_SignData [23:55:21]wFMCommunicate request_size=4 [23:55:21]MH_SAM_APDU [23:55:21]CAPDU: 80 0D 01 02 [23:55:21]Write to MH i2c: E2 08 00 E8 5C 80 0D 01 02 00 00 00 00 BD [23:55:21]Write i2c OK [23:55:21]MH_I2C_Read... [23:55:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:55:21]Read from MH i2c: E2 [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: E2 03 00 [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: E2 03 00 E8 5C 00 90 00 B8 [23:55:21]RAPDU: 90 00 [23:55:21]wFMCommunicate OK [23:55:21]wFMCommunicate request_size=255 [23:55:21]MH_SAM_APDU [23:55:21]CAPDU: 80 0D 02 02 FA 05 00 60 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9C D1 83 D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 EF 3A B8 65 0E 04 04 00 F5 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 69 00 00 00 57 04 04 00 6B 00 00 00 AA 04 D4 04 6E 04 04 00 69 00 00 00 69 04 A1 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 [23:55:21]Write to MH i2c: E2 02 01 E9 5C 80 0D 02 02 FA 00 05 00 60 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9C D1 83 D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 EF 3A B8 65 0E 04 04 00 F5 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 69 00 00 00 57 04 04 00 6B 00 00 00 AA 04 D4 04 6E 04 04 00 69 00 00 00 69 04 A1 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 00 00 40 [23:55:22]Write i2c OK [23:55:22]MH_I2C_Read... [23:55:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:22]Read from MH i2c: E2 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: E2 03 00 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: E2 03 00 E9 5C 00 90 00 B9 [23:55:22]RAPDU: 90 00 [23:55:22]wFMCommunicate OK [23:55:22]wFMCommunicate request_size=255 [23:55:22]MH_SAM_APDU [23:55:22]CAPDU: 80 0D 02 02 FA 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 D4 F0 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 [23:55:22]Write to MH i2c: E2 02 01 EA 5C 80 0D 02 02 FA 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 D4 F0 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 00 00 E5 [23:55:23]Write i2c OK [23:55:23]MH_I2C_Read... [23:55:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:23]Read from MH i2c: E2 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 03 00 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: E2 03 00 EA 5C 00 90 00 BA [23:55:23]RAPDU: 90 00 [23:55:23]wFMCommunicate OK [23:55:23]wFMCommunicate request_size=255 [23:55:23]MH_SAM_APDU [23:55:23]CAPDU: 80 0D 02 02 FA 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 [23:55:23]Write to MH i2c: E2 02 01 EB 5C 80 0D 02 02 FA 00 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 00 00 91 [23:55:23]Write i2c OK [23:55:23]MH_I2C_Read... [23:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:24]OFD Sender: No OFD packet to send [23:55:24]Read from MH i2c: E2 [23:55:24]MH_I2C_Read... [23:55:24]Read from MH i2c: E2 03 00 [23:55:24]MH_I2C_Read... [23:55:24]Read from MH i2c: E2 03 00 EB 5C 00 90 00 BB [23:55:24]RAPDU: 90 00 [23:55:24]wFMCommunicate OK [23:55:24]wFMCommunicate request_size=255 [23:55:24]MH_SAM_APDU [23:55:24]CAPDU: 80 0D 02 02 FA 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 [23:55:24]Write to MH i2c: E2 02 01 EC 5C 80 0D 02 02 FA 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 00 00 87 [23:55:24]Write i2c OK [23:55:24]MH_I2C_Read... [23:55:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:24]Read from MH i2c: E2 [23:55:24]MH_I2C_Read... [23:55:24]Read from MH i2c: E2 03 00 [23:55:24]MH_I2C_Read... [23:55:24]Read from MH i2c: E2 03 00 EC 5C 00 90 00 BC [23:55:24]RAPDU: 90 00 [23:55:24]wFMCommunicate OK [23:55:24]wFMCommunicate request_size=255 [23:55:24]MH_SAM_APDU [23:55:24]CAPDU: 80 0D 02 02 FA EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:55:25]Write to MH i2c: E2 02 01 ED 5C 80 0D 02 02 FA 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 49 [23:55:25]Write i2c OK [23:55:25]MH_I2C_Read... [23:55:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:25]Read from MH i2c: E2 [23:55:25]MH_I2C_Read... [23:55:25]Read from MH i2c: E2 03 00 [23:55:25]MH_I2C_Read... [23:55:25]Read from MH i2c: E2 03 00 ED 5C 00 90 00 BD [23:55:25]RAPDU: 90 00 [23:55:25]wFMCommunicate OK [23:55:25]wFMCommunicate request_size=135 [23:55:25]MH_SAM_APDU [23:55:25]CAPDU: 80 0D 02 02 82 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BF 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 1D 7B 99 68 BC DE [23:55:25]Write to MH i2c: E2 8A 00 EE 5C 80 0D 02 02 82 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BF 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 1D 7B 99 68 BC DE 00 00 D1 [23:55:26]Write i2c OK [23:55:26]MH_I2C_Read... [23:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:26]Read from MH i2c: E2 [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: E2 03 00 [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: E2 03 00 EE 5C 00 90 00 BE [23:55:26]RAPDU: 90 00 [23:55:26]wFMCommunicate OK [23:55:26]wFMCommunicate request_size=4 [23:55:26]MH_SAM_APDU [23:55:26]CAPDU: 80 0D 03 02 [23:55:26]Write to MH i2c: E2 08 00 EF 5C 80 0D 03 02 00 00 00 00 C6 [23:55:26]Write i2c OK [23:55:26]MH_I2C_Read... [23:55:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:55:26]Read from MH i2c: E2 [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: E2 0B 00 [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: E2 0B 00 EF 5C 00 87 54 EB 6B AC B0 1E 55 90 00 C7 [23:55:26]RAPDU: 87 54 EB 6B AC B0 1E 55 90 00 [23:55:26]wFMCommunicate OK [23:55:26]SAM_PROTO_SignData done [23:55:26]FM_MakeSignedData done [23:55:26]CreateOFDProtocolMessage [23:55:26]wFMCommunicate request_size=4 [23:55:26]MH_SAM_APDU [23:55:26]CAPDU: 80 11 00 00 [23:55:26]Write to MH i2c: E2 08 00 F0 5C 80 11 00 00 00 00 00 00 C6 [23:55:26]Write i2c OK [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: E2 [23:55:26]MH_I2C_Read... [23:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:26]Read from MH i2c: E2 17 00 [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: E2 17 00 F0 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 13 [23:55: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:55:26]wFMCommunicate OK [23:55:26]CreateOFDProtocolMessage done [23:55:26]OFDSenderStorePacket 49123 [23:55:26]StoreOFDPacket docnum=49123 [23:55: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 74 05 00 00 BD 62 6C 05 3C CF 5A 05 01 00 05 00 60 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 13 00 D0 9C D1 83 D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 EF 3A B8 65 0E 04 04 00 F5 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 69 00 00 00 57 04 04 00 6B 00 00 00 AA 04 D4 04 6E 04 04 00 69 00 00 00 69 04 A1 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 D4 F0 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 BF 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 1D 7B 99 68 BC DE 87 54 EB 6B AC B0 1E 55 [23:55:26]CheckFolder [23:55:26]dirname=/storage/ofd_packets [23:55:26]CheckFolder done [23:55:26]ProducePacketName [23:55:26]name=ofd_packets/00049123 [23:55:26]NVStorageSaveData ofd_packets/00049123 [23:55:26]File name is /storage/ofd_packets/00049123 [23:55:26]Write 1426 bytes [23:55:26]NVStorageSaveData done [23:55:26]OFDSenderStorePacket done [23:55:26]KKMCreateOFDPacket done [23:55:26]NVStorageSaveData kkm_last_timestamp [23:55:26]File name is /storage/kkm_last_timestamp [23:55:26]Write 4 bytes [23:55:26]NVStorageSaveData done [23:55:26]ExternCall_PrintAddStr [23:55:26]wPrintStart [23:55:26]Write to MH i2c: 01 00 00 F1 5C 4D [23:55:26]Write i2c OK [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: 01 [23:55:26]MH_I2C_Read... [23:55:26]Read from MH i2c: 01 07 00 [23:55:26]MH_I2C_Read... [23:55:26]OFD Sender: Processing packet 49123 [packets to send 12, broken 11] [23:55:26]ProducePacketName [23:55:26]name=ofd_packets/00049123 [23:55:26]OFD Sender: To server: ‡•öpG, [23:55:26]CommunicateWithHost lk.salyk.kg:30040 [23:55:26]ConnectInit lk.salyk.kg [23:55:26]Read from MH i2c: 01 07 00 F1 5C 00 00 00 00 00 FF 0F 62 [23:55:26]RasterBufferAndPrint [23:55:26]line Отчет о закрытии Ñмены [23:55:26]line ФФД: 1.0 [23:55:26]line ИÐÐ: 02508201610067 [23:55:26]line КаÑÑир: Муканов Ð. [23:55:26]line 29.01.2024 23:55 [23:55:26]line Смена: 245 [23:55:26]line РÐМ: 0000000000092723 [23:55:26]line ЗÐМ: 0300000040 [23:55:26]line СÐО: Общий режим [23:55:26]line Чеков за Ñмену: 105 [23:55:26]line ФД за Ñмену: 107 [23:55:26]line Ð’Ñего чеков: 105 [23:55:26]line ИТОГИ ПРИХОД [23:55:26]line Чеков: 105 [23:55:27]line Общий итог: 69632.49 [23:55:27]line Итого наличными: 69132.00 [23:55:27]line Итого безнал.: 500.49 [23:55:27]line ÐДС 0% : 0.00 [23:55:27]line ÐДС 12% : 7398.49 [23:55:27]line ÐСП 0% : 0.00 [23:55:27]line ÐСП 1,50% : 0.00 [23:55:27]line ÐСП 0,50% : 0.00 [23:55:27]line ÐСП 5% : 0.00 [23:55:27]line ÐСП 3% : 0.00 [23:55:27]line ÐСП 2% : 0.00 [23:55:27]line ÐСП 1% : 616.52 [23:55:27]line ИТОГИ ВОЗВРÐТ ПРИХОДР[23:55:27]line Чеков: 0 [23:55:27]line Общий итог: 0.00 [23:55:27]line Итого наличными: 0.00 [23:55:27]line Итого безнал.: 0.00 [23:55:27]line ÐДС 0% : 0.00 [23:55:27]line ÐДС 12% : 0.00 [23:55:27]line ÐСП 0% : 0.00 [23:55:27]line ÐСП 1,50% : 0.00 [23:55:27]line ÐСП 0,50% : 0.00 [23:55:27]line ÐСП 5% : 0.00 [23:55:27]line ÐСП 3% : 0.00 [23:55:27]line ÐСП 2% : 0.00 [23:55:27]line ÐСП 1% : 0.00 [23:55:27]line ИТОГИ РÐСХОД [23:55:27]line Чеков: 0 [23:55:27]line Общий итог: 0.00 [23:55:27]line Итого наличными: 0.00 [23:55:27]line Итого безнал.: 0.00 [23:55:27]line ÐДС 0% : 0.00 [23:55:27]line ÐДС 12% : 0.00 [23:55:27]line ÐСП 0% : 0.00 [23:55:27]line ÐСП 1,50% : 0.00 [23:55:27]line ÐСП 0,50% : 0.00 [23:55:27]line ÐСП 5% : 0.00 [23:55:27]line ÐСП 3% : 0.00 [23:55:27]line ÐСП 2% : 0.00 [23:55:27]line ÐСП 1% : 0.00 [23:55:27]line ИТОГИ ВОЗВРÐТ РÐСХОДР[23:55:27]line Чеков: 0 [23:55:27]line Общий итог: 0.00 [23:55:27]line Итого наличными: 0.00 [23:55:27]line Итого безнал.: 0.00 [23:55:27]line ÐДС 0% : 0.00 [23:55:27]line ÐДС 12% : 0.00 [23:55:27]line ÐСП 0% : 0.00 [23:55:27]line ÐСП 1,50% : 0.00 [23:55:27]line ÐСП 0,50% : 0.00 [23:55:27]line ÐСП 5% : 0.00 [23:55:27]line ÐСП 3% : 0.00 [23:55:27]line ÐСП 2% : 0.00 [23:55:27]line ÐСП 1% : 0.00 [23:55:27]line Сумма внеÑений: 0.00 [23:55:27]line Сумма выплат: 0.00 [23:55:27]line Ðал. в каÑÑе: 69132.00 [23:55:27]line ÐС Приход: 31581364.09 [23:55:27]line ÐС Возвр.Прихода: 6198.00 [23:55:27]line ÐС РаÑход: 0.00 [23:55:27]line ÐС Возвр.РаÑхода: 0.00 [23:55:27]line ФД: 49123 [23:55:27]line ФМ: 0000000000875060 [23:55:27]line ФПД: 32416691961054 [23:55:27]Connected sock=10 [23:55: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 74 05 00 00 BD 62 6C 05 3C CF 5A 05 01 00 05 00 60 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 written 0, free lines is 4095 [23:55:27]31 30 30 36 37 FD 03 13 00 D0 9C D1 83 D0 BA D0 B0 D0 BD D0 BE D0 B2 20 D0 90 2E 20 F4 03 04 00 EF 3A B8 65 0E 04 04 00 F5 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 69 00 00 00 57 04 04 00 6B 00 00 00 AA 04 D4 04 6E 04 04 00 69 00 00 00 69 04 A1 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 D4 F0 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 Write to MH i2c: 01 01 00 00 05 00 F7 41 03 01 00 00 EF 03 0A 00 F6 03 01 5D 00 9E 04 [23:55:28]F7 Write i2c OK [23:55:28]03 MH_I2C_Read... [23:55:28]01 00 00 EF 03 0A 00 F6 03 Read from MH i2c: 01 01 00 [23:55:28]03 MH_I2C_Read... [23:55:28]F7 Read from MH i2c: 03 01 01 07 00 00 00 [23:55:28]EF MH_I2C_Read... [23:55:28]03 0A 00 F6 03 01 00 02 F7 03 Read from MH i2c: 01 01 07 00 00 00 41 EF 5D 03 00 0A 00 00 00 F6 00 03 00 01 C9 00 0B 01 79 F7 [23:55:28]03 RasterBufferAndPrint [23:55:28]01 line [23:55:28]00 line [23:55:28]00 line [23:55:28]6D line [23:55:28]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 line [23:55:28]03 00 00 written 0, free lines is 3371 [23:55:28]EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF MH_Cut [23:55:28]03 Write to MH i2c: 09 D1 00 01 F6 00 03 48 01 5D 00 01 00 77 F7 [23:55:28]03 Write i2c OK [23:55:28]00 MH_I2C_Read... [23:55:28]00 Read from MH i2c: EF 03 09 00 F6 03 01 00 01 F7 03 D1 00 [23:55:28]00 MH_I2C_Read... [23:55:28]EF Read from MH i2c: 03 D1 09 01 00 00 F6 [23:55:28]03 MH_I2C_Read... [23:55:28]01 00 02 F7 03 00 00 EF 03 09 00 F6 03 Read from MH i2c: 01 D1 00 01 03 00 F7 48 03 5D 00 00 00 76 EF [23:55:28]03 Write to MH i2c: 09 01 00 00 F6 00 03 49 01 5D 00 A6 04 [23:55:28]F7 03 00 00 EF 03 09 Write i2c OK [23:55:28]00 MH_I2C_Read... [23:55:28]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 *** Cut start [23:55:29]03 09 00 F6 03 01 00 02 F7 03 *** Partial cut [23:55:29]00 *** CUTSNS_PIN = 1 [23:55:29]00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF *** CUTSNS_PIN = 0 [23:55:29]03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BF 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 1D 7B 99 68 BC DE 87 54 EB 6B AC B0 1E 55 [23:55:29]*** Brake cut motor [23:55: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 9A E7 47 00 49 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E3 BF 00 00 F4 03 04 00 F6 E6 B7 65 B6 *** Stop cut motor [23:55:29]04 *** Cut end [23:55:29]01 Read from MH i2c: 00 01 00 [23:55:29]D9 MH_I2C_Read... [23:55:29]60 Read from MH i2c: 6E 01 57 07 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: 01 07 00 49 5D AF EF 00 CA 00 79 00 [23:55:29]00 CommunicateWithHost err = 0 [23:55:29]00 CheckOFDResponse [23:55:29]FF 1017 (14) - 77093643461234 [23:55:29]0F 1041 (16) - 0000000000875060 [23:55:29]BB 1040 (4) - 49123 [23:55:29] [23:55:29]1012 (4) - 29.01.2024 17:57 [23:55:29]1206 (1) - 0 [23:55:29]OFD Sender: Remove packet 49123 [23:55:29]ProducePacketName [23:55:29]name=ofd_packets/00049123 [23:55:29]NVStorageDeleteData [23:55:29]process_action close_shift done [23:55:29]requested_data is exist [23:55:29]produce_requested_data [23:55:29]requested_item fd.num is exist - process it [23:55:29]SAM_PROTO_GetFieldsCounters [23:55:29]wFMCommunicate request_size=4 [23:55:29]MH_SAM_APDU [23:55:29]CAPDU: 80 13 00 00 [23:55:29]Write to MH i2c: E2 08 00 4A 5D 80 13 00 00 00 00 00 00 23 [23:55:29]Write i2c OK [23:55:29]MH_I2C_Read... [23:55:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:29]Read from MH i2c: E2 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 62 00 [23:55:29]MH_I2C_Read... [23:55:29]Read from MH i2c: E2 62 00 4A 5D 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 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [23:55: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 E3 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:30]wFMCommunicate OK [23:55:30]SAM_PROTO_GetFieldsCounters done [23:55:30]requested_item shift.num is exist - process it [23:55:30]requested_item shift.opened is exist - process it [23:55:30]req_shift_opened [23:55:30]FM_GetShiftState [23:55:30]SAM_PROTO_GetShiftState [23:55:30]wFMCommunicate request_size=4 [23:55:30]MH_SAM_APDU [23:55:30]CAPDU: 80 13 01 00 [23:55:30]Write to MH i2c: E2 08 00 4B 5D 80 13 01 00 00 00 00 00 25 [23:55:30]Write i2c OK [23:55:30]MH_I2C_Read... [23:55:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:30]Read from MH i2c: E2 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 0E 00 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 0E 00 4B 5D OFD Sender: No OFD packet to send [23:55:30]00 09 00 00 00 00 00 00 00 00 00 00 90 00 30 [23:55:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:55:30]wFMCommunicate OK [23:55:30]SAM_PROTO_GetShiftState done [23:55:30]FM_GetShiftState done [23:55:30]req_shift_opened done [23:55:30]requested_item shift.open_date is exist - process it [23:55:30]req_shift_open_date [23:55:30]FM_GetShiftState [23:55:30]SAM_PROTO_GetShiftState [23:55:30]wFMCommunicate request_size=4 [23:55:30]MH_SAM_APDU [23:55:30]CAPDU: 80 13 01 00 [23:55:30]Write to MH i2c: E2 08 00 4C 5D 80 13 01 00 00 00 00 00 26 [23:55:30]Write i2c OK [23:55:30]MH_I2C_Read... [23:55:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:30]Read from MH i2c: E2 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 0E 00 [23:55:30]MH_I2C_Read... [23:55:30]Read from MH i2c: E2 0E 00 4C 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 31 [23:55:30]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:55:30]wFMCommunicate OK [23:55:30]SAM_PROTO_GetShiftState done [23:55:30]FM_GetShiftState done [23:55:30]req_shift_open_date done [23:55:30]produce_requested_data done [23:55:30]produce_requested_data return {"fd.num":49123,"shift.num":245,"shift.opened":0,"shift.open_date":0} [23:55:30]process_action_free close_shift [23:55:30]json_value_free [23:55:30]json_value_free done [23:55:30]process_json_proto returns [23:55:30]Send response to host [23:55:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":49123,"shift.num":245,"shift.opened":0,"shift.open_date":0}}} [23:55:30]free response buf [23:55:30]execute_script done [23:55:30]execute_script returns [23:55:30]free content buf [23:55:30]Sock 9.Close socket [23:55:30]Sock 9.Thread stoped [23:55:35]OFD Sender: No OFD packet to send [23:55:39]int [23:55:39]Write to MH i2c: 01 00 00 4D 5D AA [23:55:39]*** FLAG_PRN_KEY set [23:55:39]Write i2c OK [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: 01 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: 01 07 00 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: 01 07 00 4D 5D 00 08 00 00 00 FF 0F C7 [23:55:39]state=0 [23:55:39]Key pressed [23:55:39]Feed [23:55:39]Write to MH i2c: D8 00 00 4E 5D 82 [23:55:39]Write i2c OK [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: D8 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: D8 01 00 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: D8 01 00 4E 5D 00 83 [23:55:39]int line is 0 - check status [23:55:39]Write to MH i2c: 01 00 00 4F 5D AC [23:55:39]Write i2c OK [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: 01 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: 01 07 00 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: 01 07 00 4F 5D 00 48 00 00 00 3C 00 37 [23:55:39]state=2 [23:55:39]Key pressed [23:55:39]int [23:55:39]Write to MH i2c: 01 00 00 50 5D AD [23:55:39]Write i2c OK [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: 01 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: 01 07 00 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: 01 07 00 50 5D 00 48 00 00 00 3C 00 38 [23:55:39]state=2 [23:55:39]Key pressed [23:55:40]int [23:55:40]Write to MH i2c: 01 00 00 51 5D AE [23:55:40]*** FLAG_PRN_KEY reset [23:55:40]Write i2c OK [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: 01 [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: 01 07 00 [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: 01 07 00 51 5D 00 00 00 00 00 FF 0F C3 [23:55:40]state=2 [23:55:40]Stop feed [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:10]OFD Sender: No OFD packet to send [23:57:15]OFD Sender: No OFD packet to send [23:57:20]OFD Sender: No OFD packet to send [23:57:25]OFD Sender: No OFD packet to send [23:57:30]OFD Sender: No OFD packet to send [23:57:35]OFD Sender: No OFD packet to send [23:57:40]OFD Sender: No OFD packet to send [23:57:45]OFD Sender: No OFD packet to send [23:57:50]OFD Sender: No OFD packet to send [23:57:55]OFD Sender: No OFD packet to send [23:58:00]OFD Sender: No OFD packet to send [23:58:05]OFD Sender: No OFD packet to send [23:58:10]OFD Sender: No OFD packet to send [23:58:15]OFD Sender: No OFD packet to send [23:58:20]OFD Sender: No OFD packet to send [23:58:25]OFD Sender: No OFD packet to send [23:58:30]OFD Sender: No OFD packet to send [23:58:35]OFD Sender: No OFD packet to send [23:58:40]OFD Sender: No OFD packet to send [23:58:45]OFD Sender: No OFD packet to send [23:58:50]OFD Sender: No OFD packet to send [23:58:55]OFD Sender: No OFD packet to send [23:59:00]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:50]OFD Sender: No OFD packet to send [00:02:55]OFD Sender: No OFD packet to send [00:02:56]accept exits with 7 [00:02:56]New connection [00:02:56]New thread 3066670436 created [00:02:56]Thread 3066813796 joined [00:02:56]Waiting for new connection... [00:02:56] Sock 7.Parse request [00:02:56]Sock 7.Check first char [00:02:56]Sock 7.First char is OK [00:02:56]request: POST /json_proto HTTP/1.0 [00:02:56]Method: POST [00:02:56]URL: /json_proto [00:02:56]Method is POST - this is cgi request [00:02:56]url: /json_proto [00:02:56]query_string will be loaded in cgi processing [00:02:56]execute_cgi json_proto POST (null) [00:02:56]execute_cgi path=json_proto method=POST [00:02:56]POST find Content-Length [00:02:56]Host: 172.17.56.67:8080 [00:02:56]Content-Length: 215 [00:02:56]Content-Type: application/json [00:02:56] [00:02:56]POST finish read [00:02:56]Found Content-Length = 215 [00:02:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:56]execute_script... [00:02:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:56]POST & json_proto [00:02:56]process_json_proto [00:02:56]json parsed OK: [00:02:56]protocol is kg_v1.0 [00:02:56]action value=get_value [00:02:56]process_action get_value [00:02:56]cmd_get_value [00:02:56]process_action get_value done [00:02:56]requested_data is exist [00:02:56]produce_requested_data [00:02:56]requested_item kkm.sn is exist - process it [00:02:56]requested_item kkm.ver is exist - process it [00:02:56]requested_item fm.sn is exist - process it [00:02:56]wFMCommunicate request_size=4 [00:02:56]MH_SAM_APDU [00:02:56]CAPDU: 80 11 00 00 [00:02:56]Write to MH i2c: E2 08 00 52 5D 80 11 00 00 00 00 00 00 29 [00:02:56]Write i2c OK [00:02:56]MH_I2C_Read... [00:02:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:02:56]Read from MH i2c: E2 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 17 00 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 17 00 52 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 76 [00:02:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:02:56]wFMCommunicate OK [00:02:56]requested_item fd.num is exist - process it [00:02:56]SAM_PROTO_GetFieldsCounters [00:02:56]wFMCommunicate request_size=4 [00:02:56]MH_SAM_APDU [00:02:56]CAPDU: 80 13 00 00 [00:02:56]Write to MH i2c: E2 08 00 53 5D 80 13 00 00 00 00 00 00 2C [00:02:56]Write i2c OK [00:02:56]MH_I2C_Read... [00:02:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:02:56]Read from MH i2c: E2 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 62 00 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 62 00 53 5D 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 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [00:02: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 E3 BF 00 00 0E 04 04 00 F5 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:02:56]wFMCommunicate OK [00:02:56]SAM_PROTO_GetFieldsCounters done [00:02:56]requested_item shift.num is exist - process it [00:02:56]requested_item shift.opened is exist - process it [00:02:56]req_shift_opened [00:02:56]FM_GetShiftState [00:02:56]SAM_PROTO_GetShiftState [00:02:56]wFMCommunicate request_size=4 [00:02:56]MH_SAM_APDU [00:02:56]CAPDU: 80 13 01 00 [00:02:56]Write to MH i2c: E2 08 00 54 5D 80 13 01 00 00 00 00 00 2E [00:02:56]Write i2c OK [00:02:56]MH_I2C_Read... [00:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:56]Read from MH i2c: E2 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 0E 00 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 0E 00 54 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 39 [00:02:56]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:02:56]wFMCommunicate OK [00:02:56]SAM_PROTO_GetShiftState done [00:02:56]FM_GetShiftState done [00:02:56]req_shift_opened done [00:02:56]requested_item shift.open_date is exist - process it [00:02:56]req_shift_open_date [00:02:56]FM_GetShiftState [00:02:56]SAM_PROTO_GetShiftState [00:02:56]wFMCommunicate request_size=4 [00:02:56]MH_SAM_APDU [00:02:56]CAPDU: 80 13 01 00 [00:02:56]Write to MH i2c: E2 08 00 55 5D 80 13 01 00 00 00 00 00 2F [00:02:56]Write i2c OK [00:02:56]MH_I2C_Read... [00:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:56]Read from MH i2c: E2 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 0E 00 [00:02:56]MH_I2C_Read... [00:02:56]Read from MH i2c: E2 0E 00 55 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 3A [00:02:56]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:02:56]wFMCommunicate OK [00:02:56]SAM_PROTO_GetShiftState done [00:02:56]FM_GetShiftState done [00:02:56]req_shift_open_date done [00:02:56]produce_requested_data done [00:02:56]produce_requested_data return {"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49123,"shift.num":245,"shift.opened":0,"shift.open_date":0} [00:02:56]process_action_free get_value [00:02:56]json_value_free [00:02:56]json_value_free done [00:02:56]process_json_proto returns [00:02:56]Send response to host [00:02:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000040","kkm.ver":"001","fm.sn":"0000000000875060","fd.num":49123,"shift.num":245,"shift.opened":0,"shift.open_date":0}}} [00:02:56]free response buf [00:02:56]execute_script done [00:02:56]execute_script returns [00:02:56]free content buf [00:02:56]Sock 7.Close socket [00:02:56]Sock 7.Thread stoped [00:02:56]accept exits with 9 [00:02:56]New connection [00:02:56]New thread 3066813796 created [00:02:56]Thread 3066670436 joined [00:02:56]Waiting for new connection... [00:02:56] Sock 9.Parse request [00:02:56]Sock 9.Check first char [00:02:56]Sock 9.First char is OK [00:02:56]request: POST /json_proto HTTP/1.0 [00:02:56]Method: POST [00:02:56]URL: /json_proto [00:02:56]Method is POST - this is cgi request [00:02:56]url: /json_proto [00:02:56]query_string will be loaded in cgi processing [00:02:56]execute_cgi json_proto POST (null) [00:02:56]execute_cgi path=json_proto method=POST [00:02:56]POST find Content-Length [00:02:56]Host: 172.17.56.67:8080 [00:02:56]Content-Length: 331 [00:02:56]Content-Type: application/json [00:02:56] [00:02:56]POST finish read [00:02:56]Found Content-Length = 331 [00:02:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:02:56]execute_script... [00:02:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:02:56]POST & json_proto [00:02:56]process_json_proto [00:02:56]json parsed OK: [00:02:56]protocol is kg_v1.0 [00:02:56]action value=get_value [00:02:56]process_action get_value [00:02:56]cmd_get_value [00:02:56]process_action get_value done [00:02:56]requested_data is exist [00:02:56]produce_requested_data [00:02:56]requested_item fm.sale.total is exist - process it [00:02:56]SAM_PROTO_GetFMData [00:02:56]wFMCommunicate request_size=4 [00:02:56]MH_SAM_APDU [00:02:56]CAPDU: 80 13 03 00 [00:02:56]Write to MH i2c: E2 08 00 56 5D 80 13 03 00 00 00 00 00 32 [00:02:56]Write i2c OK [00:02:56]MH_I2C_Read... [00:02:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:02:57]Read from MH i2c: E2 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 FD 00 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 FD 00 56 5D 00 BF 04 85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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 B2 [00:02:57]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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 [00:02:57]wFMCommunicate OK [00:02:57]wFMCommunicate request_size=4 [00:02:57]MH_SAM_APDU [00:02:57]CAPDU: 80 17 00 00 [00:02:57]Write to MH i2c: E2 08 00 57 5D 80 17 00 00 00 00 00 00 34 [00:02:57]Write i2c OK [00:02:57]MH_I2C_Read... [00:02:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:57]Read from MH i2c: E2 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 FD 00 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 FD 00 57 5D 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 E4 [00:02:57]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 [00:02:57]wFMCommunicate OK [00:02:57]wFMCommunicate request_size=4 [00:02:57]MH_SAM_APDU [00:02:57]CAPDU: 80 17 00 00 [00:02:57]Write to MH i2c: E2 08 00 58 5D 80 17 00 00 00 00 00 00 35 [00:02:57]Write i2c OK [00:02:57]MH_I2C_Read... [00:02:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:57]Read from MH i2c: E2 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 FD 00 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 FD 00 58 5D 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D9 [00:02:57]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 [00:02:57]wFMCommunicate OK [00:02:57]wFMCommunicate request_size=4 [00:02:57]MH_SAM_APDU [00:02:57]CAPDU: 80 17 00 00 [00:02:57]Write to MH i2c: E2 08 00 59 5D 80 17 00 00 00 00 00 00 36 [00:02:57]Write i2c OK [00:02:57]MH_I2C_Read... [00:02:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:57]Read from MH i2c: E2 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 FD 00 [00:02:57]MH_I2C_Read... [00:02:57]Read from MH i2c: E2 FD 00 59 5D 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 B0 [00:02:57]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 [00:02:57]wFMCommunicate OK [00:02:57]wFMCommunicate request_size=4 [00:02:57]MH_SAM_APDU [00:02:57]CAPDU: 80 17 00 00 [00:02:57]Write to MH i2c: E2 08 00 5A 5D 80 17 00 00 00 00 00 00 37 [00:02:57]Write i2c OK [00:02:57]MH_I2C_Read... [00:02:58]Read from MH i2c: E2 [00:02:58]MH_I2C_Read... [00:02:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:02:58]Read from MH i2c: E2 DC 00 [00:02:58]MH_I2C_Read... [00:02:58]Read from MH i2c: E2 DC 00 5A 5D 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 1B [00:02:58]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 [00:02:58]wFMCommunicate OK [00:02:58]SAM_PROTO_GetFMData done [00:02:58]requested_item fm.sale_refund.total is exist - process it [00:02:58]requested_item fm.buy.total is exist - process it [00:02:58]requested_item shift.sale.total is exist - process it [00:02:58]SAM_PROTO_GetShiftData [00:02:58]wFMCommunicate request_size=4 [00:02:58]MH_SAM_APDU [00:02:58]CAPDU: 80 13 02 00 [00:02:58]Write to MH i2c: E2 08 00 5B 5D 80 13 02 00 00 00 00 00 36 [00:02:58]Write i2c OK [00:02:58]MH_I2C_Read... [00:02:58]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:02:58]Read from MH i2c: E2 [00:02:58]MH_I2C_Read... [00:02:58]Read from MH i2c: E2 FD 00 [00:02:58]MH_I2C_Read... [00:02:58]Read from MH i2c: E2 FD 00 5B 5D 00 AD 04 AA 04 A9 04 6E 04 04 00 69 00 00 00 69 04 9A 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 D4 F0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 9E [00:02:58]RAPDU: AD 04 AA 04 A9 04 6E 04 04 00 69 00 00 00 69 04 9A 00 6F 04 04 00 69 00 00 00 B1 04 03 00 31 40 6A 70 04 03 00 B0 7C 69 72 04 02 00 81 C3 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 09 4A 0B 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 D4 F0 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:58]wFMCommunicate OK [00:02:58]wFMCommunicate request_size=4 [00:02:58]MH_SAM_APDU [00:02:58]CAPDU: 80 17 00 00 [00:02:58]Write to MH i2c: E2 08 00 5C 5D 80 17 00 00 00 00 00 00 39 [00:02:58]Write i2c OK [00:02:58]MH_I2C_Read... [00:02:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:58]Read from MH i2c: E2 [00:02:58]MH_I2C_Read... [00:02:58]Read from MH i2c: E2 FD 00 [00:02:58]MH_I2C_Read... [00:02:58]Read from MH i2c: E2 FD 00 5C 5D 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 4B [00:02:58]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:02:58]wFMCommunicate OK [00:02:58]wFMCommunicate request_size=4 [00:02:58]MH_SAM_APDU [00:02:58]CAPDU: 80 17 00 00 [00:02:58]Write to MH i2c: E2 08 00 5D 5D 80 17 00 00 00 00 00 00 3A [00:02:58]Write i2c OK [00:02:58]MH_I2C_Read... [00:02:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:59]Read from MH i2c: E2 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 FD 00 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 FD 00 5D 5D 00 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FE [00:02:59]RAPDU: 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:02:59]wFMCommunicate OK [00:02:59]wFMCommunicate request_size=4 [00:02:59]MH_SAM_APDU [00:02:59]CAPDU: 80 17 00 00 [00:02:59]Write to MH i2c: E2 08 00 5E 5D 80 17 00 00 00 00 00 00 3B [00:02:59]Write i2c OK [00:02:59]MH_I2C_Read... [00:02:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:02:59]Read from MH i2c: E2 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 FD 00 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 FD 00 5E 5D 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 90 00 B0 [00:02:59]RAPDU: 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 90 00 [00:02:59]wFMCommunicate OK [00:02:59]wFMCommunicate request_size=4 [00:02:59]MH_SAM_APDU [00:02:59]CAPDU: 80 17 00 00 [00:02:59]Write to MH i2c: E2 08 00 5F 5D 80 17 00 00 00 00 00 00 3C [00:02:59]Write i2c OK [00:02:59]MH_I2C_Read... [00:02:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 199! [00:02:59]Read from MH i2c: E2 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 CA 00 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 CA 00 5F 5D 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 21 [00:02:59]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:02:59]wFMCommunicate OK [00:02:59]SAM_PROTO_GetShiftData done [00:02:59]requested_item shift.sale.total_cash is exist - process it [00:02:59]requested_item shift.sale_refund.total is exist - process it [00:02:59]requested_item shift.sale_refund.total_cash is exist - process it [00:02:59]requested_item shift.buy.total is exist - process it [00:02:59]requested_item shift.buy.total_cash is exist - process it [00:02:59]produce_requested_data done [00:02:59]produce_requested_data return {"fm.sale.total":31581364.09,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":69632.49,"shift.sale.total_cash":69132.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:02:59]process_action_free get_value [00:02:59]json_value_free [00:02:59]json_value_free done [00:02:59]process_json_proto returns [00:02:59]Send response to host [00:02:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31581364.09,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":69632.49,"shift.sale.total_cash":69132.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:02:59]free response buf [00:02:59]execute_script done [00:02:59]execute_script returns [00:02:59]free content buf [00:02:59]Sock 9.Close socket [00:02:59]Sock 9.Thread stoped [00:02:59]accept exits with 7 [00:02:59]New connection [00:02:59]New thread 3066670436 created [00:02:59]Thread 3066813796 joined [00:02:59]Waiting for new connection... [00:02:59] Sock 7.Parse request [00:02:59]Sock 7.Check first char [00:02:59]Sock 7.First char is OK [00:02:59]request: POST /json_proto HTTP/1.0 [00:02:59]Method: POST [00:02:59]URL: /json_proto [00:02:59]Method is POST - this is cgi request [00:02:59]url: /json_proto [00:02:59]query_string will be loaded in cgi processing [00:02:59]execute_cgi json_proto POST (null) [00:02:59]execute_cgi path=json_proto method=POST [00:02:59]POST find Content-Length [00:02:59]Host: 172.17.56.67:8080 [00:02:59]Content-Length: 247 [00:02:59]Content-Type: application/json [00:02:59] [00:02:59]POST finish read [00:02:59]Found Content-Length = 247 [00:02:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0423\u043C\u043E\u0440\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:59]execute_script... [00:02:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0423\u043C\u043E\u0440\u043E\u0432 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:02:59]POST & json_proto [00:02:59]process_json_proto [00:02:59]json parsed OK: [00:02:59]protocol is kg_v1.0 [00:02:59]action value=open_shift [00:02:59]process_action open_shift [00:02:59]cmd_open_shift [00:02:59]MH_GetDate [00:02:59]Write to MH i2c: F0 00 00 60 5D AC [00:02:59]Write i2c OK [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: F0 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: F0 09 00 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: F0 09 00 60 5D 00 C3 3C B8 65 26 5D 9E 65 57 [00:02:59]GetLastDocTimeStamp 1706572527 [00:02:59]current date 1706572995 [00:02:59]FM_GetShiftState [00:02:59]SAM_PROTO_GetShiftState [00:02:59]wFMCommunicate request_size=4 [00:02:59]MH_SAM_APDU [00:02:59]CAPDU: 80 13 01 00 [00:02:59]Write to MH i2c: E2 08 00 61 5D 80 13 01 00 00 00 00 00 3B [00:02:59]Write i2c OK [00:02:59]MH_I2C_Read... [00:02:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:02:59]Read from MH i2c: E2 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 0E 00 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 0E 00 61 5D 00 09 00 00 00 00 00 00 00 00 00 00 90 00 46 [00:02:59]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:02:59]wFMCommunicate OK [00:02:59]SAM_PROTO_GetShiftState done [00:02:59]FM_GetShiftState done [00:02:59]KKMCreateOpenShiftDocument [00:02:59]Load OK [00:02:59]Malloc new data [00:02:59]MH_GetDate [00:02:59]Write to MH i2c: F0 00 00 62 5D AE [00:02:59]Write i2c OK [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: F0 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: F0 09 00 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: F0 09 00 62 5D 00 C3 3C B8 65 26 5D 9E 65 59 [00:02:59]Malloc new data [00:02:59]KKMCreateOpenShiftDocument OK [00:02:59]KKMSetOpenShiftData OK [00:02:59]ProcessDocumentItem done err = 0, tmpTLVsize=195 [00:02:59]tlvbuf is 0132E420 [00:02:59]KKMLoadAndSignOpenShiftData [00:02:59]SAM_PROTO_ProcessDocument [00:02:59]wFMCommunicate request_size=9 [00:02:59]MH_SAM_APDU [00:02:59]CAPDU: 80 15 01 00 04 02 00 C3 00 [00:02:59]Write to MH i2c: E2 0C 00 63 5D 80 15 01 00 04 00 02 00 C3 00 00 00 0C [00:02:59]Write i2c OK [00:02:59]MH_I2C_Read... [00:02:59]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:02:59]Read from MH i2c: E2 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 03 00 [00:02:59]MH_I2C_Read... [00:02:59]Read from MH i2c: E2 03 00 63 5D 00 90 00 34 [00:02:59]RAPDU: 90 00 [00:02:59]wFMCommunicate OK [00:02:59]wFMCommunicate request_size=23 [00:02:59]MH_SAM_APDU [00:02:59]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:02:59]Write to MH i2c: E2 1A 00 64 5D 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 36 [00:03:00]Write i2c OK [00:03:00]MH_I2C_Read... [00:03:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:00]Read from MH i2c: E2 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 03 00 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 03 00 64 5D 00 90 00 35 [00:03:00]RAPDU: 90 00 [00:03:00]wFMCommunicate OK [00:03:00]wFMCommunicate request_size=26 [00:03:00]MH_SAM_APDU [00:03:00]CAPDU: 80 15 02 00 15 FD 03 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 [00:03:00]Write to MH i2c: E2 1D 00 65 5D 80 15 02 00 15 00 FD 03 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 00 00 4A [00:03:00]Write i2c OK [00:03:00]MH_I2C_Read... [00:03:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:00]Read from MH i2c: E2 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 03 00 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 03 00 65 5D 00 90 00 36 [00:03:00]RAPDU: 90 00 [00:03:00]wFMCommunicate OK [00:03:00]wFMCommunicate request_size=87 [00:03:00]MH_SAM_APDU [00:03:00]CAPDU: 80 15 02 00 52 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 [00:03:00]Write to MH i2c: E2 5A 00 66 5D 80 15 02 00 52 00 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 00 00 E7 [00:03:00]Write i2c OK [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 [00:03:00]MH_I2C_Read... [00:03:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:00]Read from MH i2c: E2 03 00 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 03 00 66 5D 00 90 00 37 [00:03:00]RAPDU: 90 00 [00:03:00]wFMCommunicate OK [00:03:00]wFMCommunicate request_size=51 [00:03:00]MH_SAM_APDU [00:03:00]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:03:00]Write to MH i2c: E2 36 00 67 5D 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 E9 [00:03:00]Write i2c OK [00:03:00]MH_I2C_Read... [00:03:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:00]Read from MH i2c: E2 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 03 00 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 03 00 67 5D 00 90 00 38 [00:03:00]RAPDU: 90 00 [00:03:00]wFMCommunicate OK [00:03:00]wFMCommunicate request_size=13 [00:03:00]MH_SAM_APDU [00:03:00]CAPDU: 80 15 02 00 08 F4 03 04 00 C3 3C B8 65 [00:03:00]Write to MH i2c: E2 10 00 68 5D 80 15 02 00 08 00 F4 03 04 00 C3 3C B8 65 00 00 6C [00:03:00]Write i2c OK [00:03:00]MH_I2C_Read... [00:03:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:00]Read from MH i2c: E2 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 03 00 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 03 00 68 5D 00 90 00 39 [00:03:00]RAPDU: 90 00 [00:03:00]wFMCommunicate OK [00:03:00]wFMCommunicate request_size=25 [00:03:00]MH_SAM_APDU [00:03:00]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 [00:03:00]Write to MH i2c: E2 1C 00 69 5D 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 A6 [00:03:00]Write i2c OK [00:03:00]MH_I2C_Read... [00:03:00]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:00]Read from MH i2c: E2 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 03 00 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 03 00 69 5D 00 90 00 3A [00:03:00]RAPDU: 90 00 [00:03:00]wFMCommunicate OK [00:03:00]wFMCommunicate request_size=4 [00:03:00]MH_SAM_APDU [00:03:00]CAPDU: 80 15 03 00 [00:03:00]Write to MH i2c: E2 08 00 6A 5D 80 15 03 00 00 00 00 00 48 [00:03:00]Write i2c OK [00:03:00]MH_I2C_Read... [00:03:00]OFD Sender: No OFD packet to send [00:03:00]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:03:00]Read from MH i2c: E2 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 38 00 [00:03:00]MH_I2C_Read... [00:03:00]Read from MH i2c: E2 38 00 6A 5D 00 33 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 10 04 04 00 E4 BF 00 00 0E 04 04 00 F6 00 00 00 35 04 06 00 63 69 EF F3 CA D1 90 00 F0 [00:03:00]RAPDU: 33 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 10 04 04 00 E4 BF 00 00 0E 04 04 00 F6 00 00 00 35 04 06 00 63 69 EF F3 CA D1 90 00 [00:03:00]wFMCommunicate OK [00:03:00]SAM_PROTO_ProcessDocument answer len = 51 [00:03:00]SAM_PROTO_ProcessDocument done [00:03:00]SetTLVBufToDocument [00:03:00]Processing tag 1209 (04B9) [00:03:00]Malloc new data [00:03:00]Processing tag 1041 (0411) [00:03:00]Processing tag 1040 (0410) [00:03:00]Malloc new data [00:03:00]Processing tag 1038 (040E) [00:03:00]Malloc new data [00:03:00]Processing tag 1077 (0435) [00:03:00]Malloc new data [00:03:00]SetTLVBufToDocument err=0 [00:03:00]KKMLoadAndSignOpenShiftData store KKM data [00:03:00]KKMLoadAndSignOpenShiftData err=0 [00:03:00]Отчет об открытии Ñмены ФФД: 1.0 ИÐÐ: 02508201610067 КаÑÑир: Уморов С. ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" 30.01.2024 00:03 Смена: 246 РÐМ: 0000000000092723 ЗÐМ: 0300000040 ФД: 49124 ФМ: 0000000000875060 ФПД: 109306648447697 [00:03:00]StoreToDocumentArchive [00:03:00]shift 246 fd 49124 [00:03:00]Create dir for shift 0246 [00:03:00]save to /storage/0246/doc_00049124 [00:03:00]save last doc name /storage/0246/doc_00049124 to /storage/kkm_last_doc_name [00:03:00]save OK [00:03:00]Clear old archive folders... [00:03:00]Remove dir /storage/0245 [00:03:00]opendir ok [00:03:00]file . [00:03:00]file .. [00:03:00]file doc_00049017 [00:03:00]remove file /storage/0245/doc_00049017 [00:03:00]file doc_00049018 [00:03:00]remove file /storage/0245/doc_00049018 [00:03:00]file doc_00049019 [00:03:00]remove file /storage/0245/doc_00049019 [00:03:00]file doc_00049020 [00:03:00]remove file /storage/0245/doc_00049020 [00:03:00]file doc_00049021 [00:03:00]remove file /storage/0245/doc_00049021 [00:03:00]file doc_00049022 [00:03:00]remove file /storage/0245/doc_00049022 [00:03:00]file doc_00049023 [00:03:00]remove file /storage/0245/doc_00049023 [00:03:00]file doc_00049024 [00:03:00]remove file /storage/0245/doc_00049024 [00:03:00]file doc_00049025 [00:03:00]remove file /storage/0245/doc_00049025 [00:03:00]file doc_00049026 [00:03:00]remove file /storage/0245/doc_00049026 [00:03:00]file doc_00049027 [00:03:00]remove file /storage/0245/doc_00049027 [00:03:00]file doc_00049028 [00:03:00]remove file /storage/0245/doc_00049028 [00:03:00]file doc_00049029 [00:03:00]remove file /storage/0245/doc_00049029 [00:03:00]file doc_00049030 [00:03:00]remove file /storage/0245/doc_00049030 [00:03:00]file doc_00049031 [00:03:00]remove file /storage/0245/doc_00049031 [00:03:00]file doc_00049032 [00:03:00]remove file /storage/0245/doc_00049032 [00:03:00]file doc_00049033 [00:03:00]remove file /storage/0245/doc_00049033 [00:03:00]file doc_00049034 [00:03:00]remove file /storage/0245/doc_00049034 [00:03:00]file doc_00049035 [00:03:00]remove file /storage/0245/doc_00049035 [00:03:00]file doc_00049036 [00:03:00]remove file /storage/0245/doc_00049036 [00:03:00]file doc_00049037 [00:03:00]remove file /storage/0245/doc_00049037 [00:03:00]file doc_00049038 [00:03:00]remove file /storage/0245/doc_00049038 [00:03:00]file doc_00049039 [00:03:00]remove file /storage/0245/doc_00049039 [00:03:00]file doc_00049040 [00:03:00]remove file /storage/0245/doc_00049040 [00:03:00]file doc_00049041 [00:03:00]remove file /storage/0245/doc_00049041 [00:03:00]file doc_00049042 [00:03:00]remove file /storage/0245/doc_00049042 [00:03:00]file doc_00049043 [00:03:00]remove file /storage/0245/doc_00049043 [00:03:00]file doc_00049044 [00:03:00]remove file /storage/0245/doc_00049044 [00:03:00]file doc_00049045 [00:03:00]remove file /storage/0245/doc_00049045 [00:03:00]file doc_00049046 [00:03:00]remove file /storage/0245/doc_00049046 [00:03:00]file doc_00049047 [00:03:00]remove file /storage/0245/doc_00049047 [00:03:00]file doc_00049048 [00:03:00]remove file /storage/0245/doc_00049048 [00:03:00]file doc_00049049 [00:03:00]remove file /storage/0245/doc_00049049 [00:03:00]file doc_00049050 [00:03:00]remove file /storage/0245/doc_00049050 [00:03:00]file doc_00049051 [00:03:00]remove file /storage/0245/doc_00049051 [00:03:00]file doc_00049052 [00:03:00]remove file /storage/0245/doc_00049052 [00:03:00]file doc_00049053 [00:03:00]remove file /storage/0245/doc_00049053 [00:03:00]file doc_00049054 [00:03:00]remove file /storage/0245/doc_00049054 [00:03:00]file doc_00049055 [00:03:00]remove file /storage/0245/doc_00049055 [00:03:00]file doc_00049056 [00:03:00]remove file /storage/0245/doc_00049056 [00:03:00]file doc_00049057 [00:03:00]remove file /storage/0245/doc_00049057 [00:03:00]file doc_00049058 [00:03:00]remove file /storage/0245/doc_00049058 [00:03:00]file doc_00049059 [00:03:00]remove file /storage/0245/doc_00049059 [00:03:00]file doc_00049060 [00:03:00]remove file /storage/0245/doc_00049060 [00:03:00]file doc_00049061 [00:03:00]remove file /storage/0245/doc_00049061 [00:03:00]file doc_00049062 [00:03:00]remove file /storage/0245/doc_00049062 [00:03:00]file doc_00049063 [00:03:00]remove file /storage/0245/doc_00049063 [00:03:00]file doc_00049064 [00:03:00]remove file /storage/0245/doc_00049064 [00:03:00]file doc_00049065 [00:03:00]remove file /storage/0245/doc_00049065 [00:03:00]file doc_00049066 [00:03:00]remove file /storage/0245/doc_00049066 [00:03:00]file doc_00049067 [00:03:00]remove file /storage/0245/doc_00049067 [00:03:00]file doc_00049068 [00:03:00]remove file /storage/0245/doc_00049068 [00:03:00]file doc_00049069 [00:03:00]remove file /storage/0245/doc_00049069 [00:03:00]file doc_00049070 [00:03:00]remove file /storage/0245/doc_00049070 [00:03:00]file doc_00049071 [00:03:00]remove file /storage/0245/doc_00049071 [00:03:00]file doc_00049072 [00:03:00]remove file /storage/0245/doc_00049072 [00:03:00]file doc_00049073 [00:03:00]remove file /storage/0245/doc_00049073 [00:03:00]file doc_00049074 [00:03:00]remove file /storage/0245/doc_00049074 [00:03:00]file doc_00049075 [00:03:00]remove file /storage/0245/doc_00049075 [00:03:00]file doc_00049076 [00:03:00]remove file /storage/0245/doc_00049076 [00:03:00]file doc_00049077 [00:03:00]remove file /storage/0245/doc_00049077 [00:03:00]file doc_00049078 [00:03:00]remove file /storage/0245/doc_00049078 [00:03:00]file doc_00049079 [00:03:00]remove file /storage/0245/doc_00049079 [00:03:00]file doc_00049080 [00:03:00]remove file /storage/0245/doc_00049080 [00:03:00]file doc_00049081 [00:03:00]remove file /storage/0245/doc_00049081 [00:03:00]file doc_00049082 [00:03:00]remove file /storage/0245/doc_00049082 [00:03:00]file doc_00049083 [00:03:00]remove file /storage/0245/doc_00049083 [00:03:00]file doc_00049084 [00:03:00]remove file /storage/0245/doc_00049084 [00:03:00]file doc_00049085 [00:03:00]remove file /storage/0245/doc_00049085 [00:03:00]file doc_00049086 [00:03:00]remove file /storage/0245/doc_00049086 [00:03:00]file doc_00049087 [00:03:00]remove file /storage/0245/doc_00049087 [00:03:01]file doc_00049088 [00:03:01]remove file /storage/0245/doc_00049088 [00:03:01]file doc_00049089 [00:03:01]remove file /storage/0245/doc_00049089 [00:03:01]file doc_00049090 [00:03:01]remove file /storage/0245/doc_00049090 [00:03:01]file doc_00049091 [00:03:01]remove file /storage/0245/doc_00049091 [00:03:01]file doc_00049092 [00:03:01]remove file /storage/0245/doc_00049092 [00:03:01]file doc_00049093 [00:03:01]remove file /storage/0245/doc_00049093 [00:03:01]file doc_00049094 [00:03:01]remove file /storage/0245/doc_00049094 [00:03:01]file doc_00049095 [00:03:01]remove file /storage/0245/doc_00049095 [00:03:01]file doc_00049096 [00:03:01]remove file /storage/0245/doc_00049096 [00:03:01]file doc_00049097 [00:03:01]remove file /storage/0245/doc_00049097 [00:03:01]file doc_00049098 [00:03:01]remove file /storage/0245/doc_00049098 [00:03:01]file doc_00049099 [00:03:01]remove file /storage/0245/doc_00049099 [00:03:01]file doc_00049100 [00:03:01]remove file /storage/0245/doc_00049100 [00:03:01]file doc_00049101 [00:03:01]remove file /storage/0245/doc_00049101 [00:03:01]file doc_00049102 [00:03:01]remove file /storage/0245/doc_00049102 [00:03:01]file doc_00049103 [00:03:01]remove file /storage/0245/doc_00049103 [00:03:01]file doc_00049104 [00:03:01]remove file /storage/0245/doc_00049104 [00:03:01]file doc_00049105 [00:03:01]remove file /storage/0245/doc_00049105 [00:03:01]file doc_00049106 [00:03:01]remove file /storage/0245/doc_00049106 [00:03:01]file doc_00049107 [00:03:01]remove file /storage/0245/doc_00049107 [00:03:01]file doc_00049108 [00:03:01]remove file /storage/0245/doc_00049108 [00:03:01]file doc_00049109 [00:03:01]remove file /storage/0245/doc_00049109 [00:03:01]file doc_00049110 [00:03:01]remove file /storage/0245/doc_00049110 [00:03:01]file doc_00049111 [00:03:01]remove file /storage/0245/doc_00049111 [00:03:01]file doc_00049112 [00:03:01]remove file /storage/0245/doc_00049112 [00:03:01]file doc_00049113 [00:03:01]remove file /storage/0245/doc_00049113 [00:03:01]file doc_00049114 [00:03:01]remove file /storage/0245/doc_00049114 [00:03:01]file doc_00049115 [00:03:01]remove file /storage/0245/doc_00049115 [00:03:01]file doc_00049116 [00:03:01]remove file /storage/0245/doc_00049116 [00:03:01]file doc_00049117 [00:03:01]remove file /storage/0245/doc_00049117 [00:03:01]file doc_00049118 [00:03:01]remove file /storage/0245/doc_00049118 [00:03:01]file doc_00049119 [00:03:01]remove file /storage/0245/doc_00049119 [00:03:01]file doc_00049120 [00:03:01]remove file /storage/0245/doc_00049120 [00:03:01]file doc_00049121 [00:03:01]remove file /storage/0245/doc_00049121 [00:03:01]file doc_00049122 [00:03:01]remove file /storage/0245/doc_00049122 [00:03:01]file doc_00049123 [00:03:01]remove file /storage/0245/doc_00049123 [00:03:01]remove dir /storage/0245 [00:03:01]ProcessDocumentItem done err = 0, tmpTLVsize=246 [00:03:01]tlvbuf is 01332FE0 [00:03:01]SAM_PROTO_ClearQueue [00:03:01]wFMCommunicate request_size=4 [00:03:01]MH_SAM_APDU [00:03:01]CAPDU: 80 09 00 00 [00:03:01]Write to MH i2c: E2 08 00 6B 5D 80 09 00 00 00 00 00 00 3A [00:03:01]Write i2c OK [00:03:01]MH_I2C_Read... [00:03:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:01]Read from MH i2c: E2 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 03 00 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 03 00 6B 5D 00 90 00 3C [00:03:01]RAPDU: 90 00 [00:03:01]wFMCommunicate OK [00:03:01]SAM_PROTO_ClearQueue done [00:03:01]KKMCreateOFDPacket [00:03:01]OFDProtocolAddRootSTLVToBuf [00:03:01]FM_MakeSignedData [00:03:01]FM_MakeSignedData [00:03:01]SAM_PROTO_SignData [00:03:01]wFMCommunicate request_size=4 [00:03:01]MH_SAM_APDU [00:03:01]CAPDU: 80 0D 01 02 [00:03:01]Write to MH i2c: E2 08 00 6C 5D 80 0D 01 02 00 00 00 00 42 [00:03:01]Write i2c OK [00:03:01]MH_I2C_Read... [00:03:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:01]Read from MH i2c: E2 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 03 00 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 03 00 6C 5D 00 90 00 3D [00:03:01]RAPDU: 90 00 [00:03:01]wFMCommunicate OK [00:03:01]wFMCommunicate request_size=255 [00:03:01]MH_SAM_APDU [00:03:01]CAPDU: 80 0D 02 02 FA 02 00 F6 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C3 3C B8 65 0E 04 04 00 F6 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E4 BF 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 63 69 EF F3 CA D1 [00:03:01]Write to MH i2c: E2 02 01 6D 5D 80 0D 02 02 FA 00 02 00 F6 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C3 3C B8 65 0E 04 04 00 F6 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E4 BF 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 63 69 EF F3 CA D1 00 00 C5 [00:03:01]Write i2c OK [00:03:01]MH_I2C_Read... [00:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:01]Read from MH i2c: E2 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 03 00 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 03 00 6D 5D 00 90 00 3E [00:03:01]RAPDU: 90 00 [00:03:01]wFMCommunicate OK [00:03:01]wFMCommunicate request_size=4 [00:03:01]MH_SAM_APDU [00:03:01]CAPDU: 80 0D 03 02 [00:03:01]Write to MH i2c: E2 08 00 6E 5D 80 0D 03 02 00 00 00 00 46 [00:03:01]Write i2c OK [00:03:01]MH_I2C_Read... [00:03:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:01]Read from MH i2c: E2 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 0B 00 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 0B 00 6E 5D 00 C0 B1 1C DB EC DB 32 CF 90 00 77 [00:03:01]RAPDU: C0 B1 1C DB EC DB 32 CF 90 00 [00:03:01]wFMCommunicate OK [00:03:01]SAM_PROTO_SignData done [00:03:01]FM_MakeSignedData done [00:03:01]CreateOFDProtocolMessage [00:03:01]wFMCommunicate request_size=4 [00:03:01]MH_SAM_APDU [00:03:01]CAPDU: 80 11 00 00 [00:03:01]Write to MH i2c: E2 08 00 6F 5D 80 11 00 00 00 00 00 00 46 [00:03:01]Write i2c OK [00:03:01]MH_I2C_Read... [00:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:01]Read from MH i2c: E2 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 17 00 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: E2 17 00 6F 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 93 [00:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:03:01]wFMCommunicate OK [00:03:01]CreateOFDProtocolMessage done [00:03:01]OFDSenderStorePacket 49124 [00:03:01]StoreOFDPacket docnum=49124 [00:03: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 0A 01 00 00 58 1A 02 01 86 86 5A 02 01 00 02 00 F6 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C3 3C B8 65 0E 04 04 00 F6 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E4 BF 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 63 69 EF F3 CA D1 C0 B1 1C DB EC DB 32 CF [00:03:01]CheckFolder [00:03:01]dirname=/storage/ofd_packets [00:03:01]CheckFolder done [00:03:01]ProducePacketName [00:03:01]name=ofd_packets/00049124 [00:03:01]NVStorageSaveData ofd_packets/00049124 [00:03:01]File name is /storage/ofd_packets/00049124 [00:03:01]Write 296 bytes [00:03:01]NVStorageSaveData done [00:03:01]OFDSenderStorePacket done [00:03:01]KKMCreateOFDPacket done [00:03:01]NVStorageSaveData kkm_last_timestamp [00:03:01]File name is /storage/kkm_last_timestamp [00:03:01]Write 4 bytes [00:03:01]NVStorageSaveData done [00:03:01]ExternCall_PrintAddStr [00:03:01]wPrintStart [00:03:01]Write to MH i2c: 01 00 00 70 5D CD [00:03:01]Write i2c OK [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: 01 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: 01 07 00 [00:03:01]MH_I2C_Read... [00:03:01]Read from MH i2c: 01 07 00 70 5D 00 00 00 00 00 FF 0F E2 [00:03:01]RasterBufferAndPrint [00:03:01]line Отчет об открытии Ñмены [00:03:01]line ФФД: 1.0 [00:03:01]line ИÐÐ: 02508201610067 [00:03:01]line КаÑÑир: Уморов С. [00:03:01]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [00:03:01]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [00:03:01]line 30.01.2024 00:03 [00:03:01]line Смена: 246 [00:03:01]line РÐМ: 0000000000092723 [00:03:01]line ЗÐМ: 0300000040 [00:03:01]line ФД: 49124 [00:03:01]line ФМ: 0000000000875060 [00:03:01]line ФПД: 109306648447697 [00:03:01]written 0, free lines is 4095 [00:03:02]OFD Sender: Processing packet 49124 [packets to send 12, broken 11] [00:03:02]ProducePacketName [00:03:02]name=ofd_packets/00049124 [00:03:02]OFD Sender: To server: ‡•öpG, [00:03:02]CommunicateWithHost lk.salyk.kg:30040 [00:03:02]ConnectInit lk.salyk.kg [00:03:02]Connected sock=10 [00:03:02]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 0A 01 00 00 58 1A 02 01 86 86 5A 02 01 00 02 00 F6 00 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 11 00 D0 A3 D0 BC D0 BE D1 80 D0 BE D0 B2 20 D0 A1 2E 20 F1 03 4E 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D0 B0 D1 80 D0 B0 2D D0 9A D0 BE D0 BE 2C 20 D1 83 D0 BB 2E 20 D0 91 D0 B0 D1 82 D1 8B D1 80 D0 BA D0 B0 D0 BD D0 B0 20 35 39 2C 20 34 32 2E 32 31 37 34 38 32 2C 20 37 36 2E 36 32 37 35 30 38 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 32 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 C3 3C B8 65 0E 04 04 00 F6 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 10 04 04 00 E4 BF 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 63 69 EF F3 CA D1 C0 B1 1C DB EC DB 32 CF [00:03:02]Write to MH i2c: 01 00 00 82 5D DF [00:03:02]Write i2c OK [00:03:02]MH_I2C_Read... [00:03:02]Read from MH i2c: 01 [00:03:02]MH_I2C_Read... [00:03:02]Read from MH i2c: 01 07 00 [00:03:02]MH_I2C_Read... [00:03:02]Read from MH i2c: 01 07 00 82 5D 00 00 00 00 00 7B 0E 6F [00:03:02]RasterBufferAndPrint [00:03:02]line [00:03:02]line [00:03:02]line [00:03:02]line [00:03:02]line [00:03:02]written 0, free lines is 3727 [00:03:02]MH_Cut [00:03:02]Write to MH i2c: D1 01 00 89 5D 01 B8 [00:03:02]Write i2c OK [00:03:02]MH_I2C_Read... [00:03:02]Read from MH i2c: D1 [00:03:02]MH_I2C_Read... [00:03:02]Read from MH i2c: D1 01 00 [00:03:02]MH_I2C_Read... [00:03:02]Read from MH i2c: D1 01 00 89 5D 00 B7 [00:03:02]Write to MH i2c: 01 00 00 8A 5D E7 [00:03:02]Write i2c OK [00:03:02]MH_I2C_Read... [00:03: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 0A 1D 47 00 9B A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E4 BF 00 00 F4 03 04 00 BB E8 B7 65 B6 04 01 00 00 5E D4 D5 13 FD 55 A9 97 [00:03:02]CommunicateWithHost err = 0 [00:03:02]CheckOFDResponse [00:03:02]1017 (14) - 77093643461234 [00:03:02]1041 (16) - 0000000000875060 [00:03:02]1040 (4) - 49124 [00:03:02]1012 (4) - 29.01.2024 18:04 [00:03:02]1206 (1) - 0 [00:03:02]OFD Sender: Remove packet 49124 [00:03:02]ProducePacketName [00:03:02]name=ofd_packets/00049124 [00:03:02]NVStorageDeleteData [00:03:02]*** Cut start [00:03:02]*** Partial cut [00:03:02]*** CUTSNS_PIN = 1 [00:03:02]*** CUTSNS_PIN = 0 [00:03:02]*** Brake cut motor [00:03:02]OFD Sender: No OFD packet to send [00:03:03]Read from MH i2c: 01 [00:03:03]MH_I2C_Read... [00:03:03]*** Stop cut motor [00:03:03]*** Cut end [00:03:03]Read from MH i2c: 01 07 00 [00:03:03]MH_I2C_Read... [00:03:03]Read from MH i2c: 01 07 00 8A 5D 00 00 00 00 00 FF 0F FC [00:03:03]process_action open_shift done [00:03:03]requested_data is exist [00:03:03]produce_requested_data [00:03:03]requested_item fd.num is exist - process it [00:03:03]SAM_PROTO_GetFieldsCounters [00:03:03]wFMCommunicate request_size=4 [00:03:03]MH_SAM_APDU [00:03:03]CAPDU: 80 13 00 00 [00:03:03]Write to MH i2c: E2 08 00 8B 5D 80 13 00 00 00 00 00 00 64 [00:03:03]Write i2c OK [00:03:03]MH_I2C_Read... [00:03:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:03]Read from MH i2c: E2 [00:03:03]MH_I2C_Read... [00:03:03]Read from MH i2c: E2 62 00 [00:03:03]MH_I2C_Read... [00:03:03]Read from MH i2c: E2 62 00 8B 5D 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 E4 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [00:03: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 E4 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:03]wFMCommunicate OK [00:03:03]SAM_PROTO_GetFieldsCounters done [00:03:03]requested_item shift.num is exist - process it [00:03:03]requested_item shift.opened is exist - process it [00:03:03]req_shift_opened [00:03:03]FM_GetShiftState [00:03:03]SAM_PROTO_GetShiftState [00:03:03]wFMCommunicate request_size=4 [00:03:03]MH_SAM_APDU [00:03:03]CAPDU: 80 13 01 00 [00:03:03]Write to MH i2c: E2 08 00 8C 5D 80 13 01 00 00 00 00 00 66 [00:03:03]Write i2c OK [00:03:03]MH_I2C_Read... [00:03:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:03]Read from MH i2c: E2 [00:03:03]MH_I2C_Read... [00:03:03]Read from MH i2c: E2 0E 00 [00:03:03]MH_I2C_Read... [00:03:03]Read from MH i2c: E2 0E 00 8C 5D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 8E [00:03:03]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [00:03:03]wFMCommunicate OK [00:03:03]SAM_PROTO_GetShiftState done [00:03:03]FM_GetShiftState done [00:03:03]req_shift_opened done [00:03:03]requested_item shift.open_date is exist - process it [00:03:03]req_shift_open_date [00:03:03]req_shift_open_date done [00:03:03]produce_requested_data done [00:03:03]produce_requested_data return {"fd.num":49124,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [00:03:03]process_action_free open_shift [00:03:03]json_value_free [00:03:03]json_value_free done [00:03:03]process_json_proto returns [00:03:03]Send response to host [00:03:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":49124,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [00:03:03]free response buf [00:03:03]execute_script done [00:03:03]execute_script returns [00:03:03]free content buf [00:03:03]Sock 7.Close socket [00:03:03]Sock 7.Thread stoped [00:03:03]accept exits with 9 [00:03:03]New connection [00:03:03]New thread 3066813796 created [00:03:03]Thread 3066670436 joined [00:03:03]Waiting for new connection... [00:03:03] Sock 9.Parse request [00:03:03]Sock 9.Check first char [00:03:03]Sock 9.First char is OK [00:03:03]request: POST /json_proto HTTP/1.0 [00:03:03]Method: POST [00:03:03]URL: /json_proto [00:03:03]Method is POST - this is cgi request [00:03:03]url: /json_proto [00:03:03]query_string will be loaded in cgi processing [00:03:03]execute_cgi json_proto POST (null) [00:03:03]execute_cgi path=json_proto method=POST [00:03:03]POST find Content-Length [00:03:03]Host: 172.17.56.67:8080 [00:03:03]Content-Length: 331 [00:03:03]Content-Type: application/json [00:03:03] [00:03:03]POST finish read [00:03:03]Found Content-Length = 331 [00:03:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:03]execute_script... [00:03:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:03]POST & json_proto [00:03:03]process_json_proto [00:03:03]json parsed OK: [00:03:03]protocol is kg_v1.0 [00:03:03]action value=get_value [00:03:03]process_action get_value [00:03:03]cmd_get_value [00:03:03]process_action get_value done [00:03:03]requested_data is exist [00:03:03]produce_requested_data [00:03:03]requested_item fm.sale.total is exist - process it [00:03:03]SAM_PROTO_GetFMData [00:03:03]wFMCommunicate request_size=4 [00:03:03]MH_SAM_APDU [00:03:03]CAPDU: 80 13 03 00 [00:03:03]Write to MH i2c: E2 08 00 8D 5D 80 13 03 00 00 00 00 00 69 [00:03:03]Write i2c OK [00:03:03]MH_I2C_Read... [00:03:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:03]Read from MH i2c: E2 [00:03:03]MH_I2C_Read... [00:03:03]Read from MH i2c: E2 FD 00 [00:03:03]MH_I2C_Read... [00:03:03]Read from MH i2c: E2 FD 00 8D 5D 00 BF 04 85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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 [00:03:03]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 FA BD 00 00 69 04 A1 00 6F 04 04 00 F6 BD 00 00 B1 04 04 00 59 56 3D BC 70 04 04 00 C4 43 84 AF 72 04 04 00 95 12 B9 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 A1 EA FF 13 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 86 A0 AA 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 [00:03:04]wFMCommunicate OK [00:03:04]wFMCommunicate request_size=4 [00:03:04]MH_SAM_APDU [00:03:04]CAPDU: 80 17 00 00 [00:03:04]Write to MH i2c: E2 08 00 8E 5D 80 17 00 00 00 00 00 00 6B [00:03:04]Write i2c OK [00:03:04]MH_I2C_Read... [00:03:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:04]Read from MH i2c: E2 [00:03:04]MH_I2C_Read... [00:03:04]Read from MH i2c: E2 FD 00 [00:03:04]MH_I2C_Read... [00:03:04]Read from MH i2c: E2 FD 00 8E 5D 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 1B [00:03:04]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 [00:03:04]wFMCommunicate OK [00:03:04]wFMCommunicate request_size=4 [00:03:04]MH_SAM_APDU [00:03:04]CAPDU: 80 17 00 00 [00:03:04]Write to MH i2c: E2 08 00 8F 5D 80 17 00 00 00 00 00 00 6C [00:03:04]Write i2c OK [00:03:04]MH_I2C_Read... [00:03:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:04]Read from MH i2c: E2 [00:03:04]MH_I2C_Read... [00:03:04]Read from MH i2c: E2 FD 00 [00:03:04]MH_I2C_Read... [00:03:04]Read from MH i2c: E2 FD 00 8F 5D 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 10 [00:03:04]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 [00:03:04]wFMCommunicate OK [00:03:04]wFMCommunicate request_size=4 [00:03:04]MH_SAM_APDU [00:03:04]CAPDU: 80 17 00 00 [00:03:04]Write to MH i2c: E2 08 00 90 5D 80 17 00 00 00 00 00 00 6D [00:03:04]Write i2c OK [00:03:04]MH_I2C_Read... [00:03:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:05]Read from MH i2c: E2 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: E2 FD 00 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: E2 FD 00 90 5D 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 E7 [00:03:05]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 [00:03:05]wFMCommunicate OK [00:03:05]wFMCommunicate request_size=4 [00:03:05]MH_SAM_APDU [00:03:05]CAPDU: 80 17 00 00 [00:03:05]Write to MH i2c: E2 08 00 91 5D 80 17 00 00 00 00 00 00 6E [00:03:05]Write i2c OK [00:03:05]MH_I2C_Read... [00:03:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:03:05]Read from MH i2c: E2 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: E2 DC 00 [00:03:05]MH_I2C_Read... [00:03:05]Read from MH i2c: E2 DC 00 91 5D 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 52 [00:03:05]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 [00:03:05]wFMCommunicate OK [00:03:05]SAM_PROTO_GetFMData done [00:03:05]requested_item fm.sale_refund.total is exist - process it [00:03:05]requested_item fm.buy.total is exist - process it [00:03:05]requested_item shift.sale.total is exist - process it [00:03:05]SAM_PROTO_GetShiftData [00:03:05]wFMCommunicate request_size=4 [00:03:05]MH_SAM_APDU [00:03:05]CAPDU: 80 13 02 00 [00:03:05]Write to MH i2c: E2 08 00 92 5D 80 13 02 00 00 00 00 00 6D [00:03:05]Write i2c OK [00:03:05]MH_I2C_Read... [00:03:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:06]Read from MH i2c: E2 [00:03:06]MH_I2C_Read... [00:03:06]Read from MH i2c: E2 FD 00 [00:03:06]MH_I2C_Read... [00:03:06]Read from MH i2c: E2 FD 00 92 5D 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 E0 [00:03:06]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:03:06]wFMCommunicate OK [00:03:06]wFMCommunicate request_size=4 [00:03:06]MH_SAM_APDU [00:03:06]CAPDU: 80 17 00 00 [00:03:06]Write to MH i2c: E2 08 00 93 5D 80 17 00 00 00 00 00 00 70 [00:03:06]Write i2c OK [00:03:06]MH_I2C_Read... [00:03:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:06]Read from MH i2c: E2 [00:03:06]MH_I2C_Read... [00:03:06]Read from MH i2c: E2 FD 00 [00:03:06]MH_I2C_Read... [00:03:06]Read from MH i2c: E2 FD 00 93 5D 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 78 [00:03:06]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:03:06]wFMCommunicate OK [00:03:06]wFMCommunicate request_size=4 [00:03:06]MH_SAM_APDU [00:03:06]CAPDU: 80 17 00 00 [00:03:06]Write to MH i2c: E2 08 00 94 5D 80 17 00 00 00 00 00 00 71 [00:03:06]Write i2c OK [00:03:06]MH_I2C_Read... [00:03:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:06]Read from MH i2c: E2 [00:03:06]MH_I2C_Read... [00:03:06]Read from MH i2c: E2 FD 00 [00:03:07]MH_I2C_Read... [00:03:07]Read from MH i2c: E2 FD 00 94 5D 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 43 [00:03:07]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:03:07]wFMCommunicate OK [00:03:07]wFMCommunicate request_size=4 [00:03:07]MH_SAM_APDU [00:03:07]CAPDU: 80 17 00 00 [00:03:07]Write to MH i2c: E2 08 00 95 5D 80 17 00 00 00 00 00 00 72 [00:03:07]Write i2c OK [00:03:07]MH_I2C_Read... [00:03:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:07]Read from MH i2c: E2 [00:03:07]MH_I2C_Read... [00:03:07]Read from MH i2c: E2 FD 00 [00:03:07]MH_I2C_Read... [00:03:07]Read from MH i2c: E2 FD 00 95 5D 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 E4 [00:03:07]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:03:07]wFMCommunicate OK [00:03:07]wFMCommunicate request_size=4 [00:03:07]MH_SAM_APDU [00:03:07]CAPDU: 80 17 00 00 [00:03:07]Write to MH i2c: E2 08 00 96 5D 80 17 00 00 00 00 00 00 73 [00:03:07]Write i2c OK [00:03:07]MH_I2C_Read... [00:03:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:03:07]Read from MH i2c: E2 [00:03:07]MH_I2C_Read... [00:03:07]Read from MH i2c: E2 BD 00 [00:03:07]MH_I2C_Read... [00:03:07]Read from MH i2c: E2 BD 00 96 5D 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 OFD Sender: No OFD packet to send [00:03:08]05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 59 [00:03:08]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:08]wFMCommunicate OK [00:03:08]SAM_PROTO_GetShiftData done [00:03:08]requested_item shift.sale.total_cash is exist - process it [00:03:08]requested_item shift.sale_refund.total is exist - process it [00:03:08]requested_item shift.sale_refund.total_cash is exist - process it [00:03:08]requested_item shift.buy.total is exist - process it [00:03:08]requested_item shift.buy.total_cash is exist - process it [00:03:08]produce_requested_data done [00:03:08]produce_requested_data return {"fm.sale.total":31581364.09,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:03:08]process_action_free get_value [00:03:08]json_value_free [00:03:08]json_value_free done [00:03:08]process_json_proto returns [00:03:08]Send response to host [00:03:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":31581364.09,"fm.sale_refund.total":6198.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:03:08]free response buf [00:03:08]execute_script done [00:03:08]execute_script returns [00:03:08]free content buf [00:03:08]Sock 9.Close socket [00:03:08]Sock 9.Thread stoped [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:48]OFD Sender: No OFD packet to send [00:04:53]OFD Sender: No OFD packet to send [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:18]OFD Sender: No OFD packet to send [00:05:23]OFD Sender: No OFD packet to send [00:05:28]OFD Sender: No OFD packet to send [00:05:33]OFD Sender: No OFD packet to send [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:18]OFD Sender: No OFD packet to send [00:06:23]OFD Sender: No OFD packet to send [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:10]accept exits with 7 [00:09:10]New connection [00:09:10]New thread 3066670436 created [00:09:10]Thread 3066813796 joined [00:09:10]Waiting for new connection... [00:09:10] Sock 7.Parse request [00:09:10]Sock 7.Check first char [00:09:10]Sock 7.First char is OK [00:09:10]request: POST /json_proto HTTP/1.0 [00:09:10]Method: POST [00:09:10]URL: /json_proto [00:09:10]Method is POST - this is cgi request [00:09:10]url: /json_proto [00:09:10]query_string will be loaded in cgi processing [00:09:10]execute_cgi json_proto POST (null) [00:09:10]execute_cgi path=json_proto method=POST [00:09:10]POST find Content-Length [00:09:10]Host: 172.17.56.67:8080 [00:09:10]Content-Length: 679 [00:09:10]Content-Type: application/json [00:09:10] [00:09:10]POST finish read [00:09:10]Found Content-Length = 679 [00:09:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216225", "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" : 57.230, "sum" : 4000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:10]execute_script... [00:09: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)216225", "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" : 57.230, "sum" : 4000.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:09:10]POST & json_proto [00:09:10]process_json_proto [00:09:10]json parsed OK: [00:09:10]protocol is kg_v1.0 [00:09:10]action value=close_receipt [00:09:10]process_action close_receipt [00:09:10]cmd_close_receipt [00:09:10]MH_GetDate [00:09:10]Write to MH i2c: F0 00 00 97 5D E3 [00:09:10]Write i2c OK [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: F0 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: F0 09 00 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: F0 09 00 97 5D 00 36 3E B8 65 26 5D 9E 65 03 [00:09:10]GetLastDocTimeStamp 1706572995 [00:09:10]current date 1706573366 [00:09:10]FM_GetShiftState [00:09:10]SAM_PROTO_GetShiftState [00:09:10]wFMCommunicate request_size=4 [00:09:10]MH_SAM_APDU [00:09:10]CAPDU: 80 13 01 00 [00:09:10]Write to MH i2c: E2 08 00 98 5D 80 13 01 00 00 00 00 00 72 [00:09:10]Write i2c OK [00:09:10]MH_I2C_Read... [00:09:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:10]Read from MH i2c: E2 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 0E 00 [00:09:10]MH_I2C_Read... [00:09:10]Read from MH i2c: E2 0E 00 98 5D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 9A [00:09:10]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [00:09:10]wFMCommunicate OK [00:09:10]SAM_PROTO_GetShiftState done [00:09:10]FM_GetShiftState done [00:09:10]opened in 1706572995 [00:09:10]opened+sec_in_day 1706659395 [00:09:10]quantity*price = 400037 [00:09:10]sum+1 = 400039 [00:09:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.38 ИТОГО: 4000.00 ВнеÑено: 4000.00 СДÐЧÐ: 0.00 ÐСП 1% : 35.40 ÐДС 12% : 424.82 Ðаличными: 4000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 1 30.01.2024 00:09 Смена: 246 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49125 ФПД: 212568595153563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T000926&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49125&fm=212568595153563&tin=02508201610067®Number=0000000000092723&sum=400000 [00:09:12]StoreToDocumentArchive [00:09:12]shift 246 fd 49125 [00:09:12]save to /storage/0246/doc_00049125 [00:09:12]save last doc name /storage/0246/doc_00049125 to /storage/kkm_last_doc_name [00:09:12]save OK [00:09:12]Clear old archive folders... [00:09:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:09:12]tlvbuf is 011D84A0 [00:09:12]SAM_PROTO_ClearQueue [00:09:12]wFMCommunicate request_size=4 [00:09:12]MH_SAM_APDU [00:09:12]CAPDU: 80 09 00 00 [00:09:12]Write to MH i2c: E2 08 00 A5 5D 80 09 00 00 00 00 00 00 74 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:09:12]Read from MH i2c: E2 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 03 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 03 00 A5 5D 00 90 00 76 [00:09:12]RAPDU: 90 00 [00:09:12]wFMCommunicate OK [00:09:12]SAM_PROTO_ClearQueue done [00:09:12]KKMCreateOFDPacket [00:09:12]OFDProtocolAddRootSTLVToBuf [00:09:12]FM_MakeSignedData [00:09:12]FM_MakeSignedData [00:09:12]SAM_PROTO_SignData [00:09:12]wFMCommunicate request_size=4 [00:09:12]MH_SAM_APDU [00:09:12]CAPDU: 80 0D 01 02 [00:09:12]Write to MH i2c: E2 08 00 A6 5D 80 0D 01 02 00 00 00 00 7C [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:09:12]Read from MH i2c: E2 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 03 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 03 00 A6 5D 00 90 00 77 [00:09:12]RAPDU: 90 00 [00:09:12]wFMCommunicate OK [00:09:12]wFMCommunicate request_size=255 [00:09:12]MH_SAM_APDU [00:09: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 8E DF 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 A6 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 36 3E B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E5 BF 00 00 35 04 06 00 C1 54 7B 9A [00:09:12]Write to MH i2c: E2 02 01 A7 5D 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 8E DF 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 A6 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 36 3E B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E5 BF 00 00 35 04 06 00 C1 54 7B 9A 00 00 7B [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:12]Read from MH i2c: E2 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 03 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 03 00 A7 5D 00 90 00 78 [00:09:12]RAPDU: 90 00 [00:09:12]wFMCommunicate OK [00:09:12]wFMCommunicate request_size=7 [00:09:12]MH_SAM_APDU [00:09:12]CAPDU: 80 0D 02 02 02 C2 9B [00:09:12]Write to MH i2c: E2 0A 00 A8 5D 80 0D 02 02 02 00 C2 9B 00 00 E0 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:09:12]Read from MH i2c: E2 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 03 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 03 00 A8 5D 00 90 00 79 [00:09:12]RAPDU: 90 00 [00:09:12]wFMCommunicate OK [00:09:12]wFMCommunicate request_size=4 [00:09:12]MH_SAM_APDU [00:09:12]CAPDU: 80 0D 03 02 [00:09:12]Write to MH i2c: E2 08 00 A9 5D 80 0D 03 02 00 00 00 00 81 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:09:12]Read from MH i2c: E2 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 0B 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 0B 00 A9 5D 00 80 F9 13 DD 5E A5 57 54 90 00 99 [00:09:12]RAPDU: 80 F9 13 DD 5E A5 57 54 90 00 [00:09:12]wFMCommunicate OK [00:09:12]SAM_PROTO_SignData done [00:09:12]FM_MakeSignedData done [00:09:12]CreateOFDProtocolMessage [00:09:12]wFMCommunicate request_size=4 [00:09:12]MH_SAM_APDU [00:09:12]CAPDU: 80 11 00 00 [00:09:12]Write to MH i2c: E2 08 00 AA 5D 80 11 00 00 00 00 00 00 81 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:12]Read from MH i2c: E2 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 17 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: E2 17 00 AA 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 CE [00:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:09:12]wFMCommunicate OK [00:09:12]CreateOFDProtocolMessage done [00:09:12]OFDSenderStorePacket 49125 [00:09:12]StoreOFDPacket docnum=49125 [00:09: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 21 77 04 01 BC 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E DF 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 A6 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 36 3E B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E5 BF 00 00 35 04 06 00 C1 54 7B 9A C2 9B 80 F9 13 DD 5E A5 57 54 [00:09:12]CheckFolder [00:09:12]dirname=/storage/ofd_packets [00:09:12]CheckFolder done [00:09:12]ProducePacketName [00:09:12]name=ofd_packets/00049125 [00:09:12]NVStorageSaveData ofd_packets/00049125 [00:09:12]File name is /storage/ofd_packets/00049125 [00:09:12]Write 298 bytes [00:09:12]NVStorageSaveData done [00:09:12]OFDSenderStorePacket done [00:09:12]KKMCreateOFDPacket done [00:09:12]NVStorageSaveData kkm_last_timestamp [00:09:12]File name is /storage/kkm_last_timestamp [00:09:12]Write 4 bytes [00:09:12]NVStorageSaveData done [00:09:12]ExternCall_PrintAddStr [00:09:12]wPrintStart [00:09:12]Write to MH i2c: 01 00 00 AB 5D 08 [00:09:12]Write i2c OK [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: 01 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: 01 07 00 [00:09:12]MH_I2C_Read... [00:09:12]Read from MH i2c: 01 07 00 AB 5D 00 00 00 00 00 FF 0F 1D [00:09:12]RasterBufferAndPrint [00:09:12]line Счет N : (1)216225 [00:09:12]line ИÐÐ: 02508201610067 [00:09:12]line Контрольно-КаÑÑовый Чек [00:09:12]line ПРОДÐЖР[00:09:12]line ТРК (МРК, ГÐК) : 21 [00:09:12]line Товар: 2710194210 [00:09:12]line ДТ-К-5 [00:09:12]line 57.230 * 69.90 [00:09:12]line = 4000.38 [00:09:12]line ÐДС 12% ÐСП 1% [00:09:12]line > о реализуемом товаре [00:09:12]line ОКРУГЛЕÐИЕ: -0.38 [00:09:12]line ИТОГО: 4000.00 [00:09:12]line ВнеÑено: 4000.00 [00:09:12]line СДÐЧÐ: 0.00 [00:09:12]line ÐСП 1% : 35.40 [00:09:12]line ÐДС 12% : 424.82 [00:09:12]line Ðаличными: 4000.00 [00:09:12]line Безнал.: 0.00 [00:09:12]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [00:09:12]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [00:09:12]line СÐО: Общий режим [00:09:12]line Чек 1 30.01.2024 00:09 [00:09:12]line Смена: 246 ФФД: 1.0 [00:09:12]line ЗÐМ: 0300000040 [00:09:12]line РÐМ: 0000000000092723 [00:09:12]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [00:09:12]line ФМ: 0000000000875060 [00:09:12]line ФД: 49125 [00:09:12]line ФПД: 212568595153563 [00:09:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T000926&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49125&fm=212568595153563&tin=02508201610067®Number=0000000000092723&sum=400000 [00:09:12]OFD Sender: Processing packet 49125 [packets to send 12, broken 11] [00:09:12]ProducePacketName [00:09:12]name=ofd_packets/00049125 [00:09:12]OFD Sender: To server: ‡•öpG, [00:09:12]CommunicateWithHost lk.salyk.kg:30040 [00:09:12]ConnectInit lk.salyk.kg [00:09:12]written 0, free lines is 4095 [00:09:12]Connected sock=9 [00:09: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 0C 01 00 00 21 77 04 01 BC 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8E DF 00 00 00 00 00 37 04 06 00 4E 1B 00 00 00 00 13 04 06 00 A6 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F2 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 36 3E B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E5 BF 00 00 35 04 06 00 C1 54 7B 9A C2 9B 80 F9 13 DD 5E A5 57 54 [00:09: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 E5 4C 47 00 DD 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E5 BF 00 00 F4 03 04 00 2E EA B7 65 B6 04 01 00 00 02 6D 3D 9A 1A 50 FC AC [00:09:13]CommunicateWithHost err = 0 [00:09:13]CheckOFDResponse [00:09:13]1017 (14) - 77093643461234 [00:09:13]1041 (16) - 0000000000875060 [00:09:13]1040 (4) - 49125 [00:09:13]1012 (4) - 29.01.2024 18:10 [00:09:13]1206 (1) - 0 [00:09:13]OFD Sender: Remove packet 49125 [00:09:13]ProducePacketName [00:09:13]name=ofd_packets/00049125 [00:09:13]NVStorageDeleteData [00:09:13]Write to MH i2c: 01 00 00 D6 5D 33 [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: 01 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: 01 07 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: 01 07 00 D6 5D 00 00 00 00 00 FF 0C 45 [00:09:13]RasterBufferAndPrint [00:09:13]line [00:09:13]line [00:09:13]line [00:09:13]line [00:09:13]line [00:09:13]written 0, free lines is 3333 [00:09:13]MH_Cut [00:09:13]Write to MH i2c: D1 01 00 DD 5D 01 0C [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: D1 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: D1 01 00 [00:09:13]MH_I2C_Read... [00:09:13]Read from MH i2c: D1 01 00 DD 5D 00 0B [00:09:13]Write to MH i2c: 01 00 00 DE 5D 3B [00:09:13]Write i2c OK [00:09:13]MH_I2C_Read... [00:09:13]OFD Sender: No OFD packet to send [00:09:14]*** Cut start [00:09:14]*** Partial cut [00:09:14]*** CUTSNS_PIN = 1 [00:09:14]*** CUTSNS_PIN = 0 [00:09:14]*** Brake cut motor [00:09:14]Read from MH i2c: 01 [00:09:14]MH_I2C_Read... [00:09:14]*** Stop cut motor [00:09:14]*** Cut end [00:09:14]Read from MH i2c: 01 07 00 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: 01 07 00 DE 5D 00 00 00 00 00 FF 0F 50 [00:09:14]process_action close_receipt done [00:09:14]requested_data is exist [00:09:14]produce_requested_data [00:09:14]requested_item fm.sn is exist - process it [00:09:14]wFMCommunicate request_size=4 [00:09:14]MH_SAM_APDU [00:09:14]CAPDU: 80 11 00 00 [00:09:14]Write to MH i2c: E2 08 00 DF 5D 80 11 00 00 00 00 00 00 B6 [00:09:14]Write i2c OK [00:09:14]MH_I2C_Read... [00:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:09:14]Read from MH i2c: E2 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 17 00 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 17 00 DF 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 03 [00:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:09:14]wFMCommunicate OK [00:09:14]requested_item fd.num is exist - process it [00:09:14]SAM_PROTO_GetFieldsCounters [00:09:14]wFMCommunicate request_size=4 [00:09:14]MH_SAM_APDU [00:09:14]CAPDU: 80 13 00 00 [00:09:14]Write to MH i2c: E2 08 00 E0 5D 80 13 00 00 00 00 00 00 B9 [00:09:14]Write i2c OK [00:09:14]MH_I2C_Read... [00:09:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:09:14]Read from MH i2c: E2 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 62 00 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 62 00 E0 5D 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 E5 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [00:09: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 E5 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:09:14]wFMCommunicate OK [00:09:14]SAM_PROTO_GetFieldsCounters done [00:09:14]requested_item shift.num is exist - process it [00:09:14]requested_item shift.opened is exist - process it [00:09:14]req_shift_opened [00:09:14]FM_GetShiftState [00:09:14]SAM_PROTO_GetShiftState [00:09:14]wFMCommunicate request_size=4 [00:09:14]MH_SAM_APDU [00:09:14]CAPDU: 80 13 01 00 [00:09:14]Write to MH i2c: E2 08 00 E1 5D 80 13 01 00 00 00 00 00 BB [00:09:14]Write i2c OK [00:09:14]MH_I2C_Read... [00:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:09:14]Read from MH i2c: E2 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 0E 00 [00:09:14]MH_I2C_Read... [00:09:14]Read from MH i2c: E2 0E 00 E1 5D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 E3 [00:09:14]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [00:09:14]wFMCommunicate OK [00:09:14]SAM_PROTO_GetShiftState done [00:09:14]FM_GetShiftState done [00:09:14]req_shift_opened done [00:09:14]requested_item shift.open_date is exist - process it [00:09:14]req_shift_open_date [00:09:14]req_shift_open_date done [00:09:14]produce_requested_data done [00:09:14]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49125,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [00:09:14]process_action_free close_receipt [00:09:14]json_value_free [00:09:14]json_value_free done [00:09:14]process_json_proto returns [00:09:14]Send response to host [00:09:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49125,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [00:09:14]free response buf [00:09:14]execute_script done [00:09:14]execute_script returns [00:09:14]free content buf [00:09:14]Sock 7.Close socket [00:09:14]Sock 7.Thread stoped [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:13]OFD Sender: No OFD packet to send [00:11:18]OFD Sender: No OFD packet to send [00:11:23]OFD Sender: No OFD packet to send [00:11:28]OFD Sender: No OFD packet to send [00:11:33]OFD Sender: No OFD packet to send [00:11:38]OFD Sender: No OFD packet to send [00:11:43]OFD Sender: No OFD packet to send [00:11:48]OFD Sender: No OFD packet to send [00:11:53]OFD Sender: No OFD packet to send [00:11:58]OFD Sender: No OFD packet to send [00:12:03]OFD Sender: No OFD packet to send [00:12:08]OFD Sender: No OFD packet to send [00:12:13]OFD Sender: No OFD packet to send [00:12:18]OFD Sender: No OFD packet to send [00:12:23]OFD Sender: No OFD packet to send [00:12:28]OFD Sender: No OFD packet to send [00:12:33]OFD Sender: No OFD packet to send [00:12:38]OFD Sender: No OFD packet to send [00:12:43]OFD Sender: No OFD packet to send [00:12:48]OFD Sender: No OFD packet to send [00:12:53]OFD Sender: No OFD packet to send [00:12:58]OFD Sender: No OFD packet to send [00:13:03]OFD Sender: No OFD packet to send [00:13:08]OFD Sender: No OFD packet to send [00:13:13]OFD Sender: No OFD packet to send [00:13:18]OFD Sender: No OFD packet to send [00:13:23]OFD Sender: No OFD packet to send [00:13:28]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:19]OFD Sender: No OFD packet to send [00:19:24]OFD Sender: No OFD packet to send [00:19:29]OFD Sender: No OFD packet to send [00:19:34]OFD Sender: No OFD packet to send [00:19:39]OFD Sender: No OFD packet to send [00:19:44]OFD Sender: No OFD packet to send [00:19:49]OFD Sender: No OFD packet to send [00:19:54]OFD Sender: No OFD packet to send [00:19:59]OFD Sender: No OFD packet to send [00:20:04]OFD Sender: No OFD packet to send [00:20:09]OFD Sender: No OFD packet to send [00:20:14]OFD Sender: No OFD packet to send [00:20:19]OFD Sender: No OFD packet to send [00:20:24]OFD Sender: No OFD packet to send [00:20:29]OFD Sender: No OFD packet to send [00:20:34]OFD Sender: No OFD packet to send [00:20:39]OFD Sender: No OFD packet to send [00:20:44]OFD Sender: No OFD packet to send [00:20:49]OFD Sender: No OFD packet to send [00:20:54]OFD Sender: No OFD packet to send [00:20:59]OFD Sender: No OFD packet to send [00:21:04]OFD Sender: No OFD packet to send [00:21:09]OFD Sender: No OFD packet to send [00:21:14]OFD Sender: No OFD packet to send [00:21:19]OFD Sender: No OFD packet to send [00:21:24]OFD Sender: No OFD packet to send [00:21:29]OFD Sender: No OFD packet to send [00:21:34]OFD Sender: No OFD packet to send [00:21:39]OFD Sender: No OFD packet to send [00:21:44]OFD Sender: No OFD packet to send [00:21:49]OFD Sender: No OFD packet to send [00:21:54]OFD Sender: No OFD packet to send [00:21:59]OFD Sender: No OFD packet to send [00:22:04]OFD Sender: No OFD packet to send [00:22:09]OFD Sender: No OFD packet to send [00:22:14]OFD Sender: No OFD packet to send [00:22:19]OFD Sender: No OFD packet to send [00:22:24]OFD Sender: No OFD packet to send [00:22:29]OFD Sender: No OFD packet to send [00:22:34]OFD Sender: No OFD packet to send [00:22:39]OFD Sender: No OFD packet to send [00:22:44]OFD Sender: No OFD packet to send [00:22:49]OFD Sender: No OFD packet to send [00:22:54]OFD Sender: No OFD packet to send [00:22:59]OFD Sender: No OFD packet to send [00:23:04]OFD Sender: No OFD packet to send [00:23:09]OFD Sender: No OFD packet to send [00:23:14]OFD Sender: No OFD packet to send [00:23:19]OFD Sender: No OFD packet to send [00:23:24]OFD Sender: No OFD packet to send [00:23:29]OFD Sender: No OFD packet to send [00:23:34]OFD Sender: No OFD packet to send [00:23:39]OFD Sender: No OFD packet to send [00:23:44]OFD Sender: No OFD packet to send [00:23:49]OFD Sender: No OFD packet to send [00:23:54]OFD Sender: No OFD packet to send [00:23:59]OFD Sender: No OFD packet to send [00:24:04]OFD Sender: No OFD packet to send [00:24:09]OFD Sender: No OFD packet to send [00:24:14]OFD Sender: No OFD packet to send [00:24:19]OFD Sender: No OFD packet to send [00:24:20]accept exits with 10 [00:24:20]New connection [00:24:20]New thread 3066813796 created [00:24:20]Thread 3066670436 joined [00:24:20]Waiting for new connection... [00:24:20] Sock 10.Parse request [00:24:20]Sock 10.Check first char [00:24:20]Sock 10.First char is OK [00:24:20]request: POST /json_proto HTTP/1.0 [00:24:20]Method: POST [00:24:20]URL: /json_proto [00:24:20]Method is POST - this is cgi request [00:24:20]url: /json_proto [00:24:20]query_string will be loaded in cgi processing [00:24:20]execute_cgi json_proto POST (null) [00:24:20]execute_cgi path=json_proto method=POST [00:24:20]POST find Content-Length [00:24:20]Host: 172.17.56.67:8080 [00:24:20]Content-Length: 677 [00:24:20]Content-Type: application/json [00:24:20] [00:24:20]POST finish read [00:24:20]Found Content-Length = 677 [00:24:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216226", "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.070, "sum" : 185.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 185.00, "total" : 185.00, "payments": [ { "type": 0, "sum" : 185.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:20]execute_script... [00:24: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)216226", "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.070, "sum" : 185.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 185.00, "total" : 185.00, "payments": [ { "type": 0, "sum" : 185.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:24:20]POST & json_proto [00:24:20]process_json_proto [00:24:20]json parsed OK: [00:24:20]protocol is kg_v1.0 [00:24:20]action value=close_receipt [00:24:20]process_action close_receipt [00:24:20]cmd_close_receipt [00:24:20]MH_GetDate [00:24:20]Write to MH i2c: F0 00 00 E2 5D 2E [00:24:20]Write i2c OK [00:24:20]MH_I2C_Read... [00:24:20]Read from MH i2c: F0 [00:24:20]MH_I2C_Read... [00:24:20]Read from MH i2c: F0 09 00 [00:24:20]MH_I2C_Read... [00:24:20]Read from MH i2c: F0 09 00 E2 5D 00 C4 41 B8 65 26 5D 9E 65 DF [00:24:20]GetLastDocTimeStamp 1706573366 [00:24:20]current date 1706574276 [00:24:20]FM_GetShiftState [00:24:20]SAM_PROTO_GetShiftState [00:24:20]wFMCommunicate request_size=4 [00:24:20]MH_SAM_APDU [00:24:20]CAPDU: 80 13 01 00 [00:24:20]Write to MH i2c: E2 08 00 E3 5D 80 13 01 00 00 00 00 00 BD [00:24:20]Write i2c OK [00:24:20]MH_I2C_Read... [00:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:20]Read from MH i2c: E2 [00:24:20]MH_I2C_Read... [00:24:20]Read from MH i2c: E2 0E 00 [00:24:20]MH_I2C_Read... [00:24:20]Read from MH i2c: E2 0E 00 E3 5D 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 E5 [00:24:20]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [00:24:20]wFMCommunicate OK [00:24:20]SAM_PROTO_GetShiftState done [00:24:20]FM_GetShiftState done [00:24:20]opened in 1706572995 [00:24:20]opened+sec_in_day 1706659395 [00:24:20]quantity*price = 18512 [00:24:20]sum+1 = 18513 [00:24:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.12 ИТОГО: 185.00 ВнеÑено: 185.00 СДÐЧÐ: 0.00 ÐСП 1% : 1.64 ÐДС 12% : 19.66 Ðаличными: 185.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 102 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 СÐО: Общий режим Чек 2 30.01.2024 00:24 Смена: 246 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49126 ФПД: 182320962822882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T002436&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49126&fm=182320962822882&tin=02508201610067®Number=0000000000092723&sum=18500 [00:24:21]StoreToDocumentArchive [00:24:21]shift 246 fd 49126 [00:24:21]save to /storage/0246/doc_00049126 [00:24:21]save last doc name /storage/0246/doc_00049126 to /storage/kkm_last_doc_name [00:24:21]save OK [00:24:21]Clear old archive folders... [00:24:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:24:21]tlvbuf is 011CF920 [00:24:21]SAM_PROTO_ClearQueue [00:24:21]wFMCommunicate request_size=4 [00:24:21]MH_SAM_APDU [00:24:21]CAPDU: 80 09 00 00 [00:24:21]Write to MH i2c: E2 08 00 F0 5D 80 09 00 00 00 00 00 00 BF [00:24:21]Write i2c OK [00:24:21]MH_I2C_Read... [00:24:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:24:21]Read from MH i2c: E2 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 03 00 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 03 00 F0 5D 00 90 00 C1 [00:24:21]RAPDU: 90 00 [00:24:21]wFMCommunicate OK [00:24:21]SAM_PROTO_ClearQueue done [00:24:21]KKMCreateOFDPacket [00:24:21]OFDProtocolAddRootSTLVToBuf [00:24:21]FM_MakeSignedData [00:24:21]FM_MakeSignedData [00:24:21]SAM_PROTO_SignData [00:24:21]wFMCommunicate request_size=4 [00:24:21]MH_SAM_APDU [00:24:21]CAPDU: 80 0D 01 02 [00:24:21]Write to MH i2c: E2 08 00 F1 5D 80 0D 01 02 00 00 00 00 C7 [00:24:21]Write i2c OK [00:24:21]MH_I2C_Read... [00:24:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:24:21]Read from MH i2c: E2 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 03 00 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 03 00 F1 5D 00 90 00 C2 [00:24:21]RAPDU: 90 00 [00:24:21]wFMCommunicate OK [00:24:21]wFMCommunicate request_size=255 [00:24:21]MH_SAM_APDU [00:24: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 FE 0B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 50 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C4 41 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E6 BF 00 00 35 04 06 00 A5 [00:24:21]Write to MH i2c: E2 02 01 F2 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 50 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C4 41 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E6 BF 00 00 35 04 06 00 A5 00 00 E4 [00:24:21]Write i2c OK [00:24:21]MH_I2C_Read... [00:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:21]Read from MH i2c: E2 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 03 00 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 03 00 F2 5D 00 90 00 C3 [00:24:21]RAPDU: 90 00 [00:24:21]wFMCommunicate OK [00:24:21]wFMCommunicate request_size=10 [00:24:21]MH_SAM_APDU [00:24:21]CAPDU: 80 0D 02 02 05 D1 E8 39 62 E2 [00:24:21]Write to MH i2c: E2 0D 00 F3 5D 80 0D 02 02 05 00 D1 E8 39 62 E2 00 00 0A [00:24:21]Write i2c OK [00:24:21]MH_I2C_Read... [00:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:24:21]Read from MH i2c: E2 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 03 00 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 03 00 F3 5D 00 90 00 C4 [00:24:21]RAPDU: 90 00 [00:24:21]wFMCommunicate OK [00:24:21]wFMCommunicate request_size=4 [00:24:21]MH_SAM_APDU [00:24:21]CAPDU: 80 0D 03 02 [00:24:21]Write to MH i2c: E2 08 00 F4 5D 80 0D 03 02 00 00 00 00 CC [00:24:21]Write i2c OK [00:24:21]MH_I2C_Read... [00:24:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:24:21]Read from MH i2c: E2 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 0B 00 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 0B 00 F4 5D 00 37 7A 2B 8D CC EE 2E 53 90 00 71 [00:24:21]RAPDU: 37 7A 2B 8D CC EE 2E 53 90 00 [00:24:21]wFMCommunicate OK [00:24:21]SAM_PROTO_SignData done [00:24:21]FM_MakeSignedData done [00:24:21]CreateOFDProtocolMessage [00:24:21]wFMCommunicate request_size=4 [00:24:21]MH_SAM_APDU [00:24:21]CAPDU: 80 11 00 00 [00:24:21]Write to MH i2c: E2 08 00 F5 5D 80 11 00 00 00 00 00 00 CC [00:24:21]Write i2c OK [00:24:21]MH_I2C_Read... [00:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:21]Read from MH i2c: E2 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 17 00 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: E2 17 00 F5 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 19 [00:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:24:21]wFMCommunicate OK [00:24:21]CreateOFDProtocolMessage done [00:24:21]OFDSenderStorePacket 49126 [00:24:21]StoreOFDPacket docnum=49126 [00:24: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 4B 9C 07 01 5B 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 50 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C4 41 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E6 BF 00 00 35 04 06 00 A5 D1 E8 39 62 E2 37 7A 2B 8D CC EE 2E 53 [00:24:21]CheckFolder [00:24:21]dirname=/storage/ofd_packets [00:24:21]CheckFolder done [00:24:21]ProducePacketName [00:24:21]name=ofd_packets/00049126 [00:24:21]NVStorageSaveData ofd_packets/00049126 [00:24:21]File name is /storage/ofd_packets/00049126 [00:24:21]Write 301 bytes [00:24:21]NVStorageSaveData done [00:24:21]OFDSenderStorePacket done [00:24:21]KKMCreateOFDPacket done [00:24:21]NVStorageSaveData kkm_last_timestamp [00:24:21]File name is /storage/kkm_last_timestamp [00:24:21]Write 4 bytes [00:24:21]NVStorageSaveData done [00:24:21]ExternCall_PrintAddStr [00:24:21]wPrintStart [00:24:21]Write to MH i2c: 01 00 00 F6 5D 53 [00:24:21]OFD Sender: Processing packet 49126 [packets to send 12, broken 11] [00:24:21]ProducePacketName [00:24:21]name=ofd_packets/00049126 [00:24:21]OFD Sender: To server: ‡•öpG, [00:24:21]CommunicateWithHost lk.salyk.kg:30040 [00:24:21]ConnectInit lk.salyk.kg [00:24:21]Write i2c OK [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: 01 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: 01 07 00 [00:24:21]MH_I2C_Read... [00:24:21]Read from MH i2c: 01 07 00 F6 5D 00 00 00 00 00 FF 0F 68 [00:24:21]RasterBufferAndPrint [00:24:21]line Счет N : (1)216226 [00:24:21]line ИÐÐ: 02508201610067 [00:24:21]line Контрольно-КаÑÑовый Чек [00:24:21]line ПРОДÐЖР[00:24:21]line ТРК (МРК, ГÐК) : 12 [00:24:21]line Товар: 2710124130 [00:24:21]line Ðи-92-К-5 [00:24:21]line 3.070 * 60.30 [00:24:21]line = 185.12 [00:24:21]line ÐДС 12% ÐСП 1% [00:24:21]line > о реализуемом товаре [00:24:21]line ОКРУГЛЕÐИЕ: -0.12 [00:24:21]line ИТОГО: 185.00 [00:24:21]line ВнеÑено: 185.00 [00:24:21]line СДÐЧÐ: 0.00 [00:24:21]line ÐСП 1% : 1.64 [00:24:21]line ÐДС 12% : 19.66 [00:24:21]line Ðаличными: 185.00 [00:24:21]line Безнал.: 0.00 [00:24:21]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [00:24:21]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [00:24:21]line СÐО: Общий режим [00:24:21]line Чек 2 30.01.2024 00:24 [00:24:21]line Смена: 246 ФФД: 1.0 [00:24:21]line ЗÐМ: 0300000040 [00:24:21]line РÐМ: 0000000000092723 [00:24:21]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [00:24:21]line ФМ: 0000000000875060 [00:24:21]line ФД: 49126 [00:24:21]line ФПД: 182320962822882 [00:24:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T002436&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49126&fm=182320962822882&tin=02508201610067®Number=0000000000092723&sum=18500 [00:24:22]Connected sock=9 [00:24: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 4B 9C 07 01 5B 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FE 0B 00 00 00 00 00 37 04 06 00 8E 17 00 00 00 00 13 04 06 00 50 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 C4 41 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E6 BF 00 00 35 04 06 00 A5 D1 E8 39 62 E2 37 7A 2B 8D CC EE 2E 53 [00:24:22]written 0, free lines is 4095 [00:24: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 3A 63 47 00 C3 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 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 E6 BF 00 00 F4 03 04 00 BB ED B7 65 B6 04 01 00 00 91 0C 3B 8C E2 C2 A7 2D [00:24:22]CommunicateWithHost err = 0 [00:24:22]CheckOFDResponse [00:24:22]1017 (14) - 77093643461234 [00:24:22]1041 (16) - 0000000000875060 [00:24:22]1040 (4) - 49126 [00:24:22]1012 (4) - 29.01.2024 18:26 [00:24:22]1206 (1) - 0 [00:24:22]OFD Sender: Remove packet 49126 [00:24:22]ProducePacketName [00:24:22]name=ofd_packets/00049126 [00:24:22]NVStorageDeleteData [00:24:22]Write to MH i2c: 01 00 00 21 5E 7F [00:24:22]Write i2c OK [00:24:22]MH_I2C_Read... [00:24:22]Read from MH i2c: 01 [00:24:22]MH_I2C_Read... [00:24:22]Read from MH i2c: 01 07 00 [00:24:22]MH_I2C_Read... [00:24:22]Read from MH i2c: 01 07 00 21 5E 00 00 00 00 00 F2 0C 84 [00:24:22]RasterBufferAndPrint [00:24:22]line [00:24:22]line [00:24:22]line [00:24:22]line [00:24:22]line [00:24:22]written 0, free lines is 3320 [00:24:22]MH_Cut [00:24:22]Write to MH i2c: D1 01 00 28 5E 01 58 [00:24:22]Write i2c OK [00:24:22]MH_I2C_Read... [00:24:22]Read from MH i2c: D1 [00:24:22]MH_I2C_Read... [00:24:22]Read from MH i2c: D1 01 00 [00:24:22]MH_I2C_Read... [00:24:22]Read from MH i2c: D1 01 00 28 5E 00 57 [00:24:22]Write to MH i2c: 01 00 00 29 5E 87 [00:24:22]Write i2c OK [00:24:22]MH_I2C_Read... [00:24:22]OFD Sender: No OFD packet to send [00:24:23]*** Cut start [00:24:23]*** Partial cut [00:24:23]*** CUTSNS_PIN = 1 [00:24:23]*** CUTSNS_PIN = 0 [00:24:23]*** Brake cut motor [00:24:23]Read from MH i2c: 01 [00:24:24]MH_I2C_Read... [00:24:24]*** Stop cut motor [00:24:24]*** Cut end [00:24:24]Read from MH i2c: 01 07 00 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: 01 07 00 29 5E 00 00 00 00 00 FF 0F 9C [00:24:24]process_action close_receipt done [00:24:24]requested_data is exist [00:24:24]produce_requested_data [00:24:24]requested_item fm.sn is exist - process it [00:24:24]wFMCommunicate request_size=4 [00:24:24]MH_SAM_APDU [00:24:24]CAPDU: 80 11 00 00 [00:24:24]Write to MH i2c: E2 08 00 2A 5E 80 11 00 00 00 00 00 00 02 [00:24:24]Write i2c OK [00:24:24]MH_I2C_Read... [00:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:24:24]Read from MH i2c: E2 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: E2 17 00 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: E2 17 00 2A 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 4F [00:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:24:24]wFMCommunicate OK [00:24:24]requested_item fd.num is exist - process it [00:24:24]SAM_PROTO_GetFieldsCounters [00:24:24]wFMCommunicate request_size=4 [00:24:24]MH_SAM_APDU [00:24:24]CAPDU: 80 13 00 00 [00:24:24]Write to MH i2c: E2 08 00 2B 5E 80 13 00 00 00 00 00 00 05 [00:24:24]Write i2c OK [00:24:24]MH_I2C_Read... [00:24:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:24:24]Read from MH i2c: E2 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: E2 62 00 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: E2 62 00 2B 5E 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 E6 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [00:24: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 E6 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:24:24]wFMCommunicate OK [00:24:24]SAM_PROTO_GetFieldsCounters done [00:24:24]requested_item shift.num is exist - process it [00:24:24]requested_item shift.opened is exist - process it [00:24:24]req_shift_opened [00:24:24]FM_GetShiftState [00:24:24]SAM_PROTO_GetShiftState [00:24:24]wFMCommunicate request_size=4 [00:24:24]MH_SAM_APDU [00:24:24]CAPDU: 80 13 01 00 [00:24:24]Write to MH i2c: E2 08 00 2C 5E 80 13 01 00 00 00 00 00 07 [00:24:24]Write i2c OK [00:24:24]MH_I2C_Read... [00:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:24:24]Read from MH i2c: E2 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: E2 0E 00 [00:24:24]MH_I2C_Read... [00:24:24]Read from MH i2c: E2 0E 00 2C 5E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 2F [00:24:24]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [00:24:24]wFMCommunicate OK [00:24:24]SAM_PROTO_GetShiftState done [00:24:24]FM_GetShiftState done [00:24:24]req_shift_opened done [00:24:24]requested_item shift.open_date is exist - process it [00:24:24]req_shift_open_date [00:24:24]req_shift_open_date done [00:24:24]produce_requested_data done [00:24:24]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49126,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [00:24:24]process_action_free close_receipt [00:24:24]json_value_free [00:24:24]json_value_free done [00:24:24]process_json_proto returns [00:24:24]Send response to host [00:24:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49126,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [00:24:24]free response buf [00:24:24]execute_script done [00:24:24]execute_script returns [00:24:24]free content buf [00:24:24]Sock 10.Close socket [00:24:24]Sock 10.Thread stoped [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]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 [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:53]OFD Sender: No OFD packet to send [00:36:58]OFD Sender: No OFD packet to send [00:37:03]OFD Sender: No OFD packet to send [00:37:08]OFD Sender: No OFD packet to send [00:37:13]OFD Sender: No OFD packet to send [00:37:18]OFD Sender: No OFD packet to send [00:37:23]OFD Sender: No OFD packet to send [00:37:28]OFD Sender: No OFD packet to send [00:37:33]OFD Sender: No OFD packet to send [00:37:38]OFD Sender: No OFD packet to send [00:37:43]OFD Sender: No OFD packet to send [00:37:48]OFD Sender: No OFD packet to send [00:37:53]OFD Sender: No OFD packet to send [00:37:58]OFD Sender: No OFD packet to send [00:38:03]OFD Sender: No OFD packet to send [00:38:08]OFD Sender: No OFD packet to send [00:38:13]OFD Sender: No OFD packet to send [00:38:18]OFD Sender: No OFD packet to send [00:38:23]OFD Sender: No OFD packet to send [00:38:28]OFD Sender: No OFD packet to send [00:38:33]OFD Sender: No OFD packet to send [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:48]OFD Sender: No OFD packet to send [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:13]OFD Sender: No OFD packet to send [00:40:18]OFD Sender: No OFD packet to send [00:40:23]OFD Sender: No OFD packet to send [00:40:28]OFD Sender: No OFD packet to send [00:40:33]OFD Sender: No OFD packet to send [00:40:38]OFD Sender: No OFD packet to send [00:40:43]OFD Sender: No OFD packet to send [00:40:48]OFD Sender: No OFD packet to send [00:40:53]OFD Sender: No OFD packet to send [00:40:58]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:56]accept exits with 7 [00:41:56]New connection [00:41:56]New thread 3066670436 created [00:41:56]Thread 3066813796 joined [00:41:56]Waiting for new connection... [00:41:56] Sock 7.Parse request [00:41:56]Sock 7.Check first char [00:41:56]Sock 7.First char is OK [00:41:56]request: POST /json_proto HTTP/1.0 [00:41:56]Method: POST [00:41:56]URL: /json_proto [00:41:56]Method is POST - this is cgi request [00:41:56]url: /json_proto [00:41:56]query_string will be loaded in cgi processing [00:41:56]execute_cgi json_proto POST (null) [00:41:56]execute_cgi path=json_proto method=POST [00:41:56]POST find Content-Length [00:41:56]Host: 172.17.56.67:8080 [00:41:56]Content-Length: 677 [00:41:56]Content-Type: application/json [00:41:56] [00:41:56]POST finish read [00:41:56]Found Content-Length = 677 [00:41:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)216227", "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" ] } } [00:41:56]execute_script... [00:41: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)216227", "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" ] } } [00:41:56]POST & json_proto [00:41:56]process_json_proto [00:41:56]json parsed OK: [00:41:56]protocol is kg_v1.0 [00:41:56]action value=close_receipt [00:41:56]process_action close_receipt [00:41:56]cmd_close_receipt [00:41:56]MH_GetDate [00:41:56]Write to MH i2c: F0 00 00 2D 5E 7A [00:41:56]Write i2c OK [00:41:56]MH_I2C_Read... [00:41:56]Read from MH i2c: F0 [00:41:56]MH_I2C_Read... [00:41:56]Read from MH i2c: F0 09 00 [00:41:56]MH_I2C_Read... [00:41:56]Read from MH i2c: F0 09 00 2D 5E 00 E5 45 B8 65 26 5D 9E 65 50 [00:41:56]GetLastDocTimeStamp 1706574276 [00:41:56]current date 1706575333 [00:41:56]FM_GetShiftState [00:41:56]SAM_PROTO_GetShiftState [00:41:56]wFMCommunicate request_size=4 [00:41:56]MH_SAM_APDU [00:41:56]CAPDU: 80 13 01 00 [00:41:56]Write to MH i2c: E2 08 00 2E 5E 80 13 01 00 00 00 00 00 09 [00:41:56]Write i2c OK [00:41:56]MH_I2C_Read... [00:41:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:41:56]Read from MH i2c: E2 [00:41:56]MH_I2C_Read... [00:41:56]Read from MH i2c: E2 0E 00 [00:41:56]MH_I2C_Read... [00:41:56]Read from MH i2c: E2 0E 00 2E 5E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 31 [00:41:56]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [00:41:56]wFMCommunicate OK [00:41:56]SAM_PROTO_GetShiftState done [00:41:56]FM_GetShiftState done [00:41:56]opened in 1706572995 [00:41:56]opened+sec_in_day 1706659395 [00:41:56]quantity*price = 10009 [00:41:56]sum+1 = 10011 [00:41:56]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 СÐО: Общий режим Чек 3 30.01.2024 00:42 Смена: 246 ФФД: 1.0 ЗÐМ: 0300000040 РÐМ: 0000000000092723 ВерÑÐ¸Ñ ÐšÐšÐœ: 001 ФМ: 0000000000875060 ФД: 49127 ФПД: 60091093432271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T004213&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49127&fm=60091093432271&tin=02508201610067®Number=0000000000092723&sum=10000 [00:41:57]StoreToDocumentArchive [00:41:57]shift 246 fd 49127 [00:41:57]save to /storage/0246/doc_00049127 [00:41:57]save last doc name /storage/0246/doc_00049127 to /storage/kkm_last_doc_name [00:41:58]save OK [00:41:58]Clear old archive folders... [00:41:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:41:58]tlvbuf is 0128D2A0 [00:41:58]SAM_PROTO_ClearQueue [00:41:58]wFMCommunicate request_size=4 [00:41:58]MH_SAM_APDU [00:41:58]CAPDU: 80 09 00 00 [00:41:58]Write to MH i2c: E2 08 00 3B 5E 80 09 00 00 00 00 00 00 0B [00:41:58]Write i2c OK [00:41:58]MH_I2C_Read... [00:41:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:41:58]Read from MH i2c: E2 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 03 00 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 03 00 3B 5E 00 90 00 0D [00:41:58]RAPDU: 90 00 [00:41:58]wFMCommunicate OK [00:41:58]SAM_PROTO_ClearQueue done [00:41:58]KKMCreateOFDPacket [00:41:58]OFDProtocolAddRootSTLVToBuf [00:41:58]FM_MakeSignedData [00:41:58]FM_MakeSignedData [00:41:58]SAM_PROTO_SignData [00:41:58]wFMCommunicate request_size=4 [00:41:58]MH_SAM_APDU [00:41:58]CAPDU: 80 0D 01 02 [00:41:58]Write to MH i2c: E2 08 00 3C 5E 80 0D 01 02 00 00 00 00 13 [00:41:58]Write i2c OK [00:41:58]MH_I2C_Read... [00:41:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:41:58]Read from MH i2c: E2 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 03 00 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 03 00 3C 5E 00 90 00 0E [00:41:58]RAPDU: 90 00 [00:41:58]wFMCommunicate OK [00:41:58]wFMCommunicate request_size=255 [00:41:58]MH_SAM_APDU [00:41: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 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 03 00 00 00 F4 03 04 00 E5 45 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E7 BF 00 00 35 04 06 00 36 [00:41:58]Write to MH i2c: E2 02 01 3D 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 03 00 00 00 F4 03 04 00 E5 45 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E7 BF 00 00 35 04 06 00 36 00 00 8B [00:41:58]Write i2c OK [00:41:58]MH_I2C_Read... [00:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:58]Read from MH i2c: E2 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 03 00 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 03 00 3D 5E 00 90 00 0F [00:41:58]RAPDU: 90 00 [00:41:58]wFMCommunicate OK [00:41:58]wFMCommunicate request_size=10 [00:41:58]MH_SAM_APDU [00:41:58]CAPDU: 80 0D 02 02 05 A7 0C 47 37 CF [00:41:58]Write to MH i2c: E2 0D 00 3E 5E 80 0D 02 02 05 00 A7 0C 47 37 CF 00 00 20 [00:41:58]Write i2c OK [00:41:58]MH_I2C_Read... [00:41:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:41:58]Read from MH i2c: E2 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 03 00 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 03 00 3E 5E 00 90 00 10 [00:41:58]RAPDU: 90 00 [00:41:58]wFMCommunicate OK [00:41:58]wFMCommunicate request_size=4 [00:41:58]MH_SAM_APDU [00:41:58]CAPDU: 80 0D 03 02 [00:41:58]Write to MH i2c: E2 08 00 3F 5E 80 0D 03 02 00 00 00 00 18 [00:41:58]Write i2c OK [00:41:58]MH_I2C_Read... [00:41:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:41:58]Read from MH i2c: E2 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 0B 00 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 0B 00 3F 5E 00 91 BC 98 D1 D1 9B 01 E3 90 00 1F [00:41:58]RAPDU: 91 BC 98 D1 D1 9B 01 E3 90 00 [00:41:58]wFMCommunicate OK [00:41:58]SAM_PROTO_SignData done [00:41:58]FM_MakeSignedData done [00:41:58]CreateOFDProtocolMessage [00:41:58]wFMCommunicate request_size=4 [00:41:58]MH_SAM_APDU [00:41:58]CAPDU: 80 11 00 00 [00:41:58]Write to MH i2c: E2 08 00 40 5E 80 11 00 00 00 00 00 00 18 [00:41:58]Write i2c OK [00:41:58]MH_I2C_Read... [00:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:41:58]Read from MH i2c: E2 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 17 00 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: E2 17 00 40 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 65 [00:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:41:58]wFMCommunicate OK [00:41:58]CreateOFDProtocolMessage done [00:41:58]OFDSenderStorePacket 49127 [00:41:58]StoreOFDPacket docnum=49127 [00:41: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 BF C8 07 01 E9 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 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 03 00 00 00 F4 03 04 00 E5 45 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E7 BF 00 00 35 04 06 00 36 A7 0C 47 37 CF 91 BC 98 D1 D1 9B 01 E3 [00:41:58]CheckFolder [00:41:58]dirname=/storage/ofd_packets [00:41:58]CheckFolder done [00:41:58]ProducePacketName [00:41:58]name=ofd_packets/00049127 [00:41:58]NVStorageSaveData ofd_packets/00049127 [00:41:58]File name is /storage/ofd_packets/00049127 [00:41:58]Write 301 bytes [00:41:58]NVStorageSaveData done [00:41:58]OFDSenderStorePacket done [00:41:58]KKMCreateOFDPacket done [00:41:58]NVStorageSaveData kkm_last_timestamp [00:41:58]File name is /storage/kkm_last_timestamp [00:41:58]Write 4 bytes [00:41:58]NVStorageSaveData done [00:41:58]ExternCall_PrintAddStr [00:41:58]wPrintStart [00:41:58]Write to MH i2c: 01 00 00 41 5E 9F [00:41:58]Write i2c OK [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: 01 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: 01 07 00 [00:41:58]MH_I2C_Read... [00:41:58]Read from MH i2c: 01 07 00 41 5E 00 00 00 00 00 FF 0F B4 [00:41:58]RasterBufferAndPrint [00:41:58]line Счет N : (1)216227 [00:41:58]line ИÐÐ: 02508201610067 [00:41:58]line Контрольно-КаÑÑовый Чек [00:41:58]line ПРОДÐЖР[00:41:58]line ТРК (МРК, ГÐК) : 22 [00:41:58]line Товар: 2710124130 [00:41:58]line Ðи-92-К-5 [00:41:58]line 1.660 * 60.30 [00:41:58]line = 100.10 [00:41:58]line ÐДС 12% ÐСП 1% [00:41:58]line > о реализуемом товаре [00:41:58]line ОКРУГЛЕÐИЕ: -0.10 [00:41:58]line ИТОГО: 100.00 [00:41:58]line ВнеÑено: 100.00 [00:41:58]line СДÐЧÐ: 0.00 [00:41:58]line ÐСП 1% : 0.89 [00:41:58]line ÐДС 12% : 10.63 [00:41:58]line Ðаличными: 100.00 [00:41:58]line Безнал.: 0.00 [00:41:58]line МеÑто: ÐЗС â„– 102 "Партнер Ðефть" [00:41:58]line ÐдреÑ: 720001, Ñ. Кара-Коо, ул. Батыркана 59, 42.217482, 76.627508 [00:41:58]line СÐО: Общий режим [00:41:58]line Чек 3 30.01.2024 00:42 [00:41:58]line Смена: 246 ФФД: 1.0 [00:41:58]line ЗÐМ: 0300000040 [00:41:58]line РÐМ: 0000000000092723 [00:41:58]line ВерÑÐ¸Ñ ÐšÐšÐœ: 001 [00:41:58]line ФМ: 0000000000875060 [00:41:58]line ФД: 49127 [00:41:58]line ФПД: 60091093432271 [00:41:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240130T004213&type=1&operation_type=1&fn_number=0000000000875060&fd_number=49127&fm=60091093432271&tin=02508201610067®Number=0000000000092723&sum=10000 [00:41:58]OFD Sender: Processing packet 49127 [packets to send 12, broken 11] [00:41:58]ProducePacketName [00:41:58]name=ofd_packets/00049127 [00:41:58]OFD Sender: To server: ‡•öpG, [00:41:58]CommunicateWithHost lk.salyk.kg:30040 [00:41:58]ConnectInit lk.salyk.kg [00:41:58]written 0, free lines is 4095 [00:41:58]Connected sock=10 [00:41: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 BF C8 07 01 E9 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 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 03 00 00 00 F4 03 04 00 E5 45 B8 65 0E 04 04 00 F6 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 37 32 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E7 BF 00 00 35 04 06 00 36 A7 0C 47 37 CF 91 BC 98 D1 D1 9B 01 E3 [00:41: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 85 D3 47 00 8B 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 10 04 04 00 E7 BF 00 00 F4 03 04 00 DC F1 B7 65 B6 04 01 00 00 70 64 4F B8 E5 0C E9 9F [00:41:59]CommunicateWithHost err = 0 [00:41:59]CheckOFDResponse [00:41:59]1017 (14) - 77093643461234 [00:41:59]1041 (16) - 0000000000875060 [00:41:59]1040 (4) - 49127 [00:41:59]1012 (4) - 29.01.2024 18:43 [00:41:59]1206 (1) - 0 [00:41:59]OFD Sender: Remove packet 49127 [00:41:59]ProducePacketName [00:41:59]name=ofd_packets/00049127 [00:41:59]NVStorageDeleteData [00:41:59]Write to MH i2c: 01 00 00 6C 5E CA [00:41:59]Write i2c OK [00:41:59]MH_I2C_Read... [00:41:59]Read from MH i2c: 01 [00:41:59]MH_I2C_Read... [00:41:59]Read from MH i2c: 01 07 00 [00:41:59]MH_I2C_Read... [00:41:59]Read from MH i2c: 01 07 00 6C 5E 00 00 00 00 00 E8 0C C5 [00:41:59]RasterBufferAndPrint [00:41:59]line [00:41:59]line [00:41:59]line [00:41:59]line [00:41:59]line [00:41:59]written 0, free lines is 3310 [00:41:59]MH_Cut [00:41:59]Write to MH i2c: D1 01 00 73 5E 01 A3 [00:41:59]Write i2c OK [00:41:59]MH_I2C_Read... [00:41:59]Read from MH i2c: D1 [00:41:59]MH_I2C_Read... [00:41:59]Read from MH i2c: D1 01 00 [00:41:59]MH_I2C_Read... [00:41:59]Read from MH i2c: D1 01 00 73 5E 00 A2 [00:41:59]Write to MH i2c: 01 00 00 74 5E D2 [00:41:59]Write i2c OK [00:41:59]MH_I2C_Read... [00:41:59]OFD Sender: No OFD packet to send [00:41:59]*** Cut start [00:42:00]*** Partial cut [00:42:00]*** CUTSNS_PIN = 1 [00:42:00]*** CUTSNS_PIN = 0 [00:42:00]*** Brake cut motor [00:42:00]Read from MH i2c: 01 [00:42:00]MH_I2C_Read... [00:42:00]*** Stop cut motor [00:42:00]*** Cut end [00:42:00]Read from MH i2c: 01 07 00 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: 01 07 00 74 5E 00 00 00 00 00 FF 0F E7 [00:42:00]process_action close_receipt done [00:42:00]requested_data is exist [00:42:00]produce_requested_data [00:42:00]requested_item fm.sn is exist - process it [00:42:00]wFMCommunicate request_size=4 [00:42:00]MH_SAM_APDU [00:42:00]CAPDU: 80 11 00 00 [00:42:00]Write to MH i2c: E2 08 00 75 5E 80 11 00 00 00 00 00 00 4D [00:42:00]Write i2c OK [00:42:00]MH_I2C_Read... [00:42:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:42:00]Read from MH i2c: E2 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: E2 17 00 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: E2 17 00 75 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 9A [00:42:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 36 30 90 00 [00:42:00]wFMCommunicate OK [00:42:00]requested_item fd.num is exist - process it [00:42:00]SAM_PROTO_GetFieldsCounters [00:42:00]wFMCommunicate request_size=4 [00:42:00]MH_SAM_APDU [00:42:00]CAPDU: 80 13 00 00 [00:42:00]Write to MH i2c: E2 08 00 76 5E 80 13 00 00 00 00 00 00 50 [00:42:00]Write i2c OK [00:42:00]MH_I2C_Read... [00:42:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:42:00]Read from MH i2c: E2 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: E2 62 00 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: E2 62 00 76 5E 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 E7 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [00:42: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 E7 BF 00 00 0E 04 04 00 F6 00 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:42:00]wFMCommunicate OK [00:42:00]SAM_PROTO_GetFieldsCounters done [00:42:00]requested_item shift.num is exist - process it [00:42:00]requested_item shift.opened is exist - process it [00:42:00]req_shift_opened [00:42:00]FM_GetShiftState [00:42:00]SAM_PROTO_GetShiftState [00:42:00]wFMCommunicate request_size=4 [00:42:00]MH_SAM_APDU [00:42:00]CAPDU: 80 13 01 00 [00:42:00]Write to MH i2c: E2 08 00 77 5E 80 13 01 00 00 00 00 00 52 [00:42:00]Write i2c OK [00:42:00]MH_I2C_Read... [00:42:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:42:00]Read from MH i2c: E2 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: E2 0E 00 [00:42:00]MH_I2C_Read... [00:42:00]Read from MH i2c: E2 0E 00 77 5E 00 09 00 01 C3 3C B8 65 00 00 00 00 90 00 7A [00:42:00]RAPDU: 09 00 01 C3 3C B8 65 00 00 00 00 90 00 [00:42:00]wFMCommunicate OK [00:42:00]SAM_PROTO_GetShiftState done [00:42:00]FM_GetShiftState done [00:42:00]req_shift_opened done [00:42:00]requested_item shift.open_date is exist - process it [00:42:00]req_shift_open_date [00:42:00]req_shift_open_date done [00:42:00]produce_requested_data done [00:42:00]produce_requested_data return {"fm.sn":"0000000000875060","fd.num":49127,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995} [00:42:00]process_action_free close_receipt [00:42:00]json_value_free [00:42:00]json_value_free done [00:42:00]process_json_proto returns [00:42:00]Send response to host [00:42:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875060","fd.num":49127,"shift.num":246,"shift.opened":1,"shift.open_date":1706572995}}} [00:42:00]free response buf [00:42:00]execute_script done [00:42:00]execute_script returns [00:42:00]free content buf [00:42:00]Sock 7.Close socket [00:42:00]Sock 7.Thread stoped [00:42:04]OFD Sender: No OFD packet to send [00:42:09]OFD Sender: No OFD packet to send [00:42:14]OFD Sender: No OFD packet to send [00:42:19]OFD Sender: No OFD packet to send [00:42:24]OFD Sender: No OFD packet to send [00:42:29]OFD Sender: No OFD packet to send [00:42:34]OFD Sender: No OFD packet to send [00:42:39]OFD Sender: No OFD packet to send [00:42:44]OFD Sender: No OFD packet to send [00:42:49]OFD Sender: No OFD packet to send [00:42:54]OFD Sender: No OFD packet to send [00:42:59]OFD Sender: No OFD packet to send [00:43:04]OFD Sender: No OFD packet to send [00:43:09]OFD Sender: No OFD packet to send [00:43:14]OFD Sender: No OFD packet to send [00:43:19]OFD Sender: No OFD packet to send [00:43:24]OFD Sender: No OFD packet to send [00:43:29]OFD Sender: No OFD packet to send [00:43:34]OFD Sender: No OFD packet to send [00:43:39]OFD Sender: No OFD packet to send [00:43:44]OFD Sender: No OFD packet to send [00:43:49]OFD Sender: No OFD packet to send [00:43:54]OFD Sender: No OFD packet to send [00:43:59]OFD Sender: No OFD packet to send [00:44:04]OFD Sender: No OFD packet to send [00:44:09]OFD Sender: No OFD packet to send [00:44:14]OFD Sender: No OFD packet to send [00:44:19]OFD Sender: No OFD packet to send [00:44:24]OFD Sender: No OFD packet to send [00:44:29]OFD Sender: No OFD packet to send [00:44:34]OFD Sender: No OFD packet to send [00:44:39]OFD Sender: No OFD packet to send [00:44:44]OFD Sender: No OFD packet to send [00:44:49]OFD Sender: No OFD packet to send [00:44:54]OFD Sender: No OFD packet to send [00:44:59]OFD Sender: No OFD packet to send [00:45:04]OFD Sender: No OFD packet to send [00:45:09]OFD Sender: No OFD packet to send [00:45:14]OFD Sender: No OFD packet to send [00:45:19]OFD Sender: No OFD packet to send [00:45:24]OFD Sender: No OFD packet to send [00:45:29]OFD Sender: No OFD packet to send [00:45:34]OFD Sender: No OFD packet to send [00:45:39]OFD Sender: No OFD packet to send [00:45:44]OFD Sender: No OFD packet to send [00:45:49]OFD Sender: No OFD packet to send [00:45:54]OFD Sender: No OFD packet to send [00:45:59]OFD Sender: No OFD packet to send [00:46:04]OFD Sender: No OFD packet to send [00:46:09]OFD Sender: No OFD packet to send [00:46:14]OFD Sender: No OFD packet to send [00:46:19]OFD Sender: No OFD packet to send [00:46:24]OFD Sender: No OFD packet to send [00:46:29]OFD Sender: No OFD packet to send [00:46:34]OFD Sender: No OFD packet to send [00:46:39]OFD Sender: No OFD packet to send [00:46:44]OFD Sender: No OFD packet to send [00:46:49]OFD Sender: No OFD packet to send [00:46:54]OFD Sender: No OFD packet to send [00:46:59]OFD Sender: No OFD packet to send [00:47:04]OFD Sender: No OFD packet to send [00:47:09]OFD Sender: No OFD packet to send [00:47:14]OFD Sender: No OFD packet to send [00:47:19]OFD Sender: No OFD packet to send [00:47:24]OFD Sender: No OFD packet to send [00:47:29]OFD Sender: No OFD packet to send [00:47:34]OFD Sender: No OFD packet to send [00:47:39]OFD Sender: No OFD packet to send [00:47:44]OFD Sender: No OFD packet to send [00:47:49]OFD Sender: No OFD packet to send [00:47:54]OFD Sender: No OFD packet to send [00:47:59]OFD Sender: No OFD packet to send [00:48:04]OFD Sender: No OFD packet to send [00:48:09]OFD Sender: No OFD packet to send [00:48:14]OFD Sender: No OFD packet to send [00:48:19]OFD Sender: No OFD packet to send [00:48:24]OFD Sender: No OFD packet to send [00:48:29]OFD Sender: No OFD packet to send [00:48:34]OFD Sender: No OFD packet to send [00:48:39]OFD Sender: No OFD packet to send [00:48:44]OFD Sender: No OFD packet to send [00:48:49]OFD Sender: No OFD packet to send [00:48:54]OFD Sender: No OFD packet to send [00:48:59]OFD Sender: No OFD packet to send [00:49:05]OFD Sender: No OFD packet to send [00:49:10]OFD Sender: No OFD packet to send [00:49:15]OFD Sender: No OFD packet to send [00:49:20]OFD Sender: No OFD packet to send [00:49:25]OFD Sender: No OFD packet to send [00:49:30]OFD Sender: No OFD packet to send [00:49:35]OFD Sender: No OFD packet to send [00:49:40]OFD Sender: No OFD packet to send [00:49:45]OFD Sender: No OFD packet to send [00:49:50]OFD Sender: No OFD packet to send [00:49:55]OFD Sender: No OFD packet to send [00:50:00]OFD Sender: No OFD packet to send [00:50:05]OFD Sender: No OFD packet to send [00:50:10]OFD Sender: No OFD packet to send [00:50:15]OFD Sender: No OFD packet to send [00:50:20]OFD Sender: No OFD packet to send [00:50:25]OFD Sender: No OFD packet to send [00:50:30]OFD Sender: No OFD packet to send [00:50:35]OFD Sender: No OFD packet to send [00:50:40]OFD Sender: No OFD packet to send [00:50:45]OFD Sender: No OFD packet to send [00:50:50]OFD Sender: No OFD packet to send [00:50:55]OFD Sender: No OFD packet to send [00:51:00]OFD Sender: No OFD packet to send [00:51:05]OFD Sender: No OFD packet to send [00:51:10]OFD Sender: No OFD packet to send [00:51:15]OFD Sender: No OFD packet to send [00:51:20]OFD Sender: No OFD packet to send [00:51:25]OFD Sender: No OFD packet to send [00:51:30]OFD Sender: No OFD packet to send [00:51:35]OFD Sender: No OFD packet to send [00:51:40]OFD Sender: No OFD packet to send [00:51:45]OFD Sender: No OFD packet to send [00:51:50]OFD Sender: No OFD packet to send [00:51:55]OFD Sender: No OFD packet to send [00:52:00]OFD Sender: No OFD packet to send [00:52:05]OFD Sender: No OFD packet to send [00:52:10]OFD Sender: No OFD packet to send [00:52:15]OFD Sender: No OFD packet to send [00:52:20]OFD Sender: No OFD packet to send [00:52:25]OFD Sender: No OFD packet to send [00:52:30]OFD Sender: No OFD packet to send [00:52:35]OFD Sender: No OFD packet to send [00:52:40]OFD Sender: No OFD packet to send [00:52:45]OFD Sender: No OFD packet to send [00:52:50]OFD Sender: No OFD packet to send [00:52:55]OFD Sender: No OFD packet to send [00:53:00]OFD Sender: No OFD packet to send [00:53:05]OFD Sender: No OFD packet to send [00:53:10]OFD Sender: No OFD packet to send [00:53:15]OFD Sender: No OFD packet to send [00:53:20]OFD Sender: No OFD packet to send [00:53:25]OFD Sender: No OFD packet to send [00:53:30]OFD Sender: No OFD packet to send [00:53:35]OFD Sender: No OFD packet to send [00:53:40]OFD Sender: No OFD packet to send [00:53:45]OFD Sender: No OFD packet to send [00:53:50]OFD Sender: No OFD packet to send [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:05]OFD Sender: No OFD packet to send [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:45]OFD Sender: No OFD packet to send [00:55:50]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:00]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:15]OFD Sender: No OFD packet to send [00:56:20]OFD Sender: No OFD packet to send [00:56:25]OFD Sender: No OFD packet to send [00:56:30]OFD Sender: No OFD packet to send [00:56:35]OFD Sender: No OFD packet to send [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:21]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:11]OFD Sender: No OFD packet to send [01:12:16]OFD Sender: No OFD packet to send [01:12:21]OFD Sender: No OFD packet to send [01:12:26]OFD Sender: No OFD packet to send [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:11]OFD Sender: No OFD packet to send [01:26:16]OFD Sender: No OFD packet to send [01:26:21]OFD Sender: No OFD packet to send [01:26:26]OFD Sender: No OFD packet to send [01:26:31]OFD Sender: No OFD packet to send [01:26:36]OFD Sender: No OFD packet to send [01:26:41]OFD Sender: No OFD packet to send [01:26:46]OFD Sender: No OFD packet to send [01:26:51]OFD Sender: No OFD packet to send [01:26:56]OFD Sender: No OFD packet to send [01:27:01]OFD Sender: No OFD packet to send [01:27:06]OFD Sender: No OFD packet to send [01:27:11]OFD Sender: No OFD packet to send [01:27:16]OFD Sender: No OFD packet to send [01:27:21]OFD Sender: No OFD packet to send [01:27:26]OFD Sender: No OFD packet to send [01:27:31]OFD Sender: No OFD packet to send [01:27:36]OFD Sender: No OFD packet to send [01:27:41]OFD Sender: No OFD packet to send [01:27:46]OFD Sender: No OFD packet to send [01:27:51]OFD Sender: No OFD packet to send [01:27:56]OFD Sender: No OFD packet to send [01:28:01]OFD Sender: No OFD packet to send [01:28:06]OFD Sender: No OFD packet to send [01:28:11]OFD Sender: No OFD packet to send [01:28:16]OFD Sender: No OFD packet to send [01:28:21]OFD Sender: No OFD packet to send [01:28:26]OFD Sender: No OFD packet to send [01:28:31]OFD Sender: No OFD packet to send [01:28:36]OFD Sender: No OFD packet to send [01:28:41]OFD Sender: No OFD packet to send [01:28:46]OFD Sender: No OFD packet to send [01:28:51]OFD Sender: No OFD packet to send [01:28:56]OFD Sender: No OFD packet to send [01:29:01]OFD Sender: No OFD packet to send [01:29:06]OFD Sender: No OFD packet to send [01:29:11]OFD Sender: No OFD packet to send [01:29:16]OFD Sender: No OFD packet to send [01:29:21]OFD Sender: No OFD packet to send [01:29:26]OFD Sender: No OFD packet to send [01:29:31]OFD Sender: No OFD packet to send [01:29:36]OFD Sender: No OFD packet to send [01:29:41]OFD Sender: No OFD packet to send [01:29:46]OFD Sender: No OFD packet to send [01:29:51]OFD Sender: No OFD packet to send [01:29:56]OFD Sender: No OFD packet to send [01:30:01]OFD Sender: No OFD packet to send [01:30:06]OFD Sender: No OFD packet to send [01:30:11]OFD Sender: No OFD packet to send [01:30:16]OFD Sender: No OFD packet to send [01:30:21]OFD Sender: No OFD packet to send [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:57]OFD Sender: No OFD packet to send [01:40:02]OFD Sender: No OFD packet to send [01:40:07]OFD Sender: No OFD packet to send [01:40:12]OFD Sender: No OFD packet to send [01:40:17]OFD Sender: No OFD packet to send [01:40:22]OFD Sender: No OFD packet to send [01:40:27]OFD Sender: No OFD packet to send [01:40:32]OFD Sender: No OFD packet to send [01:40:37]OFD Sender: No OFD packet to send [01:40:42]OFD Sender: No OFD packet to send [01:40:47]OFD Sender: No OFD packet to send [01:40:52]OFD Sender: No OFD packet to send [01:40:57]OFD Sender: No OFD packet to send [01:41:02]OFD Sender: No OFD packet to send [01:41:07]OFD Sender: No OFD packet to send [01:41:12]OFD Sender: No OFD packet to send [01:41:17]OFD Sender: No OFD packet to send [01:41:22]OFD Sender: No OFD packet to send [01:41:27]OFD Sender: No OFD packet to send [01:41:32]OFD Sender: No OFD packet to send [01:41:37]OFD Sender: No OFD packet to send [01:41:42]OFD Sender: No OFD packet to send [01:41:47]OFD Sender: No OFD packet to send [01:41:52]OFD Sender: No OFD packet to send [01:41:57]OFD Sender: No OFD packet to send [01:42:02]OFD Sender: No OFD packet to send [01:42:07]OFD Sender: No OFD packet to send [01:42:12]OFD Sender: No OFD packet to send [01:42:17]OFD Sender: No OFD packet to send [01:42:22]OFD Sender: No OFD packet to send [01:42:27]OFD Sender: No OFD packet to send [01:42:32]OFD Sender: No OFD packet to send [01:42:37]OFD Sender: No OFD packet to send [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:18]OFD Sender: No OFD packet to send [01:58:23]OFD Sender: No OFD packet to send [01:58:28]OFD Sender: No OFD packet to send [01:58:33]OFD Sender: No OFD packet to send [01:58:38]OFD Sender: No OFD packet to send [01:58:43]OFD Sender: No OFD packet to send [01:58:48]OFD Sender: No OFD packet to send [01:58:53]OFD Sender: No OFD packet to send [01:58:58]OFD Sender: No OFD packet to send [01:59:03]OFD Sender: No OFD packet to send [01:59:08]OFD Sender: No OFD packet to send [01:59:13]OFD Sender: No OFD packet to send [01:59:18]OFD Sender: No OFD packet to send [01:59:23]OFD Sender: No OFD packet to send [01:59:28]OFD Sender: No OFD packet to send [01:59:33]OFD Sender: No OFD packet to send [01:59:38]OFD Sender: No OFD packet to send [01:59:43]OFD Sender: No OFD packet to send [01:59:48]OFD Sender: No OFD packet to send [01:59:53]OFD Sender: No OFD packet to send [01:59:58]OFD Sender: No OFD packet to send [02:00:03]OFD Sender: No OFD packet to send [02:00:08]OFD Sender: No OFD packet to send [02:00:13]OFD Sender: No OFD packet to send [02:00:18]OFD Sender: No OFD packet to send [02:00:23]OFD Sender: No OFD packet to send [02:00:28]OFD Sender: No OFD packet to send [02:00:33]OFD Sender: No OFD packet to send [02:00:38]OFD Sender: No OFD packet to send [02:00:43]OFD Sender: No OFD packet to send [02:00:48]OFD Sender: No OFD packet to send [02:00:53]OFD Sender: No OFD packet to send [02:00:58]OFD Sender: No OFD packet to send [02:01:03]OFD Sender: No OFD packet to send [02:01:08]OFD Sender: No OFD packet to send [02:01:13]OFD Sender: No OFD packet to send [02:01:18]OFD Sender: No OFD packet to send [02:01:23]OFD Sender: No OFD packet to send [02:01:28]OFD Sender: No OFD packet to send [02:01:33]OFD Sender: No OFD packet to send [02:01:38]OFD Sender: No OFD packet to send [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:19]OFD Sender: No OFD packet to send [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]OFD Sender: No OFD packet to send [02:30:59]OFD Sender: No OFD packet to send [02:31:04]OFD Sender: No OFD packet to send [02:31:09]OFD Sender: No OFD packet to send [02:31:14]OFD Sender: No OFD packet to send [02:31:19]OFD Sender: No OFD packet to send [02:31:24]OFD Sender: No OFD packet to send [02:31:29]OFD Sender: No OFD packet to send [02:31:34]OFD Sender: No OFD packet to send [02:31:39]OFD Sender: No OFD packet to send [02:31:44]OFD Sender: No OFD packet to send [02:31:49]OFD Sender: No OFD packet to send [02:31:54]OFD Sender: No OFD packet to send [02:31:59]OFD Sender: No OFD packet to send [02:32:04]OFD Sender: No OFD packet to send [02:32:09]OFD Sender: No OFD packet to send [02:32:14]OFD Sender: No OFD packet to send [02:32:19]OFD Sender: No OFD packet to send [02:32:24]OFD Sender: No OFD packet to send [02:32:29]OFD Sender: No OFD packet to send [02:32:34]OFD Sender: No OFD packet to send [02:32:39]OFD Sender: No OFD packet to send [02:32:44]OFD Sender: No OFD packet to send [02:32:49]OFD Sender: No OFD packet to send [02:32:54]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]OFD Sender: No OFD packet to send [02:42:20]OFD Sender: No OFD packet to send [02:42:25]OFD Sender: No OFD packet to send [02:42:30]OFD Sender: No OFD packet to send [02:42:35]OFD Sender: No OFD packet to send [02:42:40]OFD Sender: No OFD packet to send [02:42:45]OFD Sender: No OFD packet to send [02:42:50]OFD Sender: No OFD packet to send [02:42:55]OFD Sender: No OFD packet to send [02:43:00]OFD Sender: No OFD packet to send [02:43:05]OFD Sender: No OFD packet to send [02:43:10]OFD Sender: No OFD packet to send [02:43:15]OFD Sender: No OFD packet to send [02:43:20]OFD Sender: No OFD packet to send [02:43:25]OFD Sender: No OFD packet to send [02:43:30]OFD Sender: No OFD packet to send [02:43:35]OFD Sender: No OFD packet to send [02:43:40]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:50]OFD Sender: No OFD packet to send [02:43:55]OFD Sender: No OFD packet to send [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:25]OFD Sender: No OFD packet to send [02:44:30]OFD Sender: No OFD packet to send [02:44:35]OFD Sender: No OFD packet to send [02:44:40]OFD Sender: No OFD packet to send [02:44:45]OFD Sender: No OFD packet to send [02:44:50]OFD Sender: No OFD packet to send [02:44:55]OFD Sender: No OFD packet to send [02:45:00]OFD Sender: No OFD packet to send [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:56:01]OFD Sender: No OFD packet to send [02:56:06]OFD Sender: No OFD packet to send [02:56:11]OFD Sender: No OFD packet to send [02:56:16]OFD Sender: No OFD packet to send [02:56:21]OFD Sender: No OFD packet to send [02:56:26]OFD Sender: No OFD packet to send [02:56:31]OFD Sender: No OFD packet to send [02:56:36]OFD Sender: No OFD packet to send [02:56:41]OFD Sender: No OFD packet to send [02:56:46]OFD Sender: No OFD packet to send [02:56:51]OFD Sender: No OFD packet to send [02:56:56]OFD Sender: No OFD packet to send [02:57:01]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:36]OFD Sender: No OFD packet to send [02:57:41]OFD Sender: No OFD packet to send [02:57:46]OFD Sender: No OFD packet to send [02:57:51]OFD Sender: No OFD packet to send [02:57:56]OFD Sender: No OFD packet to send [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send